/* SWMO Residential — premium production layout */
.site-premium {
  --navy: #071526;
  --navy-mid: #0c1f35;
  --gold: #b8923f;
  --gold-bright: #c9a24d;
  --cream: #f6f3ec;
  --white: #ffffff;
  --text: #141414;
  --text-muted: #4a5560;
  --header-h: 56px;
  --listings-col: minmax(380px, 46%);
  --zillow-border: #d1d5db;
  --zillow-bg: #f6f6f6;
  --zillow-text: #2a2a33;
  --zillow-muted: #596b82;
  background: var(--cream);
  color: var(--text);
  padding-top: var(--header-h);
}

.site-premium .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.site-premium .eyebrow-light { color: var(--gold-bright); }
.site-premium .section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  text-align: center;
}

/* Header */
.site-premium .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}
.site-premium .header-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--header-h);
}
.site-premium .logo {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-right: auto;
}
.site-premium .logo span { font-weight: 500; opacity: 0.85; }
.site-premium .header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-premium .header-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.site-premium .header-nav a:hover { color: var(--gold-bright); }
.site-premium .header-phone {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
}
.site-zillow .header-cta--desktop {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-premium .nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero */
.hero-premium {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2844 55%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 0.95rem 0 1.05rem;
}
.hero-premium-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 1.15rem;
  align-items: center;
}
.hero-premium h1 {
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 0 0.6rem;
  font-size: clamp(0.88rem, 1.8vw, 0.95rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.site-premium .btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.hero-premium-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(201, 162, 39, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.14);
}
.hero-premium-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 21, 38, 0.25));
}
.hero-premium-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}
.hero-reviews-badge {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--gold-bright);
}
.hero-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0.35rem;
  max-width: 36rem;
}
.hero-search-form input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--zillow-text);
}
.hero-search-form input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35);
}
.hero-search-form .btn {
  min-height: 48px;
  padding: 0 1.35rem;
  white-space: nowrap;
}
.hero-search-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 32rem;
}

/* Trending strip */
.trending-band {
  padding: 1.25rem 0 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--zillow-border);
}
.trending-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.trending-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zillow-text);
}
.trending-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--zillow-muted);
}
.trending-see-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: #006aff;
  white-space: nowrap;
}
.trending-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.trending-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
}
.trending-card-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--zillow-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.trending-card-hit:hover {
  border-color: #9ca3af;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.trending-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ecf0;
}
.trending-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trending-card-body {
  padding: 0.55rem 0.65rem 0.65rem;
}
.trending-card-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--zillow-text);
}
.trending-card-address {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--zillow-muted);
}
.trending-loading,
.trending-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--zillow-muted);
}

/* City quick picks */
.city-quick-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  padding: 0 0 0.75rem;
}
.city-quick-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zillow-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}
.city-quick {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--zillow-border);
  background: var(--white);
  color: var(--zillow-text);
  cursor: pointer;
}
.city-quick:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* MLS search — Zillow-style search strip */
.mls-search {
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--zillow-border);
}
.site-premium .section-title {
  margin: 0 0 0.75rem;
}
.mls-search-head {
  padding: 1rem 0 0.35rem;
}
.mls-search-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--zillow-text);
  margin: 0;
  letter-spacing: -0.02em;
}
.mls-search-label {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--zillow-muted);
}
.mls-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0 1rem;
}
.mls-toolbar-form {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: min(100%, 560px);
  align-items: stretch;
}
.mls-toolbar-form input,
.mls-toolbar-form select {
  font-size: 16px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--zillow-border);
  border-radius: 6px;
  font-family: inherit;
  background: var(--white);
  color: var(--zillow-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mls-toolbar-form input:focus,
.mls-toolbar-form select:focus {
  outline: none;
  border-color: #006aff;
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.15);
}
.mls-toolbar-form input {
  flex: 2;
  min-width: 140px;
}
.mls-toolbar-form select {
  flex: 1;
  min-width: 100px;
}
.mls-toolbar-form .btn {
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.mls-full-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.mls-full-link:hover { color: var(--gold); }

.mls-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 1rem;
}
.price-preset {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--zillow-border);
  background: var(--white);
  color: var(--zillow-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.price-preset:hover {
  border-color: #9ca3af;
  color: var(--zillow-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.price-preset.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(7, 21, 38, 0.2);
}

/* List-only (default) vs map split */
.site-premium #homes-explorer.mls-explorer.is-list-only {
  display: block !important;
  height: auto;
  min-height: 0;
  max-height: none;
}
.site-premium #homes-explorer.is-list-only .mls-listings-panel,
.site-premium #homes-explorer.is-list-only .mls-sidebar {
  border-right: none;
  max-height: none;
}
.site-premium #homes-explorer.is-list-only .homes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  flex-direction: row;
  gap: 1.25rem;
  padding: 1rem 0;
}
.site-premium #homes-explorer.is-list-only .listing-card-hit {
  height: 100%;
}
.site-premium #homes-explorer.is-map-mode.mls-explorer {
  display: grid !important;
  grid-template-columns: var(--listings-col) minmax(0, 1fr) !important;
  grid-template-rows: 1fr;
  height: min(78vh, calc(100dvh - var(--header-h) - 88px));
  min-height: 520px;
}
.site-premium #homes-explorer.is-map-mode .homes-list {
  display: flex;
  flex-direction: column;
}
.mls-sidebar-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.map-view-toggle {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--zillow-border);
  background: var(--white);
  color: #006aff;
  cursor: pointer;
}
.map-view-toggle:hover {
  background: #eef4ff;
}

/* Zillow-style split: scrollable list (left) + map (right) */
.site-premium #homes-explorer.mls-explorer {
  display: grid !important;
  grid-template-columns: var(--listings-col) minmax(0, 1fr) !important;
  grid-template-rows: 1fr;
  height: min(78vh, calc(100dvh - var(--header-h) - 88px));
  min-height: 520px;
  background: var(--zillow-bg);
  border-top: 1px solid var(--zillow-border);
}
.site-premium #homes-explorer .mls-listings-panel,
.site-premium #homes-explorer .mls-sidebar {
  grid-column: 1 !important;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--zillow-bg);
  border-right: 1px solid var(--zillow-border);
}
.site-premium #homes-explorer .mls-map-wrap {
  grid-column: 2 !important;
  grid-row: 1;
  position: relative;
  min-height: 0;
  min-width: 0;
  background: #dfe6ed;
}
.site-premium #homes-explorer .homes-map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.mls-sidebar-head {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--zillow-border);
}
.mls-sidebar-count {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--zillow-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.mls-sidebar-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--zillow-muted);
  font-weight: 400;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.active-filters[hidden] { display: none; }
.filter-chip {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zillow-text);
  background: #eef0f3;
  border: 1px solid var(--zillow-border);
  border-radius: 4px;
}
.homes-prompt {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--zillow-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.homes-prompt strong {
  display: block;
  color: var(--zillow-text);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.list-status {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--zillow-muted);
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--zillow-border);
}
.list-status[hidden],
.list-status:empty { display: none; }
.site-premium .homes-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}
.site-premium .homes-list-more {
  flex-shrink: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  width: 100%;
  border: none;
  border-top: 1px solid var(--zillow-border);
  border-radius: 0;
  background: var(--white);
  color: #006aff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.site-premium .homes-list-more:hover {
  background: #eef4ff;
}
.leaflet-tooltip.map-hover-tooltip {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  white-space: normal;
}
.map-hover-card {
  padding: 0.5rem 0.65rem;
  min-width: 120px;
  max-width: 200px;
  background: #fff;
  border: 1px solid var(--zillow-border);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  text-align: left;
}
.map-hover-card strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--zillow-text);
  line-height: 1.2;
}
.map-hover-card span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zillow-muted);
  line-height: 1.35;
}

/* Zillow-style listing cards */
.listing-card {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--zillow-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.listing-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #b8c0cc;
}
.listing-card.is-active {
  border-color: #006aff;
  box-shadow: 0 0 0 2px rgba(0, 106, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
}
.listing-card-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.listing-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e4e9ef;
  overflow: hidden;
}
.listing-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.listing-card:hover .listing-card-photo img {
  transform: scale(1.02);
}
.listing-card-body {
  padding: 0.75rem 0.875rem 0.875rem;
}
.listing-card-price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zillow-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.listing-card-facts {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zillow-text);
  line-height: 1.35;
}
.listing-card-address {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--zillow-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.homes-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--zillow-muted);
  line-height: 1.5;
}
.homes-empty a {
  color: #006aff;
  font-weight: 600;
}

/* Reviews band */
.reviews-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0c2238 100%);
  color: var(--white);
  padding: 1rem 0;
  border-top: 2px solid rgba(201, 162, 39, 0.35);
}
.reviews-headline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--white);
  line-height: 1.25;
}
.reviews-band-inner {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 1rem;
  align-items: start;
}
.reviews-score-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0.35rem 0 0.65rem;
}
.reviews-big-score {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}
.reviews-big-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.reviews-score-label {
  width: 100%;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.reviews-trust {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.88;
}
.reviews-band .reviews-carousel {
  min-height: 80px;
}
.reviews-band .review-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.reviews-band .review-text { color: rgba(255, 255, 255, 0.9); }
.reviews-band .review-author { color: var(--gold-bright); }
.reviews-band-footer {
  border-top: none;
  border-bottom: 2px solid rgba(201, 162, 39, 0.35);
  margin-bottom: 0;
  padding: 2rem 0 2.25rem;
}
.reviews-band-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.reviews-band-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1rem;
}
.reviews-disclaimer {
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.85);
}
.reviews-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.reviews-band .review-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  min-height: 0;
}
.reviews-band .review-card--google {
  border-color: rgba(66, 133, 244, 0.45);
  background: rgba(66, 133, 244, 0.12);
}
.reviews-band .review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.reviews-band .review-source {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.reviews-band .review-source--google {
  background: rgba(66, 133, 244, 0.35);
  color: #fff;
}
.reviews-band .review-stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.reviews-band .review-text {
  flex: 1;
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
}
.reviews-band .review-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.reviews-band .review-time {
  margin: 0;
  opacity: 0.7;
}
.reviews-more-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  opacity: 0.9;
}
.reviews-more-note a {
  color: var(--gold-bright);
  font-weight: 600;
}

/* Trust */
.trust-band:not(.trust-band--photo) {
  padding: 1rem 0;
  background: var(--white);
}

.trust-band--photo {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: transparent;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.trust-card {
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, #f0ebe0 0%, var(--cream) 100%);
  border-radius: 10px;
  border: 1px solid rgba(7, 21, 38, 0.07);
  box-shadow: 0 4px 14px rgba(7, 21, 38, 0.06);
}
.trust-icon {
  display: flex;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.trust-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.trust-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* About */
.about-agent {
  padding: 1rem 0;
  background: var(--cream);
}
.about-agent-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.about-agent-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(7, 21, 38, 0.14), 0 0 24px rgba(201, 162, 39, 0.12);
  border: 3px solid var(--white);
}
.about-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.about-areas {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
.about-license {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.65rem;
}
.about-social-link {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(7, 21, 38, 0.12);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}
.about-social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.about-agent-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}
.about-agent-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.about-kw {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}
.about-bio {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.65rem;
  max-width: 36rem;
}
.about-contact a {
  font-weight: 700;
  color: var(--navy);
}
.about-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Keller Williams credibility */
#kw-credibility.compliance-band {
  padding: 2rem 0;
  background: linear-gradient(180deg, #f8f9fb 0%, var(--white) 100%);
  border-top: 1px solid var(--zillow-border);
}
.kw-band-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.25rem;
}
.kw-band-head .kw-logo {
  margin-bottom: 0.65rem;
}
.kw-band-head p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.kw-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}
.kw-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--zillow-border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kw-stat strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.kw-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zillow-muted);
  line-height: 1.35;
}
.kw-stats-source {
  margin: 1rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Compliance / brokerage */
.compliance-band {
  padding: 0.85rem 0;
  background: var(--white);
  border-top: 1px solid rgba(7, 21, 38, 0.06);
}
.compliance-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.compliance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.compliance-list li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 0.85rem;
  position: relative;
}
.compliance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Lead form */
.lead-band {
  padding: 1rem 0 1.15rem;
  background: linear-gradient(180deg, var(--navy) 0%, #0a1e33 100%);
  color: var(--white);
}
.lead-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 900px;
}
.lead-band-copy h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.lead-band-lead {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.45;
}
.lead-band-sub {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.82;
  line-height: 1.45;
}
.lead-form-card {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.lead-band-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lead-band-form .btn-gold {
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.35);
}
.lead-band-form input {
  font-size: 16px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}
.lead-band .consent {
  font-size: 0.72rem;
  opacity: 0.85;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}
.lead-success {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Footer */
.site-premium .site-footer {
  padding: 0.65rem 0 0.85rem;
  background: #050d16;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  text-align: center;
}
.site-premium .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-kw-logo { opacity: 0.92; }
.footer-eho { opacity: 0.85; }
.footer-tagline { margin: 0; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.footer-legal { margin: 0; opacity: 0.65; max-width: 36rem; line-height: 1.4; }
.footer-fair { margin: 0; opacity: 0.55; max-width: 40rem; line-height: 1.4; font-size: 0.65rem; }
.site-premium .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 0;
}
.site-premium .footer-links a { color: var(--gold-bright); font-weight: 600; }

/* Modal — premium (Zillow-style detail) */
.site-premium .listing-modal-dialog {
  width: min(900px, 96vw);
  max-height: min(90dvh, 800px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-premium .listing-modal-dialog--detail {
  width: min(1080px, 98vw);
  max-height: min(92dvh, 900px);
}
.site-premium .listing-modal-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  max-height: min(92dvh, 900px);
  overflow: hidden;
}
.site-premium .listing-modal-layout--property {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}
.site-premium .listing-modal-main {
  overflow-y: auto;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.site-premium .listing-modal-aside {
  background: linear-gradient(180deg, #f9fafc 0%, #f3f5f8 100%);
  border-left: 1px solid rgba(7, 21, 38, 0.08);
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
}
.site-premium .listing-contact-card {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(7, 21, 38, 0.08);
}
.site-premium .listing-contact-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.site-premium .listing-contact-sub {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.site-premium .listing-contact-phone {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--navy);
  border: 1px solid var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.site-premium .listing-detail-map {
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8ecf0;
}
.site-premium .listing-map-empty {
  margin: 0;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-premium .listing-detail-compliance {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(7, 21, 38, 0.08);
}
.site-premium .modal-eho-icon {
  vertical-align: middle;
  margin-right: 0.35rem;
}
.site-premium .listing-sticky-cta {
  display: none;
}
.site-premium .gallery-main {
  position: relative;
}
.site-premium .listing-modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-premium .listing-detail-header {
  margin-bottom: 0.35rem;
}
.site-premium .listing-modal-badge {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(201, 162, 39, 0.2);
  border-radius: 4px;
}
.site-premium .listing-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.35rem;
}
.site-premium .listing-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 3.5rem;
}
.site-premium .listing-stat-n {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.site-premium .listing-stat-l {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: lowercase;
}
.site-premium .listing-detail-estimate {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-premium .listing-detail-estimate strong {
  color: var(--navy);
  font-size: 1rem;
}
.site-premium .listing-est-note {
  display: block;
  font-size: 0.72rem;
  margin-top: 0.15rem;
  opacity: 0.85;
}
.site-premium .listing-modal-mls {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.site-premium .listing-detail-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.65rem;
}
.site-premium .listing-highlight-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 21, 38, 0.06);
  color: var(--navy);
  font-weight: 600;
}
.site-premium .listing-detail-section {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(7, 21, 38, 0.08);
}
.site-premium .listing-detail-heading {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.site-premium .listing-detail-description {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}
.site-premium .listing-detail-description.is-collapsed {
  max-height: 6.5em;
  overflow: hidden;
  position: relative;
}
.site-premium .listing-detail-description.is-collapsed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2em;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.site-premium .listing-detail-toggle {
  margin: 0.35rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold-dark, #9a7b1a);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.site-premium .listing-facts-group {
  margin-bottom: 0.65rem;
}
.site-premium .listing-facts-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.9;
}
.site-premium .listing-facts-dl {
  margin: 0;
}
.site-premium .listing-facts-row {
  display: grid;
  grid-template-columns: minmax(7rem, 42%) 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.28rem 0;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(7, 21, 38, 0.05);
}
.site-premium .listing-facts-row dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.site-premium .listing-facts-row dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}
.site-premium .listing-detail-market {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-premium .listing-detail-market li {
  padding: 0.2rem 0;
}
.site-premium .gallery-caption {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.3;
  padding: 0 0.5rem;
}
.site-premium .gallery-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 21, 32, 0.55);
  z-index: 2;
}
.site-premium .listing-modal-meta-line {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-premium .listing-modal-media {
  background: #0a1520;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.site-premium .listing-gallery {
  flex: 1;
  min-height: 0;
  padding: 0.5rem;
  overflow: hidden;
}
.site-premium .gallery-main {
  aspect-ratio: unset;
  height: min(42vh, 360px);
  max-height: 360px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1520;
  overflow: hidden;
}
/* Override style.css .listing-modal-media img { width/height 100%; min-height 280px } */
.site-premium .listing-modal-media img,
.site-premium .gallery-main img,
.site-premium #modal-image {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  object-fit: contain !important;
  object-position: center center;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: min(42vh, 360px) !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
}
.site-premium .gallery-thumbs {
  flex-shrink: 0;
  padding: 0.35rem 0.5rem 0.5rem;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-premium .gallery-thumbs button.is-active {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.site-premium .listing-modal-panel {
  padding: 1rem 1.15rem 1.25rem;
  gap: 0.55rem;
}
.site-premium .listing-modal-price {
  font-size: 1.35rem;
  font-weight: 700;
}
.site-premium .listing-modal-address {
  font-size: 1rem;
  font-weight: 600;
}
.site-premium .listing-modal-meta {
  font-size: 0.85rem;
}
.site-premium .modal-lead {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(7, 21, 38, 0.08);
}
.site-premium .modal-lead-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.site-premium .modal-lead-sub {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.site-premium .modal-form-compact input[type='text'],
.site-premium .modal-form-compact input[type='tel'],
.site-premium .modal-form-compact input[type='email'] {
  width: 100%;
  font-size: 16px;
  min-height: 42px;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(7, 21, 38, 0.14);
  border-radius: 6px;
  margin-bottom: 0.4rem;
}
.site-premium .modal-form-compact .consent--compact {
  font-size: 0.72rem;
  margin: 0.15rem 0 0.5rem;
}
.site-premium .modal-success {
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}
.site-premium .modal-success .success-mark {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0;
}
.site-premium .modal-success .success-title {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Sticky bar */
.site-premium {
  padding-bottom: 0;
}

/* Mobile */
@media (max-width: 960px) {
  .site-premium .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.65rem;
  }
  .site-premium .header-nav.is-open { display: flex; }
  .site-premium .nav-toggle { display: block; }
  .site-premium .header-phone { display: none; }
  .hero-premium-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-premium-photo {
    max-width: 200px;
    margin: 0 auto;
    order: -1;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .kw-stats { grid-template-columns: 1fr 1fr; }
  .hero-search-form { max-width: none; }
  .site-premium #homes-explorer.is-map-mode.mls-explorer {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(280px, 52vh) minmax(200px, 28vh) !important;
    height: auto;
    min-height: 0;
  }
  .site-premium #homes-explorer.is-map-mode .mls-listings-panel,
  .site-premium #homes-explorer.is-map-mode .mls-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-right: none;
    max-height: 52vh;
  }
  .site-premium #homes-explorer.is-map-mode .mls-map-wrap {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 200px;
  }
  .site-premium #homes-explorer.is-list-only .homes-list,
  .site-premium .homes-list--premium {
    grid-template-columns: 1fr;
  }
  .trust-grid { grid-template-columns: 1fr; }
  .reviews-band-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .about-agent-grid { grid-template-columns: 1fr; text-align: center; }
  .about-agent-photo { max-width: 200px; margin: 0 auto; }
  .about-btns { justify-content: center; }
  .compliance-band-inner { flex-direction: column; align-items: flex-start; }
  .compliance-list { flex-direction: column; gap: 0.35rem; }
  .lead-band-inner { grid-template-columns: 1fr; }
  .site-premium .listing-modal-layout,
  .site-premium .listing-modal-layout--property { grid-template-columns: 1fr; }
  .site-premium .listing-modal-aside {
    border-left: none;
    border-top: 1px solid rgba(7, 21, 38, 0.08);
    max-height: none;
  }
  .site-premium .listing-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    border-radius: 0;
    margin: 0;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
  .site-premium .listing-modal-dialog--detail {
    width: 100%;
    max-width: 100%;
  }
  .site-premium .listing-modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .site-premium .gallery-main {
    height: min(36vh, 280px);
    max-height: 280px;
    min-height: 140px;
  }
  .site-premium .listing-modal-media img,
  .site-premium .gallery-main img,
  .site-premium #modal-image {
    max-height: min(36vh, 280px) !important;
  }
}

/* —— Clean homepage (Zillow-style, conversion-focused) —— */
.site-clean .logo-lg {
  font-size: 1.2rem;
}
.site-clean .header-cta {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(184, 146, 63, 0.35);
}
.site-clean .header-wrap {
  gap: 0.75rem;
}
.hero-clean {
  padding: 1.35rem 0 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-ghost-light {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.featured-band {
  padding: 2rem 0 1.5rem;
  background: var(--white);
}
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head-row h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}
.text-link-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #006aff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.text-link-btn:hover { text-decoration: underline; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.featured-loading,
.featured-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.premium-card {
  min-width: 0;
}
.premium-card.is-active .premium-card-hit {
  box-shadow: 0 0 0 2px #006aff, 0 8px 28px rgba(7, 21, 38, 0.14);
}
.premium-card-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 12px rgba(7, 21, 38, 0.08);
  transition: box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.premium-card-hit:hover {
  box-shadow: 0 8px 28px rgba(7, 21, 38, 0.14);
}
@media (hover: hover) and (pointer: fine) {
  .premium-card-hit:hover {
    transform: translateY(-2px);
  }
}
.premium-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ecf0;
}
.premium-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.premium-card-body {
  padding: 0.85rem 1rem 1rem;
}
.premium-card-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.premium-card-address {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.premium-card-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.neighborhood-band {
  padding: 0.5rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid rgba(7, 21, 38, 0.06);
}
.neighborhood-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.city-quick-picks--inline {
  padding: 0;
}

.trust-band--clean {
  padding: 2.5rem 0;
  background: var(--cream);
}
.section-title--left {
  text-align: left;
  margin-bottom: 1.25rem;
}
.trust-grid--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.trust-agent-line {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.mls-search--collapsed {
  padding: 2rem 0;
  background: var(--zillow-bg);
}
.site-premium .homes-list--premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: 1rem 0;
}

.reviews-wall--compact .reviews-wall-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.reviews-wall--compact .review-card {
  padding: 0.85rem;
}

.lead-band-form .btn-block {
  width: 100%;
  margin-top: 0.35rem;
}
.lead-band-form .btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.idx-search-disclaimer {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.listing-modal-courtesy,
.listing-modal-mls,
.listing-modal-idx-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.site-footer--compliant {
  padding: 1rem 0 1.25rem;
  background: #050d16;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  text-align: center;
}
.site-footer--compliant .footer-inner {
  gap: 0.45rem;
}
.site-footer--compliant a {
  color: var(--gold-bright);
}
.site-footer--minimal {
  padding: 1.25rem 0;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .trust-grid--three {
    grid-template-columns: 1fr;
  }
  .reviews-wall--compact .reviews-wall-grid {
    grid-template-columns: 1fr;
  }
  .site-clean .header-cta {
    display: none;
  }
}
@media (max-width: 560px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Map search band */
.map-search-band {
  padding: 2rem 0 3rem;
  background: var(--zillow-bg);
}
.map-search-intro {
  margin: -0.5rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.mls-explorer--compact {
  display: grid !important;
  grid-template-columns: 1fr minmax(280px, 42%);
  gap: 0;
  min-height: 420px;
  border: 1px solid var(--zillow-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.homes-map--compact {
  min-height: 420px;
}
.homes-count-line {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.homes-sub-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.featured-grid--large .premium-card-photo {
  aspect-ratio: 5 / 4;
}
.featured-grid--large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .featured-grid--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mls-explorer--compact {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 40vh) auto;
  }
}

.city-quick--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-phone-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* Floating CTAs */
.float-cta {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.float-cta-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(7, 21, 38, 0.15);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(7, 21, 38, 0.18);
  cursor: pointer;
  text-decoration: none;
}
.float-cta-btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy);
  border-color: transparent;
}
.lead-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.lead-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 38, 0.55);
}
.lead-drawer-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}
.lead-drawer-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}
.lead-drawer-form input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
body.drawer-open {
  overflow: hidden;
}

.sell-cta-band {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2844 100%);
  color: var(--white);
}
.sell-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.sell-cta-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.sell-cta-copy h2 {
  margin: 0.35rem 0 0.5rem;
}

.sell-hero {
  padding: 2rem 0;
  background: var(--cream);
}
.sell-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 320px);
  gap: 2rem;
  align-items: center;
}
.sell-hero-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.sell-points {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.6;
}
.sell-form-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.sell-form-photo {
  border-radius: 12px;
  width: 180px;
  height: 180px;
  object-fit: cover;
}
.sell-lead-form input {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--zillow-border);
}

.city-hero {
  padding: 1.5rem 0 0.5rem;
  background: var(--cream);
}
.city-blurb {
  max-width: 40rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.city-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-similar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.btn-ghost-dark {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--zillow-border);
  background: var(--white);
  cursor: pointer;
  width: 100%;
}
.mortgage-estimate {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.mortgage-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

/* —— Zillow-style homepage —— */
.site-zillow .hero-zillow {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2844 100%);
  color: var(--white);
  padding: 1.5rem 0;
}
.site-zillow .hero-zillow h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.site-zillow .hero-zillow .hero-lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin: 0 0 1rem;
}
.hero-search-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(100px, 0.6fr)) auto;
  gap: 0.5rem;
  max-width: 52rem;
  margin-bottom: 0.75rem;
}
.hero-search-bar input,
.hero-search-bar select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.btn-outline-navy {
  font-family: inherit;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.hero-rating {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--gold-bright);
}

.search-results {
  padding: 1rem 0 2rem;
  background: var(--zillow-bg);
}
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.results-count {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.results-area {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.results-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.results-toolbar-filters select,
.results-toolbar-filters .toolbar-select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 2.125rem;
  min-height: 2.125rem;
  max-height: 2.125rem;
  padding: 0 1.75rem 0 0.55rem;
  margin: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  color: #1f2937;
  border-radius: 8px;
  border: 1px solid var(--zillow-border, #d1d5db);
  background-color: var(--white, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.65rem;
  cursor: pointer;
  flex: 0 1 auto;
  min-width: 5.5rem;
  max-width: 10.5rem;
}
.results-toolbar-filters select:focus,
.results-toolbar-filters .toolbar-select:focus {
  outline: none;
  border-color: #071526;
  box-shadow: 0 0 0 2px rgba(7, 21, 38, 0.12);
}

/* Map ~38% width — listings get most of the row (Zillow-style) */
.site-premium #homes-explorer.zillow-explorer {
  height: auto;
  min-height: min(48vh, 440px);
  max-height: min(56vh, 500px);
}
.zillow-explorer.is-map-mode {
  display: grid !important;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  min-height: min(48vh, 440px);
  max-height: min(56vh, 500px);
  border: 1px solid var(--zillow-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(7, 21, 38, 0.08);
}

.zillow-explorer.is-list-only,
.zillow-explorer:not(.is-map-mode) {
  display: block !important;
  grid-template-columns: none !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
}

.zillow-explorer.is-list-only .zillow-map-col,
.zillow-explorer:not(.is-map-mode) .zillow-map-col {
  display: none !important;
}

.zillow-explorer.is-list-only .zillow-list-col,
.zillow-explorer:not(.is-map-mode) .zillow-list-col {
  width: 100% !important;
  max-width: 100% !important;
  border-left: none !important;
}
.zillow-explorer.is-map-mode .zillow-map-col {
  order: 1;
}
.zillow-explorer.is-map-mode .zillow-list-col {
  order: 2;
}
.zillow-map-col {
  min-height: 240px;
  max-height: min(50vh, 460px);
  position: relative;
}
.zillow-map-col .homes-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.zillow-list-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--zillow-border);
  background: var(--zillow-bg);
}
.homes-list--zillow {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(50vh, 460px);
}

.explorer-view-tabs {
  display: none;
}

.zillow-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.65rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--zillow-border);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.zillow-card-photo-btn {
  padding: 0;
  border: none;
  cursor: pointer;
  background: #e8ecf0;
  min-height: 100px;
}
.zillow-card-photo-btn img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  display: block;
}
.zillow-card-body {
  padding: 0.5rem 0.5rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.zillow-card-info {
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.zillow-card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.zillow-card-dist {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.zillow-card-address,
.zillow-card-meta {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.zillow-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.zillow-card-idx {
  margin: 0.2rem 0 0;
  font-size: 0.65rem;
  line-height: 1.3;
  color: var(--text-muted);
  opacity: 0.9;
}
.homes-list--zillow.is-loading .zillow-card--skeleton {
  display: grid;
}
.homes-list--zillow:not(.is-loading) .zillow-card--skeleton {
  display: none !important;
}
.homes-list--zillow .zillow-card:not(.zillow-card--skeleton) {
  display: grid;
  visibility: visible;
  opacity: 1;
}
.btn-sm {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-gold-outline {
  border: 1px solid var(--gold);
  background: rgba(184, 146, 63, 0.12);
  color: var(--navy);
}

.featured-band--sub {
  padding: 2rem 0;
  background: var(--white);
  border-top: 1px solid var(--zillow-border);
}
.featured-band--sub h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.brandon-band {
  padding: 2.5rem 0;
  background: var(--cream);
}
.brandon-band-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.brandon-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.brandon-meta {
  margin: 0.15rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.brandon-bio {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  line-height: 1.5;
}

.reviews-compact {
  text-align: center;
}
.reviews-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.reviews-wall--three .reviews-wall-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lead-modal[hidden] {
  display: none !important;
}
.lead-modal.is-open {
  display: flex !important;
}
.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(7, 21, 38, 0.55);
  cursor: pointer;
}
.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(90dvh, 560px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}
.lead-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(7, 21, 38, 0.06);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lead-modal-close:hover {
  background: rgba(7, 21, 38, 0.12);
}
.lead-modal-form input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.55rem;
  border: 1px solid var(--zillow-border);
  border-radius: 8px;
  font-family: inherit;
}

.mobile-map-toggle {
  display: none;
  margin-bottom: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--zillow-border);
  background: var(--white);
}

@media (max-width: 900px) and (min-width: 769px) {
  .hero-search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .hero-search-bar input {
    grid-column: 1 / -1;
  }
  .zillow-explorer {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 26vh) auto;
    min-height: 0;
    max-height: none;
  }
  .site-premium #homes-explorer.zillow-explorer {
    max-height: none;
  }
  .zillow-map-col {
    min-height: 160px;
    max-height: 26vh;
  }
  .zillow-list-col {
    border-left: none;
    border-top: 1px solid var(--zillow-border);
  }
  .homes-list--zillow {
    max-height: none;
  }
  .mobile-map-toggle {
    display: inline-block;
  }
  .zillow-explorer:not(.show-map-mobile):not(.is-map-mode) .zillow-map-col {
    display: none;
  }
  .reviews-wall--three .reviews-wall-grid {
    grid-template-columns: 1fr;
  }
  .brandon-band-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .brandon-photo {
    margin: 0 auto;
  }
}
