/* ==========================================================================
   Traveloka VN clone â€” design system + page styles
   1. Tokens        6. Search widget      11. Hotel detail
   2. Reset/base    7. Home sections      12. Booking flow
   3. Components    8. Results page       13. Confirmation / my bookings
   4. Header        9. Hotel card         14. Responsive
   5. Footer       10. (results filters)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* NestVN â€” hÆ°á»›ng A "Lantern / Editorial Resort" */
  --brand: #0f5c57;
  --brand-600: #0c4b47;
  --brand-700: #093b38;
  --brand-050: #eaf1ec;
  --brand-100: #d5e3db;
  --brass: #c29a5e;
  --brass-700: #a67f45;

  --ink: #182a25;
  --ink-2: #2e423c;
  --body: #4b5c56;
  --muted: #6e7b74;

  --line: #e6dfd2;
  --line-2: #f3eee6;
  --bg: #fbf8f3;
  --white: #fff;

  --ok: #2c7a5b;
  --ok-050: #e8f2ec;
  --danger: #b4472f;
  --danger-050: #f8eae5;
  --warn: #b98b3e;
  --star: #b98b3e;

  --r-xs: 3px;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --r-xl: 16px;

  --shadow-xs: 0 1px 2px rgba(24, 42, 37, .04);
  --shadow-sm: 0 2px 10px rgba(24, 42, 37, .05);
  --shadow: 0 8px 24px rgba(24, 42, 37, .07);
  --shadow-lg: 0 20px 48px rgba(24, 42, 37, .12);

  --header-h: 68px;
  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* 2. Reset / base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600;
  line-height: 1.22; letter-spacing: -.01em;
}
h1 { font-size: 32px; }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr-only {
  position: absolute; 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: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* 3. Components ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease, color .16s ease;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 50px; padding: 0 28px; font-size: 15.5px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-050); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--ink-2); border-color: var(--line); }
.btn--outline:hover { background: var(--line-2); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { background: #1b3d5c; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; flex: none; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 500;
}
.chip--brand { background: var(--brand-050); color: var(--brand-700); }
.chip--ok { background: var(--ok-050); color: #007c53; }
.chip--danger { background: var(--danger-050); color: #b53030; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-xs);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; text-transform: none;
}
.badge--promo { background: #fff1e6; color: #c2560a; }
.badge--new { background: var(--brand-050); color: var(--brand-700); }

.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 13px; height: 13px; }

.section { padding: 44px 0; }
.section--tight { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.link-more { color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link-more:hover { color: var(--brand-700); text-decoration: underline; }

.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* fields */
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: 12px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #a7b6c4; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfdae4; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field--error .input, .field--error .select { border-color: var(--danger); }
.field__err { display: none; font-size: 12px; color: var(--danger); font-weight: 500; }
.field--error .field__err { display: block; }
.hint { font-size: 12px; color: var(--muted); }

/* price */
.price { color: var(--ink); font-weight: 800; }
.price--lg { font-size: 20px; letter-spacing: -.02em; }
.price--strike { color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: line-through; }
.price-note { font-size: 12px; color: var(--muted); }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .2s ease;
}
.toast--ok { background: #0b6b4d; }
.toast--err { background: #a72e2e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(10, 26, 22, .55); padding: 20px; animation: fade .18s ease;
}
.modal__panel { background: #fff; border-radius: var(--r-lg); width: min(440px, 100%); padding: 26px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal__panel h3 { margin-bottom: 6px; }
.modal__actions { display: flex; gap: 10px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(15, 43, 70, .08); }
.header__inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--brand);
  display: grid; place-items: center; color: #f7f1e6;
}
.logo__mark svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.logo__text { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.logo__text span { color: var(--brass-700); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.main-nav a:hover { background: var(--line-2); color: var(--ink); }
.main-nav a.is-active { color: var(--brand); font-weight: 600; background: var(--brand-050); }
.main-nav .ico { width: 17px; height: 17px; color: var(--muted); }
.main-nav a.is-active .ico { color: var(--brand); }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__link { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.header__link:hover { background: var(--line-2); }
.header__link--icon { display: inline-flex; align-items: center; gap: 6px; }
.header__link--icon .ico { width: 17px; height: 17px; }
.header__auth { display: flex; align-items: center; gap: 8px; }
.btn--login { --btn-bg: #fff; --btn-fg: var(--brand); border-color: var(--brand); min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--login:hover { background: var(--brand-050); }
.btn--signup { min-height: 38px; padding: 0 16px; font-size: 14px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; color: var(--ink); place-items: center; }
.nav-toggle:hover { background: var(--line-2); }

.drawer { display: none; }
.drawer.is-open { display: block; }
.drawer__panel {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 210;
  background: #fff; padding: 18px; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slide-in .22s ease;
}
@keyframes slide-in { from { transform: translateX(24px); opacity: .6; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.drawer__close:hover { background: var(--line-2); }
.drawer__list a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.drawer__list a:hover { background: var(--line-2); }
.drawer__scrim { position: fixed; inset: 0; background: rgba(10, 26, 22, .48); z-index: 205; }

/* 5. Footer ---------------------------------------------------------------- */
.site-footer { background: #13221e; color: #c9c0b2; margin-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 34px; }
.footer__brand .logo__text { color: #f4efe4; }
.footer__brand .logo__text span { color: var(--brass); }
.footer__brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: #a8a294; max-width: 300px; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #e6dfd1;
}
.footer__social a:hover { background: var(--brass); color: #13221e; }
.footer__col h4 { color: #f4efe4; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { font-size: 13.5px; color: #bdb6a8; }
.footer__col a:hover { color: #f4efe4; text-decoration: underline; }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: #9b9486;
}
.footer__pay { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__pay span {
  padding: 4px 9px; border-radius: 3px; background: rgba(255, 255, 255, .07);
  font-size: 11.5px; font-weight: 600; color: #ded7c9;
}

/* 6. Search widget --------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: #12211d; overflow: visible; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 26, .76) 0%, rgba(11, 31, 26, .48) 45%, rgba(11, 31, 26, .84) 100%);
}
.hero__inner { padding: 54px 0 0; }
.hero h1, .hero__sub { max-width: 720px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22); color: #eaf5ff; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: #e7cda6; }
.hero__sub { margin-top: 12px; color: #d6e6f3; font-size: 15.5px; max-width: 560px; }
.hero__search { padding: 26px 0 34px; }

.search-card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 16px; position: relative; z-index: 2;
}
.search-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--body);
  transition: background .15s ease, color .15s ease;
}
.search-tab .ico { width: 17px; height: 17px; color: var(--muted); }
.search-tab:hover { background: var(--line-2); color: var(--ink); }
.search-tab.is-active { background: var(--brand-050); color: var(--brand-700); font-weight: 600; }
.search-tab.is-active .ico { color: var(--brand); }

.search-form { display: grid; grid-template-columns: 1.5fr 1.25fr 1.05fr auto; gap: 0; align-items: stretch; }
.sf {
  position: relative; padding: 6px 16px; min-width: 0;
  border-radius: 10px; cursor: pointer; text-align: left;
  transition: background .15s ease;
}
.sf:hover { background: var(--line-2); }
.sf + .sf { border-left: 1px solid var(--line); }
.sf:hover + .sf, .sf.is-focus + .sf, .sf + .sf:hover, .sf + .sf.is-focus { border-left-color: transparent; }
.sf__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.sf__label .ico { width: 14px; height: 14px; }
.sf__value {
  display: block; font-size: 15px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf__value.is-empty { color: #a4b4c3; font-weight: 500; }
.sf__sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf input.input--bare {
  width: 100%; border: 0; background: transparent; padding: 0; min-height: 0;
  font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 0;
}
.sf input.input--bare:focus { outline: none; box-shadow: none; }
.sf input.input--bare::placeholder { font-weight: 500; color: #a4b4c3; }

.sf--submit { display: flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.sf--submit .btn { width: 100%; min-height: 52px; border-radius: 10px; font-size: 15.5px; }
@media (min-width: 981px) { .sf--submit { padding: 0 0 0 14px; } .sf--submit .btn { min-width: 148px; } }

/* popover */
.pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  width: 340px; max-width: calc(100vw - 48px);
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 16px;
  animation: pop .16s ease;
}
.pop__title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pop__hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pop__list { max-height: min(48vh, 420px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; }
.pop__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: var(--r-sm); text-align: left;
}
.pop__item:hover, .pop__item.is-active { background: var(--brand-050); }
.pop__item .pin { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.pop__item strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.pop__item span { font-size: 12px; color: var(--muted); }
.pop--right { left: auto; right: 0; }
.pop--wide { width: 586px; }
.pop.pop--viewport { position: fixed; top: var(--pop-vh-top); left: var(--pop-vh-left); right: auto; bottom: auto; width: var(--pop-vh-width); max-height: var(--pop-vh-max); overflow-y: auto; overscroll-behavior: contain; z-index: 180; }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--line-2); }
.stepper-row .lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.stepper-row .sub { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--brand); background: #fff;
}
.stepper button:hover:not([disabled]) { background: var(--brand-050); border-color: var(--brand-100); }
.stepper button[disabled] { color: #c3d0dc; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* date grid inside popover */
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal { display: grid; gap: 4px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink); grid-column: 1 / -1; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { font-size: 10.5px; text-align: center; color: var(--muted); font-weight: 600; padding: 3px 0; }
.cal__day {
  height: 30px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  display: grid; place-items: center;
}
.cal__day:hover:not(:disabled) { background: var(--brand-050); color: var(--brand-700); }
.cal__day.is-muted { color: #c4d1dd; }
.cal__day:disabled { color: #dbe4ec; cursor: not-allowed; }
.cal__day.is-in { background: var(--brand-050); color: var(--brand-700); border-radius: 0; }
.cal__day.is-sel { background: var(--brand); color: #fff; font-weight: 700; }
.cal__day.is-start { border-radius: 6px 0 0 6px; }
.cal__day.is-end { border-radius: 0 6px 6px 0; }

/* date field popover */
.dp {
  position: fixed; z-index: 500; width: 302px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 12px;
  animation: pop .14s ease;
}
.dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp__head span { font-size: 13px; font-weight: 700; color: var(--ink); }
.dp__nav {
  width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px;
  display: grid; place-items: center; color: var(--ink-2); font-size: 16px; line-height: 1;
}
.dp__nav:hover { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-100); }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__dow { font-size: 10.5px; text-align: center; color: var(--muted); font-weight: 600; padding: 4px 0; }
.dp__day { height: 32px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); display: grid; place-items: center; }
.dp__day:hover:not(:disabled) { background: var(--brand-050); color: var(--brand-700); }
.dp__day:disabled { color: #dbe5ee; cursor: not-allowed; }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--brand-100); }
.dp__day.is-sel { background: var(--brand); color: #fff; font-weight: 700; box-shadow: none; }

/* 7. Home ------------------------------------------------------------------ */
.home-hero-cta { padding-bottom: 34px; }
.trust { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.trust--card {
  margin-top: 14px; padding: 14px 4px 2px; border-top: 1px solid var(--line);
  color: var(--muted);
}
.trust__logos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust__logos span { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #f4efe4; opacity: .9; padding: 4px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; }
.trust--card .trust__logos span { color: #8b9dae; border-color: var(--line); background: var(--line-2); opacity: 1; }

.promo-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.promo {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 158px;
  display: flex; align-items: flex-end; padding: 16px; color: #fff; scroll-snap-align: start;
  background: linear-gradient(135deg, #0d5c9c, #0194f3);
  isolation: isolate;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,26,0) 25%, rgba(11,31,26,.9)); }
.promo__tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--brand-700); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.promo h3 { color: #fff; font-size: 16px; line-height: 1.3; }
.promo p { font-size: 12.5px; color: #dbe9f4; margin-top: 4px; }

.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; padding: 14px; color: #fff; isolation: isolate;
}
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.city:hover img { transform: scale(1.06); }
.city::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,26,0) 30%, rgba(11,31,26,.9)); }
.city h3 { color: #fff; font-size: 16px; }
.city span { font-size: 12.5px; color: #dceaf5; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-xs); }
.perk__ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 12px;
}
.perk h3 { font-size: 15px; margin-bottom: 4px; }
.perk p { font-size: 13.5px; color: var(--muted); }

.app-banner {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px;
  background: linear-gradient(120deg, #f2eee2, #fbf8f3 58%, #eef3ec);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px;
}
.app-banner h2 { font-size: 24px; }
.app-banner p { margin-top: 8px; font-size: 14px; color: var(--body); max-width: 480px; }
.app-banner__btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  background: var(--ink); color: #fff; border-radius: 10px; font-size: 12.5px; line-height: 1.15;
}
.store-btn strong { display: block; font-size: 13.5px; font-weight: 700; }
.store-btn:hover { background: #163a5b; }
.qr {
  justify-self: end; width: 132px; height: 132px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 10px;
  font-size: 11px; color: var(--muted);
}

/* 8. Results --------------------------------------------------------------- */
.search-summary {
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 90;
}
.search-summary__inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; flex-wrap: wrap; }
.summary-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.summary-item .ico { width: 17px; height: 17px; color: var(--muted); }
.summary-item strong { color: var(--ink); font-weight: 600; }
.btn--change { margin-left: auto; --btn-bg: #fff; --btn-fg: var(--brand); border-color: var(--brand-100); min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--change:hover { background: var(--brand-050); }

.page-head { padding: 24px 0 6px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { width: 12px; height: 12px; }
.page-head h1 { font-size: 24px; }
.page-head__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }

.results { display: grid; grid-template-columns: 268px 1fr; gap: 22px; align-items: start; padding: 18px 0 40px; }
.filters { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-xs); position: sticky; top: calc(var(--header-h) + 66px); }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__head h2 { font-size: 15px; }
.filters__reset { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.fgroup { padding: 15px 0; border-top: 1px solid var(--line-2); }
.fgroup:first-of-type { border-top: 0; }
.fgroup > h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; cursor: pointer; }
.check span.count { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.price-range .input { min-height: 40px; font-size: 13px; padding: 8px 10px; }
.price-range span { color: var(--muted); font-size: 12px; }
.range-slider { width: 100%; margin-top: 12px; accent-color: var(--brand); }
.amenity-list { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; }
.score-bars { display: grid; gap: 10px; }
.score-bar { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--body); }
.score-bar__value { text-align: right; font-weight: 700; color: var(--ink); }
.score-bar__track { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.score-bar__fill { display: block; height: 100%; border-radius: 3px; background: var(--brand); }

.results__main { min-width: 0; }
.sortbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sortbar__count { font-size: 14px; color: var(--body); }
.sortbar__count strong { color: var(--ink); }
.sorttabs { display: flex; gap: 6px; margin-left: auto; background: #fff; padding: 4px; border-radius: 10px; box-shadow: var(--shadow-xs); }
.sorttab { padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--body); }
.sorttab:hover { background: var(--line-2); }
.sorttab.is-active { background: var(--brand); color: #fff; font-weight: 600; }

/* 9. Hotel card ------------------------------------------------------------ */
.hotel-card {
  display: grid; grid-template-columns: 252px 1fr; gap: 16px;
  background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-xs);
  border: 1px solid transparent; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.hotel-card:hover { box-shadow: var(--shadow); border-color: #dbe8f4; }
.hotel-card__media { position: relative; border-radius: 10px; overflow: hidden; background: var(--line-2); aspect-ratio: 4 / 3; }
.hotel-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hotel-card:hover .hotel-card__media img { transform: scale(1.04); }
.hotel-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-2);
  box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: color .15s ease, transform .15s ease;
}
.fav-btn:hover { transform: scale(1.06); color: var(--danger); }
.fav-btn.is-on { color: var(--danger); }
.fav-btn.is-on .ico { fill: currentColor; }
.hotel-card__body { display: grid; grid-template-columns: 1fr 208px; gap: 14px; min-width: 0; }
.hotel-card__info { min-width: 0; }
.hotel-card__title { display: flex; align-items: flex-start; gap: 8px; }
.hotel-card__title h3 { font-size: 17px; line-height: 1.35; }
.hotel-card__title h3 a:hover { color: var(--brand); }
.hotel-card__loc { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hotel-card__loc .ico { width: 14px; height: 14px; }
.hotel-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hotel-card__note { margin-top: 10px; font-size: 12.5px; color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.hotel-card__note .ico { width: 14px; height: 14px; }
.hotel-card__price { border-left: 1px dashed var(--line); padding-left: 14px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; }
.rating { display: flex; align-items: center; gap: 8px; }
.rating__box {
  min-width: 40px; height: 34px; border-radius: 3px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rating__box--great { background: #0f5c57; }
.rating__box--good { background: #2f6b62; }
.rating__box--ok { background: #6b7f76; }
.rating__text strong { display: block; font-size: 13px; color: var(--ink); }
.rating__text span { font-size: 11.5px; color: var(--muted); }
.hotel-card__price .amt { margin-top: 8px; }
.hotel-card__price .amt strong { display: block; }
.hotel-card__price .btn { min-height: 40px; font-size: 14px; padding: 0 16px; margin-top: 10px; width: 100%; }
.hotel-card__price .left { font-size: 11.5px; color: var(--danger); font-weight: 600; margin-top: 6px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 0 0; }
.pagination button {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.pagination button:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.pagination button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination button[disabled] { opacity: .45; cursor: not-allowed; }

.empty {
  background: #fff; border-radius: var(--r); padding: 48px 24px; text-align: center; box-shadow: var(--shadow-xs);
}
.empty__ico { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { margin-bottom: 6px; }
.empty p { font-size: 14px; color: var(--muted); max-width: 420px; margin: 0 auto 16px; }

.skeleton { background: #fff; border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 252px 1fr; gap: 16px; }
.sk { background: linear-gradient(90deg, #eef3f8 25%, #f7fafc 37%, #eef3f8 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
.sk--img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
.sk--line { height: 13px; margin-bottom: 10px; }
.sk--line.w40 { width: 40%; }
.sk--line.w70 { width: 70%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 10. (filters live in 8) -------------------------------------------------- */

/* 11. Hotel detail --------------------------------------------------------- */
.detail-head { padding: 20px 0 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 168px 168px; gap: 8px; border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.gallery__item { position: relative; overflow: hidden; background: var(--line-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:first-child { grid-row: span 2; }
.gallery__more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(11, 31, 26, .58); color: #fff; font-size: 14px; font-weight: 600;
}
.gallery__more:hover { background: rgba(11, 31, 26, .70); }

.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 0 6px; }
.detail-title h1 { font-size: 26px; }
.detail-title__meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.detail-title__meta .stars svg { width: 15px; height: 15px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.detail-rating { flex: none; text-align: right; }
.detail-rating .score { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.detail-rating .lbl { font-size: 13px; color: var(--ok); font-weight: 700; margin-top: 3px; }
.detail-rating .cnt { font-size: 12px; color: var(--muted); }

.detail-tabs { position: sticky; top: var(--header-h); z-index: 80; background: #fff; border-bottom: 1px solid var(--line); margin-top: 16px; }
.detail-tabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.detail-tabs__inner::-webkit-scrollbar { display: none; }
.detail-tabs a { padding: 14px 14px 12px; font-size: 14px; font-weight: 500; color: var(--body); border-bottom: 2px solid transparent; white-space: nowrap; }
.detail-tabs a:hover { color: var(--ink); }
.detail-tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; padding: 26px 0 40px; }
.detail-main > section { margin-bottom: 26px; }
.panel { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-xs); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.panel p { font-size: 14.5px; line-height: 1.7; }
.panel p + p { margin-top: 10px; }

.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.amenity { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.amenity .ico { width: 18px; height: 18px; color: var(--brand); flex: none; }
.amenity.is-off { color: #b6c4d1; }
.amenity.is-off .ico { color: #c9d6e2; }

.nearby { display: grid; gap: 10px; }
.nearby__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.nearby__row .pin { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.nearby__row strong { color: var(--ink); font-weight: 600; }
.nearby__row > span:not(.pin) { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.room {
  display: grid; grid-template-columns: 168px 1fr 176px; gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--line-2);
}
.room:first-of-type { border-top: 0; padding-top: 6px; }
.room__img { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line-2); }
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.room h3 { font-size: 15.5px; margin-bottom: 8px; }
.room__specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--body); }
.room__specs div { display: flex; align-items: center; gap: 5px; }
.room__specs .ico { width: 15px; height: 15px; color: var(--muted); }
.room__perks { margin-top: 10px; display: grid; gap: 5px; }
.room__perks div { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); font-weight: 500; }
.room__perks .ico { width: 14px; height: 14px; }
.room__price { text-align: right; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-left: 1px dashed var(--line); padding-left: 16px; }
.room__price .btn { margin-top: 6px; }
.room__price .left { font-size: 11.5px; color: var(--danger); font-weight: 600; }

.reviews-summary { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.reviews-summary__score { text-align: center; }
.reviews-summary__score .big { font-size: 46px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.reviews-summary__score .lbl { color: var(--ok); font-weight: 700; font-size: 14px; margin-top: 4px; }
.reviews-summary__score .cnt { color: var(--muted); font-size: 12px; margin-top: 2px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.review__head strong { display: block; font-size: 13.5px; color: var(--ink); }
.review__head span { font-size: 11.5px; color: var(--muted); }
.review__score { margin-left: auto; background: var(--ok-050); color: #00795c; font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 6px; }
.review p { font-size: 14px; color: var(--body); }

.policy-list { display: grid; gap: 12px; }
.policy-list div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; font-size: 13.5px; }
.policy-list dt, .policy-list strong { color: var(--ink); font-weight: 600; }

.book-box { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; position: sticky; top: calc(var(--header-h) + 66px); }
.book-box__price { display: flex; align-items: baseline; gap: 8px; }
.book-box__price .from { font-size: 12px; color: var(--muted); }
.book-box__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.book-box__row .field > span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.book-box__row input, .book-box__row select { min-height: 40px; font-size: 13px; padding: 8px 10px; }
.book-box .btn { margin-top: 12px; }
.book-box__note { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.book-box__note .ico { width: 14px; height: 14px; color: var(--ok); }

/* 12. Booking -------------------------------------------------------------- */
.steps { display: flex; align-items: center; gap: 10px; padding: 22px 0 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 7px; }
.step__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #fff; }
.step.is-done .step__n { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-active { color: var(--ink); font-weight: 600; }
.step.is-active .step__n { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps__sep { width: 34px; height: 1px; background: var(--line); }

.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding: 18px 0 44px; }
.form-card { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-xs); }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { font-size: 17px; margin-bottom: 4px; }
.form-card > p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .field--full { grid-column: 1 / -1; }
.required { color: var(--danger); }

.trip-note { background: var(--brand-050); border: 1px solid #d5ecfd; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #135b8a; display: flex; gap: 9px; margin-top: 14px; }
.trip-note .ico { width: 18px; height: 18px; flex: none; color: var(--brand); }

.pay-list { display: grid; gap: 10px; }
.pay {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.pay:hover { border-color: var(--brand-100); background: #fbfdff; }
.pay input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.pay.is-sel { border-color: var(--brand); background: var(--brand-050); }
.pay__txt strong { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.pay__txt span { font-size: 12.5px; color: var(--muted); }
.pay__logo { margin-left: auto; display: flex; gap: 5px; }
.pay__logo span { font-size: 10.5px; font-weight: 700; color: var(--ink-2); background: var(--line-2); padding: 3px 6px; border-radius: 4px; }

.summary-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-hotel { display: grid; grid-template-columns: 63px 1fr; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.summary-hotel img { width: 63px; height: 63px; border-radius: 8px; object-fit: cover; }
.summary-hotel h3 { font-size: 14px; line-height: 1.35; }
.summary-hotel .stars svg { width: 11px; height: 11px; }
.summary-hotel p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.summary-lines { padding: 12px 0; display: grid; gap: 8px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines span:first-child { color: var(--body); }
.summary-lines span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; }
.summary-total span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.summary-total strong { font-size: 21px; color: var(--brand); letter-spacing: -.02em; }
.coupon { display: flex; gap: 8px; margin: 8px 0 4px; }
.coupon .input { min-height: 40px; font-size: 13px; }
.coupon .btn { min-height: 40px; font-size: 13px; padding: 0 14px; --btn-bg: #fff; --btn-fg: var(--brand); border-color: var(--brand); }
.coupon .btn:hover { background: var(--brand-050); }
.terms { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--body); }
.terms input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.terms a { color: var(--brand); font-weight: 600; }
.secure-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--muted); justify-content: center; }
.secure-note .ico { width: 14px; height: 14px; color: var(--ok); }

/* 13. Confirmation / my bookings ------------------------------------------ */
.confirm-wrap { max-width: 760px; margin: 0 auto; padding: 36px 0 48px; }
.confirm-hero { text-align: center; margin-bottom: 22px; }
.confirm-hero__ico {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ok-050); color: var(--ok);
  display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 8px #f2fbf7;
}
.confirm-hero__ico .ico { width: 32px; height: 32px; stroke-width: 2.4; }
.confirm-hero h1 { font-size: 26px; }
.confirm-hero p { margin-top: 6px; color: var(--body); font-size: 14px; }
.code-box {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  background: #fff; border: 1px dashed var(--brand-100); border-radius: 10px; padding: 8px 14px;
}
.code-box span { font-size: 12px; color: var(--muted); }
.code-box strong { font-size: 17px; letter-spacing: .12em; color: var(--ink); }
.code-box button { color: var(--brand); font-size: 12px; font-weight: 600; }

.ticket { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.ticket__top { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 18px; border-bottom: 1px dashed var(--line); }
.ticket__top img { width: 112px; height: 90px; border-radius: 8px; object-fit: cover; }
.ticket__top h2 { font-size: 17px; line-height: 1.35; }
.ticket__top p { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.ticket__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px; }
.ticket__cell span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ticket__cell strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: #fafcfe; border-top: 1px solid var(--line-2); }
.ticket__foot .total span { font-size: 12px; color: var(--muted); display: block; }
.ticket__foot .total strong { font-size: 20px; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status--upcoming { background: var(--brand-050); color: var(--brand-700); }
.status--done { background: var(--line-2); color: var(--body); }
.status--cancelled { background: var(--danger-050); color: #b53030; }

.booking-item { background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-xs); display: grid; grid-template-columns: 148px 1fr auto; gap: 16px; align-items: center; }
.booking-item + .booking-item { margin-top: 12px; }
.booking-item__img { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.booking-item__img img { width: 100%; height: 100%; object-fit: cover; }
.booking-item h3 { font-size: 16px; }
.booking-item .meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }
.booking-item .meta span { display: inline-flex; align-items: center; gap: 5px; }
.booking-item .meta .ico { width: 14px; height: 14px; }
.booking-item__side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.booking-item__code { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.booking-item__side .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }

.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0; overflow-x: auto; }
.tabs-line button { padding: 11px 14px; font-size: 14px; font-weight: 500; color: var(--body); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-line button.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs-line button span { margin-left: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tabs-line button.is-active span { color: var(--brand); }

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header__link--hide { display: none; }
  .nav-toggle { display: grid; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: 236px 1fr; }
  .hotel-card__body { grid-template-columns: 1fr 180px; }
  .detail-layout { grid-template-columns: 1fr 300px; }
  .booking-layout { grid-template-columns: 1fr 320px; }
}

@media (max-width: 980px) {
  .search-form { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sf { border-left: 0 !important; background: var(--line-2); border-radius: 8px; padding: 8px 12px; }
  .sf:hover { background: #e9eff5; }
  .sf--submit { grid-column: 1 / -1; padding: 4px 0 0; }
  .sf--submit .btn { width: 100%; }
  .pop { left: 0; right: auto; width: min(340px, calc(100vw - 60px)); }
  .pop--right { left: auto; right: 0; }

  .results { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; margin-bottom: 8px; }
  .filter-toggle { display: inline-flex; }
  .detail-layout, .booking-layout { grid-template-columns: 1fr; }
  .book-box, .summary-card { position: static; }
  .gallery { grid-template-rows: 132px 132px; }
  .room { grid-template-columns: 132px 1fr; }
  .room__price {
    grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--line);
    padding: 12px 0 0; flex-direction: column; align-items: flex-start; gap: 4px;
    text-align: left; width: 100%;
  }
  .room__price .btn { margin-top: 8px; width: 100%; }
  .room__price .price-note { white-space: normal; }
  .app-banner { grid-template-columns: 1fr; }
  .qr { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .booking-item { grid-template-columns: 110px 1fr; }
  .booking-item__side { grid-column: 1 / -1; text-align: left; justify-items: start; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 24px; }
  .header__inner { gap: 10px; }
  .btn--signup { display: none; }
  .header__auth .btn--login { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .header__link--hide { display: none; }
  .logo__text { font-size: 18px; }
  .hero__inner { padding-top: 32px; }
  .hero h1 { font-size: 27px; }
  .hero__sub { font-size: 14px; }
  .search-card { padding: 12px; }
  .search-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
    mask-image: linear-gradient(90deg, #000 94%, transparent);
  }
  .trust--card { display: none; }
  .search-form { grid-template-columns: 1fr; }
  .sf { padding: 10px 12px; }
  .pop { position: fixed; left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; max-height: 90vh; overflow-y: auto; }
  .date-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .perks { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .hotel-card { grid-template-columns: 1fr; }
  .hotel-card__media { aspect-ratio: 16 / 10; }
  .hotel-card__body { grid-template-columns: 1fr; }
  .hotel-card__price {
    border-left: 0; border-top: 1px solid var(--line-2); padding: 12px 0 0;
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: 6px 12px; text-align: left;
  }
  .hotel-card__price .rating { grid-column: 1 / -1; }
  .hotel-card__price .amt { margin-top: 0; align-self: center; }
  .hotel-card__price .btn { width: auto; margin-top: 0; min-height: 42px; padding: 0 18px; }
  .hotel-card__price .left { grid-column: 1 / -1; margin-top: 2px; }
  .hotel-card .price--lg { white-space: nowrap; }
  .rating { margin-bottom: 2px; }
  .sortbar { gap: 8px; }
  .sorttabs { margin-left: 0; width: 100%; overflow: visible; flex-wrap: wrap; }
  .sorttab { flex: 0 0 auto; white-space: nowrap; padding: 7px 11px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 84px; }
  .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .detail-title { flex-direction: column; gap: 10px; }
  .detail-rating { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .detail-title h1 { font-size: 21px; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .reviews-summary { grid-template-columns: 1fr; gap: 14px; }
  .reviews-summary__score { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .ticket__grid { grid-template-columns: 1fr; }
  .ticket__top { grid-template-columns: 84px 1fr; }
  .ticket__top img { width: 84px; height: 78px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .policy-list div { grid-template-columns: 1fr; gap: 3px; }
  .booking-item { grid-template-columns: 88px 1fr; }
  .steps { font-size: 12px; }
  .steps__sep { width: 14px; }
}

.filter-toggle { display: none; }
@media (max-width: 980px) { .filter-toggle { display: inline-flex; } }

/* utilities */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.stack { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }

/* 15. NestVN — b? m?t editorial: vi?n m?nh thay bóng d? --------------------- */
.card, .panel, .filters, .form-card, .summary-card, .book-box, .ticket,
.booking-item, .perk, .empty, .search-card, .app-banner { border: 1px solid var(--line); }
.hotel-card { border-color: var(--line); box-shadow: none; }
.hotel-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.search-card { box-shadow: var(--shadow); }
.filters__head h2, .fgroup > h3 { font-family: var(--font); font-weight: 700; }
.badge--promo { background: #f6eddf; color: #8a6a2f; }
.price--lg { font-weight: 700; letter-spacing: -.02em; }
.hero__eyebrow { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); }

/* NestVN — ch? trên ?nh: tang d? tuong ph?n */
.promo h3, .promo p, .city h3, .city span, .hero h1, .hero__sub { text-shadow: 0 1px 14px rgba(8, 20, 16, .38); }
