/*
 * Du Lịch Vàng – trang chi tiết tour (woocommerce/content-single-product-tour.php).
 * Giai đoạn 14 (1.16.0, docs/nang-cap-giao-dien.md mục 5.5). Nạp sau sections.css, components.css.
 *
 *  1. Băng đầu trang     .dlv-tour-head
 *  2. Thư viện ảnh       .dlv-tour-gallery, khung xem toàn màn hình .dlv-lightbox
 *  3. Dải thông tin      .dlv-tour-facts
 *  4. Mục lục dính       .dlv-tour-nav
 *  5. Thân trang         .dlv-tour-body, .dlv-tour-sec
 *  6. Lịch trình         .dlv-timeline
 *  7. Giá bao gồm        .dlv-tour-incl
 *  8. Bản đồ             .dlv-tour-map
 *  9. Khung đặt tour     .dlv-book (form webvina_tour_booking_form: chỉ đổi giao diện)
 * 10. Thanh đặt tour điện thoại .dlv-mobile-book
 * 11. Bản in            @media print
 */

/* Danh sách trong trang tour: bỏ kiểu ul mặc định của Flatsome */
.dlv-tour ul,
.dlv-tour ol,
.dlv-tour li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Chiều cao header dính + mục lục (để cuộn tới mục không bị che) */
.dlv-tour {
    --dlv-sticky-top: 72px;
    --dlv-nav-h: 56px;
}

@media (max-width: 849px) {
    .dlv-tour {
        --dlv-sticky-top: 70px;
        --dlv-nav-h: 52px;
    }
}

/* ---------- 1. Băng đầu trang ---------- */
.dlv-tour-head {
    padding: calc(var(--dlv-hdr-total) + 40px) 0 120px; /* 120px: thư viện ảnh nổi lên trên mép dưới */
    background:
        radial-gradient(circle at 85% 10%, rgba(201, 161, 59, .18), transparent 45%),
        var(--dlv-ink);
    color: var(--dlv-on-dark);
}

.dlv-tour-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--dlv-space-5) var(--dlv-space-7);
    align-items: end;
}

.dlv-tour-head__inner::before,
.dlv-tour-head__inner::after {
    display: none;
}

.dlv-tour-head .dlv-breadcrumb ol {
    margin-bottom: var(--dlv-space-5);
}

.dlv-tour-head__types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--dlv-space-4) !important;
}

.dlv-tour-head .dlv-tag--outline {
    color: var(--dlv-gold-300);
}

.dlv-tour-head .dlv-tag--outline:hover {
    background: rgba(227, 199, 122, .12);
}

/* h1.: style.css cũ có "h1.entry-title { color: var(--primary-color) }" (vàng) */
h1.dlv-tour-head__title {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(2.1rem, 2.6vw + 1rem, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
    color: var(--dlv-white);
}

.dlv-tour-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: var(--dlv-space-4);
    font-size: var(--dlv-fs-small);
    color: var(--dlv-on-dark);
}

.dlv-tour-head__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dlv-tour-head__rating strong {
    color: var(--dlv-white);
}

.dlv-tour-head__rating .dlv-stars__empty {
    color: rgba(243, 231, 198, .3);
}

.dlv-tour-head__place {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dlv-tour-head__place .dlv-icon {
    font-size: 16px;
    color: var(--dlv-gold-300);
}

.dlv-tour-head__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--dlv-space-4);
}

.dlv-tour-head__price {
    text-align: right;
}

.dlv-tour-head .dlv-price__from,
.dlv-tour-head .dlv-price__unit {
    color: var(--dlv-on-dark-muted);
}

.dlv-tour-head .dlv-price__amount {
    font-size: 2rem;
    color: var(--dlv-white);
}

.dlv-tour-head__actions {
    display: flex;
    gap: var(--dlv-space-2);
}

.dlv-tour-head .dlv-button--icon {
    border-color: var(--dlv-line-dark);
    background: transparent;
    color: var(--dlv-white);
}

.dlv-tour-head .dlv-button--icon:hover {
    border-color: var(--dlv-white);
    background: var(--dlv-white);
    color: var(--dlv-brown-800);
}

/* ---------- 2. Thư viện ảnh ---------- */
.dlv-tour-gallery-wrap {
    margin-top: -88px;
}

.dlv-tour-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 220px);
    gap: 8px;
    overflow: hidden;
    border-radius: var(--dlv-radius-lg);
    box-shadow: var(--dlv-shadow-2);
    background: var(--dlv-sand);
}

.dlv-tour-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--dlv-sand);
}

.dlv-tour-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dlv-dur-3) var(--dlv-ease), filter var(--dlv-dur-2);
}

.dlv-tour-gallery__item:hover img {
    transform: scale(1.04);
    filter: brightness(.92);
}

.dlv-tour-gallery__item:focus-visible {
    outline: 3px solid var(--dlv-gold-500);
    outline-offset: -3px;
}

/* Ảnh đầu lớn; bố cục theo số ảnh (1–5) */
.dlv-tour-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.dlv-tour-gallery--1 .dlv-tour-gallery__item:first-child {
    grid-column: 1 / -1;
}

.dlv-tour-gallery--2 .dlv-tour-gallery__item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.dlv-tour-gallery--3 .dlv-tour-gallery__item:nth-child(n+2) {
    grid-column: span 2;
}

.dlv-tour-gallery--4 .dlv-tour-gallery__item:nth-child(2) {
    grid-column: span 2;
}

.dlv-tour-gallery__all.dlv-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    border-color: transparent;
    background: rgba(255, 255, 255, .94);
    color: var(--dlv-brown-800);
    box-shadow: var(--dlv-shadow-1);
}

.dlv-tour-gallery__all.dlv-button:hover {
    background: var(--dlv-white);
    color: var(--dlv-gold-700);
}

/* Khung xem ảnh toàn màn hình (<dialog>) */
.dlv-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(31, 20, 11, .96);
    color: var(--dlv-white);
}

.dlv-lightbox::backdrop {
    background: rgba(31, 20, 11, .96);
}

.dlv-lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.dlv-lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.dlv-lightbox__count {
    font-size: var(--dlv-fs-small);
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--dlv-on-dark);
}

.dlv-lightbox__fig {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 0;
    padding: 0 80px 32px;
}

.dlv-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: var(--dlv-radius-sm);
    object-fit: contain;
}

.dlv-lightbox__cap {
    margin-top: 12px;
    font-size: var(--dlv-fs-small);
    color: var(--dlv-on-dark-muted);
}

.dlv-lightbox__btn:not(.icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--dlv-line-dark);
    border-radius: var(--dlv-radius-pill) !important;
    background: rgba(31, 20, 11, .5);
    color: var(--dlv-white);
    cursor: pointer;
}

.dlv-lightbox__btn:hover {
    background: var(--dlv-white);
    color: var(--dlv-brown-800);
}

.dlv-lightbox__btn:focus-visible {
    outline: 2px solid var(--dlv-gold-300);
    outline-offset: 2px;
}

.dlv-lightbox__btn .dlv-icon {
    font-size: 22px;
}

.dlv-lightbox__prev,
.dlv-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.dlv-lightbox__prev {
    left: 16px;
}

.dlv-lightbox__next {
    right: 16px;
}

/* ---------- 3. Dải thông tin ---------- */
.dlv-tour-facts {
    border-bottom: 1px solid var(--dlv-line);
}

/* "ul.container": quy tắc ".dlv-tour ul { margin: 0; padding: 0 }" xoá margin auto và lề 15px
   của .container (lỗi 1.14.1); đặt lại. */
.dlv-tour-facts ul.container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.dlv-tour-facts ul.container::before,
.dlv-tour-facts ul.container::after {
    display: none;
}

.dlv-tour-facts li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 28px 20px 28px 0;
}

.dlv-tour-facts li + li {
    padding-left: 20px;
    border-left: 1px solid var(--dlv-line);
}

.dlv-tour-facts .dlv-icon {
    flex: 0 0 24px;
    margin-top: 2px;
    font-size: 24px;
    color: var(--dlv-gold-700);
}

.dlv-tour-facts small {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dlv-muted);
}

.dlv-tour-facts strong {
    display: block;
    font-family: var(--dlv-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dlv-brown-800);
}

/* ---------- 4. Mục lục dính ---------- */
.dlv-tour-nav {
    position: sticky;
    top: var(--dlv-sticky-top);
    z-index: 30;
    border-bottom: 1px solid var(--dlv-line);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.dlv-tour-nav ul {
    display: flex;
    gap: var(--dlv-space-6);
    overflow-x: auto;
    scrollbar-width: none;
}

.dlv-tour-nav ul::-webkit-scrollbar {
    display: none;
}

.dlv-tour-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--dlv-nav-h);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--dlv-muted);
    transition: color var(--dlv-dur-1);
}

.dlv-tour-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--dlv-gold-500);
    transform: scaleX(0);
    transition: transform var(--dlv-dur-2) var(--dlv-ease);
}

.dlv-tour-nav a:hover,
.dlv-tour-nav a[aria-current="true"] {
    color: var(--dlv-brown-800);
}

.dlv-tour-nav a[aria-current="true"]::after {
    transform: scaleX(1);
}

/* ---------- 5. Thân trang ---------- */
.dlv-tour-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--dlv-space-8);
    align-items: start;
    padding-top: var(--dlv-space-7);
    padding-bottom: var(--dlv-space-section);
}

.dlv-tour-body::before,
.dlv-tour-body::after {
    display: none;
}

.dlv-tour-sec {
    padding: var(--dlv-space-7) 0;
    border-bottom: 1px solid var(--dlv-line);
    scroll-margin-top: calc(var(--dlv-sticky-top) + var(--dlv-nav-h) + 16px);
}

.dlv-tour-sec:first-child {
    padding-top: 0;
}

.dlv-tour-sec:last-child {
    border-bottom: 0;
}

.dlv-tour-sec__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--dlv-space-3) var(--dlv-space-5);
}

.dlv-tour-h2 {
    margin: 0 0 var(--dlv-space-5);
    font-size: clamp(1.75rem, 1.2vw + 1.2rem, 2.4rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--dlv-brown-800);
}

.dlv-tour-h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--dlv-gold-700);
}

.dlv-tour-h3 {
    margin: var(--dlv-space-6) 0 var(--dlv-space-4);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dlv-brown-800);
}

.dlv-tour-desc {
    font-size: var(--dlv-fs-body);
    line-height: 1.8;
}

/* Điểm nhấn */
.dlv-tour-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--dlv-space-3);
}

.dlv-tour-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--dlv-line);
    border-radius: var(--dlv-radius-lg);
    background: var(--dlv-white);
    font-size: 15px;
    font-weight: 600;
    color: var(--dlv-brown-800);
}

.dlv-tour-highlights__icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dlv-ivory);
    font-size: 20px;
    color: var(--dlv-gold-700);
}

/* Chi tiết tour */
.dlv-tour-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--dlv-space-6);
    margin: 0;
    /* Flatsome đặt dl in hoa, giãn chữ: chỉ nhãn (dt) in hoa */
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
}

.dlv-tour-details div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dlv-line);
}

.dlv-tour-details .dlv-icon {
    grid-row: span 2;
    margin-top: 2px;
    font-size: 20px;
    color: var(--dlv-gold-700);
}

.dlv-tour-details dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dlv-muted);
}

.dlv-tour-details dd {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--dlv-text);
}

/* ---------- 6. Lịch trình ---------- */
.dlv-timeline {
    position: relative;
    margin-top: var(--dlv-space-2) !important;
}

/* Đường dọc nối các ngày */
.dlv-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 9px;
    width: 1px;
    background: var(--dlv-line);
}

.dlv-timeline__item + .dlv-timeline__item {
    margin-top: var(--dlv-space-2) !important;
}

.dlv-timeline__day summary {
    position: relative;
    display: grid;
    grid-template-columns: 20px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--dlv-space-4);
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
}

.dlv-timeline__day summary::-webkit-details-marker {
    display: none;
}

.dlv-timeline__dot {
    position: relative;
    z-index: 1;
    width: 19px;
    height: 19px;
    border: 1px solid var(--dlv-gold-500);
    border-radius: 50%;
    background: var(--dlv-white);
    transition: background-color var(--dlv-dur-1);
}

.dlv-timeline__day[open] .dlv-timeline__dot {
    background: var(--dlv-gold-500);
    box-shadow: 0 0 0 4px var(--dlv-gold-100);
}

.dlv-timeline__num {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dlv-gold-700);
    white-space: nowrap;
}

.dlv-timeline__title {
    font-family: var(--dlv-font-heading);
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--dlv-brown-800);
}

.dlv-timeline__toggle {
    font-size: 20px;
    color: var(--dlv-gold-700);
    transition: transform var(--dlv-dur-2) var(--dlv-ease);
}

.dlv-timeline__day[open] .dlv-timeline__toggle {
    transform: rotate(45deg);
}

.dlv-timeline__day summary:focus-visible {
    outline: 2px solid var(--dlv-gold-500);
    outline-offset: 2px;
    border-radius: var(--dlv-radius-sm);
}

.dlv-timeline__body {
    margin-left: 36px;
    padding: 0 0 var(--dlv-space-5);
}

.dlv-timeline__desc {
    line-height: 1.8;
    color: var(--dlv-text);
}

.dlv-timeline__desc p:last-child {
    margin-bottom: 0;
}

.dlv-timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dlv-space-2);
    margin-top: var(--dlv-space-4) !important;
}

.dlv-timeline__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--dlv-radius-pill);
    background: var(--dlv-ivory);
    font-size: var(--dlv-fs-small);
    color: var(--dlv-text);
}

.dlv-timeline__meta .dlv-icon {
    font-size: 16px;
    color: var(--dlv-gold-700);
}

/* ---------- 7. Giá bao gồm ---------- */
.dlv-tour-incl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--dlv-space-5);
}

.dlv-tour-incl__col {
    padding: var(--dlv-space-5);
    border-radius: var(--dlv-radius-lg);
    background: var(--dlv-ivory);
}

.dlv-tour-incl__col .dlv-tour-h3 {
    margin-top: 0;
}

.dlv-tour-incl li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    line-height: 1.6;
}

.dlv-tour-incl .dlv-icon {
    flex: 0 0 20px;
    margin-top: 3px;
    font-size: 18px;
}

.dlv-tour-incl__col--yes .dlv-icon {
    color: var(--dlv-ok);
}

.dlv-tour-incl__col--no {
    background: var(--dlv-white);
    border: 1px solid var(--dlv-line);
}

.dlv-tour-incl__col--no .dlv-icon {
    color: var(--dlv-muted);
}

/* ---------- 8. Bản đồ ---------- */
.dlv-tour-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: var(--dlv-space-5);
    align-items: start;
}

.dlv-tour-map__canvas {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--dlv-radius-lg);
    background:
        radial-gradient(circle at 30% 30%, rgba(201, 161, 59, .18), transparent 50%),
        var(--dlv-sand);
}

.dlv-tour-map__load:not(.icon) {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: var(--dlv-brown-800);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.dlv-tour-map__load .dlv-icon {
    font-size: 40px;
    color: var(--dlv-gold-700);
}

.dlv-tour-map__load strong {
    display: block;
    font-family: var(--dlv-font-heading);
    font-size: 1.2rem;
    font-weight: 500;
}

.dlv-tour-map__load small {
    display: block;
    margin-top: 4px;
    font-size: var(--dlv-fs-small);
    color: var(--dlv-muted);
}

.dlv-tour-map__load:hover strong {
    color: var(--dlv-gold-700);
}

.dlv-tour-map__load:focus-visible {
    outline: 3px solid var(--dlv-gold-500);
    outline-offset: -3px;
}

.dlv-tour-map__canvas .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: var(--dlv-font-body);
}

/* Dấu điểm dừng trên bản đồ (L.divIcon) */
.dlv-map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--dlv-white);
    border-radius: 50%;
    background: var(--dlv-brown-800);
    box-shadow: 0 4px 12px rgba(31, 20, 11, .35);
    font-size: 13px;
    font-weight: 700;
    color: var(--dlv-gold-300);
}

.dlv-tour-map__stops {
    counter-reset: none;
}

.dlv-tour-map__stops li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dlv-line);
}

.dlv-tour-map__n {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dlv-brown-800);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dlv-gold-300);
}

.dlv-tour-map__stops a {
    font-weight: 600;
    color: var(--dlv-brown-800);
}

.dlv-tour-map__stops a:hover {
    color: var(--dlv-gold-700);
}

/* ---------- 9. Khung đặt tour ---------- */
.dlv-tour-aside {
    position: sticky;
    top: calc(var(--dlv-sticky-top) + var(--dlv-nav-h) + 24px);
}

.dlv-book {
    padding: var(--dlv-space-6);
    border: 1px solid var(--dlv-line);
    border-radius: var(--dlv-radius-lg);
    background: var(--dlv-white);
    box-shadow: var(--dlv-shadow-2);
}

.dlv-book__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: var(--dlv-space-4);
    border-bottom: 1px solid var(--dlv-line);
}

.dlv-book__head .dlv-price__amount {
    font-size: 2rem;
}

.dlv-status {
    padding: 4px 12px;
    border-radius: var(--dlv-radius-pill);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dlv-status--ok {
    background: var(--dlv-ok-bg);
    color: var(--dlv-ok);
}

.dlv-status--warn {
    background: var(--dlv-warn-bg);
    color: var(--dlv-warn);
}

.dlv-status--off {
    background: var(--dlv-off-bg);
    color: var(--dlv-off);
}

.dlv-book__prices {
    width: 100%;
    margin: 12px 0 4px;
    border: 0;
    font-size: 14px;
}

.dlv-book__prices caption {
    padding: 4px 0 6px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dlv-muted);
}

.dlv-book__prices th,
.dlv-book__prices td {
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid var(--dlv-line);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dlv-text);
}

.dlv-book__prices td {
    text-align: right;
    font-weight: 600;
    color: var(--dlv-brown-800);
}

/* Form đặt tour cũ (inc/tour-booking.php): chỉ đổi giao diện.
   style.css cũ cho form position: sticky, padding, nền, bóng: bỏ hết để form nằm gọn trong khung. */
.dlv-book .tour-booking-form {
    position: static;
    top: auto;
    display: block;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.dlv-book .tour-booking-actions {
    margin-top: 16px !important; /* ghi đè style inline margin-top: 20px */
}

.dlv-book .tour-booking-field {
    margin-bottom: 14px;
}

.dlv-book .tour-booking-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dlv-muted);
}

.dlv-book .tour-booking-field input[type="date"] {
    width: 100%;
    min-height: 48px;
    margin: 0;
    border: 1px solid var(--dlv-line);
    border-radius: var(--dlv-radius-sm);
    background: var(--dlv-white);
    box-shadow: none;
    font-size: 15px;
}

.dlv-book .tour-booking-field input:focus {
    border-color: var(--dlv-gold-500);
    box-shadow: 0 0 0 3px rgba(201, 161, 59, .18);
}

.dlv-book .tour-qty-row {
    display: grid;
    gap: 8px;
}

.dlv-book .tour-qty-item {
    display: grid;
    grid-template-columns: 1fr 72px;
    grid-template-areas: "label input" "hint input";
    align-items: center;
    gap: 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--dlv-line);
    border-radius: var(--dlv-radius-sm);
    background: var(--dlv-white);
}

.dlv-book .tour-qty-item label {
    grid-area: label;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--dlv-brown-800);
}

.dlv-book .tour-qty-item .price-hint {
    grid-area: hint;
    font-size: 12.5px;
    color: var(--dlv-muted);
}

.dlv-book .tour-qty-item input {
    grid-area: input;
    width: 72px;
    margin: 0;
    border-radius: var(--dlv-radius-sm);
    box-shadow: none;
    text-align: center;
}

.dlv-book .tour-total-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--dlv-line);
}

.dlv-book .tour-total-wrapper .label {
    font-weight: 600;
    color: var(--dlv-text);
}

.dlv-book .tour-total-wrapper .price {
    font-family: var(--dlv-font-heading);
    font-size: 1.5rem;
    font-variant-numeric: lining-nums;
    font-weight: 600;
    color: var(--dlv-brown-800);
}

.dlv-book .single_add_to_cart_button.button:not(.icon) {
    width: 100%;
    min-height: 52px;
    margin: 0;
    border-radius: var(--dlv-radius-sm) !important;
    background: var(--dlv-gold-500);
    color: var(--dlv-on-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -14px rgba(138, 106, 28, .9);
}

.dlv-book .single_add_to_cart_button.button:hover {
    background: var(--dlv-gold-600);
}

.dlv-book__alt {
    display: grid;
    gap: var(--dlv-space-3);
    margin-top: var(--dlv-space-3);
}

.dlv-book__call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: var(--dlv-space-3);
    border-top: 1px solid var(--dlv-line);
    font-size: 14px;
    color: var(--dlv-text);
}

.dlv-book__call .dlv-icon {
    font-size: 18px;
    color: var(--dlv-gold-700);
}

.dlv-book__call strong {
    color: var(--dlv-brown-800);
}

.dlv-book__note {
    margin: 16px 0 0;
    color: var(--dlv-muted);
}

/* Thanh đặt tour cố định: chỉ trên điện thoại / máy tính bảng */
.dlv-mobile-book {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .dlv-tour-head__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-tour-head__side {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .dlv-tour-head__price {
        text-align: left;
    }

    .dlv-tour-body {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--dlv-space-6);
        padding-bottom: 96px;
    }

    .dlv-tour-aside {
        position: static;
    }

    .dlv-tour-facts ul.container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dlv-tour-facts li,
    .dlv-tour-facts li + li {
        padding: 18px 12px 18px 0;
        border-left: 0;
        border-bottom: 1px solid var(--dlv-line);
    }

    .dlv-tour-gallery {
        grid-template-rows: repeat(2, 170px);
    }

    .dlv-tour-map {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-mobile-book {
        position: fixed;
        z-index: 50;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
        background: var(--dlv-white);
        box-shadow: 0 -6px 20px rgba(46, 28, 16, .12);
    }

    .dlv-mobile-book small {
        display: block;
        font-size: 12px;
        color: var(--dlv-muted);
    }

    .dlv-mobile-book strong {
        font-family: var(--dlv-font-heading);
        font-size: 1.25rem;
        font-variant-numeric: lining-nums;
        color: var(--dlv-brown-800);
    }

    .dlv-mobile-book .button:not(.icon) {
        margin: 0;
        border-radius: var(--dlv-radius-sm) !important;
        letter-spacing: .08em;
    }
}

@media (max-width: 849px) {
    .dlv-tour-head {
        padding-bottom: 96px;
    }

    .dlv-tour-gallery-wrap {
        margin-top: -72px;
    }

    /* Điện thoại: băng trượt ảnh vuốt ngang */
    .dlv-tour-gallery {
        display: flex;
        grid-template-rows: none;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        aspect-ratio: 4 / 3;
    }

    .dlv-tour-gallery::-webkit-scrollbar {
        display: none;
    }

    .dlv-tour-gallery__item {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .dlv-tour-gallery__all.dlv-button {
        right: 12px;
        bottom: 12px;
    }

    .dlv-tour-incl {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 549px) {
    .dlv-tour-facts ul.container {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-tour-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-tour-head__side {
        align-items: stretch;
    }

    .dlv-tour-head__actions {
        width: 100%;
    }

    .dlv-tour-head__actions .dlv-button--primary {
        flex: 1;
    }

    .dlv-timeline__day summary {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        row-gap: 2px;
    }

    .dlv-timeline__num {
        grid-column: 2;
    }

    .dlv-timeline__title {
        grid-column: 2;
        font-size: 1.1rem;
    }

    .dlv-timeline__toggle {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .dlv-timeline__body {
        margin-left: 36px;
    }

    .dlv-book {
        padding: var(--dlv-space-5);
    }
}

/* ---------- 11. Bản in (lịch trình) ---------- */
@media print {
    #header,
    #footer,
    .dlv-footer,
    .dlv-tour-nav,
    .dlv-tour-gallery-wrap,
    .dlv-tour-head__actions,
    .dlv-tour-aside,
    .dlv-tour-related,
    .dlv-mobile-book,
    .dlv-mbar,
    .dlv-tour-map__canvas,
    [data-dlv-days-toggle],
    #wvbc-button-contact,
    .back-to-top {
        display: none !important;
    }

    .dlv-tour-head {
        padding: 0 0 16px;
        background: none;
        color: #000;
    }

    /* In: chữ đen (băng đầu trang trên màn hình là chữ trắng trên nền tối) */
    h1.dlv-tour-head__title,
    .dlv-tour-head .dlv-price__amount,
    .dlv-tour-head .dlv-price__amount *,
    .dlv-tour-head .dlv-price__from,
    .dlv-tour-head .dlv-price__unit,
    .dlv-tour-head__meta,
    .dlv-tour-head__rating strong,
    .dlv-tour-head .dlv-breadcrumb a,
    .dlv-tour-head .dlv-breadcrumb li {
        color: #000 !important;
        text-shadow: none;
    }

    .dlv-tour-head__price {
        text-align: left;
    }

    .dlv-tour-body {
        display: block;
        padding: 0;
    }

    .dlv-tour-sec {
        padding: 16px 0;
        break-inside: avoid-page;
    }

    .dlv-timeline__item {
        break-inside: avoid;
    }

    .dlv-tour-map {
        display: block;
    }
}

/* ---------- Lịch khởi hành trong khung đặt tour (1.21.0, inc/departures.php) ---------- */
.dlv-book .dlv-dep {
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.dlv-book .dlv-dep > legend {
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dlv-muted);
}

.dlv-dep__month {
    margin: 10px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dlv-brown-800);
}

.dlv-dep__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 6px;
}

.dlv-dep__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--dlv-line-strong, #C9B79F);
    border-radius: var(--dlv-radius-sm);
    background: var(--dlv-white);
    cursor: pointer;
    transition: border-color var(--dlv-dur, .2s), background-color var(--dlv-dur, .2s);
}

.dlv-dep__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Kiểu label cũ của form đặt tour (khối, chữ hoa nhỏ) ghi đè: đặt lại cho nút ngày */
.dlv-book .dlv-dep .dlv-dep__item {
    display: flex;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.dlv-dep__day,
.dlv-dep__seats,
.dlv-dep__note {
    display: block;
}

.dlv-dep__day {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--dlv-brown-800);
}

.dlv-dep__seats,
.dlv-dep__note {
    font-size: 12px;
    line-height: 1.35;
    color: var(--dlv-muted);
}

.dlv-dep__item.is-low .dlv-dep__seats {
    font-weight: 700;
    color: var(--dlv-warn, #8A5A0B);
}

.dlv-dep__item:hover {
    border-color: var(--dlv-gold-500);
}

.dlv-dep__item:has(input:checked) {
    border-color: var(--dlv-gold-500);
    background: var(--dlv-gold-100);
    box-shadow: 0 0 0 1px var(--dlv-gold-500);
}

.dlv-dep__item:has(input:focus-visible) {
    outline: 2px solid var(--dlv-gold-700);
    outline-offset: 2px;
}

.dlv-dep__item.is-full {
    cursor: not-allowed;
    border-style: dashed;
    background: var(--dlv-ivory);
}

.dlv-dep__item.is-full .dlv-dep__day {
    color: var(--dlv-muted);
    text-decoration: line-through;
}

.dlv-dep__more {
    margin-top: 8px;
}

.dlv-dep__more > summary {
    font-size: 13px;
    font-weight: 700;
    color: var(--dlv-brown-600);
    cursor: pointer;
}

.dlv-dep__hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dlv-muted);
}

/* ---------- Đánh giá thật trên trang tour (1.21.0, inc/reviews.php) ---------- */
.dlv-reviews__summary {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--dlv-space-6);
    align-items: center;
    margin-bottom: var(--dlv-space-6);
    padding: var(--dlv-space-5);
    border: 1px solid var(--dlv-line);
    border-radius: var(--dlv-radius-lg);
    background: var(--dlv-ivory);
}

.dlv-reviews__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.dlv-reviews__score strong {
    font-family: var(--dlv-font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--dlv-brown-800);
}

.dlv-reviews__score > span {
    font-size: var(--dlv-fs-small);
    color: var(--dlv-muted);
}

.dlv-reviews__bars {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlv-reviews__bars li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: center;
    margin: 0;
    font-size: 13px;
    color: var(--dlv-muted);
}

.dlv-reviews__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dlv-line);
}

.dlv-reviews__bar > span {
    display: block;
    height: 100%;
    background: var(--dlv-gold-500);
}

.dlv-reviews__list {
    display: grid;
    gap: var(--dlv-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlv-review {
    margin: 0;
    padding-bottom: var(--dlv-space-5);
    border-bottom: 1px solid var(--dlv-line);
}

.dlv-reviews:not(.is-open) .dlv-review.is-more {
    display: none;
}

.dlv-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.dlv-review__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dlv-brown-800);
    font-family: var(--dlv-font-heading);
    color: var(--dlv-gold-300);
}

.dlv-review__name {
    margin: 0;
    font-weight: 700;
    color: var(--dlv-brown-800);
}

.dlv-review__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--dlv-muted);
}

.dlv-review__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--dlv-ok);
}

.dlv-review__verified .dlv-icon {
    width: 14px;
    height: 14px;
}

.dlv-review__text p {
    margin: 0 0 8px;
    line-height: 1.7;
}

.dlv-reviews__more {
    margin-top: var(--dlv-space-5);
}

@media (max-width: 549px) {
    .dlv-reviews__summary {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--dlv-space-4);
    }
}
