/* Khoi "Top Du Thuyen Ha Long Dang Khuyen Mai" - view/mod_cruise/tour-promo.php (2026-10-29).
   Theo mau khoi "Chum Tour Gia Dang Tot" o trang chu: nen #EDF3FF tran het chieu ngang man hinh (box-shadow + clip-path, khong lam tran trang), the trang. */
html body .tv-pz { position: relative; margin: 10px 0 40px; padding: 36px 0 30px; background: #EDF3FF; box-shadow: 0 0 0 100vmax #EDF3FF; clip-path: inset(0 -100vmax); color: var(--text, #38435E); }
html body .tv-pz .tv-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body .tv-pz-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
html body .tv-pz-tt { display: flex; align-items: center; gap: 16px; min-width: 0; }
html body .tv-pz-ic { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--red, #B5123B); color: #fff; font-size: 26px; box-shadow: 0 6px 12px -6px rgba(181, 18, 59, .65); }
html body .tv-pz-h { margin: 0; color: var(--navy, #0B2259); font-size: 32px; font-weight: 600; line-height: 1.25; }
html body .tv-pz-sub { margin: 4px 0 0; color: var(--muted, #5A6682); font-size: 19px; line-height: 1.4; }
html body .tv-pz-arrows { display: flex; flex: none; gap: 10px; }
html body .tv-pz-arr { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--red, #B5123B); border-radius: 50%; background: #fff; color: var(--red, #B5123B); font-size: 20px; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
html body .tv-pz-arr:hover:not(:disabled) { background: var(--red, #B5123B); color: #fff; }
html body .tv-pz-arr:disabled { opacity: .35; cursor: default; }
html body .tv-pz.no-scroll .tv-pz-arrows { display: none; }
html body .tv-pz-list { display: flex; gap: 20px; margin: -10px -10px; padding: 10px 10px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html body .tv-pz-list::-webkit-scrollbar { display: none; }
html body .tv-pz-list > .tv-pz-c { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
html body .tv-pz-c { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px -14px rgba(11, 34, 89, .35); transition: transform .25s, box-shadow .25s; }
html body .tv-pz-c:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(11, 34, 89, .45); }
html body .tv-pz-ph { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-2, #DCE7FB); }
html body .tv-pz-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
html body .tv-pz-c:hover .tv-pz-ph img { transform: scale(1.05); }
html body .tv-pz-disc { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 999px; background: var(--gold, #FFD66B); color: var(--red-dd, #650A21); font-size: 15px; font-weight: 700; }
html body .tv-pz-dur { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--red, #B5123B); color: #fff; font-size: 15px; font-weight: 600; }
html body .tv-pz-b { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
html body .tv-pz-t { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.35; }
html body .tv-pz-t a { color: var(--navy, #0B2259); text-decoration: none; transition: color .2s; }
html body .tv-pz-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
html body .tv-pz-c:hover .tv-pz-t a { color: var(--red, #B5123B); }
html body .tv-pz-st { display: inline-flex; align-items: center; gap: 2px; color: #F5A623; font-size: 17px; line-height: 1; }
html body .tv-pz-st .off { color: #D5DCEA; }
html body .tv-pz-st em { margin-left: 8px; color: var(--muted, #5A6682); font-size: 15px; font-style: normal; }
html body .tv-pz-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px dashed #D5DEEE; }
html body .tv-pz-fx > div { min-width: 0; }
html body .tv-pz-fx > div.w { grid-column: 1 / -1; }
html body .tv-pz-fx dt { margin: 0; color: var(--muted, #5A6682); font-size: 15px; font-weight: 400; }
html body .tv-pz-fx dd { margin: 2px 0 0; color: var(--navy, #0B2259); font-size: 17px; font-weight: 600; line-height: 1.4; }
html body .tv-pz-fx > div.w dd { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 400; color: var(--text, #38435E); }
html body .tv-pz-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #D5DEEE; }
html body .tv-pz-pc { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; min-width: 0; line-height: 1.2; }
html body .tv-pz-pc s { flex-basis: 100%; color: var(--muted, #5A6682); font-size: 15px; }
html body .tv-pz-pc b { color: var(--red, #B5123B); font-size: 27px; font-weight: 700; white-space: nowrap; }
html body .tv-pz-pc b.na { font-size: 21px; }
html body .tv-pz-pc small { color: var(--muted, #5A6682); font-size: 15px; }
html body .tv-pz-go { display: inline-flex; flex: none; align-items: center; gap: 3px; min-height: 44px; padding: 0 12px 0 18px; border-radius: 10px; background: var(--red, #B5123B); color: #fff; font-size: 17px; font-weight: 600; transition: background .2s; }
html body .tv-pz-go .tv-i { font-size: 18px; }
html body .tv-pz-c:hover .tv-pz-go { background: var(--red-d, #8F0D2E); }
@media (max-width: 1199px) {
    html body .tv-pz-list > .tv-pz-c { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
    html body .tv-pz { margin: 4px 0 28px; padding: 26px 0 22px; }
    html body .tv-pz-top { margin-bottom: 16px; }
    html body .tv-pz-tt { gap: 12px; align-items: flex-start; }
    html body .tv-pz-ic { width: 42px; height: 42px; font-size: 21px; }
    html body .tv-pz-h { font-size: 24px; }
    html body .tv-pz-sub { font-size: 16px; }
    html body .tv-pz-arrows { display: none; }
    html body .tv-pz-list { gap: 14px; }
    html body .tv-pz-list > .tv-pz-c { flex-basis: 86%; }
    html body .tv-pz-b { padding: 16px 16px 18px; }
    html body .tv-pz-t { font-size: 19px; }
    html body .tv-pz-fx dd { font-size: 16px; }
    html body .tv-pz-pc b { font-size: 24px; }
    html body .tv-pz-go { min-height: 42px; font-size: 16px; }
}
html body .tv-pz-fx dd small { color: var(--muted, #5A6682); font-size: 15px; font-weight: 400; }

/* ===== Ban c (2026-10-29): khoi tran full man hinh, 4 du thuyen / hang de khac biet voi cac nhom ben duoi =====
   --tv-sbw = do rong thanh cuon (script trong tour-promo.php) de khong lam trang bi keo ngang. */
html body .tv-pz { width: calc(100vw - var(--tv-sbw, 0px)); margin-left: calc(50% - (100vw - var(--tv-sbw, 0px)) / 2); margin-right: 0; padding: 40px 0 34px; box-shadow: none; clip-path: none; }
html body .tv-pz-in { max-width: 1680px; margin: 0 auto; padding: 0 40px; }
html body .tv-pz-list > .tv-pz-c { flex-basis: calc((100% - 60px) / 4); }
html body .tv-pz-f { flex-wrap: wrap; }
@media (min-width: 1200px) and (max-width: 1599px) {
    html body .tv-pz-t { font-size: 19px; }
    html body .tv-pz-b { padding: 16px 16px 18px; }
    html body .tv-pz-pc b { font-size: 24px; }
    html body .tv-pz-go { min-height: 42px; padding: 0 10px 0 14px; font-size: 16px; }
}
@media (max-width: 1199px) {
    html body .tv-pz-in { padding: 0 24px; }
    html body .tv-pz-list > .tv-pz-c { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 991px) {
    html body .tv-pz-list > .tv-pz-c { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
    html body .tv-pz { padding: 26px 0 22px; }
    html body .tv-pz-in { padding: 0 15px; }
    html body .tv-pz-list > .tv-pz-c { flex-basis: 86%; }
}

/* ===== Ban d (2026-10-29): nut < > nam tren anh (may tinh), dau cham bao vuot / xem them (moi man hinh) ===== */
html body .tv-pz-wrap { position: relative; }
html body .tv-pz-arr { position: absolute; top: 120px; z-index: 3; width: 48px; height: 48px; border: 0; background: rgba(255, 255, 255, .96); color: var(--red, #B5123B); font-size: 22px; box-shadow: 0 8px 20px -6px rgba(11, 34, 89, .45); transform: translateY(-50%); }
html body .tv-pz-arr.prev { left: -14px; }
html body .tv-pz-arr.next { right: -14px; }
html body .tv-pz-arr:hover:not(:disabled) { background: var(--red, #B5123B); color: #fff; }
html body .tv-pz-arr:disabled { opacity: 0; pointer-events: none; }
html body .tv-pz-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
html body .tv-pz-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #C3CFE6; cursor: pointer; transition: width .25s, background .25s; }
html body .tv-pz-dot.on { width: 36px; background: var(--red, #B5123B); }
html body .tv-pz.no-scroll .tv-pz-arr, html body .tv-pz.no-scroll .tv-pz-dots { display: none; }
@media (max-width: 767px) {
    html body .tv-pz-arr { display: none; }
    html body .tv-pz-dots { margin-top: 6px; }
}

/* ===== Ban e (2026-10-29): tieu de nhom du thuyen =====
   - Khoi khuyen mai: chu do (khac mau voi tieu de nhom danh sach mau navy ben duoi).
   - Mobile: co chu tu co theo be ngang man hinh de khong xuong dong (>= 360px). */
html body .tv-pz-h { color: var(--red, #B5123B); }
@media (max-width: 767px) {
    html body .tv-pz-tt { align-items: center; gap: 10px; }
    html body .tv-pz-ic { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
    html body .tv-pz-h { font-size: max(16px, min(20px, calc((100vw - 74px) / 17))); line-height: 1.3; }
    /* Tieu de nhom: H1 o /ngu-dem/, /an-toi/, /trong-ngay/ va H2 cac nhom o /du-thuyen-ha-long/ */
    html body #left-content h1.tv-cz-h1,
    html body .row-cruise-catlist h2.h3-title { font-size: max(18px, min(22px, calc((100vw - 34px) / 15.4))); line-height: 1.3; }
    html body .row-cruise-catlist h2.h3-title .ico-cruise { font-size: 1em; }
}
/* Co chu theo dung be ngang khung chua (container query), chinh xac hon vw khi co thanh cuon. Trinh duyet cu dung cong thuc vw o tren. */
@media (max-width: 767px) {
    html body .tv-pz-top { container-type: inline-size; }
    html body #left-content, html body .row-cruise-catlist { container-type: inline-size; }
    @supports (width: 1cqw) {
        html body .tv-pz-h { font-size: max(15px, min(20px, calc((100cqw - 44px) / 17.2))); }
        html body #left-content h1.tv-cz-h1,
        html body .row-cruise-catlist h2.h3-title { font-size: max(17px, min(22px, calc(100cqw / 15.8))); }
    }
}

/* ===== Ban f (2026-10-29): 3 lien ket "Du thuyen ngu dem / trong ngay / an toi" o /du-thuyen-ha-long/ trong ro la nut bam =====
   Chi CSS (noi dung lay tu phan mo ta trong admin), chi trong .desc-category tren trang du thuyen; trang chu khong nap file nay. */
html body .desc-category .tv-trust-right { gap: 16px; }
html body .desc-category .tv-trust-item a { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 18px 12px 14px; border: 1.5px solid #F3C9D5; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -10px rgba(181, 18, 59, .45); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
html body .desc-category .tv-trust-item a::after { content: "Xem ngay \2192"; display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: #FCE7ED; color: var(--red, #B5123B); font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .2s, color .2s, padding .2s; }
html body .desc-category .tv-trust-item a:hover, html body .desc-category .tv-trust-item a:focus-visible { transform: translateY(-3px); border-color: var(--red, #B5123B); background: #FFF7F9; box-shadow: 0 12px 24px -12px rgba(181, 18, 59, .55); }
html body .desc-category .tv-trust-item a:hover::after, html body .desc-category .tv-trust-item a:focus-visible::after { background: var(--red, #B5123B); color: #fff; padding-right: 16px; }
html body .desc-category .tv-trust-item a .tv-icon { margin-bottom: 10px; }
html body .desc-category .tv-trust-item a:hover .tv-icon { background: #B5123B; border-color: #B5123B; }
html body .desc-category .tv-trust-item a:hover .tv-icon svg { stroke: #fff; }
@media (max-width: 768px) {
    html body .desc-category .tv-trust-right { gap: 8px; }
    html body .desc-category .tv-trust-item a { padding: 12px 4px 10px; border-radius: 12px; }
    html body .desc-category .tv-trust-item a .tv-icon { margin-bottom: 6px; }
    html body .desc-category .tv-trust-item a::after { content: "Xem \2192"; margin-top: 6px; padding: 2px 10px; font-size: 12.5px; }
}
html body .desc-category .tv-trust-right { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 992px) {
    html body .desc-category .tv-trust-left { flex: 0 0 36%; max-width: 36%; }
}
@media (max-width: 991px) {
    html body .desc-category .tv-trust-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    html body .desc-category .tv-trust-left, html body .desc-category .tv-trust-right { flex: none; width: 100%; max-width: 100%; }
}
@media (min-width: 1100px) {
    html body .desc-category .tv-trust-item a span:last-child { white-space: nowrap; }
}
@media (min-width: 769px) and (max-width: 1099px) {
    html body .desc-category .tv-trust-item a span:last-child { font-size: 15px; }
}
/* Ten muc: >=1100px 1 dong; nho hon -> ca 3 cung 2 dong, ngat dung sau "Du thuyen" (khung 5.3em: vua "trong ngay", khong vua "Du thuyen an"). */
html body .desc-category .tv-trust-item a span:last-child { display: block; flex: 1 0 auto; line-height: 1.3; }
@media (max-width: 768px), (min-width: 992px) and (max-width: 1099px) {
    html body .desc-category .tv-trust-item a span:last-child { max-width: 5.3em; margin: 0 auto; font-size: 15.5px; white-space: normal; }
}
@media (min-width: 769px) and (max-width: 991px) {
    html body .desc-category .tv-trust-item a span:last-child { font-size: 15.5px; white-space: nowrap; }
}
@media (max-width: 768px) {
    html body .desc-category .tv-trust-item a span:last-child { font-size: 13.5px; }
}
/* Slogan ben trai: can trai (khong gian chu do text-justify), 2 dong can nhau thay vi "Mien Bac" roi mot minh */
html body .desc-category .tv-trust-slogan, html body .desc-category .tv-trust-slogan p, html body .desc-category .tv-trust-slogan b, html body .desc-category .tv-price-note { text-align: left; text-wrap: balance; }
/* "Dai ly du thuyen Ha Long hang dau Mien Bac" luon 1 dong: co chu theo be ngang cot trai (cau dai ~20.8 lan co chu) */
html body .desc-category .tv-trust-left { container-type: inline-size; }
html body .desc-category .tv-trust-slogan b { letter-spacing: 0; white-space: nowrap; font-size: 19px; }
@supports (width: 1cqw) {
    html body .desc-category .tv-trust-slogan b { font-size: max(13px, min(20px, calc(100cqw / 20.8))); }
}
/* tv-pz-h, tv-pz-t la the <p> (SEO): giu kieu chu nhu tieu de */
html body p.tv-pz-h, html body p.tv-pz-t { margin: 0; }
html body p.tv-pz-t { font-weight: 600; }