/* =====================================================================
   Trang chi tiết tour – Tonkin Vietnam Travel (2026-11-23)
   Tham khảo bố cục vietnamdecouverte.com
===================================================================== */
.tvt-tour {
    --tvt-accent: var(--fs-color-secondary, #b8562b);
    --tvt-ink: #1f2420;
    --tvt-muted: #5d635e;
    --tvt-cream: #fbf6f1;
    --tvt-line: #eadfd3;
    color: var(--tvt-ink);
}
.tvt-tour .container {
    max-width: 1200px;
}

/* ---------- Tiêu đề chung ---------- */
.tvt-heading {
    margin: 0 0 30px;
    text-align: center;
    color: var(--tvt-accent);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.3;
}
.tvt-heading--left {
    text-align: left;
    margin: 0;
}
.tvt-heading--dark {
    color: var(--tvt-ink);
    margin-bottom: 12px;
}

/* ---------- 1. Aperçu ---------- */
.tvt-overview {
    padding: 55px 0 60px;
}
.tvt-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: center;
}
.tvt-overview__title {
    margin: 0 0 12px;
    color: var(--tvt-accent);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
}
.tvt-overview__route {
    margin: 0 0 18px;
    font-size: 17px;
    color: var(--tvt-ink);
}
.tvt-overview__meta {
    margin: 0 0 22px;
    color: var(--tvt-accent);
    font-style: italic;
    font-size: 17px;
}
.tvt-dot {
    margin: 0 10px;
    font-style: normal;
}
.tvt-overview__desc {
    font-size: 16px;
    line-height: 1.75;
}
.tvt-overview__desc p:last-child {
    margin-bottom: 0;
}
.tvt-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #ddd center / cover no-repeat;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
    overflow: hidden;
}
a.tvt-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    transition: background .3s;
}
a.tvt-media:hover::before {
    background: rgba(0, 0, 0, .3);
}
.tvt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    transition: transform .3s;
}
.tvt-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--tvt-accent);
}
a.tvt-media:hover .tvt-play {
    transform: scale(1.08);
}
/* Ảnh (không có video): bấm để phóng to */
.tvt-media--photo {
    cursor: zoom-in;
}
.tvt-media--photo::before {
    background: rgba(0, 0, 0, 0) !important;
}
.tvt-media--photo:hover::before {
    background: rgba(0, 0, 0, .15) !important;
}
.tvt-zoom-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    opacity: .85;
    transition: opacity .3s, transform .3s;
}
.tvt-zoom-icon::before { /* kính lúp */
    content: "";
    position: absolute;
    left: 11px;
    top: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--tvt-accent);
    border-radius: 50%;
}
.tvt-zoom-icon::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 25px;
    width: 8px;
    height: 2px;
    background: var(--tvt-accent);
    transform: rotate(45deg);
    transform-origin: left center;
}
.tvt-media--photo:hover .tvt-zoom-icon {
    opacity: 1;
    transform: scale(1.08);
}

/* ---------- 2. Points forts ---------- */
.tvt-highlights {
    padding: 60px 0;
    background: var(--tvt-cream);
}
.tvt-highlights__box {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 40px;
    border: 1.5px dashed #c9a98f;
    border-radius: 14px;
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
}
.tvt-highlights__box h2,
.tvt-highlights__box h3,
.tvt-highlights__box h4 {
    font-size: 18px;
    margin: 18px 0 10px;
    color: var(--tvt-ink);
}
.tvt-highlights__box > *:first-child {
    margin-top: 0;
}
.tvt-highlights__box > *:last-child {
    margin-bottom: 0;
}
.tvt-highlights__box ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.tvt-highlights__box ul li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 22px;
}
.tvt-highlights__box ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tvt-accent);
}

/* ---------- 3. Album ---------- */
.tvt-album {
    padding: 60px 0;
}
.tvt-album__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 8px;
}
.tvt-album__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
    cursor: zoom-in;
}
.tvt-album__item:first-child {
    grid-row: 1 / span 2;
}
.tvt-album__item.is-hidden {
    display: none;
}
.tvt-album__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tvt-album__item:hover img {
    transform: scale(1.06);
}
.tvt-album__more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* ít ảnh hơn 5 */
.tvt-album__grid.count-1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.tvt-album__grid.count-2 { grid-template-columns: 2fr 1fr; }
.tvt-album__grid.count-2 .tvt-album__item:nth-child(2) { grid-row: 1 / span 2; }
.tvt-album__grid.count-3 { grid-template-columns: 2fr 1fr; }
.tvt-album__grid.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.tvt-album__grid.count-4 .tvt-album__item:nth-child(4) { grid-column: 2 / span 2; }

/* ---------- 4. Itinéraire ---------- */
.tvt-itin {
    padding: 60px 0;
    background: var(--tvt-cream);
}
.tvt-itin__layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}
.tvt-itin__map {
    position: sticky;
    top: 140px;
}
.tvt-itin__map-inner img {
    display: block;
    width: 100%;
    height: auto;
}
.tvt-itin__map .tvt-zoom {
    display: block;
    cursor: zoom-in;
}
.tvt-legend {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}
.tvt-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}
.tvt-legend .l-car,
.tvt-legend .l-train {
    width: 26px;
    border-top: 2px solid var(--tvt-ink);
}
.tvt-legend .l-train {
    border-top-style: dashed;
}
.tvt-legend .l-ico {
    width: 26px;
    text-align: center;
    color: var(--tvt-accent);
}
.tvt-itin__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.tvt-itin__toggle-all {
    margin: 0;
    padding: 0;
    min-height: 0;
    border: 0;
    background: none;
    color: var(--tvt-ink);
    font-size: 14px;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}
.tvt-itin__list {
    position: relative;
}
.tvt-day {
    position: relative;
    border-bottom: 1px solid var(--tvt-line);
}
.tvt-day::before { /* đường nối các ngày */
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    border-left: 1px dashed #d6b9a3;
}
.tvt-day:first-child::before { top: 24px; }
.tvt-day:last-child::before { bottom: auto; height: 24px; }
.tvt-day__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    min-height: 0;
    border: 0;
    background: none;
    color: var(--tvt-ink);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}
.tvt-day__marker {
    position: relative;
    z-index: 1;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border: 2px solid var(--tvt-accent);
    border-radius: 50%;
    background: var(--tvt-cream);
}
.tvt-day.is-edge .tvt-day__marker,
.tvt-day.is-open .tvt-day__marker {
    background: var(--tvt-accent);
    box-shadow: inset 0 0 0 3px var(--tvt-cream);
}
.tvt-day__label {
    flex: 0 0 auto;
    color: var(--tvt-accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .5px;
}
.tvt-day__label::after {
    content: "|";
    margin-left: 10px;
    color: #c9b3a2;
}
.tvt-day__title {
    flex: 1 1 auto;
    font-weight: 600;
}
.tvt-day__arrow {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-right: 2px solid var(--tvt-ink);
    border-bottom: 2px solid var(--tvt-ink);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s;
}
.tvt-day.is-open .tvt-day__arrow {
    transform: rotate(-135deg) translateY(-3px);
}
.tvt-day__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.tvt-day__inner {
    padding: 0 0 18px 29px;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}
.tvt-day__inner ul {
    margin-left: 18px;
}
.tvt-day__inner p:last-child {
    margin-bottom: 0;
}

/* ---------- 5. Prix & Prestation ---------- */
.tvt-price {
    padding: 60px 0;
    text-align: center;
}
.tvt-price__amount {
    color: var(--tvt-accent);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}
.tvt-price__amount--ask {
    font-size: 28px;
}
.tvt-price__unit {
    font-style: italic;
    font-weight: 600;
    margin-bottom: 14px;
}
.tvt-price__note {
    max-width: 760px;
    margin: 0 auto 35px;
    font-size: 15px;
}
.tvt-price__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 25px;
    border-radius: 12px;
    background: #f4f4f4;
    text-align: left;
}
.tvt-price__col {
    padding: 0 25px;
}
.tvt-price__col + .tvt-price__col {
    border-left: 1px solid #d9d9d9;
}
.tvt-price__col h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 600;
}
.tvt-price__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tvt-price__list li,
.tvt-price__list > p {
    position: relative;
    margin: 0 0 14px;
    padding-left: 36px;
    font-size: 15px;
    line-height: 1.6;
}
.tvt-price__list li::before,
.tvt-price__list > p::before {
    position: absolute;
    left: 4px;
    top: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.tvt-price__col--in li::before,
.tvt-price__col--in .tvt-price__list > p::before {
    content: "✓";
    color: #2e9d55;
}
.tvt-price__col--out li::before,
.tvt-price__col--out .tvt-price__list > p::before {
    content: "✕";
    color: #e23b2e;
}

/* ---------- 6. Circuits similaires ---------- */
.tvt-related {
    padding: 60px 0 40px;
    background: var(--tvt-cream);
}
.tvt-related .products {
    justify-content: center;
}

/* ---------- 7. Contact + 8. Avis ---------- */
.tvt-contact,
.tvt-reviews {
    scroll-margin-top: 130px;
}
.tvt-reviews .tx-review-trust {
    padding: 60px 0 50px;
}

/* ---------- Lightbox (kiểu dammexecung.com) ---------- */
.tvt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 80px 16px;
    background: rgba(0, 0, 0, .88);
    opacity: 0;
    transition: opacity .25s ease;
}
.tvt-lightbox.is-open {
    opacity: 1;
}
.tvt-lightbox[hidden] {
    display: none;
}
.tvt-lb__stage {
    margin: 0;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .5);
    line-height: 0;
}
.tvt-lb__img {
    display: block;
    max-width: min(1000px, calc(100vw - 180px));
    max-height: calc(100vh - 200px);
    border-radius: 7px;
    object-fit: contain;
}
.tvt-lb__img.is-in {
    animation: tvtZoom .3s ease;
}
@keyframes tvtZoom {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.tvt-lb__caption {
    margin-top: 14px;
    color: #fff;
    font-size: 15px;
    text-align: center;
}
.tvt-lb__count {
    position: static;
    color: rgba(255, 255, 255, .7);
}
.tvt-lb__thumbs {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin-top: 10px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tvt-lb__thumbs::-webkit-scrollbar {
    display: none;
}
.tvt-lb__thumb {
    position: relative;
    font-size: 0;
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    margin: 0;
    padding: 0;
    min-height: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #333 center / cover no-repeat;
    opacity: .55;
    cursor: pointer;
    transition: opacity .2s, border-color .2s;
}
.tvt-lb__thumb:hover {
    opacity: .85;
}
.tvt-lb__thumb.is-active {
    opacity: 1;
    border-color: var(--tvt-accent, #e8692c);
}
.tvt-lb__btn {
    position: absolute;
    font-size: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    min-height: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(40, 40, 40, .85);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.tvt-lb__btn:hover {
    background: var(--tvt-accent, #e8692c);
}
.tvt-lb__btn::before,
.tvt-lb__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
}
/* Nút đóng (×) */
.tvt-lb__close {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
}
.tvt-lb__close::before,
.tvt-lb__close::after {
    width: 16px;
    height: 2px;
    margin: -1px 0 0 -8px;
    transform: rotate(45deg);
}
.tvt-lb__close::after {
    transform: rotate(-45deg);
}
/* Mũi tên trái/phải */
.tvt-lb__prev,
.tvt-lb__next {
    top: 50%;
    margin-top: -22px;
}
.tvt-lb__prev { left: 20px; }
.tvt-lb__next { right: 20px; }
.tvt-lb__prev::before,
.tvt-lb__next::before {
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
}
.tvt-lb__prev::after,
.tvt-lb__next::after {
    width: 8px;
    height: 8px;
    background: none;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}
.tvt-lb__prev::after {
    margin: -5px 0 0 -7px;
    transform: rotate(-45deg);
}
.tvt-lb__next::after {
    margin: -5px 0 0 -1px;
    transform: rotate(135deg);
}
.tvt-lightbox.is-single .tvt-lb__prev,
.tvt-lightbox.is-single .tvt-lb__next,
.tvt-lightbox.is-single .tvt-lb__thumbs {
    display: none;
}

/* Khối liên hệ cuối trang: ẩn tranh vẽ 2 bên trên màn hình nhỏ */
@media (max-width: 849px) {
    .tvt-contact .tx-contact-simple > img {
        display: none !important;
    }
    .tvt-lightbox {
        padding: 60px 10px 14px;
    }
    .tvt-lb__img {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 230px);
    }
    .tvt-lb__prev,
    .tvt-lb__next {
        top: auto;
        bottom: 88px;
        margin-top: 0;
        width: 38px;
        height: 38px;
    }
    .tvt-lb__prev { left: 10px; }
    .tvt-lb__next { right: 10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 849px) {
    .tvt-overview,
    .tvt-highlights,
    .tvt-album,
    .tvt-itin,
    .tvt-price,
    .tvt-related {
        padding: 40px 0;
    }
    .tvt-overview__grid,
    .tvt-itin__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .tvt-itin__map {
        position: static;
        max-width: 360px;
        margin: 0 auto;
    }
    .tvt-album__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 140px 140px;
    }
    .tvt-album__item:first-child {
        grid-column: 1 / span 2;
        grid-row: auto;
    }
    .tvt-album__grid.count-1 { grid-template-rows: 260px; }
    .tvt-price__box {
        grid-template-columns: 1fr;
        padding: 20px 5px;
    }
    .tvt-price__col + .tvt-price__col {
        border-left: 0;
        border-top: 1px solid #d9d9d9;
        margin-top: 15px;
        padding-top: 20px;
    }
    .tvt-highlights__box {
        padding: 22px 20px;
    }
}
@media (max-width: 549px) {
    .tvt-day__head {
        flex-wrap: wrap;
        row-gap: 2px;
    }
    .tvt-day__title {
        flex-basis: calc(100% - 60px);
        margin-left: 29px;
    }
    .tvt-day__arrow {
        position: absolute;
        right: 0;
        top: 20px;
    }
}
