:root {
  --cream: #FBF7F2;
  --cream-2: #F4ECE0;
  --forest: #2F4A3A;
  --forest-2: #3a5a47;
  --charcoal: #2A2A2A;
  --muted: #5b5b5b;
  --gold: #B8915C;
  --gold-2: #a07e4d;
  --line: #e5dcc9;
  --sold: #8a2a2a;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(42,42,42,.04), 0 8px 24px rgba(47,74,58,.06);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--forest); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--gold-2); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* Header (same shell as index.html) */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-2);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--forest);
  letter-spacing: .3px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: .98rem;
  color: var(--charcoal);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-2); }
.nav-links a[aria-current="page"] { color: var(--forest); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--forest);
}
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Page hero */
.page-hero {
  padding: 60px 0 20px;
  text-align: center;
}
.page-hero .eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-hero .lede {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.12rem;
  color: var(--muted);
}

section { padding: 60px 0; }
section.tinted { background: var(--cream-2); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Listings grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.listing-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(42,42,42,.05), 0 16px 32px rgba(47,74,58,.10);
}

.listing-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--cream-2);
  overflow: hidden;
}
.listing-photo img,
.listing-photo svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* SOLD overlay */
.listing-photo::after { content: none; }
.listing-card.is-sold .listing-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, .25);
  pointer-events: none;
}
.sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  background: rgba(138, 42, 42, 0.5);
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  padding: 8px 38px;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* Buyer-side stamp: longer text, so smaller type */
.sold-stamp.is-buyer {
  font-size: 1.6rem;
  letter-spacing: .06em;
  padding: 6px 20px;
  background: rgba(47, 74, 58, 0.6);
}

/* Small status pill for active listings */
.status-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(251, 247, 242, .96);
  color: var(--forest);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.listing-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.listing-address {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  color: var(--forest);
  font-weight: 600;
  line-height: 1.2;
}
.listing-locale {
  color: var(--muted);
  font-size: .95rem;
  margin-top: -4px;
}
.listing-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 4px;
}
.listing-price .price-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 2px;
}
.listing-specs {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  font-size: .95rem;
}
.listing-specs .spec-facts { display: flex; gap: 18px; flex-wrap: wrap; }
.listing-specs .spec strong { color: var(--forest); font-weight: 600; }
.listing-specs .spec .label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.listing-description {
  color: var(--muted);
  font-size: .98rem;
  margin: 0;
}
.listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
}
.listing-meta .agent { font-weight: 500; color: var(--charcoal); }

/* Card "More" link: sits on the facts row, right-aligned, with a
   stretched click target so the whole card is clickable. */
.card-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: .92rem;
  font-weight: 500;
  color: var(--forest);
  transition: color .15s ease;
}
.card-link svg {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  transition: transform .15s ease;
}
.card-link:hover, .card-link:focus-visible { color: var(--gold-2); }
.card-link:hover svg { transform: translateX(3px); }
.card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-link:focus-visible::before {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Empty state */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  margin-top: 32px;
}

/* Coming-soon card (shown when there is no active listing) */
.coming-soon {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 36px;
  text-align: center;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.coming-soon .cs-eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 10px;
}
.coming-soon h3 { font-size: 1.8rem; margin-bottom: .4em; }
.coming-soon p { color: var(--muted); margin: 0 auto 22px; max-width: 44ch; }
.coming-soon .cs-button {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  font-weight: 500;
  font-size: .95rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background .15s ease;
}
.coming-soon .cs-button:hover,
.coming-soon .cs-button:focus-visible { background: var(--forest-2); color: var(--cream); }
@media (max-width: 520px) {
  .coming-soon { padding: 32px 22px; }
  .coming-soon h3 { font-size: 1.55rem; }
}

/* === Featured listing banner === */
.featured-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: var(--cream-2);
  padding: 24px 0 0;
}
.banner-header {
  max-width: var(--maxw);
  margin: 0 auto 14px;
  padding: 0 22px;
  text-align: center;
}
.banner-header .eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--gold-2);
  font-weight: 600;
  margin: 0;
}
.featured-banner[data-aspect="16:9"] .banner-stage { aspect-ratio: 16 / 9; }
.featured-banner[data-aspect="21:9"] .banner-stage { aspect-ratio: 21 / 9; }
.banner-stage {
  position: relative;
  width: 100%;
  outline: none;
}
.banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.banner-photo.active { opacity: 1; }
.banner-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,42,42,.5) 0%, rgba(42,42,42,.05) 40%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 247, 242, 0.85);
  color: var(--forest);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, transform .15s ease;
  z-index: 3;
}
.featured-banner:hover .banner-arrow,
.featured-banner:focus-within .banner-arrow { opacity: 1; }
.banner-arrow:hover, .banner-arrow:focus-visible {
  background: rgba(251, 247, 242, 1);
  transform: translateY(-50%) scale(1.05);
}
.banner-arrow:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.banner-arrow.prev { left: 22px; }
.banner-arrow.next { right: 22px; }
.banner-arrow svg { width: 22px; height: 22px; }
.banner-info {
  position: absolute;
  bottom: 36px;
  left: max(28px, calc((100% - 1120px) / 2 + 22px));
  background: rgba(251, 247, 242, 0.8);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  padding: 18px 24px;
  border-radius: 14px;
  max-width: 460px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  z-index: 2;
}
.banner-info .eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--gold-2);
  font-weight: 600;
  margin: 0 0 6px;
}
.banner-info h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  font-size: 1.85rem;
  margin: 0 0 2px;
  line-height: 1.15;
}
.banner-info .locale {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 6px;
}
.banner-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: .95rem;
  color: var(--charcoal);
}
.banner-specs .price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--forest);
  margin-right: 4px;
}
.banner-specs .separator {
  color: var(--muted);
  font-size: .8rem;
}
.banner-actions { margin-top: 2px; }
.banner-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--forest);
  border-bottom: 1px solid rgba(47,74,58,.3);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.banner-actions a:hover,
.banner-actions a:focus-visible {
  color: var(--gold-2);
  border-color: var(--gold-2);
}
.banner-actions svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  transition: transform .15s ease;
}
.banner-actions a:hover svg { transform: translate(2px, -2px); }
.banner-dots {
  position: absolute;
  bottom: 22px;
  right: max(28px, calc((100% - 1120px) / 2 + 22px));
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(251, 247, 242, 0.45);
  border: 1px solid rgba(251, 247, 242, 0.85);
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.banner-dots .dot.active {
  background: rgba(251, 247, 242, 1);
  transform: scale(1.15);
}
.banner-dots .dot:hover, .banner-dots .dot:focus-visible {
  background: rgba(251, 247, 242, .85);
}
.banner-dots .dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Tablet and smaller: info card flows below the photo.
   Only the two widest breakpoints keep the overlaid card. */
@media (max-width: 960px) {
  .banner-info {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    padding: 22px 22px 28px;
  }
  .banner-info h1 { font-size: 1.5rem; }
  .banner-specs .price { font-size: 1.2rem; }
  .banner-arrow {
    width: 36px;
    height: 36px;
    opacity: 1;
  }
  .banner-arrow.prev { left: 10px; }
  .banner-arrow.next { right: 10px; }
  .banner-dots {
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Footer */
footer.site {
  background: var(--forest);
  color: #e6ddc9;
  padding: 38px 0;
  margin-top: 40px;
}
footer.site .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  align-items: start;
  font-size: .92rem;
}
footer.site p { margin: 0 0 6px; }
footer.site p:last-child { margin-bottom: 0; }
footer.site .office-name { font-weight: 600; color: #fff; letter-spacing: .02em; }
footer.site address { font-style: normal; color: #e6ddc9; line-height: 1.55; }
footer.site a { color: #e6ddc9; text-decoration: none; border-bottom: 1px solid rgba(230,221,201,.3); }
footer.site a:hover, footer.site a:focus { border-bottom-color: #e6ddc9; }
footer.site .footer-right { text-align: right; }
footer.site .licenses { color: #c8bda0; font-size: .85rem; }
footer.site .eho { color: #d6c9a8; }
footer.site .site-credit { margin-top: 12px; font-size: .82rem; color: #c8bda0; }
@media (max-width: 720px) {
  footer.site .container { grid-template-columns: 1fr; }
  footer.site .footer-right { text-align: left; }
}

/* Tablet+ multi-column grid: tame the SOLD stamp on smaller cards.
   712px is where the auto-fill grid switches from 1 to 2 columns
   (container 668px = 2 * 320px minmax + 28px gap). */
@media (min-width: 712px) {
  .sold-stamp {
    font-size: 2.1rem;
    padding: 6px 28px;
    border-width: 2px;
  }
  .sold-stamp.is-buyer {
    font-size: 1.3rem;
    padding: 5px 16px;
  }
}

@media (max-width: 880px) {
  section { padding: 48px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 22px;
    border-top: 1px solid var(--line);
  }
  .nav-links a:first-child { border-top: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
