﻿/* ===============================
   HERITAGE LIST GRID LAYOUT
================================ */

.grid-heritage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 1024px) {
    .grid-heritage {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .grid-heritage {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ===============================
   HERITAGE ITEM
================================ */

.heritage-item {
    width: 100%;
    background: #ffffff;
}

    /* ===============================
   IMAGE AREA
================================ */

    .heritage-item .uk-cover-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    }

    .heritage-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    /* Hover zoom image */
    .heritage-item:hover img {
        transform: scale(1.05);
    }

    /* Lightbox icon center */
    .heritage-item .uk-position-center {
        pointer-events: none;
    }

/* ===============================
   TITLE (MAX 2 LINES)
================================ */

.heritage-title {
    margin-top: 8px;
    padding: 0 2px;
    font-size: 15px;
    font-weight: 500;
    color: #2D2D2D;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.4em * 2);
}

/* ===============================
   OPTIONAL: HOVER TITLE COLOR
================================ */

.heritage-item:hover .heritage-title {
    color: #1a1a1a;
}

/* ===============================
   OPTIONAL: REMOVE DEFAULT UK CANVAS GAP
================================ */

.heritage-item canvas {
    display: block;
}

/* ===============================
   ENSURE LIGHTBOX LINK FULL COVER
================================ */

.heritage-item .uk-position-cover {
    cursor: pointer;
}

.show.dropdown-menu.custom-lang-select {
    min-width: auto;
}

.custom-header-01 {
    font-size: 37px;
    font-weight: 600;
}

.custom-header-02 {
    font-size: 24px;
    font-weight: 600;
}

.custom-header-03 {
    font-size: 16px;
    font-weight: 500;
}

.custom-logo {
    height: 110px;
    width: 110px;
}

.custom-big-icon-header {
    height: 60px;
    width: 60px;
}

.custom-color-header-02 {
/*        color: #C2185B;*/
/*            color: #EC407A;*/
        color: #AD1457;
/*    color: #6A1B3F;*/
/*    color: #4A0D2E;*/
}


.custom-hover-text {
    cursor: pointer;
    text-align: center;
}

.custom-hover-text span {
        display: inline-block;
        transition: transform 0.2s ease, font-weight 0.2s ease;
}

.custom-hover-text:hover span {
        font-weight: 600;
        transform: scale(1.1);
}

.custom-zoom-block img,
.custom-zoom-block .custom-header-03 {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), font-weight 0.3s cubic-bezier(.4,0,.2,1), letter-spacing 0.3s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.custom-zoom-block:hover img,
.custom-zoom-block:hover .custom-header-03 {
    transform: scale(1.06);
}

.custom-zoom-block:hover .custom-header-03 {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.custom-zoom-block:hover .tw-color-660308 {
    color: #1D4ED8;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.custom-border-left {
    border-left: 1px solid #660308;
}

.hover-zoom {
    cursor: pointer;
}

.hover-zoom > *:not(a) {        
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.hover-zoom:hover > *:not(a) {
    transform: scale(1.1);
}

.custom-flag {
    all: unset; /* reset style của <a> */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    transition: transform 0.25s ease;
}

.custom-flag > img {
    border-radius: 4px;
}

/* border chỉ khi active */
    .custom-flag::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 4px;
        border: 1px solid transparent;
        outline: 2px solid transparent;
    }

    .custom-flag.active::after {
        border-color: #d34c1f;
        outline-color: #d34c1f;
        cursor: default;
    }

/* hover CHỈ khi CHƯA active */
.custom-flag:not(.active):hover {
    transform: scale(1.1);
}

.custom-link-hover .card-title {
    transition: color 0.2s ease, text-decoration-color 0.2s ease, font-style 0.2s ease;
}

/* hover cả block */
.custom-link-hover:hover .card-title {
    color: #2f5d8a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.custom-small-italic {
    font-style: oblique 5deg;
}

.item-hover-interact {
    color: #fff;
    transition: color 0.25s ease;
}

    /* title & desc mặc định */
    .item-hover-interact .title,
    .item-hover-interact .desc {
        color: #ffffff;
        transition: color 0.25s ease;
    }

    /* hover */
    .item-hover-interact:hover .title {
        color: #ffb703;
    }

    .item-hover-interact:hover .desc {
        color: rgba(255, 183, 3, 0.75);
    }

/* mặc định */
/*.hover-overlay-text .content .title,
.hover-overlay-text .content .desc {
    color: #ffffff;
    transition: color 0.25s ease, transform 0.25s ease;
}*/

/* hover */
/*.hover-overlay-text:hover .content .title {
    color: #f08c00;
    text-decoration: dashed;
}

.hover-overlay-text:hover .content .desc {
    color: #ffd8a8;*/
    /*    transform: scale(1.03);*/
/*}

.hover-overlay-text:hover .content {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}*/

/* mặc định */
.hover-overlay-text .content .title,
.hover-overlay-text .content .desc {
    color: #ffffff;
    transition: text-decoration 0.2s ease, text-shadow 0.25s ease;
}

/* hover */
.hover-overlay-text:hover .content .title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* hỗ trợ đọc chữ khi hover */
.hover-overlay-text:hover .content {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

._swiper-button {
    pointer-events: auto;
    position: relative;
    z-index: 50;
}

.hover-scale-btn i {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hover-scale-btn[aria-disabled="false"]:hover i {
    transform: scale(1.18);
}

.custom-scrollTopBtn {
    height: 40px !important;
    width: 40px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-scrollTopBtn:hover {
    transform: scale(1.2); /* phình ra */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* cho icon phình theo luôn */
.custom-scrollTopBtn i {
    transition: transform 0.25s ease;
}

.custom-scrollTopBtn:hover i {
    transform: scale(1.1);
}

.custom-img-historical-site {
    height: 100px;
    width: 200px;
    object-fit: cover;
}

.custom-img-google-map {
    height: 100px;
    width: 200px;
    object-fit: cover;
}

/*Phần 4 thẻ ngang*/
.custom-banner-grid {
    display: flex;
    gap: 20px;  GIỮ GAP 
    width: 100%;
}

.custom-banner-item {
    flex: 1;
    height: 500px;
    perspective: 1200px;
}

/* flip container */
.flip-card {
    width: 100%;
    height: 100%;
}

/* phần lật */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    border-radius: 4px;  BO GÓC 
}

/* hover */
.custom-banner-item:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* mặt trước & sau */
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 4px;  BO GÓC 
    overflow: hidden;  CẮT ẢNH THEO BO GÓC 
}

    /* mặt trước */
    .flip-card-front img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        border-radius: 8px;  BO GÓC ẢNH 
    }

/* mặt sau */
.flip-card-back {
    background: #111;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.flip-back,
.flip-back * {
    color: #ffffff;
}

/* button xem thêm */
.flip-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* hover nổi bật */
    .flip-btn:hover {
        background: #ffffff;
        color: #111;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    /* đảm bảo text trắng */
    .flip-btn span {
        color: inherit;
    }
