/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============ Design tokens ============ */
:root {
  /* palette — cool neutral ground, charcoal ink, one gold accent */
  --ink: #111316;
  --ink-2: #2A2E33;
  --muted: #565C63;          /* 6.6:1 on white */
  --faint: #8A9097;          /* decorative only, never body text */
  --line: #E2E3E0;
  --line-strong: #C9CBC7;
  --paper: #F5F5F3;
  --surface: #FFFFFF;
  --night: #0E1012;          /* inverse sections */
  --on-night: #F2F2EF;
  --on-night-muted: #B4B8BC; /* 9:1 on night */
  --accent: #CFA033;         /* vàng gold, chữ tối trên nền này: 9.7:1 */
  --accent-soft: #FAF3DF;
  --accent-on-night: #E9C86E;
  --success: #1F6B4A;
  --success-soft: #E6F1EB;
  --warning: #8A5A00;
  --warning-soft: #FBF1DE;
  --danger: #A8322A;
  --danger-soft: #FBEAE8;
  --focus: #1F5FBF;

  /* type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: 1.75rem;     /* 28 */
  --fs-2xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-hero: clamp(2.75rem, 1.4rem + 5.4vw, 6rem);

  /* spacing — 4/8 rhythm */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgba(17,19,22,.06), 0 4px 16px rgba(17,19,22,.06);
  --shadow-2: 0 8px 40px rgba(17,19,22,.14);

  --dur-1: 160ms; --dur-2: 240ms; --dur-3: 360ms;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in: cubic-bezier(.4,0,1,1);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius); }
.skip-link:focus { top: var(--s-2); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; font-size: var(--fs-base);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: currentColor; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn:disabled, .btn[aria-disabled="true"] { background: #E7E8E5; color: #6B7076; border-color: transparent; cursor: not-allowed; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { background: var(--ink-2); }
  .btn-accent:hover:not(:disabled) { background: #BC8E24; }
  .btn-ghost:hover:not(:disabled) { border-color: var(--ink); background: var(--paper); }
  .btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
  .btn-link:hover { text-decoration-thickness: 2px; }
}
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  --od-icon-size: 20px; transition: border-color var(--dur-1) var(--ease-out);
}
@media (hover: hover) { .icon-btn:hover { border-color: var(--ink); } }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: baseline; gap: var(--s-2); text-decoration: none; color: inherit; }
.brand-mark { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.brand-sub { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
  background: none; border: 0; color: inherit; --od-icon-size: 18px;
}
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (hover: hover) { .nav-link:hover { background: rgba(17,19,22,.06); } }
.nav-user { display: inline-flex; align-items: center; gap: var(--s-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; }
.site-header.is-home { position: fixed; left: 0; right: 0; }
.site-header.is-overlay { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.site-header.is-overlay .avatar { background: #fff; color: var(--ink); }
@media (hover: hover) { .site-header.is-overlay .nav-link:hover { background: rgba(255,255,255,.14); } }
.site-header.is-overlay .btn-login { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
@media (hover: hover) { .site-header.is-overlay .btn-login:hover { background: #fff; color: var(--ink); } }
@media (max-width: 767px) {
  .nav .nav-link.hide-sm { display: none; }
  .brand-sub { display: none; }
}

/* ============ Footer ============ */
.site-footer { background: var(--night); color: var(--on-night); margin-top: var(--s-9); }
.site-footer .container { padding-block: var(--s-8) var(--s-6); display: grid; gap: var(--s-6); grid-template-columns: 2fr 1fr 1fr; }
.site-footer p, .site-footer li { color: var(--on-night-muted); font-size: var(--fs-sm); }
.site-footer h3 { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--s-3); color: var(--on-night); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); }
.site-footer button { background: none; border: 0; padding: var(--s-1) 0; color: var(--on-night-muted); text-align: left; min-height: 32px; }
@media (hover: hover) { .site-footer button:hover { color: var(--on-night); } }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s-5); font-size: var(--fs-xs); }
@media (max-width: 767px) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ============ Search bar ============ */
.searchbar {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr auto; align-items: stretch;
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.searchbar .seg { position: relative; display: grid; gap: 2px; padding: var(--s-3) var(--s-5); min-height: 72px; align-content: center; border-right: 1px solid var(--line); min-width: 0; }
.searchbar .seg:nth-last-child(2) { border-right: 0; }
.seg-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.seg-input { border: 0; padding: 0; background: none; font-size: var(--fs-base); font-weight: 500; width: 100%; min-height: 28px; text-align: left; }
.seg-input::placeholder { color: var(--muted); font-weight: 400; }
.seg-input:focus { outline: none; }
.seg:focus-within { background: var(--paper); }
.seg:first-child:focus-within { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.searchbar .submit { margin: var(--s-2); min-height: 56px; padding: 0 var(--s-6); --od-icon-size: 20px; }
.seg-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.searchbar.compact { box-shadow: none; border-color: var(--line-strong); }
.searchbar.compact .seg { min-height: 60px; padding-block: var(--s-2); }
.searchbar.compact .submit { min-height: 44px; }
@media (max-width: 1023px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .seg { border-right: 0; border-bottom: 1px solid var(--line); }
  .searchbar .seg:first-child { grid-column: 1 / -1; }
  .searchbar .seg:nth-child(2) { border-right: 1px solid var(--line); }
  .searchbar .seg:nth-child(4) { grid-column: 1 / -1; border-bottom: 0; }
  .searchbar .submit { grid-column: 1 / -1; }
  .seg:first-child:focus-within { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* Guest stepper */
.stepper { display: inline-flex; align-items: center; gap: var(--s-3); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: inline-grid; place-items: center; --od-icon-size: 16px; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .stepper button:hover:not(:disabled) { border-color: var(--ink); } }

/* ============ Date picker popover ============ */
.popover {
  position: absolute; z-index: 30; top: calc(100% + var(--s-2)); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: var(--s-5); color: var(--ink);
  animation: pop-in var(--dur-2) var(--ease-out);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.popover-dates { left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); animation-name: pop-in-c; }
@keyframes pop-in-c { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translateX(-50%); } }
.cal { display: grid; gap: var(--s-4); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cal-head .hint { font-size: var(--fs-sm); color: var(--muted); }
.cal-months { display: grid; grid-template-columns: repeat(var(--cal-cols, 2), minmax(0, 1fr)); gap: var(--s-6); }
.cal-month h4 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; text-align: center; margin-bottom: var(--s-3); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.cal-dow { font-size: var(--fs-xs); color: var(--muted); text-align: center; padding-bottom: var(--s-2); font-weight: 500; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 40px; border: 0; background: none; border-radius: 50%;
  font-size: var(--fs-sm); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.cal-day[aria-disabled="true"] { color: #A3A8AD; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-past[aria-disabled="true"] { text-decoration: none; }
.cal-day.in-range { background: var(--paper); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--ink); color: #fff; border-radius: 50%; text-decoration: none; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
@media (hover: hover) { .cal-day:not([aria-disabled="true"]):not(.is-start):not(.is-end):hover { background: #E9EAE7; border-radius: 50%; } }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-sel { background: var(--ink); }
.lg-off { background: #fff; border: 1px solid #A3A8AD; position: relative; }
.lg-off::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; border-top: 1px solid #A3A8AD; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
@media (max-width: 767px) {
  .popover-dates { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 86vh; overflow-y: auto; animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .cal-months { --cal-cols: 1 !important; }
  .cal-months .cal-month + .cal-month { display: none; }
}

/* ============ Home ============ */
.hero { position: relative; min-height: min(92vh, 880px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,10,12,.55) 0%, rgba(8,10,12,.12) 35%, rgba(8,10,12,.25) 60%, rgba(8,10,12,.78) 100%); }
.hero .container { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-8); display: grid; gap: var(--s-6); }
.hero h1 { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 500; line-height: 1.02; max-width: 14ch; letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lede { font-size: var(--fs-md); max-width: 46ch; color: rgba(255,255,255,.9); }
.hero .eyebrow { color: var(--accent-on-night); }

.section { padding-block: var(--s-9) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); }
.section-head h2 { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.05; max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: var(--s-3); }

/* Featured mosaic: first card spans 2 rows */
.featured { display: grid; gap: var(--s-5); grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: auto; }
.featured > .card:first-child { grid-row: span 2; }
.featured > .card:first-child .card-media img { aspect-ratio: auto; height: 100%; min-height: 520px; }
.featured > .card:first-child .card-media { height: 100%; }
.featured > .card:first-child { grid-template-rows: 1fr auto; }
.featured > .card:first-child .card-name { font-size: var(--fs-2xl); }
@media (max-width: 1023px) { .featured { grid-template-columns: 1fr 1fr; } .featured > .card:first-child { grid-column: 1 / -1; grid-row: auto; } .featured > .card:first-child .card-media img { min-height: 0; aspect-ratio: 16/10; } }
@media (max-width: 639px) { .featured { grid-template-columns: 1fr; } }

/* Destination rail */
.dest-rail { --od-gap: var(--s-4); --od-rail-pad: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-bottom: var(--s-2); }
.dest {
  width: clamp(220px, 24vw, 300px); position: relative; border: 0; padding: 0; background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); overflow: hidden; text-align: left; display: block;
}
.dest img { --od-ratio: 3 / 4; transition: transform var(--dur-3) var(--ease-out); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,10,12,.75)); }
.dest-label { position: absolute; left: var(--s-5); right: var(--s-5); bottom: var(--s-5); z-index: 1; display: grid; gap: 2px; }
.dest-label strong { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; display: block; line-height: 1.1; }
.dest-label span { display: block; font-size: var(--fs-sm); color: rgba(255,255,255,.88); }
@media (hover: hover) { .dest:hover img { transform: scale(1.04); } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.step { display: grid; gap: var(--s-3); }
.step-num { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--accent); line-height: 1; display: block; }
.step h3 { font-size: var(--fs-md); font-weight: 600; display: block; }
.step p { color: var(--muted); display: block; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: var(--s-5); } }

.band { background: var(--night); color: var(--on-night); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: end; }
.band h2 { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.05; }
.band p { color: var(--on-night-muted); margin-top: var(--s-3); max-width: 48ch; }
.band .eyebrow { color: var(--accent-on-night); }
.band .btn { background: #fff; color: var(--ink); justify-self: start; }
@media (hover: hover) { .band .btn:hover { background: #E9EAE7; } }
@media (max-width: 767px) { .band { grid-template-columns: 1fr; } }

/* ============ Unit card ============ */
.card { display: grid; grid-template-rows: auto 1fr; gap: var(--s-4); text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.card-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #E7E8E5; }
.card-media img { --od-ratio: 4 / 3; transition: transform var(--dur-3) var(--ease-out); }
.card-media .no-photo { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); --od-icon-size: 32px; gap: var(--s-2); align-content: center; }
.card-badge { position: absolute; top: var(--s-3); left: var(--s-3); background: rgba(255,255,255,.95); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; padding: var(--s-1) var(--s-3); border-radius: 999px; }
.card-body { display: grid; gap: var(--s-1); align-content: start; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.card-area { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rating { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; --od-icon-size: 14px; }
.rating .count { color: var(--muted); font-weight: 400; }
.card-name { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.15; }
.card-meta { font-size: var(--fs-sm); color: var(--muted); }
.card-price { margin-top: var(--s-2); display: grid; gap: 0; }
.card-price .from { font-size: var(--fs-base); }
.card-price .from strong { font-size: var(--fs-md); font-weight: 600; }
.card-price .total { font-size: var(--fs-sm); color: var(--muted); }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.03); } .card:hover .card-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }

/* skeleton */
.skel { background: linear-gradient(90deg, #EDEEEB 0%, #F6F6F4 50%, #EDEEEB 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel-card { display: grid; gap: var(--s-3); }
.skel-card .skel:first-child { aspect-ratio: 4/3; border-radius: var(--radius-lg); }
.skel-line { height: 14px; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; }
.skel-title { height: 28px; width: 70%; }

/* State blocks */
.state { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-8) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); --od-icon-size: 32px; }
.state h3 { font-family: var(--font-display); font-size: var(--fs-xl); }
.state p { color: var(--muted); max-width: 44ch; }
.state .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-2); }
.state.is-error { border-color: #E6B9B4; background: var(--danger-soft); }

/* ============ Search page ============ */
.search-top { position: sticky; top: var(--header-h); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: var(--s-4); }
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-7); padding-top: var(--s-6); }
.filters { position: sticky; top: calc(var(--header-h) + 120px); align-self: start; display: grid; gap: var(--s-6); max-height: calc(100vh - var(--header-h) - 140px); overflow-y: auto; padding-right: var(--s-2); }
.filter-group { display: grid; gap: var(--s-3); border: 0; padding: 0; margin: 0; }
.filter-group legend, .filter-title { font-weight: 600; font-size: var(--fs-sm); letter-spacing: .02em; padding: 0; margin-bottom: var(--s-3); }
.filter-sub { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: var(--s-2); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.check { display: flex; align-items: center; gap: var(--s-3); min-height: 40px; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.results-head h1 { font-family: var(--font-display); font-size: var(--fs-2xl); }
.results-head .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-1); }
.results-tools { display: flex; align-items: center; gap: var(--s-3); }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
@media (min-width: 1440px) { .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.filter-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-2) 0 var(--s-3); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-sm); --od-icon-size: 14px; }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-8); }
.pager button { min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: none; font-weight: 600; --od-icon-size: 18px; display: inline-grid; place-items: center; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; }
.pager button:disabled { color: #A3A8AD; cursor: not-allowed; }
@media (hover: hover) { .pager button:not([aria-current="page"]):not(:disabled):hover { border-color: var(--line-strong); } }
@media (max-width: 1023px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters-aside { display: none; }
  .filter-toggle { display: inline-flex; }
  .search-top { position: static; }
}
@media (max-width: 639px) { .results-grid { grid-template-columns: 1fr; } }

/* field controls */
.field { display: grid; gap: var(--s-2); }
.field label, .label { font-size: var(--fs-sm); font-weight: 600; display: block; }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); font-size: var(--fs-base);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23111316' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,95,191,.25); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-help { font-size: var(--fs-xs); color: var(--muted); display: block; }
.field-error { font-size: var(--fs-sm); color: var(--danger); font-weight: 500; display: flex; gap: var(--s-2); align-items: flex-start; --od-icon-size: 16px; }
.field-error .od-icon { margin-top: 3px; }
.sort-select { min-height: 44px; width: auto; }

/* ============ Dialogs ============ */
dialog.dlg {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden;
}
dialog.dlg[open] { display: flex; flex-direction: column; animation: dlg-in var(--dur-2) var(--ease-out); }
dialog.dlg.is-closing { animation: dlg-out 170ms var(--ease-in) forwards; }
dialog.dlg::backdrop { background: rgba(10,12,14,.55); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(8px); } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-family: var(--font-display); font-size: var(--fs-xl); }
.dlg-body { padding: var(--s-5); overflow-y: auto; display: grid; gap: var(--s-5); }
.dlg-foot { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; justify-content: flex-end; gap: var(--s-3); border-top: 1px solid var(--line); flex-wrap: wrap; }
dialog.dlg-wide { width: min(1100px, calc(100vw - 32px)); }
dialog.dlg-sheet { width: min(420px, 100vw); }
@media (max-width: 639px) {
  dialog.dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .dlg-foot .btn { flex: 1 1 auto; }
}

/* ============ Unit detail ============ */
.unit-head { padding-top: var(--s-6); display: grid; gap: var(--s-3); }
.back-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; background: none; border: 0; padding: 0; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); --od-icon-size: 16px; justify-self: start; }
@media (hover: hover) { .back-link:hover { color: var(--ink); } }
.unit-title { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.04; max-width: 22ch; }
.unit-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); color: var(--muted); font-size: var(--fs-sm); --od-icon-size: 16px; }
.unit-sub .rating { color: var(--ink); }
.unit-sub > span { display: inline-flex; align-items: center; gap: var(--s-1); }
.gallery { margin-top: var(--s-5); display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-2); height: clamp(340px, 46vw, 600px); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; background: #E7E8E5; overflow: hidden; display: block; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-3) var(--ease-out), filter var(--dur-2) var(--ease-out); }
@media (hover: hover) { .gallery button:hover img { filter: brightness(.92); } }
.gallery .all { position: absolute; right: var(--s-4); bottom: var(--s-4); background: var(--surface); color: var(--ink); min-height: 40px; padding: 0 var(--s-4); border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm); border: 1px solid var(--ink); display: inline-flex; align-items: center; gap: var(--s-2); --od-icon-size: 16px; }
.gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.count-1 button:first-child { grid-row: auto; }
.gallery.count-2, .gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery-rail { display: none; }
@media (max-width: 767px) {
  .gallery { display: none; }
  .gallery-rail { display: flex; margin-top: var(--s-4); --od-gap: var(--s-2); --od-rail-pad: var(--gutter); margin-inline: calc(var(--gutter) * -1); }
  .gallery-rail button { width: 86vw; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: #E7E8E5; }
  .gallery-rail img { --od-ratio: 4/3; }
}
.photo-list { display: grid; gap: var(--s-4); }
.photo-list figure { margin: 0; display: grid; gap: var(--s-2); }
.photo-list figcaption { font-size: var(--fs-sm); color: var(--muted); }

.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-8); margin-top: var(--s-7); align-items: start; }
.unit-main { display: grid; gap: var(--s-7); }
.unit-main > section { display: grid; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.unit-main > section:first-child { border-top: 0; padding-top: 0; }
.unit-main h2 { font-family: var(--font-display); font-size: var(--fs-2xl); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.fact { --od-gap: 4px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); }
.fact strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; line-height: 1; }
.fact span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 639px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.desc { font-size: var(--fs-md); line-height: 1.75; max-width: 68ch; white-space: pre-line; }
.amen-group { display: grid; gap: var(--s-3); }
.amen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-6); list-style: none; padding: 0; margin: 0; }
.amen-grid li { display: flex; align-items: center; gap: var(--s-3); min-height: 32px; --od-icon-size: 20px; }
.amen-grid li .od-icon { color: var(--accent); }
@media (max-width: 479px) { .amen-grid { grid-template-columns: 1fr; } }
.rules-list { display: grid; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.rules-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.rules-list li span:last-child { font-weight: 600; white-space: nowrap; }

.review-summary { display: flex; align-items: baseline; gap: var(--s-4); }
.review-summary .big { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.review { display: grid; gap: var(--s-2); align-content: start; }
.review-head { display: flex; align-items: center; gap: var(--s-3); }
.review-head .who { display: grid; }
.review-head .who strong, .review-head .who span { display: block; }
.review-head .who span { font-size: var(--fs-xs); color: var(--muted); }
.stars { display: inline-flex; gap: 2px; --od-icon-size: 14px; color: var(--accent); }
.review-reply { margin-top: var(--s-2); padding: var(--s-3) var(--s-4); background: var(--paper); border-radius: var(--radius); font-size: var(--fs-sm); display: grid; gap: var(--s-1); }
.review-reply strong { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 767px) { .reviews { grid-template-columns: 1fr; } }

.book-panel { position: sticky; top: calc(var(--header-h) + var(--s-5)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow-1); display: grid; gap: var(--s-4); background: var(--surface); }
.book-price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.book-price strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; }
.book-fields { border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; }
.book-fields > * { padding: var(--s-3) var(--s-4); min-height: 64px; display: grid; gap: 2px; align-content: center; text-align: left; background: none; border: 0; }
.book-fields > button:first-child { border-right: 1px solid var(--line-strong); }
.book-fields .guests { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; align-items: center; }
.book-fields .guests > div { display: grid; gap: 2px; }
.book-fields .k { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: .04em; display: block; }
.book-fields .v { font-weight: 500; display: block; }
.breakdown { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.breakdown .row { display: flex; justify-content: space-between; gap: var(--s-3); }
.breakdown .row span:first-child { color: var(--muted); }
.breakdown .total { border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-1); font-size: var(--fs-base); font-weight: 600; }
.breakdown .total span:first-child { color: var(--ink); }
.notice { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-size: var(--fs-sm); align-items: flex-start; --od-icon-size: 18px; }
.notice .od-icon { margin-top: 2px; }
.notice > div { display: grid; gap: var(--s-1); }
.notice-info { background: var(--paper); }
.notice-warn { background: var(--warning-soft); color: #5E3D00; }
.notice-error { background: var(--danger-soft); color: #7A1F18; }
.notice-success { background: var(--success-soft); color: #134531; }
.live { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.live.is-off::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.avail-cal { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
.mobile-book { display: none; }
@media (max-width: 1023px) {
  .unit-layout { grid-template-columns: 1fr; gap: var(--s-7); }
  .book-panel { position: static; }
  .mobile-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; gap: var(--s-4); }
  .mobile-book .od-stat strong { font-weight: 600; }
  .mobile-book .od-stat span { font-size: var(--fs-xs); color: var(--muted); }
  body.has-mobile-book { padding-bottom: 88px; }
}

/* ============ Booking / voucher / account ============ */
.page-narrow { max-width: 1080px; margin-inline: auto; }
.page-title { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.05; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-7); margin-top: var(--s-6); align-items: start; }
@media (max-width: 1023px) { .booking-layout { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6); display: grid; gap: var(--s-5); background: var(--surface); }
.panel h2 { font-family: var(--font-display); font-size: var(--fs-xl); }
.countdown { display: grid; gap: var(--s-2); padding: var(--s-6); border-radius: var(--radius-lg); background: var(--night); color: var(--on-night); }
.countdown .label { color: var(--on-night-muted); font-weight: 500; }
.countdown .clock { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.countdown .note { font-size: var(--fs-sm); color: var(--on-night-muted); }
.countdown.is-urgent .clock { color: #F2B8A8; }
.kv { display: grid; gap: 0; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); font-size: var(--fs-sm); }
.kv-row .v { font-weight: 600; text-align: right; display: flex; align-items: center; gap: var(--s-2); }
.kv-row .v.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; font-size: var(--fs-md); }
.copy-btn { min-height: 36px; padding: 0 var(--s-3); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; gap: var(--s-1); --od-icon-size: 14px; }
@media (hover: hover) { .copy-btn:hover { border-color: var(--ink); } }
.summary-card { display: grid; gap: var(--s-4); }
.summary-card .thumb { border-radius: var(--radius); overflow: hidden; }
.summary-card .thumb img { --od-ratio: 16/10; }
.summary-card h3 { font-family: var(--font-display); font-size: var(--fs-xl); }
.status { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 28px; padding: 0 var(--s-3); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; --od-icon-size: 14px; }
.status-HOLD { background: var(--warning-soft); color: #6B4500; }
.status-CONFIRMED, .status-CHECKED_IN { background: var(--success-soft); color: var(--success); }
.status-COMPLETED { background: #ECEDEA; color: var(--ink-2); }
.status-EXPIRED, .status-CANCELLED, .status-REFUNDED { background: var(--danger-soft); color: var(--danger); }

.voucher { border: 1px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.voucher-head { background: var(--night); color: var(--on-night); padding: var(--s-6); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.voucher-head .brand-mark { color: var(--on-night); }
.voucher-head .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xl); letter-spacing: .12em; }
.voucher-head .od-stat span:first-child { color: var(--on-night-muted); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.voucher-body { padding: var(--s-6); display: grid; gap: var(--s-6); }
.voucher-dates { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-5); align-items: center; padding: var(--s-5); background: var(--paper); border-radius: var(--radius); }
.voucher-dates .od-stat strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; }
.voucher-dates .od-stat span { font-size: var(--fs-sm); color: var(--muted); }
.voucher-dates .arrow { --od-icon-size: 24px; color: var(--muted); }
.voucher-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
.voucher-grid .od-stat span:first-child { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.voucher-grid .od-stat strong { font-size: var(--fs-md); font-weight: 600; }
@media (max-width: 639px) { .voucher-grid { grid-template-columns: 1fr 1fr; } .voucher-dates { grid-template-columns: 1fr; } .voucher-dates .arrow { display: none; } }

.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); margin-top: var(--s-6); align-items: start; }
.account-nav { display: grid; gap: var(--s-1); position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.account-nav button { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--radius); border: 0; background: none; text-align: left; font-weight: 500; --od-icon-size: 18px; }
.account-nav button[aria-current="page"] { background: var(--paper); font-weight: 600; }
@media (hover: hover) { .account-nav button:hover { background: var(--paper); } }
@media (max-width: 767px) {
  .account-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .account-nav { position: static; display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); gap: 0; }
  .account-nav button { border-radius: 0; flex: none; border-bottom: 2px solid transparent; }
  .account-nav button[aria-current="page"] { background: none; border-bottom-color: var(--ink); }
}
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.tabs button { min-height: 48px; padding: 0 var(--s-4); background: none; border: 0; border-bottom: 2px solid transparent; font-weight: 500; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.trip-list { display: grid; gap: var(--s-4); }
.trip {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: var(--s-5); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-3); background: var(--surface);
  text-align: left; width: 100%; transition: border-color var(--dur-1) var(--ease-out);
}
@media (hover: hover) { .trip:hover { border-color: var(--ink); } }
.trip-thumb { border-radius: var(--radius); overflow: hidden; }
.trip-thumb img { --od-ratio: 4/3; }
.trip-body { display: grid; gap: var(--s-1); }
.trip-body h3 { font-family: var(--font-display); font-size: var(--fs-xl); }
.trip-body .meta { font-size: var(--fs-sm); color: var(--muted); }
.trip-side { display: grid; justify-items: end; gap: var(--s-2); padding-right: var(--s-3); }
.trip-side .od-stat { justify-items: end; text-align: right; }
@media (max-width: 639px) {
  .trip { grid-template-columns: 96px minmax(0,1fr); }
  .trip-side { grid-column: 1 / -1; justify-items: start; padding: 0 var(--s-2) var(--s-2); grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .trip-side .od-stat { justify-items: start; text-align: left; }
}

.stars-input { display: flex; gap: var(--s-1); border: 0; padding: 0; margin: 0; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; color: #C3C6C2; --od-icon-size: 28px; border-radius: var(--radius); }
.stars-input label.on { color: var(--accent); }
.stars-input input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ============ Auth ============ */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-media { position: relative; overflow: hidden; background: var(--night); }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media .quote { position: absolute; left: var(--s-7); right: var(--s-7); bottom: var(--s-7); color: #fff; font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.15; text-shadow: 0 2px 24px rgba(0,0,0,.4); max-width: 18ch; }
.auth-form { display: grid; align-content: center; padding: var(--s-8) var(--gutter); }
.auth-form .inner { width: 100%; max-width: 420px; margin-inline: auto; display: grid; gap: var(--s-5); }
.auth-form h1 { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.05; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-wrap button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; --od-icon-size: 20px; color: var(--muted); }
.divider-text { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .auth { grid-template-columns: 1fr; } .auth-media { display: none; } }

/* partner */
.partner-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; padding-top: var(--s-7); }
.partner-hero img { border-radius: var(--radius-lg); --od-ratio: 4/5; }
.partner-points { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.partner-points li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); --od-icon-size: 22px; }
.partner-points li .od-icon { color: var(--accent); margin-top: 2px; }
.partner-points li div { display: grid; gap: 2px; }
.partner-points strong, .partner-points span { display: block; }
.partner-points span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 1023px) { .partner-hero { grid-template-columns: 1fr; } .partner-hero .media { order: -1; } .partner-hero img { --od-ratio: 16/10; } }

/* toast */
.toast-region { position: fixed; left: 50%; bottom: var(--s-6); transform: translateX(-50%); z-index: 90; display: grid; gap: var(--s-2); width: min(480px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius); box-shadow: var(--shadow-2); display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); animation: toast-in var(--dur-2) var(--ease-out); --od-icon-size: 18px; }
.toast.is-error { background: var(--danger); }
.toast.is-leaving { animation: toast-out 160ms var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
body.has-mobile-book .toast-region { bottom: 104px; }

/* page enter */
.view-enter { animation: view-in var(--dur-3) var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: view-in var(--dur-3) var(--ease-out) both; }
.stagger > *:nth-child(2) { animation-delay: 40ms; } .stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; } .stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(6) { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* print: voucher only */
@media print {
  .site-header, .site-footer, .no-print, .toast-region, .mobile-book { display: none !important; }
  body { background: #fff; }
  .voucher { border-color: #000; }
  .voucher-head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #000; }
  .voucher-head .brand-mark, .voucher-head .od-stat span:first-child { color: #000 !important; }
  main { padding: 0 !important; }
}

/* =====================================================================
 * Bổ sung của dự án sau audit Awwwards + taste + rà UX/UI (2026-11-24).
 * Không sửa các dòng gốc của thiết kế ở trên; mọi điều chỉnh nằm trong khối này.
 * ===================================================================== */
/* Thang chữ trang công khai: tiêu đề hero tối đa 2 dòng ở máy tính, mục không lớn hơn 48px */
:root { --fs-hero: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); --fs-3xl: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.hero h1 { max-width: 20ch; line-height: 1.06; }
/* Hộp chọn ngày của ô tìm kiếm phải nổi trên các mục bên dưới hero */
.hero { z-index: 5; }
/* Thẻ căn: không gạch chân tên khi trỏ vào, thay bằng khung quanh ảnh */
@media (hover: hover) {
  .card:hover .card-name { text-decoration: none; }
  .card .card-media { transition: box-shadow var(--dur-2) var(--ease-out); }
  .card:hover .card-media { box-shadow: 0 0 0 2px var(--ink); }
}
/* main nhận focus bằng mã khi chuyển trang: không vẽ khung quanh cả trang */
main:focus, main:focus-visible { outline: none; }
/* Bộ chọn số khách trong thẻ đặt phòng nằm ngang */
.book-fields .guests > div.stepper { display: inline-flex; }
/* Vùng bấm tối thiểu 44px trên màn hình cảm ứng */
@media (pointer: coarse) {
  .stepper button { width: 44px; height: 44px; }
  .site-footer li button, .site-footer li a { min-height: 44px; }
}
/* Chuyển động: mở đầu hero và hiện dần khi cuộn, chỉ bằng CSS */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero [data-sb] { animation: view-in 720ms var(--ease-out) both; }
  .hero h1 { animation-delay: 80ms; } .hero .lede { animation-delay: 160ms; } .hero [data-sb] { animation-delay: 240ms; }
  .hero-media { animation: hero-settle 1600ms var(--ease-out) both; }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--reveal-i, 0) * 60ms); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes hero-settle { from { transform: scale(1.05); } to { transform: none; } }

/* Một phông cho toàn bộ trang (2026-11-24): trang công khai và khu quản trị cùng dùng Be Vietnam Pro.
 * Tiêu đề chữ không chân cần đậm hơn, khít hơn và nhỏ hơn một bậc so với chữ có chân của bản gốc. */
:root {
  --font-display: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-3xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
}
body:not(.inner) :is(.hero h1, .section-head h2, .band h2, .auth-form h1, .page-title) { font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
body:not(.inner) :is(.card-name, .dest-label strong, .state h3, .dlg-head h2, .panel h2, .auth-media .quote) { font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
body:not(.inner) .card-name { font-size: var(--fs-md, 1.0625rem); }
body:not(.inner) .step-num { font-weight: 600; }
.brand-mark { font-weight: 700; letter-spacing: -0.03em; font-size: 1.75rem; }
/* Phông cục bộ không có kiểu nghiêng: phần nhấn của tiêu đề hero đứng thẳng, phân biệt bằng màu nhấn */
.hero h1 em { font-style: normal; font-weight: 600; color: var(--accent-on-night); }
body:not(.inner) .featured > .card:first-child .card-name { font-size: var(--fs-lg); }
/* Gợi ý điểm đến ở ô tìm kiếm: cùng kiểu hộp nổi với lịch chọn ngày */
.area-list { list-style: none; margin: 0; padding: var(--s-2); min-width: 260px; width: max(100%, 260px); max-height: 320px; overflow-y: auto; display: grid; gap: 2px; }
.area-list[hidden] { display: none; }
.area-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3); border-radius: var(--radius); font-size: var(--fs-base); font-weight: 500; cursor: pointer; --od-icon-size: 18px; }
.area-list li svg { color: var(--muted); flex: none; }
.area-list li[aria-selected="true"] { background: var(--paper, #f4f4f2); }
@media (hover: hover) { .area-list li:hover { background: var(--paper, #f4f4f2); } }
/* Điểm đánh giá trên thẻ căn: sao màu hổ phách, số điểm đậm hơn */
.rating { font-size: var(--fs-base); font-weight: 700; --od-icon-size: 16px; }
.rating svg { color: #E8A317; }
.rating .count { font-size: var(--fs-sm); }
.stars, .inner .stars { color: #E8A317; }
/* Hạn chế màu đen (2026-11-24, theo yêu cầu chủ dự án): các mảng nền đen chuyển sang nền sáng, nút chính dùng màu nhấn */
.btn-primary { background: var(--accent); }
@media (hover: hover) { .btn-primary:hover:not(:disabled) { background: #BC8E24; } }
.band { background: var(--accent-soft); color: var(--ink); grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-7); padding: clamp(28px, 4vw, 56px); }
.band h2 { max-width: 22ch; }
.band p { color: var(--muted); }
.band .eyebrow { color: var(--accent); }
.band .btn { background: var(--accent); color: #fff; justify-self: end; min-height: 52px; padding-inline: var(--s-6); }
@media (hover: hover) { .band .btn:hover { background: #BC8E24; } }
@media (max-width: 767px) { .band { grid-template-columns: 1fr; } .band .btn { justify-self: start; } }
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.site-footer p, .site-footer li, .site-footer button { color: var(--muted); }
.site-footer h3 { color: var(--ink); }
.site-footer .legal { border-top-color: var(--line); }
@media (hover: hover) { .site-footer button:hover { color: var(--ink); } }
.countdown { background: var(--accent-soft); color: var(--ink); }
.countdown .label, .countdown .note { color: var(--muted); }
.countdown.is-urgent .clock { color: var(--danger); }
.voucher-head { background: var(--accent-soft); color: var(--ink); }
.voucher-head .brand-mark { color: var(--ink); }
.voucher-head .od-stat span:first-child { color: var(--muted); }
.cal-day.is-start, .cal-day.is-end, .lg-sel, .pager button[aria-current="page"] { background: var(--accent); }
.avatar { background: var(--accent-soft); color: var(--accent); }
:root { --accent-hover: #BC8E24; --brand: var(--accent); }
.site-header:not(.is-overlay) .brand-mark, .site-footer .brand-mark { color: var(--brand); }
/* Nút kêu gọi hành động nổi hơn: chữ đậm, có bóng cùng tông màu nhấn, nhấc nhẹ khi trỏ vào */
.btn-accent, .btn-primary { font-weight: 700; letter-spacing: .005em; box-shadow: 0 1px 2px rgba(190, 138, 6, .28), 0 8px 18px -8px rgba(190, 138, 6, .6); }
.btn-accent:disabled, .btn-primary:disabled { box-shadow: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn-accent:hover:not(:disabled), .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(190, 138, 6, .3), 0 12px 22px -8px rgba(190, 138, 6, .65); } }
.site-header.is-overlay .btn-login { box-shadow: none; }

/* bổ sung của dự án: yêu thích + thông báo */
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-1) var(--ease-out); }
.fav svg { width: 18px; height: 18px; }
.fav[aria-pressed="true"] svg { fill: #D6334A; stroke: #D6334A; }
.fav:active { transform: scale(.92); }
.fav.fav-inline { position: static; width: auto; height: 36px; padding: 0 var(--s-3); display: inline-flex; gap: var(--s-2); border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; }
.nav-bell { position: relative; }
.bell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C8362E; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.notice-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; padding: var(--s-3) var(--s-4); border: 0; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.notice-row.is-unread { background: var(--accent-soft); }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; }
.notice-row.is-unread .notice-dot { background: var(--accent); }
.notice-main { display: grid; gap: 2px; }
.notice-main b { font-weight: 600; }
.notice-row:not(.is-unread) .notice-main b { font-weight: 500; }
.notice-main span, .notice-row time { color: var(--muted); font-size: var(--fs-sm); }
@media (hover: hover) { .notice-row:hover { background: var(--paper); } }
.icon-btn.nav-bell .bell-n { top: -4px; right: -8px; }

/* bổ sung của dự án: tên thương hiệu dài hơn, giữ một dòng ở đầu trang điện thoại */
.brand-mark { white-space: nowrap; }
.nav .nav-link { white-space: nowrap; }
@media (max-width: 479px) { .site-header .brand-mark { font-size: 1.125rem; letter-spacing: -0.02em; } .site-header .container { gap: var(--s-2); } .nav { gap: 0; min-width: 0; } .nav .nav-link { padding-inline: 8px; } }
/* bổ sung của dự án: liên kết pháp lý ở chân trang cùng kiểu với các mục khác */
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; padding: var(--s-1) 0; color: inherit; text-decoration: none; }
@media (hover: hover) { .site-footer li a:hover { color: var(--ink); text-decoration: underline; } }
@media (max-width: 379px) { .site-header .brand-mark { font-size: 1rem; } .nav .nav-link { padding-inline: 6px; font-size: 0.875rem; } }
