/* ==========================================================================
   Penthouse Pick - luxury design system
   Ink + ivory + champagne gold. Cormorant Garamond for display, Inter for UI.
   ========================================================================== */

:root {
  --ink: #0d0e11;
  --ink-2: #15171c;
  --ink-3: #1e2128;
  --ivory: #f5efe3;
  --paper: #fbf9f4;
  --white: #ffffff;
  --line: #e7e0d2;
  --line-strong: #d6cdb9;
  --text: #1b1a17;
  --muted: #6b6458;
  --on-dark: #f3eee4;
  --on-dark-muted: #b4ad9f;

  --gold: #b8964e;
  --gold-light: #e2c98f;
  --gold-deep: #86692b;
  --gold-grad: linear-gradient(135deg, #ead7a6 0%, #cfae68 46%, #b08c46 100%);

  --success: #2c6b52;
  --danger: #a12b2b;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 22, 10, 0.05), 0 10px 28px rgba(28, 22, 10, 0.06);
  --shadow-md: 0 2px 4px rgba(28, 22, 10, 0.06), 0 18px 44px rgba(28, 22, 10, 0.11);
  --shadow-lg: 0 30px 80px rgba(8, 8, 10, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Legacy names still referenced by older markup */
  --bg: var(--paper);
  --surface: var(--white);
  --accent: var(--gold);
  --card-border: var(--line);
  --shadow: var(--shadow-md);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; }
.score, .range-value, .offer-price strong, .booking-price, .stay-name, .how li::before { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-grad); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------ buttons ---------------------------------- */

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 0; border-radius: var(--radius);
  background: var(--gold-grad);
  color: #1a1408;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 28px rgba(176, 140, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(176, 140, 70, 0.36), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:active:not(:disabled) { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(184, 150, 78, 0.08); }

/* ------------------------------- header ---------------------------------- */

.site-header { position: relative; z-index: 30; color: var(--on-dark); }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; }
.site-header--solid { background: var(--ink); border-bottom: 1px solid rgba(226, 201, 143, 0.18); }

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand a { text-decoration: none; color: inherit; }
.brand-mark { width: 26px; height: 26px; color: var(--gold-light); flex: none; }
.brand-name {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; white-space: nowrap;
}
.nav { margin-left: auto; display: flex; gap: 34px; }
.nav a {
  position: relative; padding: 6px 0; text-decoration: none;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold-light); transition: right 0.3s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.account { display: none; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius);
  color: var(--on-dark); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(94vh, 900px);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url('/images/hero.jpg') center 42% / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,14,17,0.72) 0%, rgba(13,14,17,0.28) 34%, rgba(13,14,17,0.55) 68%, rgba(13,14,17,0.92) 100%),
    radial-gradient(120% 80% at 18% 62%, rgba(13,14,17,0.55), transparent 60%);
}
.hero-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 150px 32px 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--gold-light); }
.hero h1 {
  margin-top: 22px; max-width: 14ch;
  font-size: clamp(46px, 7.4vw, 96px); line-height: 0.98; font-weight: 500; letter-spacing: -0.02em;
  color: #fff; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.lead { margin-top: 24px; max-width: 54ch; font-size: 17px; line-height: 1.65; color: rgba(243, 238, 228, 0.86); }

/* ----------------------------- search bar -------------------------------- */

.search-bar {
  position: relative; z-index: 5; margin-top: 46px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr auto; align-items: stretch;
  background: rgba(13, 14, 17, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(226, 201, 143, 0.34);
  border-radius: 6px; padding: 8px;
  box-shadow: var(--shadow-lg);
}
.sb-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 22px; min-width: 0; }
.sb-field + .sb-field::before {
  content: ''; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: rgba(255,255,255,0.14);
}
.sb-field label, .sb-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light);
}
.sb-field input, .sb-field .guests-btn {
  width: 100%; min-height: 34px; padding: 4px 0;
  background: transparent; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  color: #fff; font-size: 17px; font-weight: 400; text-align: left;
  color-scheme: dark; outline: none; cursor: pointer;
  transition: border-color 0.2s;
}
.sb-field input { cursor: text; }
.sb-field input[type='date'] { cursor: pointer; }
.sb-field input::placeholder { color: rgba(255,255,255,0.5); }
.sb-field input:focus, .sb-field .guests-btn:focus-visible { border-bottom-color: var(--gold-light); outline: none; }
.sb-field:focus-within { background: rgba(255,255,255,0.05); border-radius: 4px; }
.guests-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guests-btn svg { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.2s; flex: none; }
.guests-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.sb-action { display: flex; padding: 4px; }
.sb-action .btn-gold { min-height: 56px; padding: 0 38px; }

.guests-panel {
  position: absolute; z-index: 20; top: calc(100% + 12px); right: 8px; width: min(360px, calc(100vw - 32px));
  padding: 22px; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.guests-panel .gp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.guests-panel .gp-row + .gp-row { border-top: 1px solid var(--line); }
.gp-name { font-weight: 600; font-size: 15px; }
.gp-hint { font-size: 12.5px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; font-size: 18px; line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.stepper button:hover:not(:disabled) { border-color: var(--gold); background: rgba(184,150,78,0.1); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.children-ages { padding: 4px 0 14px; border-top: 1px solid var(--line); }
.children-ages-label { font-size: 12.5px; color: var(--muted); margin: 12px 0 8px; }
.children-ages-row { display: flex; flex-wrap: wrap; gap: 8px; }
.children-ages-row select {
  min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
}
.gp-done { width: 100%; margin-top: 14px; min-height: 46px; }

.form-errors { grid-column: 1 / -1; padding: 10px 22px 6px; min-height: 0; font-size: 14px; font-weight: 500; color: #ffb9ab; }
.form-errors:empty { display: none; }

.quick-picks { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.quick-picks .qp-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); margin-right: 6px; }
.chip-btn {
  min-height: 34px; padding: 0 16px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  color: var(--on-dark); font-size: 13px; letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip-btn:hover { background: rgba(226,201,143,0.16); border-color: var(--gold-light); color: #fff; }

.provider-strip { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 12.5px; color: var(--on-dark-muted); }
.provider-strip .ps-title { letter-spacing: 0.2em; text-transform: uppercase; font-size: 10.5px; }
.ps-item { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 3px rgba(226,201,143,0.18); flex: none; }
.dot--sandbox, .dot--sample { background: #e9a94b; box-shadow: 0 0 0 3px rgba(233,169,75,0.18); }
.dot--link-only { background: transparent; border: 1.5px solid var(--gold-light); box-shadow: none; }
.dot--off, .dot--error, .dot--not_connected, .dot--skipped { background: transparent; border: 1.5px solid #8b857a; box-shadow: none; }
.ps-mode { color: var(--on-dark-muted); font-size: 11.5px; }

/* ------------------------------ value band ------------------------------- */

.values { background: var(--ivory); border-bottom: 1px solid var(--line); }
.values-inner { max-width: 1280px; margin: 0 auto; padding: 44px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { display: flex; gap: 20px; align-items: flex-start; }
.value svg { width: 34px; height: 34px; flex: none; color: var(--gold-deep); }
.value h3 { font-size: 22px; font-weight: 600; }
.value p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ------------------------------- results --------------------------------- */

.results-area { max-width: 1280px; margin: 0 auto; padding: 72px 32px 40px; scroll-margin-top: 24px; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.results-head .eyebrow { color: var(--gold-deep); }
.results-head .eyebrow::before { background: var(--gold-deep); }
.results-head h2 { margin-top: 12px; font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; line-height: 1.05; }
.results-head h2:focus { outline: none; }
.search-summary { margin-top: 10px; color: var(--muted); font-size: 15px; }
.sort-wrap { display: flex; align-items: center; gap: 12px; }
.sort-wrap label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
select.select, .select {
  min-height: 44px; padding: 0 40px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6458' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none; appearance: none; cursor: pointer; font-size: 14.5px;
}

.provider-results { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.pr-item { display: inline-flex; align-items: center; gap: 8px; }
.pr-item strong { color: var(--text); font-weight: 600; }
.pr-item .dot { width: 7px; height: 7px; box-shadow: none; background: var(--gold); }
.pr-item .dot--sandbox, .pr-item .dot--sample { background: #d98f2b; }
.pr-item .dot--error, .pr-item .dot--not_connected, .pr-item .dot--skipped, .pr-item .dot--off { background: transparent; border: 1.5px solid #9b9384; }
.sample-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 18px; padding: 12px 18px;
  background: #fff7e6; border: 1px solid #ecd9a6; border-radius: var(--radius);
  font-size: 13.5px; color: #6a5312;
}
.sample-banner strong { letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }

.results-layout { margin-top: 36px; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 44px; align-items: start; }

/* filters */
.filters { position: sticky; top: 20px; }
.filters-toggle { display: none; }
.filters-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 22px 22px; }
.filters-title { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 6px; }
.filters-title h3 { font-size: 24px; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-group h4 { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14.5px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 3px; background: #fff; display: grid; place-content: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.check input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #1a1408; border-bottom: 2px solid #1a1408; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--gold-grad); border-color: var(--gold); }
.check input:checked::after { opacity: 1; }
.check .count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 38px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 13.5px; transition: all 0.15s; }
.seg button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--gold-light); }
.range-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.range-value { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input[type='range'] { width: 100%; accent-color: var(--gold); }

/* result count + list */
.result-count { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 18px; }
.results { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

/* -------------------------------- stay card ------------------------------ */

.stay {
  --i: 0;
  display: grid; grid-template-columns: 270px minmax(0, 1fr) 296px; min-height: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 55ms);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}
.stay:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }

.stay-media { position: relative; overflow: hidden; background: var(--ink-3); min-height: 220px; }
.stay-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.stay:hover .stay-media img { transform: scale(1.05); }
.stay-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(13,14,17,0.5)); pointer-events: none; }
.ribbon {
  position: absolute; z-index: 2; top: 16px; left: 0; padding: 7px 14px 7px 16px;
  background: var(--ink); color: var(--gold-light);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 0 3px 3px 0; box-shadow: 0 4px 14px rgba(0,0,0,0.25); max-width: calc(100% - 12px);
}
.photo-count { position: absolute; z-index: 2; left: 16px; bottom: 14px; color: #fff; font-size: 12px; letter-spacing: 0.06em; }

.stay-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stay-head { display: flex; flex-direction: column; }
.stay-name { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; line-height: 1.12; overflow-wrap: break-word; }
.stay-stars { display: inline-flex; gap: 2px; margin-bottom: 8px; color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.stay-loc { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stay-loc svg { width: 14px; height: 14px; color: var(--gold-deep); flex: none; }

.score-box { display: flex; align-items: center; gap: 12px; text-align: left; }
.score-label { font-size: 13px; font-weight: 600; line-height: 1.25; }
.score-label small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.score { display: grid; place-content: center; min-width: 42px; height: 42px; padding: 0 6px; background: var(--ink); color: var(--gold-light); font-family: var(--serif); font-size: 22px; font-weight: 600; border-radius: 6px 6px 6px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: var(--paper); }
.tag--good { color: var(--success); border-color: rgba(44,107,82,0.3); background: rgba(44,107,82,0.06); }
.tag svg { width: 12px; height: 12px; }
.amenity-line { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }

/* offers panel */
.stay-offers { display: flex; flex-direction: column; padding: 24px 24px 22px; background: var(--paper); border-left: 1px solid var(--line); }
.offers-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.offers-title span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.offers-title .nights { font-size: 13px; color: var(--muted); }
.offer-list { display: flex; flex-direction: column; gap: 8px; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
a.offer:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(134,105,43,0.16); transform: translateX(2px); }
.offer.is-best { border-color: var(--gold); background: linear-gradient(180deg, #fffdf7, #fff8e6); }
.offer-provider { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-provider .lowest { padding: 2px 7px; background: var(--ink); color: var(--gold-light); border-radius: 2px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.offer-note { grid-column: 1; font-size: 12px; color: var(--muted); }
.offer-note.good { color: var(--success); }
.offer-price { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.offer-price strong { font-family: var(--serif); font-size: 26px; font-weight: 700; font-variant-numeric: lining-nums; }
.offer-price small { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.offer-price s { font-size: 11.5px; color: var(--muted); }
.offer-cta { grid-column: 1 / -1; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.offer-cta svg { width: 13px; height: 13px; }
.offer:not(.is-best) .offer-cta { color: var(--muted); }
.saving { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 8px; }
.saving::before { content: ''; width: 18px; height: 1px; background: var(--success); }
.offers-empty { font-size: 14px; color: var(--muted); }

/* states */
.stay.skeleton { pointer-events: none; animation: none; }
.skel { background: linear-gradient(100deg, #eee7d9 30%, #f8f3e8 50%, #eee7d9 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 4px; }
.stay.skeleton .stay-media { background: none; }
.stay.skeleton .stay-media .skel { position: absolute; inset: 0; border-radius: 0; }
.skel-line { height: 14px; margin-bottom: 14px; }
.state-message { padding: 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.state-message.error { color: var(--danger); border-color: rgba(161,43,43,0.3); background: #fff8f7; }
.empty-state { padding: 72px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: rgba(255,255,255,0.5); }
.empty-state svg { width: 56px; height: 56px; color: var(--gold); }
.empty-state h3 { margin-top: 18px; font-size: 32px; font-weight: 500; }
.empty-state p { margin: 10px auto 0; max-width: 42ch; color: var(--muted); }

.partner-links { margin-top: 26px; padding: 24px 28px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.partner-links h3 { font-size: 24px; font-weight: 500; }
.partner-links p { font-size: 14px; color: var(--on-dark-muted); }
.partner-links .pl-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-links .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,0.3); }
.partner-links .btn-ghost:hover { border-color: var(--gold-light); background: rgba(226,201,143,0.12); }

.fineprint { margin-top: 30px; font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 90ch; }

/* --------------------------------- how ----------------------------------- */

.how { background: var(--ink); color: var(--on-dark); }
.how-inner { max-width: 1280px; margin: 0 auto; padding: 96px 32px; }
.how .eyebrow { color: var(--gold-light); }
.how h2 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; max-width: 18ch; }
.how ol { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.how li { position: relative; padding: 28px 36px 8px 0; border-top: 1px solid rgba(226,201,143,0.3); counter-increment: step; }
.how li + li { padding-left: 36px; border-left: 0; }
.how li::before { content: '0' counter(step); display: block; font-family: var(--serif); font-size: 44px; font-style: italic; color: var(--gold-light); margin-bottom: 12px; }
.how li strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.how li span { color: var(--on-dark-muted); font-size: 15px; line-height: 1.7; }

/* -------------------------------- footer --------------------------------- */

.footer { background: #08090b; color: var(--on-dark-muted); font-size: 13.5px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 56px 32px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer p { max-width: 62ch; line-height: 1.75; }
.footer-links { display: flex; gap: 28px; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a { text-decoration: none; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11.5px; color: var(--on-dark); }
.footer-links a:hover { color: var(--gold-light); }
.footer-base { max-width: 1280px; margin: 0 auto; padding: 22px 32px 34px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }

/* =========================================================================
   Deal page
   ========================================================================= */

body.lightbox-open { overflow: hidden; }
.deal-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 32px 90px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.back-link:hover { color: var(--gold-deep); }

.deal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.deal-gallery { position: relative; width: 100%; height: min(52vw, 560px); min-height: 280px; background: var(--ink-3); overflow: hidden; touch-action: pan-y; }
.deal-gallery .main-image { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.deal-gallery #image2, .deal-gallery #image3 { display: none !important; }
.deal-thumbs { display: flex; gap: 8px; padding: 14px 20px; overflow-x: auto; background: var(--ink); scrollbar-width: thin; scroll-snap-type: x proximity; }
.deal-thumbs button { flex: 0 0 96px; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: var(--ink-3); cursor: pointer; opacity: 0.6; scroll-snap-align: center; transition: opacity 0.2s, border-color 0.2s; }
.deal-thumbs button:hover { opacity: 0.95; }
.deal-thumbs button.is-active { border-color: var(--gold-light); opacity: 1; }
.deal-thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }

.deal-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding: 44px 44px 48px; }
.deal-title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; }
.deal-meta { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.deal-section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.deal-section h2 { margin-bottom: 10px; font-size: 26px; font-weight: 600; }
.deal-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.deal-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--text); font-size: 13.5px; }

.booking-box { position: sticky; top: 24px; align-self: start; padding: 30px 28px 28px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(226,201,143,0.25); }
.booking-heading { font-size: 14px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; }
.booking-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.booking-price { margin: 6px 0 4px; font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: lining-nums; }
.booking-sub { min-height: 22px; margin-bottom: 24px; color: var(--on-dark-muted); font-size: 13.5px; line-height: 1.5; }
.book-button { width: 100%; min-height: 56px; border: 0; border-radius: var(--radius); background: var(--gold-grad); color: #1a1408; font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 28px rgba(176,140,70,0.3), inset 0 1px 0 rgba(255,255,255,0.45); transition: filter 0.2s, transform 0.2s var(--ease); }
.book-button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.book-button:disabled { opacity: 0.45; cursor: not-allowed; }
.booking-message { margin: 14px 0 0; color: var(--on-dark-muted); font-size: 13.5px; line-height: 1.55; }
.booking-message.booking-error { color: #ffb9ab; }

#hotelLightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
#hotelLightbox.is-open { display: flex; }
.hotel-lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,7,9,0.94); }
.hotel-lightbox-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(1180px, 92vw); height: min(780px, 88vh); }
.hotel-lightbox-image { display: block; max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 3px; }
.hotel-lightbox-counter { margin-top: 14px; color: var(--on-dark-muted); font-size: 12.5px; letter-spacing: 0.18em; }
.hotel-lightbox-close, .hotel-lightbox-prev, .hotel-lightbox-next { position: absolute; z-index: 3; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; background: rgba(13,14,17,0.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.hotel-lightbox-close:hover, .hotel-lightbox-prev:hover, .hotel-lightbox-next:hover { border-color: var(--gold-light); background: rgba(226,201,143,0.16); }
.hotel-lightbox-close { top: 20px; right: 20px; }
.hotel-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.hotel-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------------------------- confirmation page --------------------------- */

.confirmation-page { max-width: 720px; margin: 0 auto; padding: 88px 24px 110px; }
.confirmation-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 56px 44px; text-align: center; }
.confirmation-card::before { content: ''; display: block; width: 56px; height: 1px; margin: 0 auto 30px; background: var(--gold); }
.confirmation-card h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 500; margin-bottom: 16px; }
.confirmation-card p { color: var(--muted); line-height: 1.75; }
.confirmation-detail { margin: 28px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: left; }
.confirmation-detail strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.confirmation-detail span { color: var(--muted); font-size: 14.5px; }
.confirmation-link { display: inline-block; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* ------------------------------- animation -------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-inner > * { animation: rise 0.9s var(--ease) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.26s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.34s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.42s; }

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

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1180px) {
  .search-bar { grid-template-columns: 1fr 1fr 1fr; }
  .sb-field:nth-child(1) { grid-column: 1 / -1; }
  .sb-field:nth-child(2)::before { display: none; }
  .sb-field:nth-child(n+2):nth-child(-n+4) { border-top: 1px solid rgba(255,255,255,0.1); }
  .sb-action { grid-column: 1 / -1; padding: 8px 4px 4px; }
  .sb-action .btn-gold { width: 100%; }
  .sb-field { padding: 10px 20px; }
  .stay { grid-template-columns: 260px minmax(0, 1fr); }
  .stay-offers { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .results-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 30px; }
  .deal-content { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 34px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 20px 20px; }
  .menu-btn { display: inline-grid; place-content: center; }
  .nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; margin: 0; padding: 20px 24px; flex-direction: column; gap: 16px; background: rgba(13,14,17,0.96); border: 1px solid rgba(226,201,143,0.25); border-radius: var(--radius-lg); }
  .nav.is-open { display: flex; }
  .brand-name { font-size: 16px; letter-spacing: 0.26em; }
  .hero { min-height: auto; }
  .hero-inner { padding: 128px 20px 40px; }
  .values-inner { grid-template-columns: 1fr; gap: 26px; padding: 36px 20px; }
  .results-area { padding: 52px 20px 24px; }
  .results-layout { grid-template-columns: 1fr; gap: 22px; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; margin-bottom: 12px; }
  .filters-body { display: none; }
  .filters.is-open .filters-body { display: block; }
  .how-inner { padding: 64px 20px; }
  .how ol { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 26px 0 8px; }
  .footer-inner { grid-template-columns: 1fr; padding: 44px 20px 26px; }
  .footer-links { justify-content: flex-start; }
  .footer-base { padding: 20px; }
  .deal-page { padding: 24px 16px 60px; }
  .deal-content { grid-template-columns: 1fr; padding: 26px 22px 30px; gap: 28px; }
  .booking-box { position: static; }
}

@media (max-width: 720px) {
  .eyebrow { letter-spacing: 0.18em; font-size: 10.5px; }
  .eyebrow::before { display: none; }
  .sample-banner { flex-direction: column; align-items: flex-start; }
  .search-bar { grid-template-columns: 1fr 1fr; padding: 6px; }
  .sb-field:nth-child(1), .sb-field:nth-child(4) { grid-column: 1 / -1; }
  .sb-field + .sb-field::before { display: none !important; }
  .sb-field:nth-child(n+2):nth-child(-n+4) { border-top: 1px solid rgba(255,255,255,0.1); }
  .guests-panel { left: 6px; right: 6px; width: auto; top: calc(100% - 78px); }
  .stay { grid-template-columns: 1fr; }
  .stay-media { min-height: 0; aspect-ratio: 16 / 10; }
  .stay-body { padding: 22px 20px 18px; }
  .stay-offers { padding: 20px; }
  .sort-wrap { width: 100%; }
  .sort-wrap .select { flex: 1; }
  .partner-links .pl-actions { margin-left: 0; }
  .confirmation-card { padding: 40px 24px; }
}

@media (max-width: 420px) {
  .search-bar { grid-template-columns: 1fr; }
  .sb-field:nth-child(n) { grid-column: 1 / -1; }
  .hero h1 { font-size: 44px; }
}
