/* ═══════════════════════════════════════════════════════════════
   WANDERLUST SITE — REAL ESTATE (the flagship store)
   Conversion-first: agents book in one screen. Same brand shell as
   home; the guilt chips return as gold proof chips.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #f7f4ec;
  --wash: #f1ede1;
  --ink: #172320;
  --ink-soft: rgba(23, 35, 32, 0.64);
  --line: #ddd7c8;
  --gold: #a5874b;
  --gold-deep: #82682f;
  --gold-soft: #c9ab6e;
  --alert: #b8472e;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.serif {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 430;
  letter-spacing: -0.012em;
  line-height: 1.08;
}
em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--gold-soft); }

/* ── SHELL (same as home) ────────────────────────────────── */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(247, 244, 236, 0.92), rgba(247, 244, 236, 0));
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand .serif { font-size: 21px; font-weight: 500; }
.brand-sub { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.hud-nav { display: flex; gap: 26px; margin-left: auto; }
.hud-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.3s; }
.hud-nav a:hover, .hud-nav a.active { color: var(--ink); }
.hud-actions { display: flex; align-items: center; gap: 20px; }
.hud-shoot { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); text-decoration: none; transition: color 0.3s; white-space: nowrap; }
.hud-shoot:hover { color: var(--gold-deep); }
.hud-cta {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.3s, background 0.3s;
}
.hud-cta:hover { transform: translateY(-2px); background: #223730; }
.hud-book-m {
  display: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
}

.book-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.book-sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 18, 0.55); }
.sheet-card {
  position: relative;
  width: min(500px, 100%);
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 30px 24px 26px;
  display: grid;
  gap: 12px;
  text-align: center;
  box-shadow: 0 -20px 60px -20px rgba(15, 22, 18, 0.4);
}
.sheet-title { font-size: 26px; margin-bottom: 8px; }
.sheet-close { background: none; border: none; font-family: inherit; color: var(--ink-soft); font-weight: 600; font-size: 14px; padding: 10px; cursor: pointer; }

.btn-ink, .btn-quiet, .btn-gold {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s, color 0.35s, border-color 0.35s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-3px); background: #223730; }
.btn-quiet { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.btn-quiet:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-3px); }
.btn-gold { background: var(--gold-soft); color: #14100a; }
.btn-gold:hover { transform: translateY(-3px); background: #dbc088; }

/* ── HERO ────────────────────────────────────────────────── */
.scene { position: relative; }
.re-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 4vw, 56px) 60px;
  background:
    radial-gradient(1100px 540px at 82% -12%, rgba(165, 135, 75, 0.13), transparent 62%),
    radial-gradient(950px 500px at -10% 32%, rgba(140, 167, 155, 0.12), transparent 60%),
    var(--paper);
}
.re-hero-grid {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.re-title { font-size: clamp(40px, 5.6vw, 88px); font-weight: 420; line-height: 1.02; letter-spacing: -0.02em; }
.re-sub { margin-top: 24px; max-width: 52ch; font-size: clamp(16px, 1.45vw, 19px); color: var(--ink-soft); }
.re-sub strong { color: var(--ink); font-weight: 600; }
.re-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.re-media { position: relative; }
.re-photo {
  width: 100%;
  height: min(64vh, 620px);
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 44px 90px -34px rgba(23, 35, 32, 0.45);
}
.gchip {
  position: absolute;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid rgba(165, 135, 75, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-deep);
  box-shadow: 0 14px 34px -14px rgba(23, 35, 32, 0.35);
  white-space: nowrap;
  will-change: transform, opacity;
}
.g1 { top: -18px; left: 8%; transform: rotate(-2deg); }
.g2 { bottom: 12%; left: -26px; transform: rotate(2deg); }
.g3 { bottom: -16px; right: 7%; transform: rotate(-1.5deg); }

/* ── SHOWCASE ────────────────────────────────────────────── */
.showcase { padding: clamp(40px, 8vh, 100px) 0 0; }
.show-frame { position: relative; height: min(88vh, 800px); overflow: hidden; }
.show-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.show-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 5vh, 60px) clamp(20px, 4vw, 56px);
  background: linear-gradient(to top, rgba(15, 22, 18, 0.8), transparent);
  color: #f0ead9;
}
.show-line { font-size: clamp(28px, 4vw, 58px); }
.show-tags { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240, 234, 217, 0.7); }

/* ── BOOKING ─────────────────────────────────────────────── */
.booking { padding: clamp(90px, 14vh, 160px) clamp(20px, 4vw, 56px); scroll-margin-top: 70px; }
.booking-inner { width: min(1360px, 100%); margin: 0 auto; }
.booking-inner h2 { font-size: clamp(32px, 4.4vw, 64px); margin-bottom: clamp(36px, 6vh, 60px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 40px; }
.step {
  position: relative;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step-n {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 20px;
  margin-bottom: 16px;
}
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

.book-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: #f0ead9;
  border-radius: 20px;
}
.book-card h3 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 10px; }
.book-card p { color: rgba(240, 234, 217, 0.72); max-width: 50ch; }
.addons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.addon {
  padding: 8px 14px;
  border: 1px solid rgba(201, 171, 110, 0.4);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-soft);
}
.book-card-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.book-card-cta .btn-ink { background: var(--gold-soft); color: #14100a; }
.book-card-cta .btn-ink:hover { background: #dbc088; }
.book-note { font-size: 12.5px; color: rgba(240, 234, 217, 0.55); line-height: 1.7; }
.portal-link { color: var(--gold-soft); font-weight: 700; text-decoration: none; }
.portal-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── PROOF ───────────────────────────────────────────────── */
.re-proof { padding: 0 clamp(20px, 4vw, 56px) clamp(90px, 13vh, 150px); }
.re-proof-inner { width: min(1360px, 100%); margin: 0 auto; }
.proof-head h2 { font-size: clamp(30px, 3.8vw, 54px); margin-bottom: 10px; }
.re-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 36px 0 26px; }
.re-grid figure { margin: 0; }
.re-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.re-grid figcaption { margin-top: 9px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.quiet-link { color: var(--gold-deep); font-weight: 700; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── TOOLS ───────────────────────────────────────────────── */
.tools { padding: 0 clamp(20px, 4vw, 56px) clamp(90px, 13vh, 150px); }
.tools-inner { width: min(1360px, 100%); margin: 0 auto; }
.tool-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.tool img { width: 100%; height: 280px; object-fit: cover; display: block; }
.tool h3 { font-size: 25px; margin: 20px 24px 8px; }
.tool p { margin: 0 24px 24px; font-size: 15px; color: var(--ink-soft); }

/* ── BRIDGE ──────────────────────────────────────────────── */
.bridge {
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(201, 171, 110, 0.14), transparent 60%),
    #14201b;
  color: #f0ead9;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 4vw, 56px);
}
.bridge-inner {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.bridge-copy h2 { font-size: clamp(32px, 4.2vw, 62px); margin-bottom: 18px; }
.bridge-copy h2 em { color: var(--gold-soft); }
.bridge-copy p { color: rgba(240, 234, 217, 0.72); max-width: 52ch; margin-bottom: 30px; }
.bridge-tiers { display: grid; gap: 14px; }
.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(240, 234, 217, 0.14);
  border-radius: 14px;
}
.tier strong { display: block; font-size: 22px; }
.tier span:not(.tier-price) { font-size: 13.5px; color: rgba(240, 234, 217, 0.6); }
.tier-price { font-weight: 700; color: var(--gold-soft); white-space: nowrap; }

/* ── FOOTER + STICKY BAR ─────────────────────────────────── */
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px) 86px;
  background: #0f1a15;
  color: rgba(240, 234, 217, 0.6);
  font-size: 12.5px;
}
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bar a { color: rgba(240, 234, 217, 0.75); text-decoration: none; }
.footer-bar a:hover { color: var(--gold-soft); }

.book-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 12px 12px 24px;
  background: rgba(20, 32, 27, 0.96);
  color: #f0ead9;
  border: 1px solid rgba(201, 171, 110, 0.3);
  border-radius: 999px;
  box-shadow: 0 24px 60px -20px rgba(10, 16, 13, 0.7);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.book-bar.on { transform: translateX(-50%) translateY(0); }
.bb-line { font-size: 14px; }
.bb-line strong { color: var(--gold-soft); }
.bb-btn { padding: 11px 20px; font-size: 14px; }

/* ── embedded booking modal ──────────────────────────────── */
html.bm-lock { overflow: hidden; }
.book-modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 22px; }
.book-modal[hidden] { display: none; }
.bm-scrim { position: absolute; inset: 0; background: rgba(15, 22, 18, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bm-card {
  position: relative;
  width: min(1080px, 100%);
  height: min(860px, 92vh);
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 60px 140px -40px rgba(10, 16, 13, 0.75);
  animation: bmin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bmin { from { transform: translateY(26px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.bm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px 13px 24px;
  border-bottom: 1px solid var(--line);
}
.bm-title { display: flex; flex-direction: column; line-height: 1.2; }
.bm-title .serif { font-size: 19px; font-weight: 500; }
.bm-sub { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.bm-tools { display: flex; align-items: center; gap: 18px; }
.bm-newtab { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.bm-newtab:hover { color: var(--gold-deep); }
.bm-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.bm-close:hover { border-color: var(--gold); color: var(--gold-deep); transform: rotate(90deg); }
.bm-body { position: relative; flex: 1; background: #fff; }
.bm-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 600;
  transition: opacity 0.4s;
}
.bm-loading.off { opacity: 0; pointer-events: none; }
.bm-spin {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  animation: bmspin 0.9s linear infinite;
}
@keyframes bmspin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .book-modal { padding: 0; }
  .bm-card { height: 100dvh; border-radius: 0; }
  .bm-newtab { display: none; }
}

/* ── motion-off ──────────────────────────────────────────── */
body.no-motion .show-frame img { transform: none; }
body.no-motion .book-bar { transform: translateX(-50%) translateY(0); }
body.no-motion .bm-card { animation: none; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .re-hero-grid { grid-template-columns: 1fr; }
  .re-photo { height: 46vh; }
  .steps { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .re-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-row { grid-template-columns: 1fr; }
  .bridge-inner { grid-template-columns: 1fr; }
  .g2 { left: 8px; bottom: -14px; }
}
@media (max-width: 900px) {
  .hud-nav, .hud-actions { display: none; }
  .hud-book-m { display: inline-block; }
  .bb-line { font-size: 12.5px; }
  .book-bar { gap: 12px; padding-left: 16px; max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none !important; }
}
