﻿/* ==========================================================================
   Triều Hảo · Khách sạn (website công khai, GĐ4)
   Hướng thiết kế: "sổ tay du lịch" — giấy kem ấm, mực xanh rêu đậm, điểm nhấn đất nung.
   Chữ tiêu đề dùng Fraunces (có dấu tiếng Việt), chữ thân dùng Be Vietnam Pro đã nạp sẵn trong layout.
   Mọi quy tắc nằm dưới .ks để không đụng theme Ttour.
   ========================================================================== */
.ks {
    --ks-ink: #15352f;
    --ks-ink2: #4a5f5a;
    --ks-paper: #f6f0e4;
    --ks-card: #fffdf8;
    --ks-line: #e4dac6;
    --ks-sea: #0e6b64;
    --ks-sea-d: #0a5550;
    --ks-clay: #bd4d17;
    --ks-clay-d: #9d3f12;
    --ks-gold: #e6b04b;
    --ks-ok: #1c7a4b;
    --ks-bad: #b3261e;
    --ks-r: 14px;
    --ks-bong: 0 1px 2px rgba(21, 53, 47, .06), 0 8px 24px -12px rgba(21, 53, 47, .22);
    --ks-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ks-ink);
    background: var(--ks-paper);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}
.ks *, .ks *::before, .ks *::after { box-sizing: border-box; }
.ks a { color: inherit; text-decoration: none; }
.ks img { max-width: 100%; display: block; }
.ks h1, .ks h2, .ks h3 { font-family: var(--ks-serif); font-weight: 600; letter-spacing: -.01em; color: var(--ks-ink); margin: 0; line-height: 1.18; }
.ks p { margin: 0; }
.ks ul { margin: 0; padding: 0; list-style: none; }
.ks button, .ks input, .ks select, .ks textarea { font: inherit; color: inherit; }
.ks :focus-visible { outline: 3px solid color-mix(in srgb, var(--ks-sea) 55%, white); outline-offset: 2px; border-radius: 6px; }
.ks [hidden] { display: none !important; }
.ks-ic { flex: none; vertical-align: middle; }
.ks-ic-sao { color: var(--ks-gold); }

.ks-khung { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.ks-khung-rong { max-width: 1480px; }
.ks-muc { padding: 44px 0; }
.ks-muc-kem { background: #fbf7ee; border-block: 1px solid var(--ks-line); }
.ks-muc-nho { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ks-clay); font-weight: 700; }
.ks-muc-dau { margin-bottom: 22px; }
.ks-muc-dau h2 { font-size: clamp(26px, 4vw, 38px); margin-top: 6px; }
.ks-ghichu { font-size: 13.5px; color: var(--ks-ink2); }
.ks-tc { text-align: center; margin-top: 18px; }
.ks-lien { color: var(--ks-sea); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ks-loi { color: var(--ks-bad); font-size: 14px; font-weight: 500; background: #fdecea; border: 1px solid #f3c7c2; border-radius: 10px; padding: 9px 12px; }
.ks-canhbao { background: #fff6dd; border: 1px solid #efd68c; color: #6b520b; border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 12px; }

/* ---------- Nút ---------- */
.ks-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; white-space: nowrap; text-align: center; }
.ks-btn:active { transform: translateY(1px); }
.ks-btn-chinh { background: var(--ks-clay); color: #fff !important; box-shadow: 0 6px 16px -8px var(--ks-clay); }
.ks-btn-chinh:hover { background: var(--ks-clay-d); }
.ks-btn-vien { background: transparent; border-color: var(--ks-ink); color: var(--ks-ink) !important; }
.ks-btn-vien:hover { background: var(--ks-ink); color: #fff !important; }
.ks-btn-toi { background: var(--ks-ink); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.ks-btn-nguy { background: var(--ks-bad); color: #fff !important; }
.ks-nguy { border-color: var(--ks-bad); color: var(--ks-bad) !important; }
.ks-nguy:hover { background: var(--ks-bad); color: #fff !important; }
.ks-btn-nho { min-height: 42px; padding: 0 16px; font-size: 14px; }
.ks-btn-day { width: 100%; }
.ks-btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Hero ---------- */
.ks-hero { position: relative; padding: 46px 0 58px; color: #fff; isolation: isolate; }
.ks-hero-nen { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(1200px 500px at 85% -10%, rgba(230, 176, 75, .55), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(189, 77, 23, .55), transparent 60%),
    linear-gradient(160deg, #0b4a45 0%, #0e6b64 55%, #15352f 100%); }
.ks-hero-nen::after { content: ''; position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ks-hero-nho { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #f4d79b; font-weight: 600; }
.ks-hero-tieude { color: #fff !important; font-size: clamp(34px, 6.4vw, 66px); margin: 12px 0 14px; max-width: 14ch; line-height: 1.04; }
.ks-hero-tieude em { font-style: italic; color: #f4d79b; }
.ks-hero-mota { max-width: 56ch; color: #e6f0ed; font-size: 16.5px; margin-bottom: 26px; }
.ks-hero-cam { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: #dcebe7; font-size: 14px; }
.ks-hero-cam li { display: flex; align-items: center; gap: 8px; }

/* ---------- Biểu mẫu tìm ---------- */
.ks-tim { display: grid; gap: 10px; background: var(--ks-card); border-radius: 18px; padding: 12px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); color: var(--ks-ink); }
.ks-tim-o { min-width: 0; position: relative; background: #fff; border: 1.5px solid var(--ks-line); border-radius: 12px; padding: 8px 12px 8px; transition: border-color .15s, box-shadow .15s; }
.ks-tim-o:focus-within { border-color: var(--ks-sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ks-sea) 18%, transparent); }
.ks-tim-o > label, .ks-truong > span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ks-ink2); }
.ks-tim-in { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 4px 0 0; color: var(--ks-ink); text-align: left; cursor: pointer; }
.ks-tim-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 4px 0; font-size: 16px; font-weight: 500; cursor: text; }
.ks-tim-ngay .ks-tim-in input, .ks-hop-form .ks-tim-in input { cursor: pointer; }
.ks-tim-in .ks-ic { color: var(--ks-sea); }
.ks-khach-nut { min-height: 34px; font-size: 16px; font-weight: 500; }
.ks-tim-nut { min-height: 56px; border-radius: 12px; }
.ks-gantoi { position: absolute; right: 8px; top: 8px; display: inline-flex; gap: 5px; align-items: center; background: #eaf3f1; color: var(--ks-sea-d); border: 0; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; min-height: 32px; }
.ks-gantoi:hover { background: #d8eae6; }
.ks-gantoi.dang span::after { content: '…'; }
.ks-goiy { position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); z-index: 70; background: #fff; border: 1px solid var(--ks-line); border-radius: 14px; box-shadow: 0 20px 44px -16px rgba(21, 53, 47, .4); max-height: min(60vh, 420px); overflow: auto; padding: 6px; }
.ks-goiy-nhom { padding: 8px 10px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ks-ink2); font-weight: 700; }
.ks-goiy-muc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; min-height: 44px; }
.ks-goiy-muc:hover, .ks-goiy-muc[aria-selected=true] { background: #f1ede2; }
.ks-goiy-muc .ks-ic { color: var(--ks-sea); }
.ks-goiy-muc b { font-weight: 600; font-size: 15px; display: block; }
.ks-goiy-muc small { color: var(--ks-ink2); font-size: 12.5px; display: block; }
.ks-goiy-trong { padding: 14px; color: var(--ks-ink2); font-size: 14px; }
.ks-khach-bang { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--ks-line); border-radius: 14px; box-shadow: 0 20px 44px -16px rgba(21, 53, 47, .4); padding: 8px 14px 14px; min-width: 260px; }
.ks-dem { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--ks-line); gap: 10px; }
.ks-dem small { display: block; color: var(--ks-ink2); font-size: 12px; }
.ks-buoc { display: inline-flex; align-items: center; gap: 4px; }
.ks-buoc button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ks-line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ks-sea-d); }
.ks-buoc button:hover:not([disabled]) { border-color: var(--ks-sea); background: #eaf3f1; }
.ks-buoc button[disabled] { opacity: .35; cursor: not-allowed; }
.ks-buoc output { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ks-khach-xong { width: 100%; margin-top: 12px; min-height: 42px; }
@media (min-width: 900px) {
    .ks-tim { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: stretch; padding: 10px; gap: 8px; }
    .ks-tim-nut { padding: 0 26px; }
    .ks-tim-gon { border-radius: 14px; box-shadow: var(--ks-bong); }
    .ks-khach-bang { left: auto; width: 300px; right: 0; }
}

/* ---------- Điểm đến + danh sách thẻ ---------- */
.ks-diemden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ks-dd { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--ks-r); overflow: hidden; background: linear-gradient(150deg, #0e6b64, #15352f); isolation: isolate; transition: transform .25s; }
.ks-dd:hover { transform: translateY(-3px); }
.ks-dd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s; }
.ks-dd:hover img { transform: scale(1.05); }
.ks-dd::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 30, 27, .82), transparent 60%); z-index: 0; }
.ks-dd-nd { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; }
.ks-dd-nd b { display: block; font-family: var(--ks-serif); font-size: 21px; font-weight: 600; }
.ks-dd-nd small { font-size: 12.5px; color: #f1e3c6; }
@media (min-width: 720px) { .ks-diemden { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ks-danhsach { display: grid; gap: 14px; }
.ks-the { display: grid; background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: var(--ks-r); overflow: hidden; box-shadow: var(--ks-bong); transition: transform .2s, box-shadow .2s; }
.ks-the:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(21, 53, 47, .06), 0 16px 34px -14px rgba(21, 53, 47, .32); }
.ks-the-het { opacity: .78; }
.ks-the-anh { position: relative; display: block; aspect-ratio: 16 / 10; background: #e7dfcd; }
.ks-the-anh img { width: 100%; height: 100%; object-fit: cover; }
.ks-anh-trong { display: flex; width: 100%; height: 100%; min-height: 120px; align-items: center; justify-content: center; color: #a89d83; background: repeating-linear-gradient(135deg, #ece4d2 0 12px, #e6dcc7 12px 24px); }
.ks-nhan { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.ks-nhan-noibat { background: var(--ks-gold); color: #3b2a05; }
.ks-the-nd { padding: 14px 16px 6px; min-width: 0; }
.ks-the-loai { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ks-sea); text-transform: uppercase; letter-spacing: .06em; }
.ks-sao { display: inline-flex; gap: 1px; }
.ks-the-ten { font-size: 21px; margin: 5px 0 6px; }
.ks-the-ten a:hover { color: var(--ks-sea); }
.ks-the-dc { display: flex; gap: 6px; align-items: flex-start; color: var(--ks-ink2); font-size: 14px; }
.ks-the-dc .ks-ic { margin-top: 3px; color: var(--ks-clay); }
.ks-kc { color: var(--ks-sea-d); }
.ks-the-ti { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ks-the-ti li { font-size: 12.5px; background: #f1ebdc; border-radius: 999px; padding: 3px 10px; color: var(--ks-ink2); }
.ks-the-diem { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--ks-ink2); }
.ks-diem { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 9px 9px 9px 2px; background: var(--ks-sea); color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.ks-diem-lon { min-width: 54px; height: 44px; font-size: 20px; border-radius: 12px 12px 12px 3px; }
.ks-the-gia { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 16px 16px; }
.ks-con { color: var(--ks-ok); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.ks-het { color: var(--ks-bad); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.ks-gia-tu { font-size: 12.5px; color: var(--ks-ink2); }
.ks-gia { display: flex; align-items: baseline; gap: 4px; }
.ks-gia b { font-family: var(--ks-serif); font-size: 26px; color: var(--ks-clay); font-weight: 600; font-variant-numeric: tabular-nums; }
.ks-gia small { color: var(--ks-ink2); font-size: 13px; }
.ks-gia-tong { font-size: 12.5px; color: var(--ks-ink2); margin-bottom: 8px; }
.ks-the-gia .ks-btn { margin-top: 8px; width: 100%; }
@media (min-width: 680px) {
    .ks-the { grid-template-columns: 230px minmax(0, 1fr) 190px; }
    .ks-the-anh { aspect-ratio: auto; min-height: 190px; }
    .ks-the-gia { align-items: flex-end; text-align: right; justify-content: flex-end; border-left: 1px dashed var(--ks-line); padding: 16px; }
    .ks-the-gia .ks-gia { justify-content: flex-end; }
    .ks-the-nd { padding: 16px 16px 14px; }
}
.ks-danhsach-nho .ks-the { grid-template-columns: 1fr; }
@media (min-width: 680px) { .ks-danhsach-nho { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ks-danhsach-nho .ks-the-anh { min-height: 0; aspect-ratio: 16 / 10; } .ks-danhsach-nho .ks-the-gia { align-items: flex-start; text-align: left; border: 0; } .ks-danhsach-nho .ks-the-gia .ks-gia { justify-content: flex-start; } }
.ks-trangchu .ks-danhsach { grid-template-columns: 1fr; }
.ks-lienhe { background: var(--ks-ink); color: #fff; }
.ks-lienhe h2 { color: #fff; margin-bottom: 8px; }
.ks-lienhe p { color: #cfe0db; max-width: 54ch; }
.ks-lienhe-trong { display: grid; gap: 18px; align-items: center; }
@media (min-width: 720px) { .ks-lienhe-trong { grid-template-columns: 1fr auto; } }

/* ---------- Trang kết quả ---------- */
.ks-thanhtim { background: var(--ks-paper); padding: 14px 0 6px; position: relative; z-index: 5; }
.ks-vet { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ks-ink2); margin: 10px 0 12px; }
.ks-vet a:hover { color: var(--ks-sea); text-decoration: underline; }
.ks-vet [aria-current] { color: var(--ks-ink); font-weight: 600; }
.ks-luoi { display: grid; gap: 18px; padding-top: 12px; padding-bottom: 46px; }
.ks-kq { min-width: 0; }
.ks-kq-dau { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.ks-kq-dau h1 { font-size: clamp(24px, 3.6vw, 34px); }
.ks-kq-dem { color: var(--ks-ink2); font-size: 14px; margin-top: 4px; }
.ks-kq-cum { display: flex; gap: 8px; align-items: center; }
.ks-sapxep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ks-ink2); }
.ks-sapxep select { height: 42px; border: 1.5px solid var(--ks-line); background: #fff; border-radius: 10px; padding: 0 10px; font-weight: 600; color: var(--ks-ink); }
.ks-km { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13.5px; color: var(--ks-ink2); }
.ks-chip-a { padding: 6px 13px; border: 1.5px solid var(--ks-line); border-radius: 999px; background: #fff; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.ks-chip-a.on { background: var(--ks-ink); color: #fff; border-color: var(--ks-ink); }
.ks-rong { text-align: center; padding: 50px 20px; background: var(--ks-card); border: 1px dashed var(--ks-line); border-radius: var(--ks-r); display: grid; gap: 10px; justify-items: center; }
.ks-rong .ks-ic { color: var(--ks-sea); }
.ks-trang { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ks-trang a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--ks-line); background: #fff; font-weight: 600; }
.ks-trang a.on { background: var(--ks-ink); border-color: var(--ks-ink); color: #fff; }

/* bộ lọc: tấm trượt từ đáy trên điện thoại, cột trái trên máy tính */
.ks-loc { position: fixed; inset: 0; z-index: 100200; display: none; background: rgba(21, 53, 47, .5); }
.ks-loc.on { display: flex; align-items: flex-end; }
.ks-loc form { background: var(--ks-card); width: 100%; max-height: 90vh; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; }
.ks-loc-dau { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ks-line); }
.ks-loc-dau h2 { font-size: 20px; }
.ks-loc-dong { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ks-loc-dong:hover { background: #efe8d8; }
.ks-loc-than { overflow: auto; padding: 8px 18px 18px; flex: 1; }
.ks-loc fieldset { border: 0; padding: 14px 0; margin: 0; border-bottom: 1px dashed var(--ks-line); min-width: 0; }
.ks-loc legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; float: none; width: auto; border: 0; }
.ks-loc-chan { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ks-line); background: var(--ks-card); }
.ks-loc-chan .ks-btn { flex: 1; }
.ks-chk { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; cursor: pointer; min-height: 44px; }
.ks-chk input { width: 20px; height: 20px; accent-color: var(--ks-sea); flex: none; }
.ks-chip-nhom { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-chip { cursor: pointer; }
.ks-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ks-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ks-line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; }
.ks-chip input:checked + span { background: var(--ks-ink); color: #fff; border-color: var(--ks-ink); }
.ks-chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--ks-sea) 55%, white); outline-offset: 2px; }
.ks-gia-khoang { display: flex; align-items: center; gap: 8px; }
.ks-gia-khoang input { width: 100%; min-width: 0; height: 46px; border: 1.5px solid var(--ks-line); border-radius: 10px; padding: 0 12px; background: #fff; }

.ks-bando { position: fixed; inset: 0; z-index: 100200; background: var(--ks-card); display: none; flex-direction: column; }
.ks-bando.on { display: flex; }
.ks-bando-dau { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--ks-line); }
.ks-map { flex: 1; min-height: 280px; background: #dfe8e4; z-index: 1; }
.ks-map-nho { height: 300px; flex: none; border-radius: var(--ks-r); border: 1px solid var(--ks-line); margin: 12px 0; }
.ks-trongvung { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 500; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); }
.ks-nut-noi { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900; display: flex; gap: 8px; }
.ks-ghim { background: #fff; color: var(--ks-ink); border: 2px solid var(--ks-clay); border-radius: 999px; font-weight: 700; font-size: 12.5px; padding: 2px 9px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); transform: translate(-50%, -100%); width: max-content; line-height: 1.5; }
.ks-ghim.het { border-color: #9a9a9a; color: #7c7c7c; }
.ks-ghim.on { background: var(--ks-clay); color: #fff; z-index: 1000 !important; }
.ks-ghim-the { min-width: 210px; }
.ks-ghim-the b { font-family: var(--ks-serif); font-size: 16px; display: block; }
.ks-ghim-the span { font-size: 13px; color: var(--ks-ink2); display: block; margin: 2px 0 6px; }
.ks-ghim-the a { color: var(--ks-sea-d); font-weight: 700; }
.leaflet-container { font-family: inherit; }

@media (min-width: 992px) {
    .ks-luoi { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
    .ks-nut-noi { display: none; }
    .ks-mo-loc { display: inline-flex; }
    .ks-bando { position: sticky; top: 124px; inset: auto; display: flex !important; height: calc(100vh - 150px); border-radius: var(--ks-r); overflow: hidden; border: 1px solid var(--ks-line); z-index: 1; }
    .ks-bando-dau { display: none; }
    .ks-loc form { max-width: 440px; max-height: 100vh; height: 100%; border-radius: 0; margin-right: auto; }
    .ks-loc.on { align-items: stretch; }
}
@media (min-width: 1280px) {
    .ks-luoi { grid-template-columns: 250px minmax(0, 1fr) 400px; }
    .ks-loc { display: block; position: sticky; top: 124px; inset: auto; z-index: 1; background: none; align-self: start; max-height: calc(100vh - 140px); }
    .ks-loc form { max-width: none; height: auto; max-height: calc(100vh - 140px); border: 1px solid var(--ks-line); border-radius: var(--ks-r); box-shadow: var(--ks-bong); }
    .ks-loc-dong, .ks-mo-loc { display: none !important; }
}
@media (max-width: 991px) { .ks-mo-loc { display: none; } }


/* Khi cột danh sách hẹp (có cả bộ lọc + bản đồ): thẻ 2 cột, khối giá thành một hàng ở đáy */
.ks-kq { container-type: inline-size; }
@container (max-width: 760px) {
    .ks-the { grid-template-columns: 190px minmax(0, 1fr); }
    .ks-the-anh { min-height: 170px; }
    .ks-the-gia { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 14px; border-left: 0; border-top: 1px dashed var(--ks-line); text-align: left; padding: 12px 16px; }
    .ks-the-gia .ks-gia { justify-content: flex-start; }
    .ks-the-gia .ks-btn { width: auto; margin: 0 0 0 auto; }
}
@container (max-width: 520px) {
    .ks-the { grid-template-columns: 1fr; }
    .ks-the-anh { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------- Trang khách sạn ---------- */
.ks-chitiet { padding-bottom: 90px; }
.ks-ct-dau { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ks-ct-tieude h1 { font-size: clamp(28px, 4.6vw, 46px); margin: 6px 0 8px; }
.ks-ct-dc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ks-ink2); font-size: 15px; }
.ks-ct-dc .ks-ic { color: var(--ks-clay); }
.ks-ct-diem { display: flex; align-items: center; gap: 10px; flex: none; }
.ks-ct-diem p b { display: block; line-height: 1.2; }
.ks-ct-diem small { color: var(--ks-ink2); font-size: 12.5px; }
.ks-thuvien { position: relative; display: grid; gap: 6px; border-radius: 18px; overflow: hidden; margin-bottom: 22px; grid-template-columns: 1fr; }
.ks-thuvien button { padding: 0; border: 0; background: #e7dfcd; cursor: zoom-in; overflow: hidden; position: relative; }
.ks-thuvien img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ks-thuvien button:hover img { transform: scale(1.04); }
.ks-anh-lon { aspect-ratio: 4 / 3; }
.ks-anh-nho { display: none !important; }
.ks-anh-them { position: absolute !important; right: 12px; bottom: 12px; width: auto !important; background: rgba(21, 53, 47, .88) !important; color: #fff; border-radius: 999px !important; padding: 9px 16px !important; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
@media (min-width: 760px) {
    .ks-thuvien { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; }
    .ks-anh-lon { grid-row: 1 / 3; aspect-ratio: auto; }
    .ks-anh-nho { display: block !important; }
}
.ks-thuvien > .ks-anh-trong:only-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: auto; height: 240px; border-radius: 18px; }
.ks-ct-luoi { display: grid; gap: 18px; align-items: start; }
.ks-ct-phai { order: -1; }
@media (min-width: 992px) {
    .ks-ct-luoi { grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; }
    .ks-ct-phai { order: 0; position: sticky; top: 124px; }
}
.ks-tab { position: sticky; top: 60px; z-index: 40; display: flex; gap: 4px; overflow-x: auto; background: var(--ks-paper); border-bottom: 1px solid var(--ks-line); margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.ks-tab::-webkit-scrollbar { display: none; }
.ks-tab a { padding: 14px 14px; font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--ks-ink2); border-bottom: 3px solid transparent; min-height: 48px; }
.ks-tab a.on { color: var(--ks-ink); border-bottom-color: var(--ks-clay); }
@media (min-width: 992px) { .ks-tab { top: 110px; margin: 0; padding: 0; } }
.ks-khoi { padding: 28px 0 8px; scroll-margin-top: 130px; }
.ks-khoi h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.ks-noidung { font-size: 16px; line-height: 1.75; color: #24403b; max-width: 72ch; overflow-wrap: anywhere; }
.ks-noidung img { height: auto; border-radius: 10px; margin: 10px 0; }
.ks-noidung p { margin: 0 0 12px; }
.ks-noidung h2, .ks-noidung h3 { margin: 18px 0 8px; font-size: 22px; }
.ks-noidung a { color: var(--ks-sea); text-decoration: underline; }
.ks-noidung table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.ks-noidung td, .ks-noidung th { border: 1px solid var(--ks-line); padding: 6px 10px; }
.ks-tienich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.ks-tienich li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ks-tienich .ks-ic { color: var(--ks-sea); }
@media (min-width: 720px) { .ks-tienich { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ks-gio { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ks-gio div { background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: 12px; padding: 10px 12px; }
.ks-gio dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ks-ink2); font-weight: 700; }
.ks-gio dd { margin: 2px 0 0; font-weight: 600; }
.ks-bai-ds { display: grid; gap: 12px; }
.ks-bai { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: 12px; overflow: hidden; align-items: stretch; }
.ks-bai img { width: 100%; height: 100%; object-fit: cover; min-height: 84px; }
.ks-bai > span { padding: 10px 12px 10px 0; }
.ks-bai:not(:has(img)) { grid-template-columns: 1fr; } .ks-bai:not(:has(img)) > span { padding: 12px; }
.ks-bai b { display: block; font-family: var(--ks-serif); font-size: 17px; }
.ks-bai small { display: block; color: var(--ks-ink2); font-size: 13px; margin-top: 3px; }

/* hộp đặt (cột phải) */
.ks-hop-dat { background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: 18px; padding: 18px; box-shadow: var(--ks-bong); }
.ks-hop-gia { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ks-hop-gia span, .ks-hop-gia small { color: var(--ks-ink2); font-size: 14px; }
.ks-hop-gia b { font-family: var(--ks-serif); font-size: 32px; color: var(--ks-clay); font-weight: 600; }
.ks-hop-form { display: grid; gap: 10px; }
.ks-truong { display: grid; gap: 6px; }
.ks-truong > span { font-size: 12.5px; }
.ks-hop-form .ks-tim-in { border: 1.5px solid var(--ks-line); border-radius: 12px; padding: 4px 12px; background: #fff; min-height: 48px; }
.ks-hop-khach { border: 1.5px solid var(--ks-line); border-radius: 12px; padding: 0 12px; background: #fff; }
.ks-hop-khach .ks-dem:last-child { border-bottom: 0; }
.ks-hop-cam { margin-top: 14px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ks-ink2); }
.ks-hop-cam li { display: flex; gap: 8px; align-items: center; }
.ks-hop-cam .ks-ic { color: var(--ks-ok); }
.ks-hop-cam a { color: var(--ks-sea-d); font-weight: 700; }
.ks-lienhe-hop { display: grid; gap: 10px; font-size: 14.5px; }
.ks-lead { display: grid; gap: 8px; margin-top: 4px; }
.ks-lead input, .ks-truong input[type=text], .ks-truong input[type=tel], .ks-truong input[type=email], .ks-truong textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--ks-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.ks-truong textarea { resize: vertical; }
.ks-truong input:focus, .ks-truong textarea:focus, .ks-lead input:focus { outline: 0; border-color: var(--ks-sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ks-sea) 18%, transparent); }

/* bảng chọn phòng */
.ks-phong-ds { display: grid; gap: 14px; }
.ks-xuong { height: 150px; border-radius: var(--ks-r); background: linear-gradient(100deg, #ece4d2 30%, #f6f0e4 50%, #ece4d2 70%); background-size: 200% 100%; animation: ks-xuong 1.3s linear infinite; }
@keyframes ks-xuong { to { background-position: -200% 0; } }
.ks-phong { display: grid; background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: var(--ks-r); overflow: hidden; box-shadow: var(--ks-bong); }
.ks-phong.chon { border-color: var(--ks-clay); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ks-clay) 30%, transparent), var(--ks-bong); }
.ks-phong-anh { aspect-ratio: 16 / 9; background: #e7dfcd; overflow: hidden; }
.ks-phong-anh img { width: 100%; height: 100%; object-fit: cover; }
.ks-phong-nd { padding: 14px 16px 6px; min-width: 0; }
.ks-phong-nd h3 { font-size: 20px; }
.ks-phong-tt { color: var(--ks-ink2); font-size: 13.5px; margin-top: 4px; }
.ks-phong-mota { font-size: 14px; color: #3a524d; margin-top: 8px; }
.ks-phong-ti { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ks-phong-ti li { font-size: 12.5px; background: #f1ebdc; border-radius: 999px; padding: 3px 10px; color: var(--ks-ink2); }
.ks-phong-gia { padding: 8px 16px 16px; display: grid; gap: 4px; align-content: start; }
.ks-phong-ban { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ks-ok); }
.ks-phong-ban.it { color: var(--ks-clay); }
.ks-phong-ban.het { color: var(--ks-bad); }
.ks-phong-loi { font-size: 13px; color: var(--ks-bad); }
.ks-phong-goiy { font-size: 13px; }
.ks-phong-goiy button { background: none; border: 0; padding: 0; color: var(--ks-sea); font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; }
.ks-chitiet-gia { background: none; border: 0; padding: 0; color: var(--ks-sea); font-size: 13px; text-decoration: underline; cursor: pointer; text-align: left; min-height: 32px; }
.ks-giadem { display: none; font-size: 13px; background: #f6f0e4; border-radius: 10px; padding: 8px 12px; }
.ks-giadem.on { display: block; }
.ks-giadem div { display: flex; justify-content: space-between; padding: 2px 0; font-variant-numeric: tabular-nums; }
.ks-chon-sl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ks-chon-sl > span { font-size: 13px; color: var(--ks-ink2); font-weight: 600; }
@media (min-width: 760px) {
    .ks-phong { grid-template-columns: 200px minmax(0, 1fr) 230px; }
    .ks-phong-anh { aspect-ratio: auto; min-height: 170px; }
    .ks-phong-gia { border-left: 1px dashed var(--ks-line); padding: 14px 16px; }
}
.ks-lich { margin-top: 8px; }
.ks-lich-luoi { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font-size: 12px; text-align: center; }
.ks-lich-luoi b { color: var(--ks-ink2); font-size: 11px; padding: 4px 0; }
.ks-lich-o { border-radius: 8px; padding: 4px 0; background: #fff; border: 1px solid var(--ks-line); min-height: 44px; font-variant-numeric: tabular-nums; }
.ks-lich-o small { display: block; font-size: 10px; color: var(--ks-clay); font-weight: 700; }
.ks-lich-o.het { background: #efe9dc; color: #a39a85; text-decoration: line-through; }
.ks-lich-o.it small { color: var(--ks-bad); }

/* thanh dính đáy + tấm đặt + xem ảnh */
.ks-thanh-day { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ks-card); border-top: 1px solid var(--ks-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -12px rgba(21, 53, 47, .35); }
.ks-thanh-tt small { display: block; font-size: 12px; color: var(--ks-ink2); }
.ks-thanh-tt b { font-family: var(--ks-serif); font-size: 22px; color: var(--ks-clay); }
@media (min-width: 992px) { .ks-thanh-day.chi-mobile { display: none; } }
.ks-tam { position: fixed; inset: 0; z-index: 100300; display: flex; align-items: flex-end; justify-content: center; }
.ks-tam-nen { position: absolute; inset: 0; background: rgba(21, 53, 47, .55); }
.ks-tam-hop { position: relative; background: var(--ks-card); width: 100%; max-width: 560px; max-height: 94vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; animation: ks-len .22s ease-out; }
@keyframes ks-len { from { transform: translateY(40px); opacity: .4; } }
.ks-tam-dau { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--ks-line); }
.ks-tam-dau h2 { font-size: 21px; }
.ks-tam-than { overflow: auto; padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.ks-tomtat { background: #f6f0e4; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ks-tomtat b { font-family: var(--ks-serif); }
.ks-tomtat div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.ks-tomtat .tong { border-top: 1px dashed #cfc4a9; margin-top: 6px; padding-top: 8px; font-size: 16px; font-weight: 700; }
.ks-tomtat .tong b { color: var(--ks-clay); font-size: 20px; }
.ks-luoi-truong { display: grid; gap: 12px; }
.ks-bay { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ks-dongy { align-items: flex-start; font-size: 14px; }
.ks-dongy a { color: var(--ks-sea); text-decoration: underline; }
@media (min-width: 640px) { .ks-tam { align-items: center; } .ks-tam-hop { border-radius: 22px; } .ks-luoi-truong { grid-template-columns: 1fr 1fr; } .ks-rong2 { grid-column: 1 / -1; } }

.ks-xemanh { position: fixed; inset: 0; z-index: 100400; background: rgba(8, 20, 18, .95); display: flex; align-items: center; justify-content: center; }
.ks-xemanh img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.ks-xemanh button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ks-xemanh button:hover { background: rgba(255, 255, 255, .26); }
.ks-xa-dong { top: 14px; right: 14px; }
.ks-xa-tr { left: 10px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.ks-xa-sau { right: 10px; top: 50%; transform: translateY(-50%); }
.ks-xa-dem { position: absolute; bottom: 16px; color: #d8e6e2; font-size: 14px; }

/* ---------- Trang đơn, bài viết, 404 ---------- */
.ks-don-khung { max-width: 820px; padding-top: 24px; padding-bottom: 60px; display: grid; gap: 16px; }
.ks-don-trangthai { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: #e8f3ec; border: 1px solid #bfdccb; }
.ks-don-trangthai h1 { font-size: clamp(22px, 4vw, 30px); }
.ks-don-trangthai p { margin-top: 6px; color: #2c4a40; }
.ks-don-bieutuong { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ks-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ks-don-cho { background: #fff6dd; border-color: #efd68c; }
.ks-don-cho .ks-don-bieutuong { background: var(--ks-gold); color: #3b2a05; }
.ks-don-huy { background: #fdecea; border-color: #f3c7c2; }
.ks-don-huy .ks-don-bieutuong { background: var(--ks-bad); }
.ks-the-don { background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: 18px; padding: 20px; box-shadow: var(--ks-bong); display: grid; gap: 12px; }
.ks-the-don h2 { font-size: 24px; }
.ks-don-ma { font-family: var(--ks-serif); font-size: clamp(28px, 6vw, 40px); letter-spacing: .06em; color: var(--ks-ink); font-weight: 600; }
.ks-don-luoi { display: grid; gap: 10px; }
.ks-don-luoi > div { background: #f6f0e4; border-radius: 12px; padding: 10px 14px; display: grid; }
.ks-don-luoi small { color: var(--ks-ink2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ks-don-luoi span { color: var(--ks-ink2); font-size: 13.5px; }
@media (min-width: 640px) { .ks-don-luoi { grid-template-columns: repeat(3, 1fr); } }
.ks-don-bang { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ks-don-bang th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ks-ink2); padding: 8px 6px; border-bottom: 1px solid var(--ks-line); }
.ks-don-bang td { padding: 9px 6px; border-bottom: 1px dashed var(--ks-line); }
.ks-don-bang .r { text-align: right; font-variant-numeric: tabular-nums; }
.ks-don-bang .tong td { font-weight: 700; font-size: 17px; border-bottom: 0; }
.ks-don-bang .tong .r { color: var(--ks-clay); font-family: var(--ks-serif); font-size: 21px; }
.ks-don-lienlac { display: flex; flex-wrap: wrap; gap: 10px; }
.ks-huy form { display: grid; gap: 10px; margin-top: 4px; }
.ks-huy-nut { display: flex; gap: 10px; flex-wrap: wrap; }
.ks-bv { max-width: 780px; padding-top: 20px; padding-bottom: 60px; }
.ks-bv h1 { font-size: clamp(28px, 5vw, 42px); margin: 6px 0 10px; }
.ks-bv-bia { width: 100%; border-radius: 16px; margin: 14px 0 20px; max-height: 420px; object-fit: cover; }
.ks-bv-chan { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ks-line); }
.ks-404 { text-align: center; padding: 80px 16px; display: grid; gap: 12px; justify-items: center; }
.ks-404 h1 { font-size: clamp(28px, 5vw, 44px); }

.ks-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ks-ink); color: #fff; padding: 11px 18px; border-radius: 999px; z-index: 100500; font-size: 14px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }
.flatpickr-calendar { font-family: 'Be Vietnam Pro', system-ui, sans-serif; border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(21, 53, 47, .45); z-index: 100350 !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--ks-sea); border-color: var(--ks-sea); }
.flatpickr-day.inRange { background: #dcece9; border-color: #dcece9; box-shadow: -5px 0 0 #dcece9, 5px 0 0 #dcece9; }
.flatpickr-day { max-width: 44px; height: 44px; line-height: 44px; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .ks *, .ks *::before, .ks *::after { animation: none !important; transition: none !important; }
}

/* Ghi đè kiểu ô nhập của theme Ttour (viền, chiều cao, width:100%) bên trong các ô tìm/đặt */
.ks .ks-tim-in input, .ks .ks-tim-in input:focus { flex: 1 1 0 !important; width: auto !important; min-width: 0; height: auto !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 4px 0 !important; margin: 0 !important; border-radius: 0 !important; }
.ks .ks-gia-khoang input, .ks .ks-truong input[type=text], .ks .ks-truong input[type=tel], .ks .ks-truong input[type=email], .ks .ks-truong textarea, .ks .ks-lead input { box-shadow: none; height: auto; min-height: 48px; }
.ks select { box-shadow: none; }
.ks button { box-shadow: none; }
.ks .ks-btn-chinh { box-shadow: 0 6px 16px -8px var(--ks-clay); }
@media (max-width: 991px) { .ks-thanh-day { padding-right: 88px; } }

/* Biểu mẫu tìm dạng gọn trên điện thoại: ngày + khách chung một hàng */
@media (max-width: 899px) {
    .ks-tim-gon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 8px; gap: 6px; }
    .ks-tim-gon .ks-tim-dich, .ks-tim-gon .ks-tim-nut { grid-column: 1 / -1; }
    .ks-tim-gon .ks-tim-o { padding: 6px 10px; }
    .ks-tim-gon .ks-tim-in input, .ks-tim-gon .ks-khach-nut { font-size: 14.5px; }
    .ks-tim-gon .ks-khach-nut span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ks-tim-gon .ks-tim-nut { min-height: 48px; }
    .ks-tim-gon .ks-khach-bang { left: auto; right: 0; width: 280px; }
    .ks-nut-noi { left: 16px; transform: none; }
}
