body {
    background-color: #f8f9fa;
}

/* ================= GALLERY BENTO GRID ================= */
/*.tour-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .tour-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 100px;
    }

    .gal-item-1 {
        grid-column: 1 / 3 !important;
        grid-row: 1 / 2 !important;
    }

    .gal-item-4, .gal-item-5 {
        display: none !important;
    }
}

.gal-item {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

    .gal-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .gal-item:hover img {
        transform: scale(1.05);
    }

.gal-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.3s;
}

    .gal-overlay:hover {
        background: rgba(0,0,0,0.2);
    }

.gal-play-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    color: var(--vt-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    padding-left: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gal-more-text {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}*/


/* ================= MAIN GALLERY BENTO GRID ================= */
.tour-media-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.tour-grid {
    display: grid;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
}

    .tour-grid a {
        display: block;
        position: relative;
        overflow: hidden;
        background: #f0f0f0;
        height: 100%;
        min-height: 100%;
        border-radius: 0;
    }

    .tour-grid img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
    }

    .tour-grid a:hover img:not(.yt-thumb-fix) {
        transform: scale(1.05);
    }



    /* ================= FIX VIỀN ĐEN THUMBNAIL YOUTUBE ================= */
    .tour-grid img.yt-thumb-fix {
        object-fit: cover;
        /* Phóng to 35% để đẩy phần viền đen trên/dưới ra khỏi khung chứa */
        transform: scale(1.25);
        object-position: center;
    }

    /* Vẫn giữ hiệu ứng nhúc nhích khi khách di chuột vào Video */
    .tour-grid a:hover img.yt-thumb-fix {
        transform: scale(1.42);
    }

/* Trường hợp 1 ẢNH */
.tour-grid-1 {
    grid-template-columns: 1fr;
}

    .tour-grid-1 a {
        height: 400px;
    }

/* Trường hợp 2 ẢNH */
.tour-grid-2 {
    grid-template-columns: 1fr 1fr;
}

    .tour-grid-2 a {
        height: 350px;
    }

/* Trường hợp 3 ẢNH */
.tour-grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
}

    .tour-grid-3 a:nth-child(1) {
        grid-row: 1 / 3;
    }
/* Cột trái full 2 hàng */

/* Trường hợp 4 ẢNH (Ảnh 2 bên phải kéo dài) */
.tour-grid-4 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
}

    .tour-grid-4 a:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .tour-grid-4 a:nth-child(2) {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }

    .tour-grid-4 a:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .tour-grid-4 a:nth-child(4) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

/* Trường hợp 5 ẢNH (Lưới 2x2 bên phải) */
.tour-grid-5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
}

    .tour-grid-5 a:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .tour-grid-5 a:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .tour-grid-5 a:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .tour-grid-5 a:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .tour-grid-5 a:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

/* Icon Video và Text +X Ảnh */
.gal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.3s;
}

    .gal-overlay:hover {
        background: rgba(0,0,0,0.1);
    }

.gal-play-icon {
    width: 55px;
    height: 55px;
    background: #fff;
    color: var(--vt-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gal-more-text {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .tour-grid-1 a {
        height: 250px;
    }

    .tour-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

        .tour-grid-2 a {
            height: 200px;
        }

    .tour-grid-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 150px;
    }

        .tour-grid-3 a:nth-child(1) {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
        }

    .tour-grid-4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 150px 150px;
    }

        .tour-grid-4 a:nth-child(1) {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
        }

        .tour-grid-4 a:nth-child(2) {
            grid-column: 1 / 3;
            grid-row: 2 / 3;
        }

        .tour-grid-4 a:nth-child(3) {
            grid-column: 1 / 2;
            grid-row: 3 / 4;
        }

        .tour-grid-4 a:nth-child(4) {
            grid-column: 2 / 3;
            grid-row: 3 / 4;
        }

    .tour-grid-5 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 150px 150px;
    }

        .tour-grid-5 a:nth-child(1) {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
        }

        .tour-grid-5 a:nth-child(2) {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
        }

        .tour-grid-5 a:nth-child(3) {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
        }

        .tour-grid-5 a:nth-child(4) {
            grid-column: 1 / 2;
            grid-row: 3 / 4;
        }

        .tour-grid-5 a:nth-child(5) {
            grid-column: 2 / 3;
            grid-row: 3 / 4;
        }
}

/* ================= TỔNG QUAN & LỊCH TRÌNH ================= */
.tour-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.ts-title {
    font-size: 20px;
    font-weight: 700;
    color: #156e44;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 0px solid #f0f0f0;
}

.tour-section--pricing .tour-price-brochure {
    margin-top: 4px;
}

/* Bảng giá — lưới viền, căn giữa, không tràn ô */
.tour-price-table-wrap {
    border: none;
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

    .tour-price-table-wrap:has(.tour-price-table--schedule) {
        border: 1px dashed  #f59e0b;
        border-radius: 12px;
        overflow: hidden;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
    }

.tour-price-table--schedule {
    table-layout: fixed;
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 0;
    background: #fff;
}

.tour-price-table {
    margin-bottom: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #f2fcf494;
}

.tpt-w-schedule {
    width: 22%;
}

.tpt-w-flight {
    width: 26%;
}

.tpt-w-price {
    width: 26%;
}

.tour-price-table--schedule thead th,
.tour-price-table--schedule tbody td {
    border: 0;
    border-right: 1px solid #ffdfdf;
    border-bottom: 1px solid #b2a1a17a;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e2d4a;
    background: linear-gradient(247deg, #f0fdf4 0%, #ffffff 55%, #fffbeb 100%);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

    .tour-price-table--schedule thead th:last-child,
    .tour-price-table--schedule tbody td:last-child {
        border-right: none;
    }

.tour-price-table--schedule tbody tr:last-child td {
    border-bottom: none;
}

.tour-price-table--catalog thead th,
.tour-price-table--catalog tbody td {
    border: 1px solid #222;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e2d4a;
    background: #fff;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.tour-price-table--schedule thead th,
.tour-price-table--catalog thead th {
   color: white;
    background: linear-gradient(178deg, #FFA600 0%, #F56F21 100%) !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 10px 6px;
}

.bg-light {
    background-color: #f0fdf4a8 !important
}

.tpt-col-schedule {
    line-height: 1.35;
}

.tpt-date {
    display: block;
    color: darkorange;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    margin-bottom: 4px;
}

.tpt-col-schedule .tpt-code-badge {
    display: block;
    max-width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: #6c6f75;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-all;
}

.tpt-col-flight {
    text-align: center;
    padding: 6px 4px !important;
}

.tpt-flight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.tpt-col-flight .tpt-flight {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tpt-flight--has-logo {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tpt-flight--has-logo .tpt-flight__meta {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.35;
    word-break: break-word;
    text-align: center;            
    max-width: 100%;
}

/* Có logo → hiện logo + mã chuyến bay bên dưới; ẩn fallback dự phòng */
.tpt-flight--has-logo .tpt-flight__text-fallback {
    display: none !important;
}

.tpt-flight--text-only .tpt-flight__meta {
    display: none !important;
}

.tour-price-table--schedule .tpt-flight--has-logo .tpt-flight__logo {
    /*width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;*/
    max-height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    flex-shrink: 0;
    margin: 0 auto;
    border-radius:30px;
    display: block !important;
    padding: 0 !important;
}

.tpt-flight--text-only {
    flex-direction: column;
    gap: 2px;
}

    .tpt-flight--text-only .tpt-flight__logo {
        display: none !important;
    }

    .tpt-flight--text-only .tpt-flight__info,
    .tpt-flight--text-only .tpt-flight__text-fallback {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        min-width: 0;
        max-width: 100%;
    }

    .tpt-flight--text-only .tpt-flight__airline {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        word-break: break-word;
        color: #1f62e3;
    }

    .tpt-flight--text-only .tpt-flight__code {
        font-size: 10px;
        font-weight: 600;
        line-height: 1.3;
        word-break: break-word;
        color: #1e2d4a;
    }

.tpt-flight-empty {
    color: #1e2d4a;
    font-weight: 700;
}

.tpt-col-price {
    text-align: center !important;
    white-space: normal;
    font-size: 12px;
    padding: 10px 6px !important;
}

.tpt-price-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.3;
}

.tpt-price-nl {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: darkorange;
    white-space: nowrap;
    line-height: 1.35;
}

.tpt-price-te {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    line-height: 1.25;
}

.tpt-price-te__label {
    font-weight: 500;
    color: #94a3b8;
}

.catalog-price-note-public {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 14px;
    color: #166534;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .tour-price-table--schedule thead th,
    .tour-price-table--catalog thead th,
    .tour-price-table--schedule tbody td,
    .tour-price-table--catalog tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }

    .tour-price-table--schedule .tpt-flight--has-logo .tpt-flight__logo {
        width: 100px !important;
        height: auto !important;
        max-width: 100px !important;
        max-height: auto !important;
    }

    .tpt-col-flight {
        padding: 5px 3px !important;
    }
}

/* ================= KHỐI TỔNG QUAN HÀNH TRÌNH (TỐI GIẢN) ================= */
.overview-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa nội dung theo chiều dọc */
    min-height: 79px; /* Đảm bảo các ô có chiều cao bằng nhau */
    padding: 15px;
    background: linear-gradient(247deg, #f0fdf4 0%, #fff 55%, #fffbeb 100%);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    z-index: 1;
}

    .overview-box:hover {
        background-color: #ffffff;
        border-color: #fde68a;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        transform: translateY(-4px);
    }

.ob-bg-icon {
    position: absolute;
    right: 5px;
    bottom: 21px;
    font-size: 37px; /* Hạ cỡ xuống một chút cho tinh tế */
    color: var(--vt-primary, #d97706);
    opacity: 0.06; /* Tăng độ mờ nhẹ để bù đắp việc mất icon nhỏ */
    transform: rotate(-10deg);
    z-index: -1;
    pointer-events: none;
    transition: all 0.4s ease;
}

.overview-box:hover .ob-bg-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.1;
}

.ob-text {
    position: relative;
    z-index: 2;
}

    .ob-text h5 {
        font-size: 12px;
        color: #64748b;
        margin: 0 0 5px 0;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ob-text p {
        font-size: 16px;
        font-weight: 700; /* Tăng độ đậm để thông tin nổi bật hơn */
        color: darkorange;
        margin: 0;
        white-space: nowrap;
        line-height: 1.4;
    }

@media (max-width: 576px) {
    .ob-text p {
        white-space: normal;
    }
}

.accordion-button:not(.collapsed) {
    background-color: #fff !important;
    color: darkorange;
    font-weight: 700;
    /* box-shadow: inset 3px 0 0 var(--vt-primary, darkorange);*/
}

.accordion-button {
    font-weight: 600;
    font-size: medium;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion {
    --bs-accordion-border-width: 0px !important
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button:hover {
    background-color: #fff3e6;
}

/* Mũi tên xoay mượt khi mở/đóng từng ngày */
#accordionItinerary .accordion-button::after {
    transition: transform 0.3s ease;
}

/* Hiệu ứng đóng/mở từng ngày mượt mà hơn */
#accordionItinerary .accordion-collapse.collapsing {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#accordionItinerary .accordion-item {
    transition: box-shadow 0.25s ease;
}

    #accordionItinerary .accordion-item:has(.accordion-collapse.show) {
        /*box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);*/
    }

#accordionItinerary .accordion-collapse.show .html-content,
#accordionItinerary .accordion-collapse.collapsing .html-content {
    animation: itiFadeIn 0.4s ease;
}

/* Nội dung accordion — căn đều hai bên (lịch trình + thông tin cần biết) */
#accordionItinerary .html-content,
#accordionInfo .html-content {
    padding-left: 12px;
    text-align: justify;
    text-justify: inter-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#accordionItinerary .html-content p,
#accordionItinerary .html-content li,
#accordionItinerary .html-content td,
#accordionInfo .html-content p,
#accordionInfo .html-content li,
#accordionInfo .html-content td {
    text-align: justify;
    text-justify: inter-word;
}

#accordionItinerary .html-content p,
#accordionItinerary .html-content li,
#accordionInfo .html-content p,
#accordionInfo .html-content li {
    margin-bottom: 0.65em;
}

#accordionItinerary .html-content ul,
#accordionItinerary .html-content ol,
#accordionInfo .html-content ul,
#accordionInfo .html-content ol {
    padding-left: 1.25rem;
}

#accordionItinerary .html-content p:last-child,
#accordionItinerary .html-content li:last-child,
#accordionInfo .html-content p:last-child,
#accordionInfo .html-content li:last-child {
    text-align-last: left;
    margin-bottom: 0;
}

/* Giữ căn trái: nhãn bữa ăn, tiêu đề, bảng, lưới ảnh */
#accordionItinerary .html-content .text-vt-primary.fw-bold,
#accordionItinerary .html-content h1,
#accordionItinerary .html-content h2,
#accordionItinerary .html-content h3,
#accordionItinerary .html-content h4,
#accordionItinerary .html-content h5,
#accordionItinerary .html-content h6,
#accordionItinerary .html-content .iti-media-wrapper_,
#accordionItinerary .html-content .iti-grid,
#accordionItinerary .html-content table th,
#accordionInfo .html-content h1,
#accordionInfo .html-content h2,
#accordionInfo .html-content h3,
#accordionInfo .html-content h4,
#accordionInfo .html-content h5,
#accordionInfo .html-content h6,
#accordionInfo .html-content table th {
    text-align: left;
}

@keyframes itiFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   TIMELINE — Lịch trình chi tiết (#accordionItinerary)
   .itinerary-line  → .timeline-itinerary::before
   .itinerary-dot    → .itinerary-day .accordion-header::before
   ========================================================== */
#accordionItinerary.timeline-itinerary {
    --iti-line-x: 5px;
    --iti-dot-size: 12px;
    --iti-gutter: 1rem;
    position: relative;
    padding-left: var(--iti-gutter);
    margin-top: 0.5rem;
}

/* .itinerary-line — đường dọc nối các ngày */
#accordionItinerary.timeline-itinerary::before {
    content: '';
    position: absolute;
    left: calc(var(--iti-line-x) - 1px);
    top: calc(var(--iti-dot-size) + 14px);
    bottom: calc(var(--iti-dot-size) + 14px);
    width: 2px;
    background: #e5e7eb;
    border-radius: 1px;
    z-index: 0;
    pointer-events: none;
}

#accordionItinerary.timeline-itinerary .itinerary-day {
    position: relative;
    overflow: visible !important;
    margin-bottom: 1.25rem !important;
    border: 0px solid #f0f0f0 !important;
    border-radius: 12px !important;
    background: #fff;
    /*box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);*/
}

#accordionItinerary.timeline-itinerary .itinerary-day:last-child {
    margin-bottom: 0 !important;
}

#accordionItinerary.timeline-itinerary .itinerary-day .accordion-header {
    position: relative;
    z-index: 1;
}

/* .itinerary-dot — chấm cam trên timeline, ngang hàng tiêu đề ngày */
#accordionItinerary.timeline-itinerary .itinerary-day .accordion-header::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--iti-gutter) + var(--iti-line-x) - (var(--iti-dot-size) / 2));
    top: 50%;
    transform: translateY(-50%);
    width: var(--iti-dot-size);
    height: var(--iti-dot-size);
    border-radius: 50%;
    background: linear-gradient(270deg, #FFA600 0%, #F56F21 100%);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
    z-index: 2;
    pointer-events: none;
}

#accordionItinerary.timeline-itinerary .itinerary-day:has(.accordion-collapse.show) .accordion-header::before {
    box-shadow: 0 0 0 1px #e5e7eb, 0 0 0 4px rgba(245, 111, 33, 0.18);
}

/* Ngày cuối mở — cắt line chính tại dot, nối đứt xuống icon kết thúc */
#accordionItinerary.timeline-itinerary.timeline-last-expanded::before {
    bottom: var(--iti-line-stop, calc(var(--iti-dot-size) + 14px));
}

#accordionItinerary.timeline-itinerary.timeline-last-expanded .itinerary-day:last-child {
    position: relative;
    padding-bottom: 0.35rem;
}

#accordionItinerary.timeline-itinerary.timeline-last-expanded .itinerary-day:last-child .accordion-collapse.show {
    position: relative;
}

#accordionItinerary.timeline-itinerary.timeline-last-expanded .itinerary-day:last-child .accordion-collapse.show::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--iti-gutter) + var(--iti-line-x) - 1px);
    top: 0;
    bottom: 30px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #d1d5db 0,
        #d1d5db 4px,
        transparent 4px,
        transparent 9px
    );
    border-radius: 1px;
    z-index: 1;
    pointer-events: none;
}

#accordionItinerary.timeline-itinerary .itinerary-end-marker {
    display: none;
    position: absolute;
    left: calc(-1 * var(--iti-gutter) + var(--iti-line-x) - 11px);
    bottom: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(270deg, #FFA600 0%, #F56F21 100%);
    color: #fff;
    font-size: 11px;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e5e7eb;
    pointer-events: none;
}

#accordionItinerary.timeline-itinerary.timeline-last-expanded .itinerary-day:last-child .itinerary-end-marker {
    display: flex;
}

#accordionItinerary.timeline-itinerary .itinerary-day .accordion-button {
    border-radius: 12px 12px 0 0 !important;
}

#accordionItinerary.timeline-itinerary .itinerary-day .accordion-button.collapsed {
    border-radius: 12px !important;
}

#accordionItinerary.timeline-itinerary .itinerary-day .html-content {
    border-radius: 0 0 12px 12px;
}

@media (max-width: 767.98px) {
    #accordionItinerary.timeline-itinerary {
        --iti-line-x: 16px;
        --iti-dot-size: 9px;
        --iti-gutter: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    #accordionItinerary.timeline-itinerary {
        --iti-line-x: 5px;
        --iti-dot-size: 10px;
        --iti-gutter: 1rem;
    }

    #accordionItinerary.timeline-itinerary .itinerary-day {
        margin-bottom: 1rem !important;
    }
}

.day-badge {
    background: linear-gradient(270deg, #FFA600 0%, #F56F21 100%);
    color: #fff;
    font-size: small;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    margin-right: 12px;
    white-space: nowrap;
}

.tour-detail-badges {
    --td-noshop-from: #ffa64d;
    --td-noshop-mid: #ff8c00;
    --td-noshop-to: #e45d09;
    --td-hot-bg: #fff3e6;
    --td-hot-fg: #c2410c;
    --td-hot-bd: #fdba74;
    --td-hot-ic: #ea580c;
    --td-new-bg: #e6f7f0;
    --td-new-fg: #0f766e;
    --td-new-bd: #7dd3c0;
    --td-new-ic: #0d9488;
    --td-cat-bg: #eef2f6;
    --td-cat-fg: #475569;
    --td-cat-bd: #d0d7de;
    --td-cat-ic: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.td-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    border: 0px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    /*box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);*/
}

    .td-badge i {
        font-size: 11px;
        line-height: 1;
        position: relative;
        z-index: 1;
    }

.td-badge--noshop {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(178deg, #FFA600 0%, #F56F21 100%) !important;
    box-shadow: 0 4px 12px rgba(228, 93, 9, 0.28);
}

    .td-badge--noshop::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 45%;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
        transform: skewX(-22deg);
        animation: shimmer-sweep 5s ease-in-out infinite;
        pointer-events: none;
    }

.td-badge--hot {
    color: var(--td-hot-fg);
    background: var(--td-hot-bg);
    border-color: var(--td-hot-bd);
}

    .td-badge--hot i {
        color: var(--td-hot-ic);
    }

.td-badge--new {
    color: var(--td-new-fg);
    background: var(--td-new-bg);
    border-color: var(--td-new-bd);
}

    .td-badge--new i {
        color: var(--td-new-ic);
    }

.td-badge--cat {
    color: var(--td-cat-fg);
    background: var(--td-cat-bg);
    border-color: var(--td-cat-bd);
    font-weight: 500;
}

    .td-badge--cat i {
        color: var(--td-cat-ic);
    }

@media (max-width: 575.98px) {
    .tour-detail-badges {
        gap: 6px;
        margin-bottom: 12px;
    }

    .td-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .td-badge--noshop::after {
        animation: none;
    }
}

.accordion-button {
    padding: 12px !important
}

.html-content p, .html-content span {
    line-height: 1.7;
    color: #4b5563;
    font-size: 15px;
}

.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--p2-radius-img, 12px);
}

/* Ảnh lưới lịch trình — lấp full khung (ghi đè .html-content img + ola-travel-images) */
#OLA .html-content .iti-media-wrapper .iti-grid a {
    display: block;
    width: 100%;
    line-height: 0;
    cursor: pointer;
}

#OLA .html-content .iti-media-wrapper .iti-grid img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

#OLA .html-content .iti-media-wrapper .iti-grid a:hover img:not(.yt-thumb-fix) {
    transform: scale(1.05);
}

/* Bảng giá [DiemNoiBat]: bảng thường, full ngang, cột theo độ rộng chữ */
.tour-diemnoibat-html {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .tour-diemnoibat-html table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0.75rem 0 1rem;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
        font-size: 14px;
        line-height: 1.5;
        background: #fff;
        border: 2px solid #94a3b8;
        border-radius: 12px;
        overflow: hidden;
    }

        .tour-diemnoibat-html table th,
        .tour-diemnoibat-html table td {
            width: auto !important;
            max-width: none !important;
            padding: 8px 10px;
            border: 1px solid #cbd5e1;
            vertical-align: middle;
            text-align: center;
            word-break: break-word;
        }

        .tour-diemnoibat-html table col,
        .tour-diemnoibat-html table colgroup col {
            width: auto !important;
        }

        .tour-diemnoibat-html table thead th,
        .tour-diemnoibat-html table:not(:has(thead)) > tbody > tr:first-child > th,
        .tour-diemnoibat-html table:not(:has(thead)) > tbody > tr:first-child > td,
        .tour-diemnoibat-html table:not(:has(thead)) > tr:first-child > td {
            font-weight: 600;
            background: #f8fafc !important;
            color: #1f2937 !important;
        }

        .tour-diemnoibat-html table th *,
        .tour-diemnoibat-html table td * {
            background: transparent !important;
        }

        .tour-diemnoibat-html table p {
            margin: 0;
        }

@media (max-width: 767px) {
    .tour-diemnoibat-html table {
        font-size: 13px;
    }

        .tour-diemnoibat-html table th,
        .tour-diemnoibat-html table td {
            padding: 6px 8px;
        }
}

/* ================= SIDEBAR ĐẶT TOUR ================= */
/* .sticky-sidebar { position: sticky; top: 10px; z-index: 100; }*/
.booking-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* ================= TAG ĐANG MỞ BÁN (MÀU XANH LÁ + HIỆU ỨNG NHỊP ĐẬP) ================= */
.bc-flash-tag {
    display: inline-flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Dải màu xanh ngọc lục bảo sang trọng */
    color: #ffffff;
    font-size: 18px;
    width: 100%;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: flash-pulse 2s infinite; /* Gọi hiệu ứng nhịp đập liên tục */
}

    /* Làm nổi bật icon ngọn lửa bên trong */
    .bc-flash-tag i {
        color: #fde047; /* Đổi icon lửa thành màu vàng chanh cho nổi bật trên nền xanh */
        font-size: 14px;
    }

/* Hiệu ứng nhịp đập (Pulse) tỏa sóng ra xung quanh */
@keyframes flash-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.03); /* Phóng to cực nhẹ */
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); /* Tỏa sóng mờ dần */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.bc-price-label {
    font-size: 13px;
    color: #8f9193;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0px;
    
}

.bc-price-old {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.bc-price-current {
    font-size: 24px;
    font-weight: 700;
    color: darkorange;
    margin-bottom: 0px;
}

.bc-price-child {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

    .bc-price-child.is-empty {
        display: none;
    }

    .bc-price-child-lbl {
        color: #9ca3af;
        font-weight: 600;
    }

    .bc-price-child-val {
        color: #4b5563;
        font-weight: 700;
    }

.bc-dates-box {
    background: #f0fdf4;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.bc-dates-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--vt-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .bc-dates-title i {
        color: var(--vt-primary);
    }

/* ================= LƯỚI LỊCH KHỞI HÀNH ================= */
.date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* [FIX] Chia thành 3 cột đều nhau */
    gap: 10px;
}

/* (Tùy chọn) Thêm dòng này để trên điện thoại màn hình nhỏ nó tự trả về 2 cột cho khỏi bị ép chữ quá nhỏ */
@media (max-width: 576px) {
    .date-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.d-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    border: 1.2px dashed rgba(222, 131, 9, 0.41);
    color: var(--vt-primary-dark);
    background: #fff;
    border-radius: 25px;
    padding: 6px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

    .d-pill:hover {
        background: #fff8f1;
    }

    .d-pill.is-closed {
        opacity: 0.78;
        border-style: solid;
        border-color: #e8b4b4;
        color: #8a3a3a;
        background: #e8e8e8;
    }

    .d-pill.is-closed:hover {
        background: #fdecec;
    }

    .d-pill .d-pill-note {
        display: block;
        margin-top: 5px;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.15;
        color: #e11d48;
    }

    .d-pill.is-extra {
        display: none;
    }

    .bc-dates-box.is-expanded .d-pill.is-extra {
        display: flex;
    }

.bc-dates-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    border-radius: 999px;
}

    .bc-dates-more i {
        font-size: 10px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .bc-dates-more:hover,
    .bc-dates-more:focus {
        background: #fff8f1;
        color: #9a3412;
        outline: none;
    }

    .bc-dates-box.is-expanded .bc-dates-more i {
        transform: rotate(180deg);
    }

@media (prefers-reduced-motion: reduce) {
    .bc-dates-more i {
        transition: none;
    }
}

.swal2-popup.ola-closed-swal {
    width: 26.5rem;
    max-width: calc(100vw - 32px);
    padding: 28px 26px 22px;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.swal2-popup.ola-closed-swal .swal2-title,
.ola-closed-swal__title {
    margin: 0;
    padding: 0;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

.swal2-html-container.ola-closed-pop-wrap {
    margin: 14px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.swal2-popup.ola-closed-swal .swal2-actions {
    margin: 18px 0 0;
    width: 100%;
}

.ola-closed-pop {
    text-align: left;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4b5563;
}

.ola-closed-pop p {
    margin: 0;
}

.ola-closed-pop__lead {
    margin-bottom: 12px;
    color: #374151;
}

.ola-closed-pop__lead strong {
    color: #111827;
}

.ola-closed-pop__han {
    display: block;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13.5px;
    font-weight: 500;
}

.ola-closed-pop__han strong {
    font-weight: 700;
}

.ola-closed-pop__hint {
    margin: 0 0 16px !important;
    color: #6b7280;
    font-size: 13.5px;
}

.ola-closed-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 12px;
    background: #fffaf5;
    border: 0px solid #f3e0c8;
    color: #9a3412;
    text-decoration: none;
    font-weight: 600;
}

.ola-closed-hotline:hover {
    color: #7c2d12;
    background: #fff3e6;
    border-color: #fdba74;
}

.ola-closed-hotline__ico-wrap {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 5px rgba(245, 111, 33, 0.16);
}

.ola-closed-hotline__txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ola-closed-hotline__lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #c2410c;
}

.ola-closed-hotline__num {
    font-size: 14.5px;
    font-weight: 700;
    color: #9a3412;
}

.ola-closed-hotline em {
    font-weight: 500;
    font-style: italic;
    color: #ea580c;
}

.ola-closed-hotline__ico {
    display: inline-block;
    color: #F56F21;
    font-size: 15px;
    transform-origin: 50% 50%;
    animation: ola-hotline-ring 2.8s ease-in-out infinite;
}

@keyframes ola-hotline-ring {
    0%, 78%, 100% { transform: rotate(0deg); }
    81% { transform: rotate(14deg); }
    84% { transform: rotate(-12deg); }
    87% { transform: rotate(10deg); }
    90% { transform: rotate(-8deg); }
    93% { transform: rotate(5deg); }
    96% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ola-closed-hotline__ico {
        animation: none;
    }
}

.ola-closed-swal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 11px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(178deg, #FFA600 0%, #F56F21 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(245, 111, 33, 0.28);
}

.ola-closed-swal__btn:hover {
    filter: brightness(1.04);
}

.ola-closed-swal__btn:focus {
    box-shadow: 0 0 0 3px rgba(245, 111, 33, 0.28), 0 6px 16px rgba(245, 111, 33, 0.28);
}

@media (hover: none) {
    .d-pill:hover {
        background: #fff;
    }

    .d-pill.is-closed:hover {
        background: #e8e8e8;
    }
}

@media (max-width: 767.98px) {
    .sticky-sidebar {
        position: static;
        top: auto;
    }

    .booking-card {
        padding: 16px;
        border-radius: 16px;
    }

    .bc-dates-box {
        padding: 14px;
    }

    .bc-consult-row {
        gap: 6px;
        margin-bottom: 12px;
    }

    .bc-consult-row .btn-call {
        font-size: 12px;
        padding: 8px 6px !important;
    }

    .date-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .d-pill {
        min-height: 48px;
        padding: 6px 4px;
        font-size: 12px;
    }

    .d-pill .d-pill-note {
        margin-top: 4px;
        font-size: 10px;
    }

    .swal2-popup.ola-closed-swal {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px);
        padding: 20px 16px 16px;
    }

    .ola-closed-swal__title,
    .swal2-popup.ola-closed-swal .swal2-title {
        font-size: 1.1rem;
    }

    .ola-closed-hotline {
        padding: 10px 12px;
    }

    .ola-closed-hotline__num {
        font-size: 13.5px;
        word-break: break-word;
    }
}

@media (max-width: 399.98px) {
    .date-grid {
        gap: 6px;
    }

    .d-pill {
        min-height: 46px;
        font-size: 11px;
    }
}
    /* Style khi ngày được chọn (Active) */
    .d-pill.active-pill {
        background: linear-gradient(178deg, #FFA600 0%, #F56F21 100%) !important;
        color: #fff;
        border-style: none;
        border-color: transparent;
        box-shadow: 0 4px 10px rgba(222, 131, 9, 0.3);
    }

/* .btn-book {
    background: linear-gradient(to right, #e87722, #de5a1f);
    color: #fff;
    border-radius: 50px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    border: none;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(222, 90, 31, 0.3);
    transition: 0.3s;
}

    .btn-book:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(222, 90, 31, 0.4);
        color: #fff;
    }*/


/* ================= NÚT ĐẶT TOUR CÓ HIỆU ỨNG VẠCH SÁNG QUÉT NGANG ================= */
.btn-book {
    position: relative; /* Bắt buộc để làm tâm cho vạch sáng chạy qua */
    overflow: hidden; /* Để vạch sáng không bị tràn ra ngoài nút */
    /* background: linear-gradient(315deg, rgb(239, 95, 15) 0%, rgb(246, 63, 183) 100%) !important;*/
    background-color: darkorange;
    background:linear-gradient(178deg, #FFA600 0%, #F56F21 100%) !important;
    color: #fff;
    border-radius: 35px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    border: solid 1.7px #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(222, 90, 31, 0.3);
    transition: 0.3s;
    display: block;
    text-align: center;
    text-decoration: none;
}

    /* Tạo vạch sáng êm dịu */
    .btn-book::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%; /* Bắt đầu từ bên trái ngoài nút */
        width: 50%; /* Độ rộng của vạch sáng */
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.4), transparent ); /*  Dải lụa trắng mờ */

        transform: skewX(-25deg); /* Làm nghiêng vạch sáng cho nghệ thuật */
        transition: none;
        animation: light-sweep 3s infinite; /* Chạy liên tục mỗi 3 giây */
    }

    .btn-book:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(222, 90, 31, 0.4);
        color: #fff;
    }

/* Định nghĩa chuyển động quét ngang */
@keyframes light-sweep {
    0% {
        left: -120%;
    }

    30% {
        left: 120%; /* Quét qua nhanh trong 30% thời gian đầu */
    }

    100% {
        left: 120%; /* Nghỉ ngơi ở bên phải để tạo nhịp điệu êm dịu */
    }
}


.bc-consult-row {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    width: 100%;
}

.bc-consult-row .btn-call {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-call {
    background: #fff;
    color: darkorange;
    border: 2px solid #ffa600;
    border-radius: 30px !important;
    padding: 10px !important;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    transition: 0.3s;
    display: block;
}

    .btn-call:hover {
        background: #fff8f1;
        color: #b45309;
    }

.bc-consult-phone i {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: bc-phone-shake 10.6s ease-in-out infinite;
}

@keyframes bc-phone-shake {
    0%, 5.7%, 100% { transform: rotate(0deg); }
    1% { transform: rotate(16deg); }
    2% { transform: rotate(-14deg); }
    3% { transform: rotate(11deg); }
    4% { transform: rotate(-8deg); }
    5% { transform: rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bc-consult-phone i {
        animation: none;
    }
}

/* Vòng sáng chạy quanh — cùng công thức nút Admin .btn-banner-add */
.bc-consult-chat {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-color: transparent !important;
    background: #fff !important;
    z-index: 0;
}

.bc-consult-chat::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220%;
    height: 0;
    padding-bottom: 220%;
    background: conic-gradient(from 0deg, transparent 0 58%, rgba(255, 166, 0, 0.2) 72%, #ffa600 88%, #facc15 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: none;
    z-index: 0;
    animation: bc-consult-spin 2.4s linear infinite;
}

.bc-consult-chat::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 28px;
    background: #fff;
    pointer-events: none;
    z-index: 0;
}

.bc-consult-chat:hover::after {
    background: #fff8f1;
}

.bc-consult-chat .bc-consult-chat-label {
    position: relative;
    z-index: 1;
}

.bc-consult-chat .bc-consult-chat-label i {
    color: inherit;
}

@keyframes bc-consult-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bc-consult-chat::before {
        animation: none;
    }
}

.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    border-top: 1px dashed #eee;
    padding-top: 20px;
}

    .guarantee-list li {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-left: -6px;
        font-size: 18px;
        color: #4b5563;
        white-space: nowrap;
        font-weight: 600;
        margin-bottom: 20px;
    }

        .guarantee-list li i {
            font-size: 18px;
            color: #0ea5e9;
            width: 24px;
            text-align: center;
        }

/* ĐÃ FIX: Thêm webkit cho iOS và ép height: max-content */
/*.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 65px;
    z-index: 100;
    height: max-content;
}*/


/* ================= SIDEBAR ĐẶT TOUR ================= */
/* ĐÃ FIX: Điều chỉnh lại Sticky Sidebar tránh đè Footer */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 80px; /* Cách Header PC phía trên một khoảng an toàn */
    z-index: 15; /* Hạ z-index xuống để không đè lên Form Email (z-index: 20) */
    height: max-content;
    margin-bottom: 27px;
}

/* =======================================================
   CSS LƯỚI ẢNH LỊCH TRÌNH THEO SỐ LƯỢNG (1, 2, 3, 4, 5+)
   ======================================================= */
.iti-media-wrapper {
    margin: 20px 0;
    width: 100%;
}

.iti-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

    .iti-grid a {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: var(--p2-radius-img, 12px);
        background: #f0f0f0;
        height: 100%;
        min-height: 100%;
    }

    .iti-grid img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center center;
        transition: transform 0.4s ease;
        display: block;
    }

    .iti-grid a:hover img:not(.yt-thumb-fix) {
        transform: scale(1.05);
    }

/* Trường hợp 1 ẢNH */
.iti-grid-1 {
    grid-template-columns: 1fr;
}

    .iti-grid-1 a {
        height: 350px;
    }

/* Trường hợp 2 ẢNH */
.iti-grid-2 {
    grid-template-columns: 1fr 1fr;
}

    .iti-grid-2 a {
        height: 260px;
    }

/* Trường hợp 3 ẢNH */
.iti-grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 150px 150px;
}

    .iti-grid-3 a:nth-child(1) {
        grid-row: 1 / 3;
    }
    /* Cột trái chiếm 2 hàng */
    .iti-grid-3 a:nth-child(2), .iti-grid-3 a:nth-child(3) {
        height: 100%;
    }

/* Trường hợp 4 ẢNH */
.iti-grid-4 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 150px 150px;
}

    .iti-grid-4 a:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .iti-grid-4 a:nth-child(2) {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }
    /* Ảnh trên cùng bên phải trải dài */
    .iti-grid-4 a:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .iti-grid-4 a:nth-child(4) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

/* Trường hợp 5 ẢNH TRỞ LÊN */
.iti-grid-5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 150px 150px;
}

    .iti-grid-5 a:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .iti-grid-5 a:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .iti-grid-5 a:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }

    .iti-grid-5 a:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .iti-grid-5 a:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

/* Ghi chú ảnh (GhiChuAnh) */
.iti-caption {
    text-align: center;
    font-size: 14.5px;
    color: #4b5563;
    font-weight: 500;
    font-style: italic;
}

/* Lớp phủ Video & Thêm Ảnh */
.gal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.3s;
}

    .gal-overlay:hover {
        background: rgba(0,0,0,0.1);
    }

.gal-play-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    color: var(--vt-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    padding-left: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gal-more-text {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Responsive Mobile */
@media(max-width: 768px) {
    .iti-grid-1 a {
        height: 220px;
    }

    .iti-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

        .iti-grid-2 a {
            height: 150px;
        }

    .iti-grid-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 120px;
    }

        .iti-grid-3 a:nth-child(1) {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
        }

    .iti-grid-4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px 150px;
    }

        .iti-grid-4 a:nth-child(1) {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
        }

        .iti-grid-4 a:nth-child(2) {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
        }

        .iti-grid-4 a:nth-child(3) {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
        }

        .iti-grid-4 a:nth-child(4) {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
        }

    .iti-grid-5 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 100px 100px;
    }

        .iti-grid-5 a:nth-child(1) {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
        }

        .iti-grid-5 a:nth-child(2) {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
        }

        .iti-grid-5 a:nth-child(3) {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
        }

        .iti-grid-5 a:nth-child(4) {
            grid-column: 1 / 2;
            grid-row: 3 / 4;
        }

        .iti-grid-5 a:nth-child(5) {
            grid-column: 2 / 3;
            grid-row: 3 / 4;
        }
}

/* ===== Fancybox zoom ảnh: chống giật layout (scrollbar + morph zoom) ===== */
html.with-fancybox,
html.with-fancybox body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}
html.with-fancybox body.hide-scrollbar {
    margin-right: 0 !important;
    padding-right: 0 !important;
}
html.with-fancybox #main-content.overflow-hidden,
html.with-fancybox #main-content {
    overflow: visible !important;
    transform: none !important;
}
html.tour-fancybox-open .btn-back-to-top,
html.tour-fancybox-open .zalo-chat-widget,
html.tour-fancybox-open .fab-group {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* Tắt transition morph ảnh — nguồn giật khi parent có transform/overflow */
.fancybox__container .fancybox__slide.has-image > .fancybox__content {
    transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .fancybox__container.is-animated .fancybox__backdrop,
    .fancybox__container.is-animated .fancybox__content {
        animation: none !important;
    }
}
