:root {
  /* Biển sâu – cát – sao biển */
  --pri: #0e4561; --pri-d: #082f45; --pri-l: #e7f0f3;
  --acc: #c2654a; --acc-l: #f7ebe5;       /* san hô / sao biển */
  --sand: #eee5d3; --sand-l: #f6f1e7;      /* cát */
  --gold: #c39a4b;
  --ok: #2f6f4f; --ok-l: #e5f0e9;
  --warn: #9a6514; --warn-l: #f8efdc;
  --bad: #a83a2c; --bad-l: #f8e6e2;
  --tx: #15232c; --tx2: #56656d; --tx3: #939ea4;
  --bg: #f7f5f0; --card: #ffffff; --line: #e6e1d7;
  --r: 14px; --sh: 0 1px 2px rgba(21,35,44,.05), 0 6px 18px rgba(21,35,44,.05);
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--tx); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--pri); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
svg.lic { flex: none; vertical-align: middle; }
.info-row { display: flex; gap: 10px; align-items: flex-start; }
.info-row > svg { margin-top: 2px; color: var(--tx2); }
.li-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sand-l); color: var(--tx); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.thumb { border-radius: 10px; background: var(--sand-l); color: var(--tx2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.stars-d { display: inline-flex; gap: 2px; color: var(--gold); }
.iconpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.iconpick button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--tx2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iconpick button.on { border-color: var(--pri); color: var(--pri); background: var(--pri-l); }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0 0 .6em; }
.boot { padding: 40px; text-align: center; color: var(--tx2); }
.muted { color: var(--tx2); } .small { font-size: 13px; } .tiny { font-size: 12px; color: var(--tx3); }
.bold { font-weight: 600; } .right { text-align: right; } .center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hide { display: none !important; }
.pre { white-space: pre-line; }

/* ---------- layout ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 110px; }
.wrap.wide { max-width: 980px; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 54px; }
.topbar .t { font-weight: 600; font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { border: 0; background: transparent; font-size: 20px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--tx); display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--bg); }
.demo-bar { background: #15232c; color: #d8dee2; font-size: 12.5px; padding: 6px 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.demo-bar a, .demo-bar button { color: #e9d3ad; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav .in { max-width: 980px; margin: 0 auto; display: flex; }
.bottomnav a { flex: 1; text-align: center; padding: 7px 2px 8px; color: var(--tx2); text-decoration: none; font-size: 11.5px; position: relative; }
.bottomnav a .ic { display: flex; justify-content: center; height: 26px; align-items: center; }
.bottomnav a { color: var(--tx3); }
.bottomnav a.on { color: var(--pri); font-weight: 600; }
.bottomnav .dot { position: absolute; top: 4px; left: 50%; margin-left: 8px; background: var(--bad); color: #fff; border-radius: 9px; font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tight { padding: 12px; }
.card h3 { margin-bottom: 8px; }
.sec-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--tx2); margin: 22px 2px 8px; }
.list { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.list > .li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: default; }
.list > .li:last-child { border-bottom: 0; }
.list > .li.click { cursor: pointer; }
.list > .li.click:hover { background: #f9fbfc; }
.li .main { flex: 1; min-width: 0; }
.li .t { font-weight: 600; }
.li .s { font-size: 13px; color: var(--tx2); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 12px 14px; }
.kpi .l { font-size: 12.5px; color: var(--tx2); }
.kpi .v { font-size: 20px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--tx3); }

/* ---------- buttons & forms ---------- */
.btn { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--tx); font: inherit; font-weight: 500; padding: 10px 16px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--sand-l); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-d); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.bad { color: var(--bad); border-color: #f3c2c2; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--pri); }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { padding: 14px 20px; font-size: 16.5px; min-height: 52px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--tx2); margin-bottom: 5px; }
.field .hint { font-size: 12px; color: var(--tx3); margin-top: 3px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--tx); width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pri-l); border-color: var(--pri); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--pri); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; margin-top: 1px; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 7px 13px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; cursor: pointer; font-weight: 500; color: var(--tx2); }
.chip { display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: var(--pri); color: #fff; border-color: var(--pri); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--tx2); white-space: nowrap; }
.badge.ok { background: var(--ok-l); color: var(--ok); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.bad { background: var(--bad-l); color: var(--bad); }
.badge.pri { background: var(--pri-l); color: var(--pri-d); }
.badge.acc { background: var(--acc-l); color: var(--acc); }
.badge { display: inline-flex; align-items: center; gap: 4px; }

.alert { border-radius: 12px; padding: 11px 13px; font-size: 14px; }
.alert.warn { background: var(--warn-l); color: #7c3c06; }
.alert.bad { background: var(--bad-l); color: #7f1d1d; }
.alert.ok { background: var(--ok-l); color: #14532d; }
.alert.info { background: var(--pri-l); color: var(--pri-d); }

/* ---------- stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--sand-l); font-size: 20px; cursor: pointer; color: var(--pri-d); font-weight: 500; }
.stepper button:disabled { color: var(--tx3); }
.stepper .q { min-width: 38px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper input { width: 58px; border: 0; text-align: center; min-height: 40px; padding: 0; font-weight: 700; border-radius: 0; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12.5px; color: var(--tx2); font-weight: 600; background: var(--sand-l); white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.total td { font-weight: 600; background: var(--sand-l); }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10,25,32,.45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .modal-bg { align-items: center; } }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: up .2s; }
@media (min-width: 640px) { .modal { border-radius: 18px; } }
.modal .mh { display: flex; align-items: center; padding: 12px 12px 8px 18px; gap: 8px; }
.modal .mh .t { flex: 1; font-weight: 700; font-size: 17px; }
.modal .mb { padding: 4px 18px 18px; overflow-y: auto; }
.modal .mf { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.modal .mf .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.toasts { position: fixed; top: 12px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { background: #15232c; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 520px; animation: fade .2s; }
.toast.err { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* ---------- guest ---------- */
.hero { background: #0b3048 url(hero.svg) 70% 40% / cover no-repeat; color: #fff; padding: 22px 20px 96px; min-height: 250px; position: relative; overflow: hidden; }
.hero.mini { min-height: 0; padding: 20px 20px 62px; }
.hero.mini .in { max-width: 980px; }
.hero.mini h1 { font-size: 26px; margin-top: 8px; }
.hero.photo { background-size: cover; background-position: center; }
.hero .in { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 30px; margin-bottom: 6px; line-height: 1.15; }
.hero .sub { color: #d6e6ea; font-size: 14px; }
.hero .brand { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #e9d3ad; font-weight: 500; }
.hero-card { margin-top: -52px; position: relative; z-index: 2; }
.lang { display: inline-flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: #fff; padding: 4px 11px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.lang button.on { background: #fff; color: var(--pri-d); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px 14px; text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--tx); display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sand-l); color: var(--tx); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tile .t { font-weight: 600; font-size: 15px; }
.tile .s { font-size: 12.5px; color: var(--tx2); }
.tile.hl { background: var(--pri); color: #fff; }
.tile.hl .ic { background: rgba(255,255,255,.12); color: #e9d3ad; }
.tile.hl .s { color: #c9dbe1; }
.wifi { background: #fff; border: 1px solid var(--line); }
.wifi .pw { font-size: 20px; font-weight: 600; color: var(--pri-d); letter-spacing: .03em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.rules-box { max-height: 52vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfdfe; font-size: 14.5px; }
.rules-box h3 { font-size: 15px; margin-top: 12px; }
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab a, .fab button { width: 54px; height: 54px; border-radius: 50%; border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; cursor: pointer; }
.fab a, .fab button { background: #fff; color: var(--pri-d); border: 1px solid var(--line) !important; }
.fab .call { background: var(--pri); color: #fff; border-color: var(--pri) !important; }
.fab .zalo { background: #fff; color: var(--pri-d); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 520px) { .prod-grid { grid-template-columns: 1fr 1fr 1fr; } }
.prod { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.prod .img { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: var(--sand-l); color: var(--tx2); }
.prod .img img { width: 100%; height: 100%; object-fit: cover; }
.prod .b { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod .n { font-weight: 600; font-size: 14px; line-height: 1.3; flex: 1; }
.prod .p { color: var(--pri-d); font-weight: 600; }
.prod.sel { outline: 2px solid var(--pri); }
.sticky-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.sticky-foot .in { max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.stars { display: flex; gap: 6px; justify-content: center; }
.stars button { border: 0; background: none; cursor: pointer; color: #cfd5d8; padding: 0 2px; line-height: 0; }
.stars button.on { color: var(--gold); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs .th { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; position: relative; background: var(--bg); }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs .th button { position: absolute; top: 2px; right: 2px; border: 0; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.addph { width: 72px; height: 72px; border-radius: 10px; border: 1.5px dashed #cfc7b8; display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer; color: var(--tx2); }
.steps { counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--pri-l); color: var(--pri-d); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.qr-pay { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.qr-pay img { margin: 0 auto; max-width: 280px; width: 100%; }

/* ---------- camera ---------- */
.cam { position: fixed; inset: 0; background: #000; z-index: 150; display: flex; flex-direction: column; }
.cam video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.cam .bar { display: flex; align-items: center; justify-content: space-around; padding: 18px 10px calc(18px + env(safe-area-inset-bottom)); background: #000; }
.cam .shot { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: #fff3; cursor: pointer; }
.cam .x { color: #fff; background: none; border: 0; font-size: 16px; cursor: pointer; padding: 10px; }
.cam .lbl { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 4px #000; padding: 0 12px; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .h { font-size: 11.5px; color: var(--tx3); text-align: center; padding: 4px 0; font-weight: 600; }
.cal .d { min-height: 50px; border-radius: 8px; background: var(--card); padding: 3px 4px; font-size: 12px; position: relative; border: 1px solid transparent; cursor: pointer; overflow: hidden; }
.cal .d.out { opacity: .35; }
.cal .d.today { border-color: var(--acc); }
.cal .d .n { font-weight: 600; }
.cal .d .bk { position: absolute; left: 0; right: 0; bottom: 3px; height: 16px; font-size: 10px; color: #fff; padding: 0 3px; white-space: nowrap; overflow: hidden; line-height: 16px; }
.cal .d .bk.s { margin-left: 50%; border-radius: 4px 0 0 4px; }
.cal .d .bk.e { margin-right: 50%; border-radius: 0 4px 4px 0; }
.cal .d .bk.e.s2 { }

/* ---------- bars ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px 4px 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; min-width: 0; }
.bars .b .col { width: 100%; max-width: 34px; display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.bars .b .col i { flex: 1; border-radius: 4px 4px 0 0; display: block; min-height: 2px; }
.bars .b .x { font-size: 11px; color: var(--tx3); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--tx2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.photo-full { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.photo-full img { max-width: 96vw; max-height: 92vh; }

.tabs { display: flex; gap: 4px; background: #ece7dc; padding: 4px; border-radius: 12px; margin-bottom: 12px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--tx2); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: #fff; color: var(--pri-d); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.wizard-steps { display: flex; gap: 4px; margin: 12px 0; }
.wizard-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.wizard-steps i.on { background: var(--pri); }

@media print {
  .no-print, .topbar, .bottomnav, .demo-bar { display: none !important; }
  body { background: #fff; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ô ngày dd/mm/yyyy */
.dateinp { position: relative; display: flex; align-items: center; }
.dateinp input:first-child { padding-right: 44px; }
.dateinp .iconbtn { position: absolute; right: 2px; color: var(--tx2); }
.dateinp .pickhid { position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; opacity: 0; pointer-events: none; }
input.invalid { border-color: var(--bad); background: var(--bad-l); }
.notfound { border: 1px solid #ecd2c9; background: #fdf7f4; }
.hero .greet { font-size: 27px; }
.hero .wish { color: #e9d3ad; font-size: 15px; margin-top: 2px; }
.hero .stay { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: #d6e6ea; }
.hero .stay b { color: #fff; font-weight: 600; }

/* iPhone: ô nhập >= 16px để Safari/Zalo không tự phóng to trang */
.stepper input, .dateinp input { font-size: 16px; }
