/* ==========================================================================
   Ridenhour Real Estate Group — Design System
   Navy / Grey / White, Pacific Northwest editorial-minimal aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- Brand colors ---- */
  --navy-950: #0d1626;
  --navy-900: #101d33;
  --navy-800: #16294a;
  --navy-700: #1c355e;
  --navy-600: #24447a;
  --navy-500: #2f5596;

  --grey-900: #23262b;
  --grey-700: #454b54;
  --grey-600: #5c6470;
  --grey-500: #7a828d;
  --grey-400: #9aa1a9;
  --grey-300: #c3c8ce;
  --grey-200: #dfe2e6;
  --grey-100: #eef0f2;
  --grey-50:  #f6f7f8;

  --white: #ffffff;
  --forest-700: #2f4f43;   /* subtle PNW accent — used sparingly (map pins, badges) */
  --forest-500: #3f6a58;
  --gold-600: #a9822f;      /* used only for star ratings */

  /* ---- Semantic tokens ---- */
  --color-primary: var(--navy-800);
  --color-primary-dark: var(--navy-950);
  --color-on-primary: var(--white);
  --color-secondary: var(--grey-600);
  --color-accent: var(--forest-700);
  --color-background: var(--white);
  --color-surface: var(--grey-50);
  --color-foreground: var(--grey-900);
  --color-muted: var(--grey-100);
  --color-muted-foreground: var(--grey-600);
  --color-border: var(--grey-200);
  --color-destructive: #a3372f;
  --color-ring: var(--navy-600);

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4.25rem;

  /* ---- Spacing scale (4/8pt) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;

  /* ---- Radius / shadow / motion ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 22, 38, 0.06), 0 1px 1px rgba(13, 22, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 22, 38, 0.10), 0 2px 6px rgba(13, 22, 38, 0.06);
  --shadow-lg: 0 24px 60px rgba(13, 22, 38, 0.18), 0 8px 20px rgba(13, 22, 38, 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 400ms;

  --container-max: 1240px;
  --z-nav: 100;
  --z-overlay: 500;
  --z-modal: 1000;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  min-height: 100dvh;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
h1 { font-size: clamp(2.5rem, 4.4vw, var(--text-6xl)); }
h2 { font-size: clamp(1.95rem, 3vw, var(--text-4xl)); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-lg); }
p { color: var(--grey-700); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.lede { font-size: var(--text-lg); color: var(--grey-600); max-width: 60ch; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
.section { padding-block: var(--space-12); }
.section--tight { padding-block: var(--space-8); }
.section--surface { background: var(--color-surface); }
.section--navy { background: var(--navy-950); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--grey-300); }

.section-head { max-width: 640px; margin-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy-800); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-800); border: 1.5px solid var(--grey-300); }
.btn-outline:hover { border-color: var(--navy-800); background: var(--grey-50); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: var(--text-xs); min-height: 36px; }
.btn-block { width: 100%; }

/* ---- Top utility bar (compliance) ---- */
.utility-bar {
  background: var(--navy-950);
  color: var(--grey-300);
  font-size: var(--text-xs);
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
}
.utility-bar__brokerage {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.utility-bar__brokerage img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.utility-bar__contact { display: flex; align-items: center; gap: var(--space-5); }
.utility-bar__contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--grey-200); transition: color var(--duration-base); }
.utility-bar__contact a:hover { color: var(--white); }
@media (max-width: 700px) {
  .hide-mobile { display: none !important; }
}

/* ---- Main nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.brand__mark {
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
}
.brand__mark img { height: 30px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--navy-950); font-weight: 600; }
.brand__text span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-600); }

/* Bigger brand presence on the homepage specifically */
body[data-page="home"] .brand__mark { padding: 10px 16px; }
body[data-page="home"] .brand__mark img { height: 42px; }
body[data-page="home"] .brand__text strong { font-size: var(--text-xl); }
body[data-page="home"] .brand__text span { font-size: 0.72rem; }
body[data-page="home"] .utility-bar__brokerage img { height: 30px; }

.nav__links { display: flex; align-items: center; gap: var(--space-6); }
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-700);
  position: relative;
  padding-block: 4px;
  transition: color var(--duration-base);
}
.nav__links a:hover { color: var(--navy-900); }
.nav__links a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--forest-700);
  border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav__toggle:hover { background: var(--grey-100); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .btn span.hide-mobile-btn { display: none; }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--navy-950);
}
.nav-mobile.is-open { display: block; }
.nav-mobile__inner { padding: var(--space-5); height: 100%; display: flex; flex-direction: column; }
.nav-mobile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); }
.nav-mobile__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.nav-mobile__links { display: flex; flex-direction: column; gap: var(--space-2); }
.nav-mobile__links a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--white);
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile__footer { margin-top: auto; padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.nav-mobile__footer a { color: var(--grey-300); font-size: var(--text-sm); }

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__art { position: absolute; inset: 0; z-index: -1; background: var(--navy-950); overflow: hidden; }
.hero__art img, .hero__art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-slideshow { position: absolute; inset: 0; }
.hero-slideshow__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease, transform 7s ease-out;
}
.hero-slideshow__slide.is-active { opacity: 1; z-index: 1; transform: scale(1.08); }
.hero-slideshow__credit {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-4);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.55);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow__slide { transition: opacity 0.6s ease; transform: none !important; }
}
.hero__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 32, 0.35) 0%, rgba(10, 17, 32, 0.32) 40%, rgba(10, 17, 32, 0.82) 100%),
    linear-gradient(100deg, rgba(10, 17, 32, 0.75) 0%, rgba(10, 17, 32, 0.15) 55%);
}
.hero__inner {
  width: 100%;
  padding-block: var(--space-12) var(--space-10);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: end;
}
.hero__content h1 { color: var(--white); margin-bottom: var(--space-5); }
.hero__content p { color: rgba(255,255,255,0.82); margin-bottom: var(--space-6); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Search overlay card */
.search-card {
  background: rgba(16, 29, 51, 0.72);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.search-card h3 { color: var(--white); font-size: var(--text-lg); margin-bottom: var(--space-4); }
.search-card__row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; }
.field input, .field select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  font-size: var(--text-sm);
}
.field input::placeholder { color: rgba(255,255,255,0.5); }
.field select option { color: var(--grey-900); }
.field input:focus, .field select:focus { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 1px; }

/* Search box mounted on a real estate sign post */
.sign-post {
  position: relative;
  width: clamp(260px, 22vw, 340px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.sign-post__img { width: 100%; height: auto; display: block; }
.sign-post__panel {
  position: absolute;
  left: 18.3%;
  right: 30.2%;
  top: 24.5%;
  bottom: 26.6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7% 8% 6%;
  text-align: center;
}
.sign-post__logo { width: 92%; height: auto; margin-bottom: 6%; }
.sign-post__eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-700);
  margin-bottom: 8%;
}
.sign-post__form { width: 100%; display: flex; flex-direction: column; gap: 8%; }
.sign-post__form input {
  width: 100%;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  padding: 8% 6%;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  text-align: center;
  color: var(--navy-950);
  min-height: 0;
}
.sign-post__form input:focus { border-color: var(--navy-600); outline: none; }
.sign-post__form .btn {
  font-size: clamp(0.68rem, 1.5vw, 0.82rem);
  padding: 8% 6%;
  min-height: 0;
}
.sign-post__brokerage { margin-top: 7%; width: 100%; }
.sign-post__brokerage img { width: 100%; height: auto; object-fit: contain; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: var(--space-10); }
  .sign-post { width: clamp(220px, 55vw, 300px); margin-top: var(--space-6); }
}

/* Page header (non-home hero, smaller) */
.page-hero {
  position: relative;
  color: var(--white);
  padding-block: var(--space-10) var(--space-8);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__art { position: absolute; inset: 0; z-index: -1; background: var(--navy-950); }
.page-hero__art img, .page-hero__art svg { width: 100%; height: 100%; object-fit: cover; }
.page-hero__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 17, 32, 0.88) 0%, rgba(10, 17, 32, 0.66) 55%, rgba(10, 17, 32, 0.78) 100%);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.82); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: var(--text-xs); color: rgba(255,255,255,0.65); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.listing-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.listing-card__photo svg { width: 30%; height: 30%; opacity: 0.85; }
.listing-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--forest-700); color: var(--white);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.listing-card__tag--sold { background: var(--grey-700); }
.listing-card__tag--pending { background: var(--navy-600); }
.listing-card__sample {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(13,22,38,0.55); color: rgba(255,255,255,0.85);
  padding: 4px 9px; border-radius: var(--radius-pill);
}
.listing-card__body { padding: var(--space-5); }
.listing-card__price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--navy-950); margin-bottom: 2px; }
.listing-card__address { font-size: var(--text-sm); color: var(--grey-600); margin-bottom: var(--space-3); }
.listing-card__stats { display: flex; gap: var(--space-4); font-size: var(--text-sm); color: var(--grey-700); border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.listing-card__stats span { display: flex; align-items: center; gap: 6px; }
.listing-card__stats svg { width: 16px; height: 16px; color: var(--grey-500); }

/* ---- Badges / pills ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--grey-100); color: var(--grey-700); }
.pill--navy { background: var(--navy-900); color: var(--white); }
.pill--forest { background: rgba(47,79,67,0.1); color: var(--forest-700); }

/* ---- Forms ---- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.form-field label { font-size: var(--text-sm); font-weight: 600; color: var(--grey-800); }
.form-field .hint { font-size: var(--text-xs); color: var(--grey-600); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  min-height: 48px;
  font-size: var(--text-base);
  background: var(--white);
  transition: border-color var(--duration-base);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--navy-600); }
.form-field .error { font-size: var(--text-xs); color: var(--color-destructive); display: none; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--color-destructive); }
.form-field.has-error .error { display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Filter bar ---- */
.filter-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-8);
}
@media (max-width: 980px) { .filter-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .filter-bar { grid-template-columns: 1fr; } }
.filter-bar label { font-size: var(--text-xs); font-weight: 600; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 6px; }
.filter-bar select, .filter-bar input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  min-height: 44px;
  background: var(--white);
  font-size: var(--text-sm);
}

/* ---- Stats strip ---- */
.stats-strip { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: center; text-align: center; }
.stat { min-width: 140px; }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--text-3xl); color: var(--white); }
.stat span { font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-400); }

/* ---- Reviews ---- */
.review-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.review-card__stars { display: flex; gap: 3px; color: var(--gold-600); }
.review-card__stars svg { width: 16px; height: 16px; }
.review-card__stars--sm svg { width: 12px; height: 12px; }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.review-card__transaction { font-size: var(--text-xs); font-weight: 600; color: var(--forest-700); margin-top: -8px; }
.review-card__text { color: var(--grey-700); font-size: var(--text-base); line-height: 1.7; flex: 1; }
.review-card__subratings { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.review-card__subrating { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: 0.7rem; color: var(--grey-600); }
.review-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.review-card__name { font-weight: 600; color: var(--navy-950); font-size: var(--text-sm); }
.review-card__meta { font-size: var(--text-xs); color: var(--grey-600); }

.rating-summary {
  display: flex; align-items: center; gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.rating-summary__score { text-align: center; }
.rating-summary__score strong { font-family: var(--font-display); font-size: var(--text-6xl); color: var(--navy-950); line-height: 1; }
.rating-summary__score .review-card__stars { justify-content: center; margin-top: 8px; }
.rating-summary__count { font-size: var(--text-sm); color: var(--grey-600); margin-top: 4px; }
.rating-summary__divider { width: 1px; align-self: stretch; background: var(--color-border); }
.rating-summary__source { flex: 1; min-width: 220px; }

/* ---- Map ---- */
.map-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
#sold-map, #listing-map { width: 100%; height: 560px; background: var(--grey-100); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 220px !important; }
.map-pin-popup { font-family: var(--font-body); }
.map-pin-popup__photo { width: 100%; height: 110px; overflow: hidden; background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); }
.map-pin-popup__photo img { width: 100%; height: 100%; object-fit: cover; }
.map-pin-popup__placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(255,255,255,0.8); }
.map-pin-popup__placeholder .icon, .map-pin-popup__placeholder svg { width: 26px; height: 26px; }
.map-pin-popup__placeholder span { font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.map-pin-popup__body { padding: 10px 12px 12px; }
.map-pin-popup strong { display: block; font-family: var(--font-display); color: var(--navy-950); font-size: var(--text-sm); line-height: 1.3; }
.map-pin-popup .price { color: var(--forest-700); font-weight: 700; margin: 4px 0; font-size: var(--text-sm); }
.map-pin-popup .addr { font-size: var(--text-xs); color: var(--grey-600); }

/* ---- Idaho activities (interactive gallery) ---- */
.activity-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.activity-card__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.activity-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.activity-card:hover .activity-card__photo img { transform: scale(1.06); }
.activity-card__count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(13,22,38,0.65); color: var(--white);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 4px 9px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 4px;
}
.activity-card__count svg { width: 12px; height: 12px; }
.activity-card__body { padding: var(--space-4) var(--space-5); }
.activity-card__body h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.activity-card__body p { font-size: var(--text-sm); color: var(--grey-600); margin: 0; }

.activity-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.activity-modal.is-open { display: flex; }
.activity-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 17, 32, 0.82);
  backdrop-filter: blur(6px);
}
.activity-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.activity-modal__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(13,22,38,0.55);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base);
}
.activity-modal__close:hover { background: rgba(13,22,38,0.8); }
.activity-modal__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-950);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.activity-modal__stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(13,22,38,0.55); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base);
}
.activity-modal__nav:hover { background: rgba(13,22,38,0.8); }
.activity-modal__nav--prev { left: var(--space-4); }
.activity-modal__nav--next { right: var(--space-4); }
.activity-modal__dots {
  position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.activity-modal__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background var(--duration-base), transform var(--duration-base); }
.activity-modal__dot.is-active { background: var(--white); transform: scale(1.25); }
.activity-modal__body { padding: var(--space-6); }
.activity-modal__body h3 { margin-bottom: var(--space-2); }
.activity-modal__body .tagline { color: var(--forest-700); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-4); }
.activity-modal__body p.desc { color: var(--grey-700); line-height: 1.75; }

@media (max-width: 640px) {
  .activity-modal { padding: 0; align-items: flex-end; }
  .activity-modal__panel { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* ---- Footer ---- */
.footer { background: var(--navy-950); color: var(--grey-300); }
.footer__top { padding-block: var(--space-10); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-8); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 34px; margin-bottom: var(--space-4); }
.footer__brand p { color: var(--grey-400); font-size: var(--text-sm); max-width: 32ch; }
.footer h4 { color: var(--white); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__links a { color: var(--grey-400); font-size: var(--text-sm); transition: color var(--duration-base); }
.footer__links a:hover { color: var(--white); }
.footer__compliance { display: flex; align-items: flex-start; gap: var(--space-4); }
.footer__compliance img { height: 46px; width: auto; background: var(--white); padding: 8px; border-radius: var(--radius-sm); }
.footer__compliance p { font-size: var(--text-xs); color: var(--grey-400); line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--space-5); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-xs); color: var(--grey-400); }
.footer__legal { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer__fair-housing { display: flex; align-items: center; gap: 8px; }
.footer__fair-housing svg { width: 20px; height: 20px; color: var(--grey-400); }

/* ---- Utilities ---- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.text-center { text-align: center; }
.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;
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.icon { width: 20px; height: 20px; }

.empty-state { text-align: center; padding: var(--space-12) var(--space-5); color: var(--grey-500); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto var(--space-4); color: var(--grey-300); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-950); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 8px 0; z-index: 2000;
}
.skip-link:focus { left: 0; }
