/* SWMO Residential — luxury landing */
:root {
  --navy: #2e212c;
  --navy-mid: #3c2839;
  --navy-light: #52354d;
  --gold: #84607e;
  --gold-bright: #9e7a98;
  --gold-glow: rgba(143, 104, 137, 0.28);
  --cream: #f7f3eb;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #705c6d;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --text-on-dark-muted: rgba(255, 255, 255, 0.62);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 4px 24px rgba(25, 20, 24, 0.06);
  --shadow-card: 0 12px 40px rgba(25, 20, 24, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease), opacity 0.2s; }
a:hover { color: var(--gold); }

.container { width: min(1140px, 90vw); margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
.site-header.is-solid {
  background: rgba(25, 20, 24, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo span { font-weight: 500; opacity: 0.85; }
.header-call {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}
.header-call:hover { color: var(--gold-bright); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.header-alerts-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn-xl { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(165deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--gold-glow);
  color: var(--navy);
}
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* HERO */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    center / cover no-repeat
    url("/images/hero/hero-home.jpg"),
    center / cover no-repeat
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2400&q=88");
  transform: scale(1.03);
  animation: heroKen 18s ease-out forwards;
}
@keyframes heroKen {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(25, 20, 24, 0.92) 0%,
    rgba(25, 20, 24, 0.78) 42%,
    rgba(25, 20, 24, 0.45) 100%
  );
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  animation: fadeUp 0.9s var(--ease) both;
}
.hero-inner .hero-sub {
  max-width: 32rem;
}
.hero-copy--portal .hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.hero-search input {
  flex: 1;
  min-height: 52px;
  border: none;
  padding: 0 1rem;
  font: inherit;
  font-size: 1rem;
  border-radius: 10px;
  color: var(--navy);
}
.hero-search input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
}
.hero-search .btn {
  border-radius: 10px;
  white-space: nowrap;
}
.hero-copy { animation: fadeUp 0.9s var(--ease) both; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-on-dark-muted);
  max-width: 28rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}
.hero-trust-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 28rem;
}
.hero-trust-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  line-height: 1.45;
}
.hero-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-bright);
  font-weight: 700;
}
.form-reassurance {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-form-wrap { animation: fadeUp 0.9s 0.15s var(--ease) both; }
.hero-form-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}
.hero-form-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.25rem;
}
.hero-form { display: flex; flex-direction: column; gap: 0.85rem; }
.field span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(25, 20, 24, 0.1);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(158, 120, 151, 0.2);
}
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}
.consent input { margin-top: 0.2rem; accent-color: var(--gold); }
.form-error {
  display: none;
  font-size: 0.85rem;
  color: #b91c1c;
  margin: 0 0 0.5rem;
}
.form-error.visible { display: block; }
.hero-form-success { text-align: center; padding: 1.5rem 0; }
.success-mark {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-size: 1.5rem;
  line-height: 56px;
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.success-text { color: var(--text-muted); margin: 0; }

/* FEATURED HOMES */
.featured {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  background: var(--cream);
}
.featured-head { text-align: center; margin-bottom: 2.5rem; }
.featured-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}
.featured-status {
  text-align: center;
  color: var(--text-muted);
  margin: -1.5rem 0 2rem;
  font-size: 0.9rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(25, 20, 24, 0.15);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
  animation: fadeUp 0.7s var(--ease) both;
}
.featured-card:nth-child(2) { animation-delay: 0.08s; }
.featured-card:nth-child(3) { animation-delay: 0.16s; }
.featured-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 64px rgba(25, 20, 24, 0.22);
}
.featured-card-link {
  display: block;
  height: 100%;
  color: var(--white);
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.featured-card:hover img { transform: scale(1.06); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 20, 24, 0.92) 0%, rgba(25, 20, 24, 0.15) 55%, transparent 100%);
  pointer-events: none;
}
.featured-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  z-index: 1;
}
.featured-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--gold-bright);
}
.featured-city {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.featured-meta {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
}
.featured-note {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.featured-note a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.featured-skeleton {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #e8e4dc 8%, #f0ece4 18%, #e8e4dc 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.optional { font-weight: 400; opacity: 0.7; }

/* HOMES BY PRICE — SLIDESHOWS */
.portal-search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(25, 20, 24, 0.05);
}
.portal-search-main {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
}
.portal-mls-row {
  margin: 0.65rem 0 0;
  text-align: right;
}
.portal-mls-row .portal-mls-link {
  margin-left: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.75;
}
.portal-mls-row .portal-mls-link:hover {
  opacity: 1;
  color: var(--gold);
}
.portal-search-main input {
  flex: 1;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(25, 20, 24, 0.12);
  border-radius: 10px;
  font: inherit;
}
.portal-search-main input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.portal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.portal-filter {
  flex: 1;
  min-width: 120px;
}
.portal-filter span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.portal-filter select {
  width: 100%;
  min-height: 40px;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(25, 20, 24, 0.12);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: var(--cream);
}
.portal-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(25, 20, 24, 0.06);
}
.portal-quick-actions .btn-ghost {
  color: var(--navy);
  border-color: rgba(25, 20, 24, 0.15);
  background: var(--cream);
}
.portal-quick-actions .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--white);
}
.portal-mls-link {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}
.lead-card {
  background: linear-gradient(165deg, var(--navy-mid), var(--navy));
  color: var(--white);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 32px rgba(25, 20, 24, 0.2);
}
.lead-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--white);
}
.lead-card-lead {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.lead-card .field span {
  color: rgba(255, 255, 255, 0.7);
}
.lead-card input {
  background: rgba(255, 255, 255, 0.95);
  border: none;
}
.lead-card .consent {
  color: var(--text-on-dark-muted);
  font-size: 0.72rem;
}
.lead-card-call {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-bright);
}
.lead-card-call:hover {
  color: var(--white);
}
.lead-card-success {
  text-align: center;
  padding: 0.5rem 0;
}
.homes-list-item-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(25, 20, 24, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}
.homes-list-item-wrap .homes-list-item {
  border: none;
  border-radius: 0;
}
.homes-list-item-wrap:hover,
.homes-list-item-wrap:has(.homes-list-item.is-active) {
  border-color: rgba(143, 104, 137, 0.35);
  box-shadow: var(--shadow-card);
}
.homes-list-item-tour {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-top: 1px solid rgba(25, 20, 24, 0.08);
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: filter 0.2s;
}
.homes-list-item-tour:hover {
  filter: brightness(1.06);
}
.sticky-lead-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.65rem max(0.85rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
  background: rgba(25, 20, 24, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
}
.sticky-lead-bar .btn {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}
.sticky-lead-bar .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.homes-showcase {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--cream) 0%, #faf8f4 100%);
}
.homes-showcase-head {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}
.homes-showcase-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0.25rem 0 0;
}
.location-label {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  min-height: 1.25rem;
}
.location-label:empty {
  display: none;
}
.homes-showcase-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.location-finder {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.location-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}
.location-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.location-form input {
  flex: 1;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(25, 20, 24, 0.08);
}
.location-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.location-use-gps {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location-use-gps:hover { color: var(--navy); }
.location-mls-link {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}
.location-mls-link a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location-mls-link a:hover { color: var(--navy); }
.area-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.area-search-actions .btn-ghost {
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(25, 20, 24, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}
.area-search-actions .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}
.location-view-all {
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 20, 24, 0.12);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}
.location-view-all:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.homes-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  min-height: min(560px, 72vh);
  margin-top: 0.5rem;
}
.homes-map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.homes-map-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.homes-map {
  flex: 1;
  height: min(560px, 68vh);
  min-height: 320px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ece7eb;
  box-shadow: 0 8px 36px rgba(25, 20, 24, 0.1);
  border: 1px solid rgba(25, 20, 24, 0.06);
  z-index: 1;
}
.homes-list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 20, 24, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.homes-list-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(25, 20, 24, 0.06);
}
.homes-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  -webkit-overflow-scrolling: touch;
}
.homes-list-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: background 0.2s;
}
.homes-list-item:hover,
.homes-list-item.is-active {
  background: rgba(158, 120, 151, 0.08);
}
.homes-list-item-photo-wrap {
  position: relative;
  min-height: 88px;
  overflow: hidden;
}
.homes-list-item img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  display: block;
}
.homes-list-item-photos {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(43, 30, 41, 0.78);
  pointer-events: none;
}
.homes-list-item-body {
  padding: 0.65rem 0.75rem 0.65rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.homes-list-item-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.homes-list-item-address {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.homes-list-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.homes-list-item-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c3856;
}
.map-price-marker {
  background: none;
  border: none;
}
.map-price-label {
  display: inline-block;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(25, 20, 24, 0.35);
  border: 2px solid var(--white);
  line-height: 1.2;
}
.map-price-marker.is-active .map-price-label {
  background: var(--gold);
  color: var(--navy);
  z-index: 1000;
}
.homes-map:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.map-marker { background: none; border: none; }
.map-marker-pin {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 12px rgba(25, 20, 24, 0.35);
}
.map-marker-pin::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: 7px auto 0;
  background: var(--navy);
  border-radius: 50%;
  transform: rotate(45deg);
}
.map-marker-search {
  background: none;
  border: none;
}
.map-marker-search-dot {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--navy);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(25, 20, 24, 0.3);
}
.leaflet-popup.home-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(25, 20, 24, 0.18);
}
.leaflet-popup.home-popup .leaflet-popup-content {
  margin: 0;
  width: min(300px, 78vw) !important;
}
.leaflet-popup.home-popup .leaflet-popup-tip {
  background: var(--white);
}
.map-popup-card { font-family: var(--font-body); }
.map-popup-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--cream);
}
.map-popup-body { padding: 0.85rem 1rem 1rem; }
.map-popup-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.2rem;
}
.map-popup-address {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.map-popup-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.map-popup-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.map-popup-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.map-popup-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.map-popup-btn:hover { filter: brightness(1.05); }
.homes-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.homes-carousel-wrap { min-height: 120px; }
.homes-loading, .homes-empty, .reviews-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem 0;
}
.reviews-empty a { color: var(--gold); font-weight: 600; }

.hero-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.hero-reviews-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
}
.hero-reviews-stars {
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* REVIEWS */
.reviews {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: var(--cream);
}
.reviews-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto 0;
  max-width: 28rem;
}
.reviews-stat-card {
  flex: 1 1 9rem;
  padding: 1.1rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 6px 24px rgba(25, 20, 24, 0.06);
}
.reviews-stat-score {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.reviews-stat-stars {
  display: block;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin: 0.2rem 0;
}
.reviews-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}
.reviews-head {
  text-align: center;
  margin-bottom: 2rem;
}
.reviews-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0.35rem 0 0;
}
.reviews-summary {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.reviews-stars {
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-right: 0.35rem;
}
.reviews-carousel {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.reviews-track {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0.15rem;
}
.review-card {
  flex: 0 0 min(320px, 85vw);
  padding: 1.25rem 1.35rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(25, 20, 24, 0.06);
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.review-stars { color: var(--gold); font-size: 0.9rem; }
.review-author { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.review-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.review-time {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.reviews-foot {
  text-align: center;
  margin: 1.5rem 0 0;
}
.reviews-foot a {
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reviews-cta-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(25, 20, 24, 0.08);
}
.reviews-cta-lead {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}
.reviews-cta-note {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.reviews-more-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.reviews-more-note a {
  color: var(--gold);
  font-weight: 600;
}
.homes-loading,
.homes-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}
.price-slideshows {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}
.price-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.price-band-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.price-band-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slideshow {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}
.slideshow-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.slideshow-track::-webkit-scrollbar { height: 6px; }
.slideshow-track::-webkit-scrollbar-thumb {
  background: rgba(25, 20, 24, 0.2);
  border-radius: 999px;
}
.slideshow-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(25, 20, 24, 0.12);
  transition: background 0.2s, transform 0.2s;
}
.slideshow-btn:hover {
  background: var(--gold);
  transform: scale(1.05);
}
.slide-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  animation: fadeUp 0.5s var(--ease) both;
}
.slide-card-btn {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(25, 20, 24, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.slide-card-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(25, 20, 24, 0.16);
}
.slide-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}
.slide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.slide-card-btn:hover .slide-card-image img { transform: scale(1.04); }
.slide-card-price {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.slide-card-body {
  padding: 0.95rem 1rem 1.05rem;
  background: var(--white);
}
.slide-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.3rem;
  line-height: 1.25;
}
.slide-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* LISTING MODAL */
body.modal-open { overflow: hidden; }
.listing-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.listing-modal[hidden] { display: none !important; }
.listing-modal.is-open {
  display: flex !important;
  pointer-events: auto;
}
.listing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 24, 0.75);
  backdrop-filter: blur(6px);
}
.listing-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.35s var(--ease) both;
}
.listing-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(25, 20, 24, 0.65);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.listing-modal-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.listing-modal-media {
  min-height: 280px;
  background: var(--navy);
}
.listing-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.listing-gallery {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
}
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #171316;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.gallery-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: rgba(25, 20, 24, 0.5);
  z-index: 2;
}
.gallery-loading[hidden] { display: none !important; }
.gallery-loading-bar {
  display: block;
  width: min(220px, 72%);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.gallery-loading-bar__fill {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: var(--gold-bright, #997292);
  animation: gallery-load-pulse 1.1s ease-in-out infinite;
}
@keyframes gallery-load-pulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.gallery-counter {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.gallery-nav {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.gallery-nav:hover { background: var(--gold); }
.gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem 0.65rem;
  overflow-x: auto;
}
.gallery-thumbs button {
  flex: 0 0 56px;
  height: 42px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumbs button.is-active {
  opacity: 1;
  border-color: var(--gold);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-gallery-kw {
  padding: 0.5rem 0.65rem 0.65rem;
}
.gallery-kw-note {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  text-align: center;
}
.modal-kw-iframe {
  width: 100%;
  height: min(52vh, 480px);
  min-height: 320px;
  border: none;
  border-radius: 8px;
  background: #171316;
}
.listing-modal-panel {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.listing-modal-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.listing-modal-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.listing-modal-address {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.listing-modal-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.listing-modal-mls {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.listing-modal-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.listing-modal-form-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.listing-modal-call {
  margin-bottom: 1rem;
  text-align: center;
  text-decoration: none;
}
.listing-modal-submit {
  margin-top: 0.25rem;
  border: 1px solid rgba(25, 20, 24, 0.15);
  color: var(--navy);
  background: var(--white);
  font-weight: 600;
}
.listing-modal-submit:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* TRUST — single section */
.trust-single {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  background: var(--white);
}
.trust-single-head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}
.trust-single-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.15;
}
.trust-single-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.trust-single-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
.trust-single-card {
  padding: 1.25rem 1.35rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(25, 20, 24, 0.04);
  box-shadow: var(--shadow-soft);
}
.trust-single-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.trust-single-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.reviews-compact {
  text-align: center;
}
.reviews-feature {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0 auto 1.25rem;
  padding: 1.25rem 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 20, 24, 0.04);
  box-shadow: var(--shadow-soft);
}
.reviews-feature-score {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.reviews-feature-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.reviews-feature-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.reviews-google-btn {
  margin-top: 0.25rem;
}

/* PEACE OF MIND — legacy */
.peace {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: var(--white);
}
.peace-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}
.peace-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0.35rem 0 0.75rem;
}
.peace-lead {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.peace-promise {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}
.peace-promise h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.peace-promise p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.peace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.peace-card {
  padding: 1.35rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(25, 20, 24, 0.04);
}
.peace-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.peace-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.peace-quote {
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
}
.peace-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.4;
}

/* TRUST */
.trust {
  padding: clamp(4rem, 9vw, 5.5rem) 0;
  background: var(--navy);
  color: var(--text-on-dark);
}
.trust-head { text-align: center; margin-bottom: 2.75rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.trust-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin: 0.35rem 0 0.65rem;
  color: var(--white);
}
.trust-intro {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
.trust-disclaimer {
  text-align: center;
  max-width: 40rem;
  margin: 2.5rem auto 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
  opacity: 0.85;
}
.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin: 0 0 0.65rem;
}
.trust-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
  max-width: 22rem;
}

/* ABOUT */
.about {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  background: var(--white);
}
.about-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(25, 20, 24, 0.12);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.about-body h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}
.about-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.65;
  max-width: 36rem;
}
.about-kw {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.about-links a { color: var(--navy); }
.about-links a:hover { color: var(--gold); }

/* FINAL CTA */
.cta-final {
  padding: clamp(2.75rem, 7vw, 4rem) 0;
  background: linear-gradient(165deg, var(--navy-mid), var(--navy));
  text-align: center;
}
.cta-final-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.cta-lead {
  max-width: 26rem;
  margin: 0 auto 1.35rem;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.about-body-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.65;
  max-width: 36rem;
}
.cta-phone {
  display: block;
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.cta-phone:hover { color: var(--white); }

/* FOOTER */
.site-footer {
  padding: 2.5rem 0;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}
.footer-legal {
  max-width: 40rem;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--text-on-dark); font-weight: 500; }
.footer-copy { margin: 0; opacity: 0.6; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
body.has-sticky-lead {
  padding-bottom: 5rem;
}
@media (max-width: 960px) {
  .sticky-lead-bar {
    display: grid;
  }
  body {
    padding-bottom: 5.5rem;
  }
  .hero-search {
    flex-direction: column;
  }
  .hero-search .btn {
    width: 100%;
  }
  .portal-search-main {
    flex-direction: column;
  }
  .homes-explorer {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .homes-map {
    height: min(340px, 45vh);
    min-height: 260px;
  }
  .homes-list {
    max-height: min(420px, 50vh);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .slideshow-btn { display: none; }
  .slideshow { grid-template-columns: 1fr; }
  .location-form { flex-direction: column; }
  .listing-modal-layout { grid-template-columns: 1fr; }
  .peace-grid { grid-template-columns: 1fr; }
  .trust-single-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; text-align: center; }
  .trust-item p { margin: 0 auto; max-width: 24rem; }
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .about-lead { margin-left: auto; margin-right: auto; }
  .about-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* —— Zillow-style map explorer —— */
.browse-page {
  --header-h: 48px;
  --sidebar-w: min(480px, 50vw);
  --explorer-h: min(720px, calc(100dvh - var(--header-h) - 120px));
  --text: #141414;
  --text-muted: #5e4d5b;
  background: #f5f5f5;
}
.browse-page .site-header {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.browse-page .logo {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
}
.header-inner--compact { height: var(--header-h); }
.browse-page .header-call {
  font-size: 0.82rem;
  color: var(--gold-bright);
}
.map-explorer-main {
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
}
.map-explorer {
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  margin: 0 auto;
}
.map-explorer-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border-bottom: 1px solid rgba(25, 20, 24, 0.08);
}
.map-search-form {
  display: flex;
  flex: 1;
  min-width: min(100%, 280px);
  max-width: 420px;
  gap: 0.35rem;
}
.map-search-form input {
  flex: 1;
  font-size: 16px;
  min-height: 38px;
  padding: 0 0.65rem;
  border: 1px solid rgba(25, 20, 24, 0.14);
  border-radius: 8px;
  font-family: var(--font);
}
.map-search-form input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.map-search-form .btn-search {
  padding: 0 0.85rem;
  min-height: 38px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.map-mls-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.map-mls-link:hover { color: var(--gold); }
.map-toolbar-label {
  width: 100%;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  order: 3;
}
.map-toolbar-label:empty { display: none; }
.hero-compact {
  padding: 0.85rem 0 0.65rem;
  background: linear-gradient(180deg, var(--navy) 0%, #3c2839 100%);
  color: var(--white);
}
.hero-compact-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.75rem;
}
.hero-compact h1 {
  font-family: var(--font);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.hero-compact-copy p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  max-width: 36rem;
}
.hero-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.hero-compact .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.hero-reviews-badge {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--gold-bright);
}
.hero-reviews-stars {
  color: var(--gold);
  margin-right: 0.35rem;
}
.map-explorer-toolbar.portal-search-bar {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(25, 20, 24, 0.08);
  padding: 0.55rem 0.75rem 0.45rem;
}
.map-explorer-toolbar .portal-search-form {
  width: 100%;
}
.map-explorer-toolbar .portal-filters {
  margin-top: 0.45rem;
}
.map-explorer-toolbar .portal-quick-actions {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
}
.map-explorer-toolbar .quick-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-quick-city {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}
.reviews-section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: var(--white);
}
.reviews-section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.reviews-section-head h2 {
  font-family: var(--font);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0.25rem 0 0;
}
.lead-alerts-section {
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  background: var(--cream);
}
.lead-alerts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 960px;
}
.lead-alerts-copy h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.lead-alerts-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.lead-alerts-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lead-alerts-form input {
  font-size: 16px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(25, 20, 24, 0.14);
  border-radius: 8px;
  font-family: var(--font);
}
@media (max-width: 720px) {
  .lead-alerts-inner {
    grid-template-columns: 1fr;
  }
}
.map-explorer-split {
  display: grid;
  grid-template-columns: minmax(0, 52%) var(--sidebar-w);
  min-height: 0;
  height: var(--explorer-h);
  max-height: var(--explorer-h);
  border: 1px solid rgba(25, 20, 24, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(25, 20, 24, 0.06);
}
.map-explorer-map-wrap {
  position: relative;
  min-height: 0;
  min-width: 0;
}
.browse-page .map-explorer-map-wrap .homes-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.map-explorer-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--white);
  border-left: 1px solid rgba(25, 20, 24, 0.08);
  box-shadow: -4px 0 24px rgba(25, 20, 24, 0.04);
}
.sidebar-count {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid rgba(25, 20, 24, 0.06);
}
.browse-page .map-explorer-sidebar .homes-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.45rem;
  gap: 0.45rem;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}
.browse-page .homes-list-item-wrap {
  border: 1px solid rgba(25, 20, 24, 0.08);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.browse-page .homes-list-item-wrap:hover {
  border-color: rgba(143, 104, 137, 0.45);
  box-shadow: 0 4px 14px rgba(25, 20, 24, 0.08);
  transform: translateY(-1px);
}
.browse-page .homes-list-item-wrap:has(.homes-list-item.is-active) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.browse-page .homes-list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  width: 100%;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.browse-page .homes-list-item-photo-wrap {
  width: 112px;
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8eaed;
}
.browse-page .homes-list-item img {
  width: 112px;
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  object-fit: cover;
  object-position: center;
}
.browse-page .homes-list-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  padding: 0;
}
.browse-page .homes-list-item-price {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f191e;
  line-height: 1.2;
}
.browse-page .homes-list-item-city {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.browse-page .homes-list-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.browse-page .homes-list-item-address {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.browse-page .homes-list-item-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(25, 20, 24, 0.06);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.browse-page .homes-list-item:hover .homes-list-item-cta {
  background: var(--gold);
  color: var(--navy);
}
.browse-page .homes-empty {
  padding: 1rem 0.65rem;
  font-size: 0.82rem;
  text-align: center;
}
/* Compact map popup */
.leaflet-popup.map-popup-compact .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(25, 20, 24, 0.18);
}
.leaflet-popup.map-popup-compact .leaflet-popup-content {
  margin: 0;
  width: 232px !important;
  line-height: 1.3;
}
.leaflet-popup.map-popup-compact .leaflet-popup-tip {
  background: var(--white);
}
.map-popup-card {
  font-family: var(--font);
}
.map-popup-media {
  display: block;
  position: relative;
  background: #e8eaed;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.map-popup-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.map-popup-body {
  padding: 0.45rem 0.55rem 0.5rem;
}
.map-popup-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f191e;
}
.map-popup-meta {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.map-popup-address {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-popup-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: none;
  border-top: 1px solid rgba(25, 20, 24, 0.08);
  background: var(--navy);
  color: var(--gold-bright);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.map-popup-btn:hover {
  background: #2d1d2a;
}
.site-footer--minimal {
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--navy);
}
.site-footer--minimal .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.site-footer--minimal .footer-copy {
  margin: 0;
  font-size: 0.68rem;
  opacity: 0.75;
}
.site-footer--minimal .footer-links {
  margin: 0;
  gap: 0.85rem;
  font-size: 0.72rem;
}
.browse-page .listing-modal {
  padding: 0.75rem;
  align-items: center;
}
.browse-page .listing-modal-dialog {
  width: min(880px, 100%);
  max-height: min(88dvh, 720px);
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.browse-page .listing-modal-layout {
  grid-template-columns: 1.15fr 0.85fr;
  max-height: min(88dvh, 720px);
  overflow: hidden;
}
.browse-page .listing-modal-media {
  min-height: 0;
  max-height: none;
  background: #171316;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.browse-page .listing-gallery {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.browse-page .gallery-main {
  aspect-ratio: unset;
  height: min(38vh, 300px);
  max-height: 300px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #171316;
}
.browse-page .gallery-main img,
.browse-page .listing-modal-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(38vh, 300px);
  min-height: 0;
  object-fit: contain;
}
.browse-page .listing-modal-media > .listing-gallery + .gallery-thumbs {
  flex-shrink: 0;
}
.browse-page .listing-modal-panel {
  padding: 0.85rem 1rem 1rem;
  gap: 0.55rem;
  overflow-y: auto;
  max-height: min(88dvh, 720px);
}
.listing-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.modal-form-wrap {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(25, 20, 24, 0.08);
}
.modal-form-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.modal-success-note {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.browse-page .listing-modal-panel .btn-ghost {
  border: 1px solid rgba(25, 20, 24, 0.14);
  color: var(--navy);
  font-weight: 600;
}
.browse-page .listing-modal-price {
  font-family: var(--font);
  font-size: 1.2rem;
  margin: 0;
}
.browse-page .listing-modal-address {
  font-family: var(--font);
  font-size: 0.92rem;
  margin: 0;
}
.browse-page .listing-modal-meta {
  font-size: 0.8rem;
  margin: 0;
}
.browse-page .modal-form-compact input {
  width: 100%;
  font-size: 16px;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(25, 20, 24, 0.14);
  border-radius: 6px;
  margin-bottom: 0.35rem;
}
.browse-page .consent--compact {
  font-size: 0.68rem;
  margin: 0.2rem 0 0.35rem;
}
.featured-skeleton,
.browse-skeleton {
  display: none !important;
}
@media (max-width: 960px) {
  .browse-page {
    --sidebar-w: 100%;
    --explorer-h: min(720px, calc(100dvh - var(--header-h) - 48px));
  }
  .map-explorer {
    width: 100%;
  }
  .map-explorer-split {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-height: none;
    height: var(--explorer-h);
  }
  .map-explorer-map-wrap {
    min-height: 200px;
    max-height: 200px;
  }
  .map-explorer-sidebar {
    border-left: none;
    border-top: 1px solid rgba(25, 20, 24, 0.08);
    box-shadow: none;
  }
  .browse-page .listing-modal-layout {
    grid-template-columns: 1fr;
  }
  .browse-page .gallery-main {
    height: min(34vh, 240px);
    max-height: 240px;
    min-height: 160px;
  }
  .browse-page .gallery-main img {
    max-height: min(34vh, 240px);
  }
}
@media (min-width: 961px) {
  .browse-page .listing-modal-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Keep MLS listing photos sharp and correctly proportioned in the detail
   gallery. The frame adapts to the screen; the image itself is never stretched
   or cropped to fit it. */
.site-premium .lp-gallery-main #modal-image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(42vh, 360px) !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 760px) {
  .site-premium .lp-gallery-main #modal-image {
    max-height: min(36vh, 280px) !important;
  }
}
