:root {
  --bg: #faf6ef;
  --bg-tint: #f2ece0;
  --surface: #ffffff;
  --surface-2: #f7f1e7;
  --ink: #211c16;
  --ink-soft: #3d362d;
  --muted: #6e655a;
  --line: #e6decf;
  --accent: #2e5b4c;
  --accent-deep: #234538;
  --accent-tint: #e7eee9;
  --gold: #b08433;
  --amber: #b08433;
  --error: #b23a2e;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(33, 28, 22, .05), 0 10px 30px rgba(33, 28, 22, .07);
  --shadow-lg: 0 4px 14px rgba(33, 28, 22, .08), 0 28px 60px rgba(33, 28, 22, .14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.demo-banner {
  background: var(--ink);
  color: #f1d7a0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .01em;
  padding: 9px 16px;
}
.demo-banner code { color: var(--gold); font-weight: 600; }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 5vw;
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.4px; }
.logo span { color: var(--accent); font-style: italic; }
.nav-link { margin-left: 26px; padding: 6px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nav-link:hover { color: var(--ink); }

.site-footer {
  margin-top: 96px; padding: 44px 5vw 56px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
  background: var(--bg-tint);
}
.site-footer strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.fineprint { max-width: 640px; margin-top: 8px; font-size: 12px; line-height: 1.65; }

/* ---------- hero + search ---------- */
.hero {
  position: relative;
  padding: 18px 14vw 44px;
  animation: fadeUp .5s var(--ease) both;
  background:
    linear-gradient(90deg, rgba(250, 246, 239, .8) 0%, rgba(250, 246, 239, .52) 30%, rgba(250, 246, 239, .1) 50%, transparent 64%),
    linear-gradient(180deg, transparent 64%, rgba(250, 246, 239, .2) 85%, var(--bg) 99%),
    url('img/hero.jpg') center 62% / cover no-repeat,
    var(--bg);
}
.hero::before {
  content: "Same room · Less money · No games";
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink);
  padding: 38px 0 18px;
  border-top: 0;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500; letter-spacing: -1.6px; line-height: 1.04;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero p.sub { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 540px; line-height: 1.55; }

.search-card {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 1000px;
}
.search-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.search-tabs button {
  border: 1px solid var(--line); background: transparent;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.search-tabs button:hover { color: var(--ink); border-color: var(--ink); }
.search-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.search-row { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr .9fr auto; gap: 14px; align-items: end; }
.field { min-width: 0; }
.field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface-2); color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #a99f90; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.vibe-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.vibe-row textarea { resize: none; height: 54px; }

.btn {
  background: var(--accent); color: #fff; border: none;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(46, 91, 76, .28);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(46, 91, 76, .34); }
.btn.secondary { background: var(--ink); box-shadow: 0 6px 16px rgba(33, 28, 22, .28); }
.btn.secondary:hover { background: #000; }
.btn:disabled { opacity: .55; transform: none; cursor: wait; }

.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 17px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); transition: transform .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.hero-closer {
  margin-top: 34px;
  font-family: var(--font-display); font-style: italic; font-size: 17px;
  color: var(--muted); letter-spacing: -.2px;
  padding-left: 14px; position: relative;
}
.hero-closer::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--accent); border-radius: 2px;
}

/* ---------- results ---------- */
.page { padding: 40px 5vw 0; animation: fadeUp .45s var(--ease) both; }
.page h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 500; letter-spacing: -.8px; line-height: 1.1; margin-bottom: 6px; }
.page .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d8cdb8; }
.ph { aspect-ratio: 16/10; background: linear-gradient(135deg, #a9c3b4, var(--accent) 65%, var(--accent-deep)); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .ph img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; line-height: 1.2; }
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.score {
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; padding: 3px 9px; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.card .loc { font-size: 13px; color: var(--muted); }
.card .blurb { font-size: 13.5px; color: var(--ink-soft); flex: 1; line-height: 1.5; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.price strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.price span { font-size: 12px; color: var(--muted); }

/* ---------- detail ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.detail-head h2 { font-size: clamp(30px, 4vw, 44px); }
.gallery { margin-top: 22px; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 160px; gap: 12px; }
.gallery .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: auto; }
.gallery .ph:first-child { grid-row: span 2; }

.detail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; margin-top: 36px; align-items: start; }
.section { margin-bottom: 36px; }
.section h3 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 12px; }
.section p { color: var(--ink-soft); line-height: 1.7; }
.amenities { display: flex; flex-wrap: wrap; gap: 9px; }
.amenity { background: var(--accent-tint); color: var(--accent-deep); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.proscons ul { padding-left: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.proscons h4 { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }

.review { border-top: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.review-head .who { font-weight: 700; }
.review-head .who span { color: var(--muted); font-weight: 400; }
.review p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.rooms-panel {
  position: sticky; top: 92px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px;
}
.rooms-panel h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.rooms-panel .dates { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.room { border-top: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.room .rname { font-weight: 700; font-size: 14px; }
.room .rmeta { font-size: 12px; color: var(--muted); }
.room .rmeta .ok { color: var(--accent); font-weight: 600; }
.room .rprice { text-align: right; }
.room .rprice strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.room .rprice div { font-size: 11px; color: var(--muted); }
.room button { margin-top: 8px; padding: 9px 18px; font-size: 13px; }

/* ---------- checkout / confirm ---------- */
.narrow { max-width: 580px; margin: 0 auto; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px;
}
.panel h2 { font-size: 30px; font-weight: 500; letter-spacing: -.6px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--ink-soft); }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.confirm-hero { text-align: center; padding: 48px 0 12px; animation: fadeUp .5s var(--ease) both; }
.confirm-hero h2 { font-size: 34px; font-weight: 500; letter-spacing: -.6px; }
.confirm-hero .badge {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, #5a8a76, var(--accent));
  display: grid; place-items: center; font-size: 36px; color: #fff;
  box-shadow: 0 12px 30px rgba(46, 91, 76, .38);
}
.kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.kv strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.empty, .error-box { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: var(--muted); padding: 64px 5vw; font-size: 15px; }
.empty p, .error-box p { margin: 0; max-width: 460px; }
.empty .chips, .error-box .chips { justify-content: center; margin-top: 2px; }
.empty .btn, .error-box .btn { text-decoration: none; color: #fff; }
.error-box { color: var(--error); }
.spinner { text-align: center; padding: 64px 0; color: var(--muted); }

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .search-tabs button:focus-visible, .chip:focus-visible, .card:focus-visible { outline-offset: 3px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .chip:hover, .btn:hover { transform: none; }
  .card:hover .ph img { transform: none; }
}

@media (max-width: 860px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .detail-cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .rooms-panel { position: static; }
  .hero {
    padding: 16px 7vw 30px;
    background:
      linear-gradient(180deg, rgba(250, 246, 239, .12) 0%, rgba(250, 246, 239, .22) 52%, rgba(250, 246, 239, .6) 80%, var(--bg) 97%),
      url('img/hero.jpg') 56% 50% / cover no-repeat,
      var(--bg);
  }
  .hero h1 { max-width: none; }
}

/* ---------- member auth (Phase 3) ---------- */
#auth-slot { display: inline-flex; align-items: center; gap: 14px; margin-left: 26px; }
.linkbtn {
  background: none; border: none; padding: 6px 0; cursor: pointer;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.linkbtn:hover { color: var(--ink); }
.member-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-tint);
  padding: 5px 11px; border-radius: 999px;
}

/* struck public price + member saving */
.was { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); font-size: .85em; margin-right: 6px; }
.price .was { font-weight: 600; }
.save { color: var(--accent); font-weight: 700; font-size: 12px; margin-top: 2px; }
.member-tag {
  display: inline-block; margin-top: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold);
}
.member-cta { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 12.5px; margin-top: 4px; padding: 0; }
.member-cta:hover { color: var(--accent-deep); text-decoration: underline; }
.member-unlock {
  width: 100%; margin: 4px 0 8px; padding: 11px; font-size: 13px;
  background: var(--accent-tint); color: var(--accent-deep); box-shadow: none;
}
.member-unlock:hover { background: #d8e6df; transform: none; box-shadow: none; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(33, 28, 22, .5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeUp .2s var(--ease) both;
}
.modal {
  position: relative; width: 100%; max-width: 400px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px 28px 26px;
}
.modal h3 { font-size: 22px; letter-spacing: -.5px; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.modal input {
  width: 100%; padding: 13px 15px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
}
.modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); background: #fff; }
.modal-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; min-height: 18px; }
.modal-note a { color: var(--accent); font-weight: 700; }
.modal-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-x:hover { color: var(--ink); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px);
  background: var(--ink); color: var(--bg);
  padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 110; opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* footer links + legal/help pages */
.footer-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.legal { max-width: 640px; }
.legal h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; letter-spacing: -.6px; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.65; }
.legal a { color: var(--accent); font-weight: 600; }
.draft-note {
  background: var(--accent-tint); color: #115e59;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}

/* liteAPI payment element mount */
#targetElement { margin-top: 4px; min-height: 40px; }

/* destination autocomplete */
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.ac-field { position: relative; }
.ac-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); overflow: hidden auto; max-height: 320px;
}
.ac-item {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--accent-tint); }
.ac-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.ac-addr { font-size: 12px; color: var(--muted); }
.ac-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }

/* SEO landing pages */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--accent); }
.seo-intro { max-width: 680px; font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
.seo-search { margin-bottom: 30px; }

/* fee transparency */
.fee-note { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.summary-line.sub { color: var(--muted); font-size: 13px; padding: 2px 0; }
.fee-foot { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 10px; }
.fee-foot strong { color: var(--ink); }
