/* =====================================================================
   Inpatient Admission Starter - stylesheet
   Base styles and components; hospital-specific parts are in ipd.css.
   Colours are CSS variables: change the tokens below to re-brand.
   Light / dark theme: <html data-theme="light|dark">.
   ===================================================================== */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f1f4f7;
  --surface-3: #e5eaef;
  --text: #0f1b24;
  --muted: #5b6975;
  --line: #e3e8ee;
  --line-strong: #d0d8e0;
  --primary: #0e6f8e;
  --primary-hover: #0a5a74;
  --primary-ink: #ffffff;
  --primary-soft: #e1f1f7;
  --primary-2: #2a9fc4;
  --accent: #0f766e;
  --accent-soft: #dcf3ef;
  --green: #1f8a52;
  --green-soft: #def3e7;
  --red: #d23f31;
  --red-soft: #fde7e4;
  --amber: #b26a07;
  --amber-soft: #fdf0d8;
  --blue: #2563c9;
  --blue-soft: #e3ecfb;
  --violet: #6a4bd0;
  --violet-soft: #eee8fc;
  --grey: #6f7b85;
  --grey-soft: #edf0f3;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow: 0 12px 32px -14px rgba(16, 24, 40, .22), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 32px 72px -28px rgba(16, 24, 40, .42), 0 8px 20px -8px rgba(16, 24, 40, .12);
  --ring: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
  --radius: 18px;
  --radius-sm: 11px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1116;
  --surface: #111a20;
  --surface-2: #17222a;
  --surface-3: #203039;
  --text: #e9eff3;
  --muted: #93a3ae;
  --line: #1f2c35;
  --line-strong: #2d3d48;
  --primary: #5fc4e6;
  --primary-hover: #86d4ee;
  --primary-ink: #04202b;
  --primary-soft: #0f2c38;
  --primary-2: #8fdcf5;
  --accent: #4fd1b8;
  --accent-soft: #10302a;
  --green: #4fcf88;
  --green-soft: #12301f;
  --red: #ff7b6e;
  --red-soft: #3a1a16;
  --amber: #f0bb57;
  --amber-soft: #36280d;
  --blue: #7fb0ff;
  --blue-soft: #15253d;
  --violet: #b8a2ff;
  --violet-soft: #291f45;
  --grey: #9aa6af;
  --grey-soft: #1f2a31;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 32px 72px -24px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 16px; height: 16px; } .i-lg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .78rem; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; } .start { align-items: flex-start; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-green { color: var(--green); } .text-red { color: var(--red); } .text-amber { color: var(--amber); } .text-primary { color: var(--primary); }
.strong { font-weight: 650; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline; }
[data-theme="dark"] .only-light { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font: 600 .92rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s; background: var(--surface-2); color: var(--text); }
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent); filter: brightness(1.07); color: #fff; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: var(--primary); color: var(--primary-ink); }
.btn-outline { background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); background: transparent; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red); filter: brightness(1.08); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green); filter: brightness(1.08); color: #fff; }
.btn-sm { height: 34px; padding: 0 13px; font-size: .84rem; }
.btn-xs { height: 28px; padding: 0 10px; font-size: .78rem; gap: 5px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .label { font-size: .84rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error, .error-text { font-size: .8rem; color: var(--red); }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.input-sm, .select-sm { height: 36px; font-size: .88rem; }
.select-sm { background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 44px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.option:hover { border-color: var(--text); }
.option input { accent-color: var(--primary); width: 18px; height: 18px; }
.option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.option .price { margin-left: auto; font-weight: 650; }
.chip-check { position: relative; display: inline-block; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check > span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .84rem; font-weight: 600; cursor: pointer; background: var(--surface); }
.chip-check input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- cards, alerts, badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-tight { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card { margin-top: 16px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--line); margin-bottom: 16px; font-size: .93rem; }
.alert-error { background: var(--red-soft); border-color: transparent; color: var(--red); }
.alert-success { background: var(--green-soft); border-color: transparent; color: var(--green); }
.alert-warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.alert-info { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 650;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-teal { background: var(--primary-soft); color: var(--primary); }
.b-grey { background: var(--grey-soft); color: var(--grey); }
.b-accent { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
.table th a { display: inline-flex; gap: 4px; align-items: center; }
.table .mono { white-space: nowrap; }
@media (max-width: 600px) { .table td { min-width: 130px; } }
.table th .arrow { font-size: .65rem; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table tr.void td { color: var(--muted); text-decoration: line-through; }
.table tfoot td { font-weight: 650; background: var(--surface-2); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px;
  border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.table-foot .page-size { display: flex; align-items: center; gap: 10px; }
.table-foot .select { width: auto; height: 34px; font-size: .84rem; background-position: calc(100% - 17px) 14px, calc(100% - 12px) 14px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .6; }
.pager { display: flex; gap: 4px; align-items: center; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: .86rem; }
.pager a:hover { background: var(--surface-2); color: var(--text); }
.pager .current { background: var(--primary); color: var(--primary-ink); }
.pager .disabled { opacity: .35; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 7px 12px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- toasts & modal */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 90; max-width: min(440px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.toast.hide { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 16, 16, .5); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: grid; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 16px; padding: 26px; width: min(460px, 100%); box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow: auto; }
.modal-lg { width: min(680px, 100%); }
.modal h3 { margin-bottom: 6px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }

/* =====================================================================
   BOOKING SITE
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 22px; height: 68px; }
.wordmark { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wordmark .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }
.wordmark .mark .i { width: 18px; height: 18px; }
.mainnav { display: flex; gap: 2px; margin-left: 12px; }
.mainnav a { padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: .95rem; }
.mainnav a:hover { background: var(--surface-2); color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu-toggle { display: none; }
.site main { min-height: 60vh; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); padding: 18px 0 6px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .5; }
.page-title { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; margin: 20px 0; }

/* hero with search */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 22, .72) 0%, rgba(8, 20, 22, .45) 42%, rgba(8, 20, 22, 0) 72%), linear-gradient(180deg, rgba(8, 20, 22, 0) 30%, rgba(8, 20, 22, .55) 100%); }
.hero .container { position: relative; z-index: 1; padding-bottom: 44px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 600; line-height: 1.04; max-width: 700px; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { font-size: 1.1rem; max-width: 560px; opacity: .95; margin-bottom: 26px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.searchbar { display: grid; grid-template-columns: 1.3fr 1.2fr 1.2fr .62fr .62fr .62fr auto; gap: 0; background: var(--surface); color: var(--text);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; align-items: end; }
.searchbar .sf { padding: 6px 12px; border-right: 1px solid var(--line); min-width: 0; }
.searchbar .sf:last-of-type { border-right: 0; }
.searchbar label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.searchbar .input, .searchbar .select { border: 0; height: 36px; padding: 0; background-color: transparent; box-shadow: none; font-weight: 600; }
.searchbar .select { padding-right: 24px; background-position: calc(100% - 10px) 16px, calc(100% - 5px) 16px; }
.searchbar .dp-input { padding-right: 24px; background-position: right 2px center; }
.searchbar .btn { height: 54px; border-radius: 13px; padding: 0 24px; }
.searchbar.compact { box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.perk .i { color: var(--primary); width: 26px; height: 26px; }
.perk b { display: block; margin-bottom: 2px; }
.perk span { font-size: .86rem; color: var(--muted); }

/* hotel & room cards */
.hotel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hotel-card { display: grid; grid-template-rows: 240px auto; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.hotel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.hotel-card img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card .body { padding: 20px 22px; }
.hotel-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0 0 4px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.room-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.room-card .media { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.room-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.room-card:hover .media img { transform: scale(1.03); }
.room-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.room-card .name { font-weight: 650; font-size: 1.05rem; }
.room-card .from { margin-top: auto; font-size: .9rem; color: var(--muted); }
.room-card .from b { color: var(--text); font-size: 1.15rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; }
.amen span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; }

/* search results */
.results { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-bottom: 60px; align-items: start; }
.filters { position: sticky; top: 90px; }
.filters .check { display: flex; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.offer { display: grid; grid-template-columns: 300px 1fr; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.offer .media { background: var(--surface-2); min-height: 100%; }
.offer .media img { width: 100%; height: 100%; object-fit: cover; }
.offer .body { padding: 20px 22px; min-width: 0; }
.offer h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
.plan { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.plan .pname { font-weight: 650; }
.plan .terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.plan .price { text-align: right; }
.plan .price b { font-size: 1.25rem; display: block; }
.plan .price small { color: var(--muted); font-size: .78rem; }
.plan .qty select { min-width: 150px; }
.left-tag { color: var(--red); font-weight: 650; font-size: .84rem; }
.breakdown { font-size: .82rem; color: var(--muted); }
.breakdown summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.breakdown table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.breakdown td { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.stickybar { position: sticky; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 12px 0; }
.alts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.alt { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.alt:hover { border-color: var(--primary); }

/* booking / summary */
.book-layout { display: grid; grid-template-columns: 1fr 390px; gap: 30px; align-items: start; padding-bottom: 60px; }
.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .93rem; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.summary .due { background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-weight: 650; display: flex; justify-content: space-between; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.12rem; }
.step-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: .85rem; display: grid; place-items: center; font-weight: 700; }
.stay-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.stay-box b { display: block; font-size: 1rem; }
.stay-box small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.roomline { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roomline:last-child { border-bottom: 0; }
.roomline img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.policy { font-size: .86rem; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 24px; }
.status-steps .st { text-align: center; position: relative; font-size: .82rem; color: var(--muted); }
.status-steps .st::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.status-steps .st:first-child::before { display: none; }
.status-steps .st .c { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; border: 2px solid var(--line); }
.status-steps .st.done { color: var(--text); font-weight: 600; }
.status-steps .st.done .c { background: var(--green); border-color: var(--green); color: #fff; }
.status-steps .st.done::before { background: var(--green); }

/* availability calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal .day { min-height: 70px; border-radius: 10px; padding: 7px 8px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; display: flex; flex-direction: column; gap: 2px; }
.cal .day b { font-size: .9rem; }
.cal .day.ok { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: var(--green-soft); }
.cal .day.low { border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: var(--amber-soft); }
.cal .day.full { background: var(--red-soft); color: var(--red); border-color: transparent; }
.cal .day.past { opacity: .4; }
.cal .day.closed { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-2) 6px 12px); }
.cal .day.override { box-shadow: inset 0 0 0 2px var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* mock gateway */
.gateway { min-height: 100vh; display: grid; place-items: center; background: #eaeff5; padding: 24px; }
[data-theme="dark"] .gateway { background: #0d1117; }
.gateway .box { width: min(460px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.gateway .gw-head { background: #283a8c; color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.gateway .gw-body { padding: 24px; }
.gateway .amount { font-size: 2rem; font-weight: 700; margin: 4px 0 18px; }
.gateway .test-banner { background: #fff4d6; color: #7a5600; font-size: .8rem; padding: 8px 24px; }
[data-theme="dark"] .gateway .test-banner { background: #3a2f10; color: #f2cf73; }
.qr-fake { width: 180px; height: 180px; margin: 0 auto 16px; border-radius: 12px; background:
  conic-gradient(from 90deg at 25% 25%, #111 25%, transparent 0) 0 0/24px 24px, #fff; border: 10px solid #fff; box-shadow: var(--shadow-sm); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 26px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer a { display: block; padding: 3px 0; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; flex-wrap: wrap; gap: 10px; }

/* =====================================================================
   BACK OFFICE
   ===================================================================== */
.admin { background: var(--bg); }
.admin .layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.sidebar .brand small { display: block; font-family: var(--font); font-size: .68rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; font-weight: 550; font-size: .91rem; color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav a .count { margin-left: auto; font-size: .7rem; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; font-size: .76rem; color: var(--muted); }
.topbar { height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; }
.topbar .spacer { flex: 1; }
.hotel-switch { display: flex; align-items: center; gap: 8px; }
.hotel-switch .select { height: 36px; width: auto; font-weight: 600; font-size: .88rem; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.quick-find { position: relative; }
.quick-find .input { height: 36px; width: 210px; padding-left: 34px; font-size: .86rem; }
.quick-find .i { position: absolute; left: 10px; top: 9px; color: var(--muted); width: 18px; height: 18px; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px 8px; border-radius: 10px; font: inherit; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.user-chip .who { text-align: left; line-height: 1.2; }
.user-chip .who small { color: var(--muted); font-size: .74rem; }
.dropdown { position: absolute; right: 0; top: 48px; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; background: none; border: 0; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.content { padding: 26px; max-width: 1440px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.55rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .back { display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search .i { position: absolute; left: 11px; top: 9px; color: var(--muted); width: 18px; height: 18px; }
.toolbar .search .input { height: 36px; padding-left: 36px; }
.toolbar .select, .toolbar .input { width: auto; height: 36px; font-size: .88rem; }
.toolbar .select { background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a .n { display: inline-block; margin-left: 6px; font-size: .74rem; background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi .v { font-size: 1.5rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .82rem; color: var(--muted); }
.kpi .s { font-size: .78rem; margin-top: 4px; color: var(--muted); }
.dash { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 10px 0 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--bg)));
  border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bars .bar i:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text);
  color: var(--bg); padding: 4px 8px; border-radius: 6px; font-size: .74rem; white-space: nowrap; font-style: normal; z-index: 5; }
.bars .bar span { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 12px; font-size: .88rem; }
.hbar .track { grid-column: 1 / -1; height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.status-list { display: grid; gap: 8px; }
.status-list .row { justify-content: space-between; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.form-grid > *, .detail-grid > *, .dash > *, .layout > *, .results > *, .book-layout > * { min-width: 0; }
.action-box form { margin-bottom: 12px; }
.action-box form:last-child { margin-bottom: 0; }
.inline-form { display: inline; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline b { display: block; font-size: .9rem; }
.timeline span { font-size: .8rem; color: var(--muted); }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #0e3f41; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.login-art > * { position: relative; }
.login-art h2 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; max-width: 440px; }
.login-art p { opacity: .85; max-width: 420px; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form .box { width: min(380px, 100%); }
.demo-box { font-size: .82rem; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; margin-top: 16px; color: var(--muted); }
.demo-box code { color: var(--text); }
.demo-box table { width: 100%; border-collapse: collapse; }
.demo-box td { padding: 2px 0; }

/* room rack */
.rack-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rack-floor { margin-bottom: 18px; }
.rack-floor h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); position: relative; border-left-width: 6px; min-height: 104px; display: flex; flex-direction: column; gap: 3px; }
.tile .no { font-weight: 750; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.tile .type { font-size: .76rem; color: var(--muted); }
.tile .who { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.tile form { margin-top: 4px; }
.tile .select { height: 30px; font-size: .78rem; padding: 0 26px 0 8px; background-position: calc(100% - 14px) 12px, calc(100% - 9px) 12px; }
.hk-VC { border-left-color: #2f9e5a; } .hk-VD { border-left-color: #e0a526; } .hk-OC { border-left-color: #d0463a; } .hk-OD { border-left-color: #93261c; }
.hk-OOO, .hk-OOS { border-left-color: #8a9395; background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); }
.hk-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: .72rem; font-weight: 750; color: #fff; }
.hkp-VC { background: #2f9e5a; } .hkp-VD { background: #d59a1c; } .hkp-OC { background: #d0463a; } .hkp-OD { background: #93261c; } .hkp-OOO, .hkp-OOS { background: #8a9395; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .room { font-size: 1.3rem; font-weight: 750; min-width: 64px; }
.task.done { opacity: .6; }
.assign .select { height: 32px; font-size: .82rem; width: auto; }

/* folio & printable documents */
.money-row { display: flex; justify-content: space-between; padding: 6px 0; }
.money-row.big { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.doc { background: #fff; color: #1d1d1d; max-width: 820px; margin: 0 auto; padding: 44px 48px; border-radius: 6px; box-shadow: var(--shadow); font-size: .92rem; }
.doc h1 { font-family: var(--font-display); font-size: 1.9rem; margin: 0; }
.doc .head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #1d1d1d; padding-bottom: 16px; margin-bottom: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.doc th, .doc td { padding: 8px 6px; border-bottom: 1px solid #ddd; text-align: left; }
.doc th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.doc .num { text-align: right; white-space: nowrap; }
.doc .totals { margin-left: auto; width: 300px; }
.doc .totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc .totals .grand { border-top: 2px solid #1d1d1d; font-weight: 700; font-size: 1.1rem; padding-top: 8px; margin-top: 4px; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.doc .sign div { border-top: 1px solid #999; padding-top: 6px; font-size: .8rem; color: #666; }
.doc .stamp { display: inline-block; border: 2px solid #b43a2e; color: #b43a2e; padding: 4px 10px; font-weight: 700; letter-spacing: .1em; transform: rotate(-4deg); }
.print-bar { max-width: 820px; margin: 0 auto 16px; display: flex; gap: 10px; justify-content: space-between; }
.qr-box { display: block; width: max-content; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.secret { font-family: var(--mono); font-size: 1rem; letter-spacing: .08em; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; display: inline-block; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash, .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr 1fr 1fr; row-gap: 8px; }
  .searchbar .sf { border-right: 0; }
  .searchbar .btn { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mainnav { display: none; position: fixed; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; padding: 16px 20px; z-index: 60; margin: 0; }
  .nav-open .mainnav { display: flex; }
  .mainnav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: inline-grid; }
  .hotel-cards, .results, .book-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .filters .stack > * + * { margin-top: 0; }
  .offer { grid-template-columns: 1fr; }
  .offer .media { height: 220px; }
  .summary { position: static; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .alts { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .admin .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 70; width: 262px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .nav-open .sidebar { transform: none; }
  .content { padding: 18px; }
  .topbar { padding: 0 14px; }
  .quick-find { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .hero { min-height: 520px; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .sf.wide { grid-column: 1 / -1; }
  .room-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px; flex-direction: column; gap: 8px; }
  .kpi .v { font-size: 1.2rem; }
  .user-chip .who, .hotel-switch .label { display: none; }
  .plan { grid-template-columns: 1fr auto; }
  .plan .qty { grid-column: 1 / -1; }
  .perks { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .table th, .table td { padding: 9px 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .cal .day { min-height: 54px; padding: 4px; font-size: .7rem; }
  .doc { padding: 24px 18px; }
  .task { grid-template-columns: auto 1fr; }
  .task .acts { grid-column: 1 / -1; }
}
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .print-bar, .site-header, .site-footer, .toasts, .no-print { display: none !important; }
  .admin .layout { display: block; }
  .content { padding: 0; }
  .doc { box-shadow: none; padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   DATE PICKER (English calendar, replaces the browser's own date field)
   ===================================================================== */
.dp-input { cursor: pointer; caret-color: transparent; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23738584' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.dp { position: absolute; z-index: 200; width: 292px; padding: 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-weight: 650; }
.dp-nav { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dp-nav:hover { background: var(--surface-2); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: .7rem; font-weight: 650; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.dp-day { height: 36px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.dp-day:hover:not(:disabled) { background: var(--primary-soft); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--primary); }
.dp-day.on { background: var(--primary); color: #fff; font-weight: 650; }
.dp-day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-link { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 6px; }
.dp-link:disabled { color: var(--muted); cursor: default; }

/* =====================================================================
   COLLAPSED SIDEBAR (desktop): icons only
   ===================================================================== */
@media (min-width: 901px) {
  .admin .layout { transition: grid-template-columns .18s ease; }
  .nav-collapsed .admin .layout { grid-template-columns: 76px 1fr; }
  .nav-collapsed .sidebar { padding: 16px 12px; overflow-x: hidden; }
  .nav-collapsed .sidebar .brand { justify-content: center; padding: 4px 0 14px; }
  .nav-collapsed .sidebar .brand > span:last-child,
  .nav-collapsed .nav a > span,
  .nav-collapsed .sidebar-foot { display: none; }
  .nav-collapsed .nav-label { font-size: 0; padding: 0; margin: 10px 8px; height: 1px; background: var(--line); }
  .nav-collapsed .nav a { justify-content: center; padding: 10px 0; }
}

/* =====================================================================
   MODERN LOOK
   Visual layer on top of the components above (type, depth, motion).
   Layout rules stay above so the responsive breakpoints keep working.
   ===================================================================== */

/* ---- type -------------------------------------------------------------- */
body { font-size: 15px; letter-spacing: -.003em; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em; }
.page-title, .section-head h2, .hotel-card h3, .offer h3, .login-art h2, .doc h1, .wordmark, .sidebar .brand {
  font-family: var(--font-display); font-weight: 750; letter-spacing: -.03em; }
.page-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.section { padding: 72px 0; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .16em; font-size: .7rem; font-weight: 750; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.kpi .v, .plan .price b, .summary .total, .gateway .amount, .money-row.big { font-family: var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---- buttons & fields ---------------------------------------------------- */
.btn { font-weight: 650; letter-spacing: -.005em; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); border: 0;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--primary) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffb347)); box-shadow: 0 8px 20px -10px var(--accent); }
.btn-success { box-shadow: 0 8px 20px -12px var(--green); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.input, .select, .textarea { border-color: var(--line-strong); background-color: var(--surface); box-shadow: var(--shadow-sm); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line-strong)); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
.option { border-color: var(--line); box-shadow: var(--shadow-sm); }
.option:hover { border-color: var(--primary); }
.chip-check > span { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: all .15s; }
.chip-check > span:hover { border-color: var(--primary); color: var(--primary); }

/* ---- surfaces ------------------------------------------------------------- */
.card { border-color: var(--line); box-shadow: var(--shadow-sm); padding: 24px; }
.card-tight { padding: 0; }
.alert { border-radius: 14px; border: 1px solid transparent; }
.alert-warn { background: linear-gradient(90deg, var(--amber-soft), color-mix(in srgb, var(--amber-soft) 60%, var(--surface))); }
.alert-success { background: linear-gradient(90deg, var(--green-soft), color-mix(in srgb, var(--green-soft) 60%, var(--surface))); }
.badge { height: 24px; padding: 0 10px; font-weight: 650; letter-spacing: .005em; }
.modal { border-radius: 22px; padding: 28px; border: 1px solid var(--line); }
.modal-backdrop { background: rgba(8, 14, 20, .45); backdrop-filter: blur(4px); }
.toast { border-radius: 16px; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.dropdown { border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }

/* ---- tables ----------------------------------------------------------------- */
.table th { background: var(--surface); color: var(--muted); font-size: .7rem; letter-spacing: .08em; border-bottom: 1px solid var(--line); padding-top: 13px; padding-bottom: 13px; }
.table td { border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
.table tfoot td { background: var(--surface-2); }
.pager .current { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 14px -8px var(--primary); }

/* ---- booking site: header, hero, search ------------------------------------------ */
.site-header { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .bar { height: 72px; }
.wordmark { font-size: 1.35rem; }
.wordmark .mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px -8px var(--primary), inset 0 1px 0 rgba(255, 255, 255, .25); }
.mainnav a { font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.mainnav a:hover { background: var(--primary-soft); color: var(--primary); }
.header-tools .btn-outline { box-shadow: none; }

.hero { min-height: 640px; align-items: center; }
.hero::after { background:
  radial-gradient(900px 500px at 12% 60%, rgba(4, 32, 36, .78), transparent 70%),
  linear-gradient(100deg, rgba(4, 28, 32, .82) 0%, rgba(4, 28, 32, .55) 40%, rgba(4, 28, 32, .08) 75%),
  linear-gradient(180deg, rgba(4, 28, 32, .35) 0%, transparent 30%, transparent 60%, rgba(4, 28, 32, .6) 100%); }
.hero .container { padding-top: 110px; padding-bottom: 56px; }
.hero .eyebrow { padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px); margin-bottom: 18px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.032em; line-height: 1.02;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 760px; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.hero p { font-size: 1.15rem; line-height: 1.6; max-width: 540px; opacity: .92; margin-bottom: 34px; }
.searchbar { border-radius: 24px; padding: 10px; gap: 4px; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .06); }
[data-theme="dark"] .searchbar { border-color: var(--line); }
.searchbar .sf { border-right: 0; border-radius: 16px; padding: 8px 14px; transition: background .15s; }
.searchbar .sf:hover, .searchbar .sf:focus-within { background: var(--surface-2); }
.searchbar label { font-size: .66rem; letter-spacing: .12em; }
.searchbar .input, .searchbar .select { box-shadow: none; font-size: .98rem; }
.searchbar .input:focus, .searchbar .select:focus { box-shadow: none; }
.searchbar .btn { height: 60px; border-radius: 18px; padding: 0 28px; font-size: 1rem; }
.searchbar.compact { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }

.perks { gap: 18px; }
.perk { padding: 22px; border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.perk .i { box-sizing: content-box; padding: 11px; border-radius: 14px; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 40%, var(--surface)));
  color: var(--primary); width: 22px; height: 22px; }
.perk b { font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em; margin-top: 2px; }

/* ---- hotel & room cards --------------------------------------------------------- */
.hotel-card { border-radius: 24px; border-color: var(--line); box-shadow: var(--shadow-sm); grid-template-rows: 280px auto; transition: transform .25s, box-shadow .25s; }
.hotel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.hotel-card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hotel-card:hover img { transform: scale(1.05); }
.hotel-card > :first-child { overflow: hidden; }
.hotel-card .body { padding: 22px 24px 24px; }
.hotel-card h3 { font-size: 1.45rem; }
.room-card { border-radius: 22px; border-color: var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.room-card .media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.room-card:hover .media img { transform: scale(1.06); }
.room-card .body { padding: 18px 20px 20px; }
.room-card .name { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.015em; }
.room-card .from b { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); }
.amen > span { background: var(--surface-2); border: 1px solid var(--line); font-weight: 550; }
.amen > span span { padding: 0; border: 0; background: none; }

/* ---- results & booking ------------------------------------------------------------ */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.offer { border-radius: 24px; border-color: var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.offer:hover { box-shadow: var(--shadow); }
.offer .body { padding: 24px 26px; }
.plan { border-top-color: color-mix(in srgb, var(--line) 80%, transparent); padding: 16px 0; }
.plan .price b { font-size: 1.35rem; }
.stickybar { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 -12px 30px -18px rgba(16, 24, 40, .35); }
.summary .due { background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 50%, var(--surface))); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 14px; padding: 12px 14px; }
.step-title .n { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 14px -6px var(--primary); }
.stay-box { border-radius: 16px; background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--primary-soft) 45%, var(--surface-2))); }
.status-steps .st.done .c { background: linear-gradient(135deg, var(--green), color-mix(in srgb, var(--green) 70%, #6ee7a8)); box-shadow: 0 6px 14px -6px var(--green); }
.site-footer { background: var(--surface); margin-top: 72px; }

/* ---- back office ------------------------------------------------------------------ */
.sidebar { background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 92%, var(--primary-soft)) 100%); border-right-color: var(--line); padding: 18px 14px; }
.sidebar .brand { font-size: 1.1rem; padding: 4px 8px 18px; }
.nav-label { font-size: .64rem; letter-spacing: .14em; padding: 18px 12px 6px; opacity: .8; }
.nav a { position: relative; padding: 9px 12px; border-radius: 12px; font-weight: 580; transition: background .15s, color .15s; }
.nav a .i { opacity: .85; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-ink);
  box-shadow: 0 10px 22px -12px var(--primary); }
.nav a.active .i { opacity: 1; }
.topbar { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: saturate(1.6) blur(14px); height: 64px; }
.quick-find .input { border-radius: 999px; background-color: var(--surface-2); border-color: transparent; box-shadow: none; }
.quick-find .input:focus { background-color: var(--surface); border-color: var(--primary); box-shadow: var(--ring); }
.hotel-switch .select { border-radius: 999px; box-shadow: none; background-color: var(--surface-2); border-color: transparent; }
.avatar { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 14px -6px var(--primary); }
.content { padding: 30px 32px 40px; }
.page-head h1 { font-size: 1.75rem; letter-spacing: -.03em; }
.tabs { gap: 6px; border-bottom: 0; background: var(--surface-2); padding: 5px; border-radius: 14px; width: max-content; max-width: 100%; }
.tabs a { border-bottom: 0; border-radius: 10px; padding: 8px 14px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tabs a .n { background: var(--surface-3); }
.tabs a.on .n { background: var(--primary-soft); color: var(--primary); }

.kpis { gap: 18px; }
.kpi { position: relative; overflow: hidden; border-radius: 20px; border-color: var(--line); box-shadow: var(--shadow-sm); padding: 20px; transition: transform .2s, box-shadow .2s; }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%); pointer-events: none; }
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.kpi .ic { width: 46px; height: 46px; border-radius: 14px; }
.kpi .v { font-size: 1.75rem; font-weight: 800; }
.bars { gap: 8px; }
.bars .bar i { border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--primary-2), var(--primary)); box-shadow: 0 6px 14px -10px var(--primary); }
.hbar .track i { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.tile { border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; border-left-width: 5px; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hk-pill { border-radius: 8px; }
.timeline li:first-child::before { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.login-art { background: radial-gradient(900px 600px at 20% 10%, #a3360a, #2a0e02 70%); }
.login-art img { opacity: .4; mix-blend-mode: luminosity; }
.login-art h2 { font-size: 2.6rem; line-height: 1.05; }
.demo-box { border-radius: 14px; border: 1px dashed var(--line-strong); }
.doc { border-radius: 16px; }
.dp { border-radius: 18px; }
.dp-day.on { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .hero .container { padding-top: 70px; }
  .content { padding: 20px 16px 32px; }
  .tabs { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.dash > .card + .card { margin-top: 0; }
.searchbar .sf { padding: 8px 12px; }
@media (max-width: 600px) { .searchbar .dp-input { background-image: none; padding-right: 0; font-size: .92rem; } }

/* ---- table QR codes (screen and print: one card per table) ---- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.qr-card { background: #fff; color: #1c1917; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 12px; text-align: center;
  break-inside: avoid; page-break-inside: avoid; }
.qr-card .qr-brand { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #78716c; font-weight: 700; }
.qr-card .qr-table { font-size: 1.6rem; font-weight: 800; margin: 2px 0 8px; letter-spacing: -.01em; }
.qr-card .qr-img svg { width: 170px; height: 170px; display: block; margin: 0 auto; }
.qr-card .qr-hint { font-weight: 650; margin-top: 8px; }
.qr-card .qr-zone { margin: 2px 0 6px; word-break: break-all; }
@media print {
  .qr-grid { grid-template-columns: repeat(3, 1fr); gap: 10mm; }
  .qr-card { border: 1px dashed #a8a29e; border-radius: 0; }
}

/* ---- menu pictures and videos ---- */
.item-cell { display: flex; align-items: center; gap: 12px; }
.thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.media-edit { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.media-pic { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.media-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-none { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.media-url { flex: 1; min-width: 240px; }
@media (max-width: 760px) { .media-edit { grid-template-columns: 1fr; } }
