/* Palette from the Sam Olsen Realty logo, with deeper ink for contrast.
   Gold is an accent only. Body text stays charcoal on ivory, or ivory on charcoal. */
:root {
  --ivory: #f6f1e8;
  --ivory-raised: #fbf7f0;
  --ink: #1c1917;
  --ink-soft: #5a534c;
  --charcoal: #2c2825;
  --logo-charcoal: #4a403c;
  --gold: #c9c19a;
  --gold-deep: #6b5a34;
  --gold-mid: #8f8864;
  --line: #e4d9c4;
  --line-strong: #d4c8ae;
  --panel: #141210;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.10);
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold-deep); }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--ink);
  color: var(--ivory);
  z-index: 100;
}
.skip:focus, .skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: normal;
}

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(740px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  display: block;
  height: 52px;
  width: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav a[aria-current="page"] { color: var(--gold-deep); }
.nav a.btn { color: var(--ivory); }
.nav a.btn:hover { color: var(--ivory); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ivory);
  background: var(--ink);
}
.btn:hover { background: #000; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); background: transparent; }
.btn-gold {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold-mid);
}
.btn-gold:hover { border-color: var(--gold-deep); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero { padding: 80px 0 28px; }
.kicker {
  margin: 0 0 16px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1, h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
.hero h1, .page-hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  max-width: 16ch;
}
.lede {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}
.vsl {
  margin-top: 36px;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 193, 154, 0.16), transparent 46%),
    linear-gradient(180deg, #2a2622 0%, #141210 100%);
  color: var(--ivory);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px solid #3a342e;
}
.vsl-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.vsl-play svg { margin-left: 4px; }
.vsl p { margin: 0; max-width: 36ch; color: #ebe4d6; }
.vsl strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ivory);
}

.section { padding: 88px 0; }
.section + .section, .band + .section, .section + .band { border-top: 1px solid var(--line); }
.band { background: #efe8db; }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: 26px; }
.section h2 + p, .section .intro { margin-top: 18px; }
.muted { color: var(--ink-soft); }
.rule {
  width: 48px;
  height: 1px;
  background: var(--gold-mid);
  margin: 0 0 22px;
  border: 0;
}

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-left: 64px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

.sample-note {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border: 1px solid var(--gold-mid);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  min-width: 640px;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.locked-block { position: relative; margin-top: -1px; }
.locked-table { filter: blur(7px); user-select: none; pointer-events: none; }
.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(246,241,232,0.15), rgba(246,241,232,0.92) 72%);
  text-align: center;
  padding: 24px;
}
.lock-overlay p {
  margin: 0 0 16px;
  max-width: 34ch;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.card {
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .price {
  font-family: var(--font-serif);
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.card .price span {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.card.featured { border-color: var(--gold-mid); }

.access-form, .newsletter-form {
  margin-top: 32px;
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field span { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
}
.form-help, .form-status {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.form-status[hidden] { display: none; }
.form-status.is-visible { display: block; color: var(--gold-deep); font-weight: 600; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.about-photo {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  object-fit: cover;
}
.contact-block p { margin: 0 0 8px; }
.contact-block a:not(.btn) { color: inherit; }
.contact-block a.btn { color: var(--ivory); }

.page-hero { padding: 64px 0 12px; }
.page-hero p { margin-top: 18px; color: var(--ink-soft); max-width: 62ch; }

/* Sample map */
.sample-map-frame {
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: #ebe6dc;
  position: relative;
  isolation: isolate;
  height: 640px;
  max-height: 70vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.sample-map-panel {
  padding: 20px 18px 24px;
  overflow: auto;
  max-height: 640px;
  border-right: 1px solid #2c2825;
}
.sample-map-panel h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ivory);
  margin: 0 0 6px;
}
.sample-map-panel .sub,
.sample-map-panel .meta,
.sample-map-panel .fine {
  color: #b7b0a4;
  font-size: 12px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.sample-map-panel h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b7b0a4;
  margin: 16px 0 8px;
}
.sample-map-panel label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 5px 0;
  font-size: 14px;
  cursor: pointer;
  color: #ebe6dc;
}
.sample-map-panel .row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sample-map-panel input[type="number"] {
  width: 100%;
  background: #0f0d0c;
  color: #ebe6dc;
  border: 1px solid #3a342e;
  border-radius: 0;
  padding: 8px;
}
.sample-map-panel button.reset {
  margin-top: 16px;
  width: 100%;
  background: #2c2825;
  color: #ebe6dc;
  border: 1px solid #3a342e;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.deal-types { display: flex; flex-direction: column; gap: 6px; }
.deal-type { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; cursor: pointer; }
.deal-type .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px #3a342e;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.dot.blue { background: #3b82f6; }
.dot.purple { background: #a855f7; }
.dot.default { background: #64748b; }
.sample-map-canvas {
  position: relative;
  height: 640px;
  max-height: 70vh;
  overflow: hidden;
}
#sample-map,
#sample-map.leaflet-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1c1917;
}
.map-cta {
  position: absolute;
  z-index: 500;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.leaflet-popup-content { color: #1c1917; min-width: 220px; margin: 12px 14px; }
.popup h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: "Cormorant Garamond", Georgia, serif; }
.popup .badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 7px;
  border: 1px solid #8f8864;
  color: #6b5a34;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.popup dl { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 0.85rem; }
.popup dt { color: #5a534c; }
.popup .note { margin: 0 0 10px; font-size: 0.78rem; color: #5a534c; }
.popup .popup-cta {
  display: inline-block;
  background: #1c1917;
  color: #f6f1e8;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--panel);
  color: #cfc8bc;
  padding: 56px 0 48px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer .footer-logo { height: 56px; width: auto; margin-bottom: 16px; display: block; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 7px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.legal { margin-top: 36px; max-width: 86ch; color: #a8a196; }
.eh-placeholder {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px dashed #6b5a34;
  display: inline-block;
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    padding: 0 0 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .cards, .footer-grid, .fields, .about-grid, .sample-map-frame { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .brand img { height: 44px; }
  .vsl {
    aspect-ratio: auto;
    min-height: 280px;
    padding: 36px 20px 40px;
  }
  .sample-map-panel { max-height: none; height: 42vh; border-right: 0; border-bottom: 1px solid #2c2825; overflow: auto; }
  .sample-map-frame {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }
  .sample-map-canvas, #sample-map, #sample-map.leaflet-container {
    height: 56vh;
    min-height: 360px;
    max-height: none;
  }
  .map-cta { white-space: normal; text-align: center; }
}

/* Legal footer + prose pages */
.legal-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.legal-row p { margin: 0; }
.eho-logo { flex: none; color: #c9c19a; }
.legal p { margin: 0 0 12px; }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { margin-top: 36px; font-size: 1.5rem; }
.prose p { margin: 0 0 14px; }
.prose a, .form-status a, .form-help a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.contact-block a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
