@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Marcellus&display=swap');

/* =============================================================
   Marie Borders Real Estate — STAGE site stylesheet
   Phase 1 (May 2026)

   ACCENT COLOR CHOICE
   -------------------
   Accent: warm gold #a8854c (with a deeper hover #8a6a36).
   Rationale: the approved Golden Gate hero photo carries a warm
   amber tone in the bridge's vermilion against the cool sky. A
   muted gold accent (rather than bay-water blue) keeps the brand
   feeling editorial, warm, and confident — it complements the
   bridge's color family without competing, and reads beautifully
   against the cream paper (#faf8f4) used on content pages.

   PALETTE TOKENS
   --------------
   --paper        #faf8f4   primary content background (warm cream)
   --paper-deep   #f1ece2   secondary band background
   --ink          #1a1f24   primary text (deep navy-black, soft)
   --ink-soft     #4a5057   body text
   --ink-muted    #7a7e84   captions, meta
   --hush         #e8e2d4   hairlines, dividers
   --accent       #a8854c   warm gold for links, CTAs
   --accent-deep  #8a6a36   accent hover/focus
   --overlay-a    rgba(15,22,36,0.55)   hero gradient start
   --overlay-b    rgba(40,25,20,0.55)   hero gradient end

   TYPE
   ----
   --font-serif   'Cormorant Garamond', Georgia, serif (headings)
   --font-sans    'Inter', -apple-system, BlinkMacSystemFont, sans (body)

   SPACING SCALE  (multiples of 4px)
   -------------
   --s1 .25rem  --s2 .5rem  --s3 .75rem  --s4 1rem
   --s5 1.5rem  --s6 2rem   --s7 3rem    --s8 4rem  --s9 6rem

   BREAKPOINTS
   -----------
   sm   480px   small phones up
   md   720px   tablet
   lg   1024px  small laptop
   xl   1280px  desktop
   ============================================================= */

:root {
  --paper: #faf8f4;
  --paper-deep: #f1ece2;
  --ink: #1a1f24;
  --ink-soft: #4a5057;
  --ink-muted: #7a7e84;
  --hush: #e8e2d4;
  --accent: #a8854c;
  --accent-deep: #8a6a36;
  --overlay-a: rgba(15, 22, 36, 0.55);
  --overlay-b: rgba(40, 25, 20, 0.55);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  --maxw: 1180px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--accent-deep); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--s5); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: var(--s4); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: var(--s3) var(--s5);
  z-index: 200;
}
.skip-link:focus {
  left: var(--s4);
  top: var(--s4);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s5);
}
.wrap--narrow { max-width: 780px; }
.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section--paper-deep { background: var(--paper-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s4) 0;
  background: rgba(26, 31, 36, 0);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(250, 248, 244, 0.97);
  box-shadow: 0 1px 0 var(--hush);
  padding: var(--s3) 0;
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.brand {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.site-header.is-scrolled .brand,
.site-header.is-solid .brand {
  color: var(--ink);
  text-shadow: none;
}

.nav { display: flex; align-items: center; gap: var(--s6); }
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  padding: var(--s2) 0;
  position: relative;
}
.site-header.is-scrolled .nav__link,
.site-header.is-solid .nav__link { color: var(--ink-soft); }
.nav__link:hover { color: #fff; }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-solid .nav__link:hover { color: var(--accent); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.nav__link.is-active {
  color: #fff;
}
.site-header.is-scrolled .nav__link.is-active,
.site-header.is-solid .nav__link.is-active { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--s2);
  width: 44px; height: 44px;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  margin: 6px auto;
  transition: transform 0.25s, opacity 0.25s, background 0.25s;
}
.site-header.is-scrolled .nav-toggle__bar,
.site-header.is-solid .nav-toggle__bar { background: var(--ink); }

/* Hamburger menu for phones AND portrait tablets (iPad portrait ~768-834px).
   Landscape tablet / desktop (1024px+) keeps the inline nav.
   Tablet: a side drawer (~340px) with a dimmed backdrop.
   Phone (<=600px, see below): the menu takes the full screen. */
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 340px;
    max-width: 85vw;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: var(--s5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    box-shadow: -8px 0 32px rgba(15, 20, 28, 0.18);
  }
  .nav.is-open { transform: translateX(0); }
  /* Dimmed backdrop behind the drawer — click it to close (handled in site.js) */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 28, 0.45);
    z-index: 89;
  }
  .nav__link {
    color: var(--ink) !important;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .nav__link.is-active { color: var(--accent) !important; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.is-active { position: relative; z-index: 110; }
  .nav-toggle.is-active .nav-toggle__bar { background: var(--ink); }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Phones: the menu takes the full screen rather than a side drawer. */
@media (max-width: 600px) {
  .nav {
    width: auto;
    max-width: none;
    left: 0;
    box-shadow: none;
  }
  body.nav-open::before { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1f24 url('../images/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 7rem var(--s5) var(--s8);
}
.hero--small {
  min-height: 52vh;
}
/* Sub-page headers: match the mockup's page-header size (smaller than home).
   NOTE: needs `.hero.hero--small` (2 classes) to outrank `.hero h1` below —
   both would otherwise tie on specificity and the later .hero h1 (4.6rem) wins. */
.hero.hero--small h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}
/* Home hero: nudge the headline block + buttons up a bit from dead-center */
.hero:not(.hero--small) .hero__inner {
  transform: translateY(-7vh);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--overlay-a) 0%,
    rgba(20, 30, 45, 0.45) 50%,
    var(--overlay-b) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero h1 {
  color: #fff;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: 0.02em;
  margin-bottom: var(--s3);
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.9),
     1px -1px 0 rgba(0, 0, 0, 0.9),
    -1px  1px 0 rgba(0, 0, 0, 0.9),
     1px  1px 0 rgba(0, 0, 0, 0.9),
     0    3px 18px rgba(0, 0, 0, 0.65);
}
.hero__tagline {
  font-family: 'Marcellus', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: var(--s4);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero__divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: var(--s5) auto;
}
.hero__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--s6);
  text-transform: uppercase;
  text-shadow:
    0 0 4px  rgba(0, 0, 0, 0.85),
    0 1px 6px rgba(0, 0, 0, 0.8),
    0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero__ctas {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s4) var(--s6);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--ghost:hover, .btn--ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}
.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--ink:hover, .btn--ink:focus { background: #000; border-color: #000; }

/* ---------- Bands ---------- */
.band-intro {
  text-align: center;
  padding: var(--s8) var(--s5);
  background: var(--paper);
}
.band-intro p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 50ch;
  margin: 0 auto var(--s5);
  font-weight: 400;
}

.band-contact {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: var(--s8) var(--s5);
}
.band-contact h2 { color: #fff; }
.band-contact a { color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.band-contact a:hover { color: var(--accent); }
.band-contact__meta {
  font-size: 1.05rem;
  margin: var(--s5) 0 var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  margin-bottom: var(--s7);
}
.section-head__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.section-head h2 { margin-bottom: var(--s3); }
.section-head__lede {
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Listing grid + cards ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}
@media (min-width: 720px)  { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }

/* "Currently Featured" (home) + "Currently for Sale" grids — flex-centered
   so 1 or 2 cards stay centered rather than left-packed into empty grid
   columns. */
#featured-grid,
#listings-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#featured-grid > .card,
#listings-grid > .card {
  flex: 1 1 320px;
  max-width: 380px;
}
/* The For Sale fallback notice ("showing recent listings…") spans its own
   full-width row above the cards. */
#listings-grid > .empty-state {
  flex-basis: 100%;
}

.card {
  background: #fff;
  border: 1px solid var(--hush);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 31, 36, 0.08); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hush);
  overflow: hidden;
}
.card__media img,
.card__media svg {
  width: 100%; height: 100%; object-fit: cover;
}
.card__status {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--s1) var(--s3);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
}
.card__status--active  { background: #2d6a4f; }
.card__status--pending { background: #b06b1c; }
.card__status--sold    { background: #7a3134; }

.card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card__price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 500;
}
.card__address {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.card__address strong { display: block; color: var(--ink); font-weight: 500; }
.card__stats {
  display: flex;
  gap: var(--s4);
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding-top: var(--s3);
  border-top: 1px solid var(--hush);
  margin-top: auto;
}
.card__stats span { display: inline-flex; align-items: center; gap: var(--s1); }
.card__stats svg { width: 14px; height: 14px; opacity: 0.7; }
.card__link {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: var(--s3);
  color: var(--accent);
  border-top: 1px solid var(--hush);
  margin-top: var(--s2);
}
.card__link:hover { color: var(--accent-deep); }

.empty-state {
  text-align: center;
  padding: var(--s8) var(--s5);
  color: var(--ink-muted);
  background: var(--paper-deep);
  border-radius: var(--radius);
}
.empty-state p { margin-bottom: var(--s5); font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }

/* ---------- Filter chips ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
  margin-bottom: var(--s7);
}
.chip {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s3) var(--s5);
  background: transparent;
  border: 1px solid var(--hush);
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  align-items: start;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 320px 1fr; gap: var(--s8); }
}
.headshot {
  background: var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 320px;
  margin: 0 auto;
}
.headshot img, .headshot svg { width: 100%; height: 100%; object-fit: cover; }

.bio p {
  font-size: 1.05rem;
  margin-bottom: var(--s5);
  color: var(--ink-soft);
}

.credentials {
  background: var(--paper-deep);
  padding: var(--s7) 0;
}
.credentials__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s6);
  text-align: center;
}
.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  max-width: 160px;
}
.credential svg { width: 28px; height: 28px; color: var(--accent); }
.credential strong { color: var(--ink); font-weight: 500; }

/* ---------- Listing detail ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
}
@media (min-width: 1024px) {
  .detail-wrap { grid-template-columns: 1fr 320px; gap: var(--s7); align-items: start; }
}

.gallery__main {
  aspect-ratio: 16 / 10;
  background: var(--hush);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  user-select: none;
}
.gallery__main img,
.gallery__main svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__main.is-clickable { cursor: pointer; }
/* Tiny dim wash on hover for click feedback */
.gallery__main.is-clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.15s;
}
.gallery__main.is-clickable:hover::after {
  background: rgba(0, 0, 0, 0.04);
}
.gallery__counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 20, 28, 0.55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  pointer-events: none;
  z-index: 2;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--hush);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  position: relative;
}
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb img,
.gallery__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Listing video (always first gallery item, autoplays muted) ---- */
.gallery__main video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__unmute {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 20, 28, 0.6);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
}
.gallery__unmute:hover { background: rgba(15, 20, 28, 0.8); }
.gallery__unmute svg { width: 14px; height: 14px; }
/* Play badge over the video thumbnail */
.gallery__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}
.gallery__thumb-play svg {
  width: 26px; height: 26px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s6);
}
.detail-head__address h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--s2); }
.detail-head__address p { color: var(--ink-muted); margin-bottom: 0; }
.detail-head__price {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ink);
  font-weight: 500;
}
.detail-head__meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s2);
  flex-wrap: wrap;
}
.pill {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--s1) var(--s3);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
}
.pill--active  { background: #2d6a4f; }
.pill--pending { background: #b06b1c; }
.pill--sold    { background: #7a3134; }

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s6);
  padding: var(--s5) 0;
  margin: var(--s5) 0;
  border-top: 1px solid var(--hush);
  border-bottom: 1px solid var(--hush);
}
.detail-stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-width: 90px;
}
.detail-stats__num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink);
}
.detail-stats__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.detail-section { margin-bottom: var(--s7); }
.detail-section h2 { font-size: 1.5rem; margin-bottom: var(--s4); }

/* Rich-text listing description (rendered from CMS Trix HTML or legacy plain text) */
.detail-description p { margin: 0 0 0.9em; }
.detail-description p:last-child { margin-bottom: 0; }
.detail-description h1,
.detail-description h2,
.detail-description h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 1.2em 0 0.5em;
  line-height: 1.25;
}
.detail-description h1 { font-size: 1.5rem; }
.detail-description h2 { font-size: 1.3rem; }
.detail-description h3 { font-size: 1.12rem; }
.detail-description ul,
.detail-description ol { margin: 0 0 0.9em; padding-left: 1.4em; }
.detail-description li { margin-bottom: 0.3em; }
.detail-description blockquote {
  margin: 0 0 0.9em;
  padding-left: var(--s4);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
.detail-description strong { font-weight: 600; color: var(--ink); }
.detail-description em { font-style: italic; }
.detail-description a { color: var(--accent-deep); text-decoration: underline; }
.detail-description a:hover { color: var(--accent); }
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  background: var(--paper-deep);
  border: 1px solid var(--hush);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.feature-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(40, 30, 20, 0.10);
  border-color: var(--accent);
  background: #fff;
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .feature-list li { transition: none; }
  .feature-list li:hover { transform: none; }
}
.open-houses {
  list-style: none; padding: 0;
  border-top: 1px solid var(--hush);
}
.open-houses li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--hush);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.open-houses time { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); }

/* Inquire box */
.inquire {
  background: var(--paper-deep);
  padding: var(--s5);
  border-radius: var(--radius);
  border: 1px solid var(--hush);
  position: sticky;
  top: 96px;
}
.inquire h3 { font-size: 1.3rem; margin-bottom: var(--s3); }
.inquire p { font-size: 0.95rem; margin-bottom: var(--s4); }
.inquire .btn { width: 100%; text-align: center; }
@media (max-width: 1023px) {
  .inquire { position: static; }
}

/* Mobile fixed inquire bar */
.inquire-bar-mobile {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  background: var(--ink);
  padding: var(--s3) var(--s5);
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.inquire-bar-mobile a {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0;
  display: inline-block;
  padding: var(--s2) var(--s4);
}
@media (max-width: 1023px) {
  .inquire-bar-mobile { display: block; }
  body.has-mobile-bar { padding-bottom: 60px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 320px 1fr; gap: var(--s7); }
}
.info-card {
  background: var(--paper-deep);
  padding: var(--s6);
  border-radius: var(--radius);
  border: 1px solid var(--hush);
}
.info-card h2 { font-size: 1.4rem; margin-bottom: var(--s4); }
.info-card dl { display: grid; gap: var(--s4); }
.info-card dt { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s1); }
.info-card dd { color: var(--ink); font-size: 1rem; }
.info-card a { color: var(--accent); border-bottom: 1px solid transparent; }
.info-card a:hover { border-color: var(--accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: var(--s3) var(--s4);
  background: #fff;
  border: 1px solid var(--hush);
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 133, 76, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 0.82rem; color: var(--ink-muted); margin-top: var(--s2); }
.form__error { color: #7a3134; font-size: 0.88rem; margin-top: var(--s2); }
.form__success {
  background: #e8f1e8;
  border: 1px solid #2d6a4f;
  color: #1e4d36;
  padding: var(--s5);
  border-radius: var(--radius);
  text-align: center;
}

.context-banner {
  background: var(--paper-deep);
  border: 1px solid var(--hush);
  padding: var(--s4) var(--s5);
  border-radius: var(--radius);
  margin-bottom: var(--s5);
  font-size: 0.95rem;
  color: var(--ink);
}
.context-banner strong { color: var(--accent-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: #14181c;
  color: rgba(255, 255, 255, 0.72);
  padding: var(--s8) 0 var(--s5);
  font-size: 0.92rem;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}
@media (min-width: 720px) {
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); gap: var(--s7); }
}
.site-footer h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: var(--s3);
}
.site-footer a { color: #fff; border-bottom: 1px solid rgba(168, 133, 76, 0.5); padding-bottom: 1px; }
.site-footer a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer__strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--s7);
  padding-top: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}
.eho {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.eho svg { width: 16px; height: 16px; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--s5) var(--s7);
}
.notfound h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: var(--s4); }
.notfound p { font-size: 1.15rem; margin-bottom: var(--s5); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
