/*
 * 25/11/2026 — trang tour công khai (tour.jsp): màu, chữ, khoảng cách, thẻ / hộp, ô giá, ngày lịch trình, nhãn và ô thông tin theo
 * bản tham chiếu (nền kem, thẻ trắng viền mảnh, màu chính xanh rêu). Bố cục / thứ tự khối của tour.jsp giữ nguyên.
 * Nạp SAU tour-modern.css, chỉ ở tour.jsp; mọi quy tắc nằm dưới .tvd (section.section-tour-details) ⇒ trang khác không đổi.
 */
.tv.tvd {
    --tv-accent: #0e6b5c;
    --tv-brand: #15202b;
    --tv-ink: #15202b;
    --tv-muted: #6b7280;
    --tv-line: #e7e3dc;
    --tv-surface: #f8f7f4;
    --tv-accent-soft: #e3f1ed;
    --tv-radius: 16px;
    --tv-shadow: 0 1px 2px rgba(21, 32, 43, .06), 0 2px 8px rgba(21, 32, 43, .05);
    --tvd-ink-2: #3f4a56;
    --tvd-hover: #0a5649;
    --tvd-warn: #b45309;
    --tvd-ok: #157347;
    --tvd-shadow-pop: 0 8px 24px rgba(21, 32, 43, .12);
    background: var(--tv-surface);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- nút ---------- */
.tvd .tv-btn,
.tvd .tour-details-button {
    min-height: 46px;
    padding: 10px 24px;
    background: var(--tv-accent);
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}
.tvd .tv-btn:hover,
.tvd .tour-details-button:hover { background: var(--tvd-hover); filter: none; transform: none; box-shadow: 0 4px 12px rgba(14, 107, 92, .25); }

/* ---------- đầu trang: breadcrumb, tên, dòng thông tin, lưới ảnh ---------- */
.tvd .tvd-head { padding: 20px 0 4px; }
.tvd .tvd-crumbs .breadcrumb { flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; }
.tvd .tvd-crumbs .breadcrumb-item,
.tvd .tvd-crumbs .breadcrumb-item a { color: var(--tv-muted); text-shadow: none; }
.tvd .tvd-crumbs .breadcrumb-item a:hover { color: var(--tv-accent); }
.tvd .tvd-crumbs .breadcrumb-item.active { color: var(--tv-ink); }
.tvd .tvd-crumbs .breadcrumb-item + .breadcrumb-item::before { color: #b9b3a8; }
.tvd .tv-title { max-width: none; margin: 0 0 8px; color: var(--tv-ink); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; text-shadow: none; }
.tvd .tvd-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.tvd .tvd-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; color: var(--tvd-ink-2); font-size: 14.5px; }
.tvd .tvd-meta li { display: inline-flex; align-items: center; }
.tvd .tvd-meta i { margin-right: 6px; color: var(--tv-accent); }
.tvd .tvd-head .tv-share a { width: 32px; height: 32px; background: #fff; border: 1px solid var(--tv-line); color: var(--tvd-ink-2); font-size: 14px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tvd .tvd-head .tv-share a:hover { border-color: var(--tv-accent); color: var(--tv-accent); background: #fff; }
.tvd .tvd-head .tv-share img { filter: none; opacity: .75; }

/* lưới ảnh: 1 ảnh lớn (2/3) + ảnh nhỏ bên phải, khe 8px, bo 16px; ảnh luôn object-fit: cover (ảnh nguồn nhỏ hơn ô ⇒ .is-small, không phóng to) */
.tvd .tvd-gal { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 200px); gap: 8px; border-radius: 16px; overflow: hidden; }
.tvd .tvd-gal__item { position: relative; display: block; overflow: hidden; background: #e9e6df; cursor: zoom-in; }
.tvd .tvd-gal__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .2s ease; }
.tvd .tvd-gal__item:hover img { transform: scale(1.03); filter: brightness(.94); }
.tvd .tvd-gal__item img.is-small { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; position: absolute; inset: 0; object-fit: contain; }
.tvd .tvd-gal__item.has-small::before { content: ""; position: absolute; inset: -24px; background: var(--gal-bg) center / cover no-repeat; filter: blur(22px) brightness(.88); opacity: .9; }
.tvd .tvd-gal__item img.is-small { z-index: 1; border-radius: 8px; box-shadow: 0 8px 24px rgba(21, 32, 43, .18); }
.tvd .tvd-gal__item--main { grid-row: span 2; }
.tvd .tvd-gal__item--rest { display: none; }
.tvd .tvd-gal--n1 { grid-template-columns: 1fr; grid-template-rows: 416px; }
.tvd .tvd-gal--n2 { grid-template-columns: 2fr 1fr; }
.tvd .tvd-gal--n2 .tvd-gal__item:nth-child(2) { grid-row: span 2; }
.tvd .tvd-gal--n3, .tvd .tvd-gal--n4 { grid-template-columns: 2fr 1fr; }
.tvd .tvd-gal--n4 .tvd-gal__item:nth-child(4) { display: none; }
.tvd .tvd-gal__all {
    position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
    border: 0; border-radius: 999px; background: #fff; color: var(--tv-accent); font-size: 14px; font-weight: 600;
    box-shadow: var(--tv-shadow); cursor: pointer;
}
.tvd .tvd-gal__all:hover { background: var(--tv-accent-soft); }
.tvd .tv-facts { margin-top: 16px; }

/* ---------- ô thông tin nhanh dưới ảnh ---------- */
.tvd .tv-facts {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius);
    box-shadow: var(--tvd-shadow-pop);
}
.tvd .tv-fact { gap: 12px; padding: 18px 20px; border-left-color: var(--tv-line); }
.tvd .tv-fact > i { width: 38px; height: 38px; border-radius: 12px; background: var(--tv-accent-soft); color: var(--tv-accent); font-size: 17px; }
.tvd .tv-fact__label { margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tv-muted); }
.tvd .tv-fact__value { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.tvd .tv-fact__value a { color: var(--tv-accent); }
.tvd .tv-fact__value a:hover { text-decoration: underline; color: var(--tvd-hover); }
.tvd .tvd-seats { font-weight: 600; color: var(--tvd-ok); white-space: nowrap; }
.tvd .tvd-seats.is-low { color: var(--tvd-warn); }

/* ---------- thanh mục: nút bầu dục như bản tham chiếu ---------- */
.tvd #stickyTabs.tv-tabs { background: var(--tv-surface); border-bottom-color: var(--tv-line); }
.tvd .tv-tabs__row { gap: 4px; padding: 8px 0; }
.tvd .tv-tabs__row a { padding: 8px 14px; border: 0; border-radius: 999px; color: var(--tvd-ink-2); font-size: 14.5px; font-weight: 600; }
.tvd .tv-tabs__row a:hover { background: #fff; color: var(--tv-accent); }
.tvd .tv-tabs__row a.is-active { background: var(--tv-accent-soft); color: var(--tv-accent); border-bottom-color: transparent; }

/* ---------- bố cục: mỗi khối là một thẻ trắng ---------- */
.tvd .tv-layout { grid-template-columns: minmax(0, 1fr) 372px; gap: 32px; padding-top: 24px; }
.tvd .tv-main > .tv-section {
    margin-bottom: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius);
}
.tvd .tv-h2 { margin: 0 0 16px; color: var(--tv-ink); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.tvd .tv-prose { color: var(--tvd-ink-2); font-size: 15px; line-height: 1.7; }
.tvd .tv-prose strong, .tvd .tv-prose b { color: var(--tv-ink); }
.tvd .tv-prose a { color: var(--tv-accent); }
.tvd .tv-prose h3, .tvd .tv-prose h4 { margin: 16px 0 8px; font-size: 16px; font-weight: 700; color: var(--tv-ink); }
.tvd .tv-prose ul, .tvd .tv-prose ol { padding-left: 22px; }
.tvd .tv-prose li { margin: 3px 0; }
.tvd .tv-prose table td, .tvd .tv-prose table th { padding: 6px 8px; border: 1px solid var(--tv-line); }

/* nhãn từ khoá */
.tvd .tv-tags { margin-bottom: 16px; gap: 6px; }
.tvd .tag-group .tag-item { padding: 4px 12px; border-color: var(--tv-line); background: #fff; color: var(--tvd-ink-2); font-size: 12.5px; }

/* ---------- Giới thiệu: ô thông tin tour dạng lưới ô màu kem ---------- */
.tvd .tv-factbox { margin: 18px 0; padding: 0; background: none; border-radius: 0; }
.tvd .tv-factbox__title, .tvd .tv-highlights__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--tv-ink); }
.tvd .tv-factbox__list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; font-size: 14.5px; }
.tvd .tv-factbox__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--tv-surface); }
.tvd .tv-factbox__k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tv-muted); }
.tvd .tv-factbox__k i { color: var(--tv-accent); font-size: 13px; }
.tvd .tv-factbox__colon { display: none; }
.tvd .tv-factbox__v { font-weight: 600; color: var(--tv-ink); }
.tvd .tv-factbox__item--price .tv-factbox__v { color: var(--tv-accent); }

/* Điểm nổi bật: dấu tích xanh */
.tvd .tv-highlights { margin: 18px 0; padding: 16px 18px; background: var(--tv-accent-soft); border-radius: 12px; }
.tvd .tv-highlights__list { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--tvd-ink-2); }
.tvd .tv-highlights__list li { position: relative; margin: 0; padding-left: 26px; }
.tvd .tv-highlights__list li::before {
    content: "\F26E";
    position: absolute;
    left: 0;
    top: 0;
    font-family: "bootstrap-icons";
    font-size: 17px;
    line-height: 1.45;
    color: var(--tv-accent);
}

/* ---------- Lịch trình: thẻ từng ngày, ô "NGÀY n" vuông ---------- */
.tvd .tv-timeline::before { display: none; }
.tvd .tv-day { margin: 0 0 10px; border: 1px solid var(--tv-line); border-radius: 12px; background: #fff; transition: border-color .15s ease; }
.tvd .tv-day:hover { border-color: #cfc8bc; }
.tvd .tv-day:last-child { margin-bottom: 0; }
.tvd .tv-day__head { gap: 12px; padding: 12px; }
.tvd .tv-day__dot {
    flex-direction: column;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--tv-accent-soft);
    color: var(--tv-accent);
    font-size: 18px;
    line-height: 1;
    box-shadow: none;
}
.tvd .tvd-day__lbl { margin-bottom: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tvd .tv-day__text { padding: 0; gap: 2px; }
.tvd .tv-day__title { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.tvd .tv-day__time { font-size: 13px; }
.tvd .tv-day__time i { font-size: 12px; }
.tvd .tv-day__head:not(.collapsed) .tv-day__dot { background: var(--tv-accent); color: #fff; }
.tvd .tv-day__body { margin: 0; padding: 0 18px 16px 76px; background: none; border-radius: 0; font-size: 14.5px; }

/* ---------- Bao gồm / Không bao gồm: hai hộp, tích xanh / chéo ---------- */
.tvd .tvd-incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tvd .tvd-incl__box { padding: 16px 18px; border-radius: 12px; background: var(--tv-surface); }
.tvd .tvd-incl__box .tv-h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; }
.tvd .tvd-incl__box .tv-h2::before { font-family: "bootstrap-icons"; font-weight: 400; font-size: 19px; line-height: 1; }
.tvd .tvd-incl__box--yes .tv-h2::before { content: "\F26B"; color: var(--tv-accent); }
.tvd .tvd-incl__box--no .tv-h2::before { content: "\F623"; color: #b42318; }
.tvd .tvd-incl__box .tv-prose { font-size: 14.5px; }
.tvd .tvd-incl__box .tv-prose ul { list-style: none; padding-left: 0; }
.tvd .tvd-incl__box .tv-prose ul li { position: relative; padding-left: 24px; }
.tvd .tvd-incl__box .tv-prose ul li::before { position: absolute; left: 0; top: 0; font-family: "bootstrap-icons"; font-size: 16px; line-height: 1.7; }
.tvd .tvd-incl__box--yes .tv-prose ul li::before { content: "\F26E"; color: var(--tv-accent); }
.tvd .tvd-incl__box--no .tv-prose ul li::before { content: "\F62A"; color: #b42318; }

/* ---------- Bảng giá ---------- */
.tvd #tour-prices .tv-booking { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.tvd .tv-label { margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tv-muted); }
.tvd .tv-options { gap: 8px; }
.tvd .group-price-item.tv-option { align-items: center; padding: 12px 16px 12px 44px; border: 1px solid var(--tv-line); border-radius: 12px; font-size: 14.5px; cursor: pointer; }
.tvd .group-price-item.tv-option:hover { border-color: #cfc8bc; }
.tvd .group-price-item.tv-option.selected { border-color: var(--tv-accent); background: var(--tv-accent-soft); }
.tvd .group-price-item.tv-option.selected::before { border-color: var(--tv-accent); background: var(--tv-accent); }
.tvd .tv-option__name { min-width: 0; font-weight: 600; line-height: 1.4; }
.tvd .tv-option__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; }
.tvd .tv-option__meta:empty { display: none; }
.tvd .tv-option__meta > span { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 400; color: var(--tv-muted); }
.tvd .tv-option__meta i { font-size: 12px; }
.tvd .tv-option__seats { font-weight: 600 !important; color: var(--tvd-ok) !important; }
.tvd .tv-option__seats.is-low { color: var(--tvd-warn) !important; }
.tvd .tv-option__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; color: var(--tv-ink); }
.tvd .tv-option__amount { font-size: 16.5px; font-weight: 700; white-space: nowrap; }
.tvd .tv-option__per { font-size: 12px; font-weight: 400; color: var(--tv-muted); }
.tvd .tv-option__more { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 8px; font-size: 12px; font-weight: 400; color: var(--tvd-ink-2); }
.tvd .tv-option__more > span + span::before { content: "·"; margin-right: 8px; color: var(--tv-muted); }
.tvd .quantity.tv-row,
.tvd #tour-prices .quantity.tv-row { padding: 10px 0; border-top-color: var(--tv-line); }
.tvd .tv-row__label { font-size: 15px; font-weight: 600; }
.tvd .tv-row__price { font-size: 12.5px; }
.tvd .number-input .minus-qty,
.tvd .number-input .plus-qty { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-width: 1px; font-size: 17px; cursor: pointer; }
.tvd .number-input .minus-qty:hover,
.tvd .number-input .plus-qty:hover { border-color: var(--tv-accent); background: #fff; color: var(--tv-accent); }
.tvd .tv-total { padding: 14px 16px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--tv-surface); }
.tvd .tv-total .tour-total-price { font-size: 22px; color: var(--tv-accent); }
.tvd .tv-note { font-size: 14px; }
.tvd .tv-noprice { padding: 28px 20px; border: 1px dashed var(--tv-line); border-radius: 12px; }
.tvd .tv-noprice i { color: var(--tv-accent); }
.tvd .tv-terms-box { padding: 0; background: none; font-size: 14.5px; }

/* ---------- Cột phải: ô giá ---------- */
.tvd .tv-card { padding: 20px; border-color: var(--tv-line); border-radius: var(--tv-radius); }
.tvd .min-price-popup { border: 1px solid var(--tv-line); box-shadow: var(--tvd-shadow-pop); }
.tvd .tv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--tv-line); }
.tvd .tv-price__lead { display: inline; font-size: 13px; }
.tvd .tv-price__amount { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--tv-ink); }
.tvd .tv-price__per { font-size: 13px; }
.tvd .tvd-mini { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--tvd-ink-2); }
.tvd .tvd-mini li { display: flex; align-items: flex-start; gap: 8px; }
.tvd .tvd-mini i { margin-top: 1px; color: var(--tv-accent); }
.tvd .tv-card--noprice .tvd-mini { margin: 0 0 14px; }
.tvd .min-price-popup .tv-btn { margin-top: 16px; }
.tvd .tv-card--noprice .tv-btn { margin-top: 0; }
.tvd .tv-card__title { font-size: 15px; font-weight: 700; color: var(--tv-ink); }
.tvd .tv-plan__link { font-size: 14.5px; font-weight: 600; }
.tvd .tv-plan__link i { color: var(--tv-accent); }
.tvd .tv-plan__link:hover { color: var(--tv-accent); }

/* ---------- Tour gợi ý ---------- */
.tvd .tv-suggested { padding-top: 16px; }
.tvd .tv-suggested .tv-h2 { font-size: 22px; }
.tvd .tv-cards { gap: 20px; }

/* ---------- điện thoại ---------- */
.tvd .tv-mbar__amount { color: var(--tv-ink); }

@media (max-width: 991.98px) {
    .tvd .tv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
    .tvd .tvd-gal { grid-template-rows: repeat(2, 160px); }
    .tvd .tvd-gal--n1 { grid-template-rows: 336px; }
    .tvd .tv-fact { gap: 6px; padding: 14px 16px; }
    .tvd .tv-fact > i { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
    .tvd .tv-layout { padding-top: 16px; }
    .tvd .tv-main > .tv-section { padding: 18px 16px; }
    .tvd .tv-h2 { font-size: 19px; margin-bottom: 12px; }
    .tvd .tv-tabs__row { gap: 2px; padding: 6px 0; }
    .tvd .tv-tabs__row a { padding: 7px 12px; font-size: 14px; }
    .tvd .tv-card { margin-bottom: 12px; }
    .tvd .tv-side .min-price-popup { margin-bottom: 16px; }
    .tvd .tv-cards { gap: 14px; }
}
@media (max-width: 575.98px) {
    /* điện thoại: một ảnh + nút Xem n ảnh */
    .tvd .tvd-head { padding-top: 12px; }
    .tvd .tvd-gal, .tvd .tvd-gal--n1 { display: block; height: 240px; margin: 0 -12px; border-radius: 0; }
    .tvd .tvd-gal__item { display: none; }
    .tvd .tvd-gal__item--main { display: block; height: 100%; }
    .tvd .tvd-gal__all { right: 12px; bottom: 12px; height: 36px; padding: 0 14px; font-size: 13px; }
    .tvd .tvd-meta { gap: 4px 16px; font-size: 13.5px; }
    .tvd .tv-day__head { padding: 10px; gap: 10px; }
    .tvd .tv-day__dot { width: 46px; height: 46px; font-size: 16px; }
    .tvd .tv-day__body { padding: 0 14px 14px; }
    .tvd .tv-factbox__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tvd .tv-factbox__item { padding: 10px 12px; }
    .tvd .group-price-item.tv-option { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; padding: 12px 14px 12px 40px; }
    .tvd .group-price-item.tv-option::before { top: 22px; left: 14px; }
    .tvd .tv-option__name { flex: 1 1 100%; }
    .tvd .tv-option__price { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; text-align: left; }
    .tvd .tv-option__more { flex: 1 1 100%; }
    .tvd .tv-option__more { justify-content: flex-start; }
}
