:root {
  color-scheme: light dark;
  --bg: #f4f1ec;
  --bg-elevated: #f7f4ef;
  --surface: #ffffff;
  --surface-alt: #faf8f5;
  --surface-strong: #f0ebe4;
  --text: #20242c;
  --text-soft: #5f6773;
  --heading: #171b22;
  --border: #e5dfd7;
  --line: rgba(23, 27, 34, 0.08);
  --accent: #ab7a4a;
  --accent-strong: #7b4f28;
  --accent-soft: rgba(171, 122, 74, 0.12);
  --accent-glow: rgba(171, 122, 74, 0.16);
  --ink: #1e2937;
  --ink-soft: rgba(30, 41, 55, 0.75);
  --success: #2f7d60;
  --danger: #c14e41;
  --shadow-sm: 0 10px 24px rgba(15, 20, 28, 0.06);
  --shadow-md: 0 28px 56px rgba(15, 20, 28, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

:root[data-theme="dark"] {
  --bg: #0f141b;
  --bg-elevated: #121922;
  --surface: #171f29;
  --surface-alt: #1b2530;
  --surface-strong: #111821;
  --text: #edf2f7;
  --text-soft: #a6b0bd;
  --heading: #f7fbff;
  --border: #2c3947;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #c89764;
  --accent-strong: #e0b684;
  --accent-soft: rgba(200, 151, 100, 0.12);
  --accent-glow: rgba(200, 151, 100, 0.16);
  --ink: #f7fbff;
  --ink-soft: rgba(247, 251, 255, 0.82);
  --success: #68c09a;
  --danger: #f3a097;
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 32px 62px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.layout { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.container { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 auto;
}
.brand-copy { display: grid; gap: 2px; }
.brand-title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--heading);
}
.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.btn, .chip, .nav-link, .filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover, .chip:hover, .nav-link:hover, .filter-pill:hover { transform: translateY(-1px); }
.nav-link {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  color: var(--text-soft);
}
.nav-link:hover {
  color: var(--heading);
  background: var(--accent-soft);
}
.btn-primary {
  background: var(--ink);
  color: white;
  border-color: transparent;
  box-shadow: 0 14px 24px rgba(20, 28, 40, 0.16);
}
:root[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #1a120a;
  box-shadow: 0 14px 28px rgba(200, 151, 100, 0.18);
}
.btn-secondary,
.filter-pill,
.chip {
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  color: var(--text);
}
.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; }
.filter-pill { min-height: 42px; padding: 0 14px; font-weight: 700; }
.filter-pill.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); }
.icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

main { position: relative; }
.hero, .section { padding: 34px 0; }
.page-shell { padding: 0 0 56px; }
.hero-grid, .results-shell, .detail-shell, .login-shell, .cards-3, .cards-4, .spec-grid, .grid-2, .grid-3, .detail-gallery, .results-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: start; }
.hero-grid-product { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
.results-grid { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
.results-shell { grid-template-columns: 1.02fr minmax(420px, .98fr); align-items: stretch; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); min-height: calc(100vh - 182px); }
.detail-shell { grid-template-columns: minmax(0,1.25fr) 390px; align-items: start; }
.login-shell { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.cards-3, .spec-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.detail-gallery { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }

.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 96%, transparent) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-elevated { box-shadow: var(--shadow-md); }
.card-soft { background: color-mix(in srgb, var(--surface-alt) 98%, transparent); }
.card-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, var(--accent-glow) 0%, transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 96%, transparent) 100%);
}
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }
.section-head, .results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.h1, h1, h2, h3 { margin: 0; color: var(--heading); line-height: 1.04; }
h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
p { margin: 0; color: var(--text-soft); line-height: 1.68; }
.subtle-line { color: var(--text-soft); font-size: .98rem; }
.hero-lead { max-width: 62ch; font-size: 1.03rem; }
.eyebrow { font-size: .85rem; color: var(--text-soft); font-weight: 600; }

.search-shell { display: grid; gap: 16px; }
.search-modes, .pill-row, .hero-actions, .badge-row, .metric-row, .dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search-mode, .pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 700;
}
.search-mode.is-active, .pill.is-accent {
  color: var(--heading);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--accent-soft);
}
.search-bar {
  display: grid;
  grid-template-columns: 1.1fr .72fr .72fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--heading);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 45%, var(--surface));
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.notice {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 94%, transparent);
  color: var(--text-soft);
}
.success { background: color-mix(in srgb, var(--success) 16%, var(--surface)); color: var(--heading); }
.error { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--heading); }

.quick-stats, .status-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.quick-stat, .status-item, .spec-card, .dashboard-stat, .summary-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-alt));
}
.quick-stat strong, .status-item strong, .spec-card strong, .dashboard-stat strong, .summary-card strong {
  display: block;
  color: var(--heading);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.metric-number {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.metric-label { color: var(--text-soft); font-size: .95rem; }

/* home map preview */
.home-map-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}
.home-map-panel {
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 96%, transparent);
}
.map-preview-head,
.map-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.home-map-shell-primary { min-height: 100%; }
.hero-search-card { min-height: 100%; align-content: start; }
.search-bar-geo-home { grid-template-columns: repeat(2, minmax(0,1fr)); }
.search-bar-geo-home .btn { min-width: 100%; }

/* results / map search */
.results-topbar {
  position: sticky;
  top: 76px;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.results-topbar .container {
  display: grid;
  gap: 12px;
  padding: 14px 0;
}
.results-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.search-inline {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  min-width: min(100%, 420px);
}
.search-inline .field { display: block; }
.search-inline input {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
}
.results-shell.is-list-only { grid-template-columns: 1fr; }
.results-shell.is-map-only { grid-template-columns: 1fr; }
.map-column,
.list-column {
  min-width: 0;
  background: var(--surface);
}
.map-column {
  border-right: 1px solid var(--line);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: inherit;
}
.map-column.is-hidden,
.list-column.is-hidden { display: none; }
.list-column {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: inherit;
}
.map-toolbar,
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.map-toolbar-actions,
.list-toolbar-actions,
.map-overlay-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.map-search-stage {
  position: relative;
  min-height: calc(100vh - 320px);
}
.map-surface,
.map-preview-surface {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.map-overlay {
  position: absolute;
  inset: 16px 16px auto 16px;
  display: grid;
  gap: 12px;
  pointer-events: none;
}
.map-overlay > * { pointer-events: auto; }
.map-badge,
.status-card,
.mini-stat-card,
.empty-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}
.status-card,
.empty-panel { padding: 16px; }
.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.map-badge strong { color: var(--heading); }
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.zone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.zone-btn:hover { transform: translateY(-1px); }
.map-instructions {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: .94rem;
}
.results-meta {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.results-list {
  padding: 16px 20px 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.property-card-empty,
.property-card-live {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.property-card-empty .card-copy,
.property-card-live .card-copy { padding: 20px; display: grid; gap: 12px; }
.visual-shell,
.live-shell {
  min-height: 240px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 70%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 96%, transparent) 100%);
  display: grid;
  place-items: center;
}
.visual-grid {
  width: min(92%, 520px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.visual-cell {
  aspect-ratio: 1 / 0.82;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}
.card-topline,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.price-line {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.location-line { color: var(--text-soft); font-size: .96rem; }
.feature-line { display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-soft); font-size: .94rem; }
.state-inline { display: inline-flex; align-items: center; gap: 8px; }
.state-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--heading);
  font-size: .83rem;
  font-weight: 700;
}
.empty-panel strong,
.status-card strong { color: var(--heading); }
.empty-panel ul,
.status-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}
.map-toggle-group {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.map-toggle-group button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
}
.map-toggle-group button.is-active {
  background: var(--surface);
  color: var(--heading);
  box-shadow: 0 6px 16px rgba(15, 20, 28, 0.08);
}
.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: .92rem;
}
.status-inline strong { color: var(--heading); }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom { z-index: 9; }

/* generic pages */
.filter-panel { position: sticky; top: 96px; display: grid; gap: 16px; }
.list-panel { display: grid; gap: 16px; }
.list-card { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 20px; align-items: start; }
.thumb-placeholder, .placeholder-map, .placeholder-panel, .placeholder-media {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--border) 85%, var(--accent));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 64%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 98%, transparent) 100%);
}
.thumb-placeholder::before,
.placeholder-map::before,
.placeholder-panel::before,
.placeholder-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px dashed color-mix(in srgb, var(--border) 60%, transparent);
}
.thumb-placeholder { min-height: 184px; }
.placeholder-map { min-height: 280px; display: grid; place-items: center; padding: 26px; text-align: center; }
.placeholder-panel, .placeholder-media { min-height: 220px; display: grid; place-items: center; padding: 22px; text-align: center; }
.callout, .auth-card, .board-item, .timeline-item {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.timeline { display: grid; gap: 12px; }
.empty-copy { color: var(--text-soft); }
.step-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-soft); }
.detail-main, .detail-side { display: grid; gap: 18px; }
.detail-main .card, .detail-side .card { min-width: 0; }
.auth-card { max-width: 460px; }
.dashboard-layout { display: grid; gap: 20px; }
.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--text-soft);
}
.footer .container { min-height: 72px; display: flex; align-items: center; }

@media (max-width: 1180px) {
  .hero-grid, .results-grid, .detail-shell, .login-shell, .results-shell { grid-template-columns: 1fr; }
  .results-shell { min-height: auto; }
  .map-column { border-right: 0; border-bottom: 1px solid var(--line); min-height: 520px; }
}

@media (max-width: 980px) {
  .search-bar { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .spec-grid, .grid-3, .grid-2, .quick-stats, .status-strip, .list-card { grid-template-columns: 1fr; }
  .results-topbar { top: 72px; }
  .results-shell { border-radius: 20px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1320px); }
  .nav { min-height: 72px; align-items: start; padding: 12px 0; }
  .nav-links { width: 100%; justify-content: flex-start; }
  .search-inline { min-width: 100%; grid-template-columns: 1fr; }
  .map-toolbar, .list-toolbar, .results-meta { padding: 14px; }
  .results-list { padding: 14px; }
  .map-overlay { inset: 12px 12px auto 12px; }
  h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .toast { left: 12px; right: 12px; min-width: 0; }
}


.compact-field label {
  font-size: .8rem;
  color: var(--text-soft);
}
.search-bar-geo {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}
.filter-grid-geo {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.filter-field {
  min-width: 0;
}
.filter-field select {
  min-height: 44px;
}
.filter-actions {
  display: inline-flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.map-selection-summary {
  color: var(--text-soft);
  font-weight: 700;
}
.geo-form-grid {
  align-items: end;
}
@media (max-width: 1180px) {
  .search-bar-geo,
  .filter-grid-geo {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .search-bar-geo,
  .filter-grid-geo {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 980px) {
  .hero-grid-product { grid-template-columns: 1fr; }
  .search-bar-geo-home { grid-template-columns: 1fr; }
}


/* v13 cleanup: separación clara entre inicio y resultados */

.hero-home-clean { align-items: stretch; }
.home-map-shell-compact { padding: 18px; }
.home-map-panel-compact { min-height: 340px; }
.home-map-note { margin-top: 2px; }
.hero-search-card-clean { justify-content: center; }
.search-bar-home-clean { gap: 14px; }
.quick-stats-home-clean { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-3-home-summary { align-items: stretch; }
.section-home-summary { padding-top: 8px; }

.results-topbar-clean { position: static; background: transparent; backdrop-filter: none; border-bottom: 0; }
.results-header-line-clean { padding-top: 8px; }
.filter-grid-geo-clean {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr)) auto;
  gap: 12px;
  align-items: end;
}
.filter-actions-clean { display: flex; gap: 10px; justify-content: flex-end; align-items: end; }
.results-shell-clean {
  grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr);
  min-height: 720px;
  margin-top: 8px;
}
.map-column-clean { grid-template-rows: auto auto 1fr; }
.list-column-clean { grid-template-rows: auto auto 1fr; }
.map-toolbar-clean, .list-toolbar-clean { padding: 18px 20px 14px; }
.map-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--line);
}
.map-search-stage-clean {
  min-height: 580px;
  background: color-mix(in srgb, var(--surface-alt) 96%, transparent);
}
.map-search-stage-clean .map-surface { min-height: 580px; }
.results-meta-clean {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.results-list .empty-panel p { margin-top: 8px; }

@media (max-width: 1200px) {
  .filter-grid-geo-clean { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filter-actions-clean { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .hero-home-clean, .results-shell-clean { grid-template-columns: 1fr; }
  .home-map-panel-compact { min-height: 280px; }
  .quick-stats-home-clean { grid-template-columns: 1fr; }
  .filter-grid-geo-clean { grid-template-columns: 1fr 1fr; }
  .map-summary-row { grid-template-columns: 1fr; }
  .map-search-stage-clean, .map-search-stage-clean .map-surface { min-height: 420px; }
}
@media (max-width: 640px) {
  .filter-grid-geo-clean { grid-template-columns: 1fr; }
}


/* v14 navigation and layout cleanup */
.nav-upgraded { position: relative; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading);
}
.nav-links-upgraded { gap: 12px; }
.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-icon { font-size: 1rem; line-height: 1; transition: opacity .18s ease; }
.hero-home-v14 { padding-top: 26px; }
.hero-home-v14-grid { grid-template-columns: minmax(0, .98fr) minmax(420px, .92fr); align-items: stretch; }
.home-map-card-v14,
.hero-search-card-v14,
.results-intro-v14,
.results-filters-v14,
.auth-card-v14 {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
}
.home-map-card-v14 { padding: 20px; display: grid; gap: 16px; }
.home-map-panel-v14 {
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 96%, transparent);
}
.map-caption-v14 { margin: 0; color: var(--text-soft); font-size: .95rem; }
.hero-search-card-v14 { padding: 28px; justify-content: center; }
.search-shell-v14 { display: grid; gap: 18px; }
.search-bar-geo-home-v14 { grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-actions-v14 { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-stats-v14 { margin-top: 6px; }
.results-page-v14 { padding-top: 22px; }
.results-page-stack-v14 { gap: 16px; }
.results-intro-v14 {
  padding: 20px 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.results-intro-v14 h1 { margin: 0 0 8px; font-size: clamp(2rem, 3vw, 2.8rem); }
.results-intro-v14 p { margin: 0; max-width: 860px; color: var(--text-soft); }
.results-view-toggle-v14 { flex: 0 0 auto; }
.results-filters-v14 { padding: 18px 20px; display: grid; gap: 14px; }
.filter-grid-v14 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)) auto; gap: 12px; align-items: end; }
.filter-actions-v14 { display: inline-flex; gap: 10px; align-items: end; }
.results-status-row-v14 { display: flex; gap: 16px; flex-wrap: wrap; }
.results-shell-v14 {
  grid-template-columns: minmax(0, .94fr) minmax(380px, .86fr);
  align-items: stretch;
  gap: 0;
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.map-column-v14,
.list-column-v14 { min-width: 0; background: var(--surface); }
.map-column-v14 { border-right: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.list-column-v14 { display: grid; grid-template-rows: auto 1fr; }
.map-panel-head-v14,
.list-panel-head-v14 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.map-surface-wrapper-v14 {
  min-height: 620px;
  background: color-mix(in srgb, var(--surface-alt) 96%, transparent);
}
.map-surface-wrapper-v14 .map-surface { height: 100%; min-height: 620px; }
.results-list-v14 { padding: 18px; display: grid; gap: 16px; align-content: start; }
.login-shell-v14 { grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: start; }
.auth-card-v14 { padding: 22px; }
@media (max-width: 1180px) {
  .hero-home-v14-grid,
  .results-shell-v14,
  .login-shell-v14 { grid-template-columns: 1fr; }
  .map-column-v14 { border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-grid-v14 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .filter-grid-v14,
  .search-bar-geo-home-v14 { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-links-upgraded {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links-upgraded.is-open { display: flex; }
  .nav-links-upgraded .nav-link,
  .nav-links-upgraded .theme-chip { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .filter-grid-v14,
  .search-bar-geo-home-v14 { grid-template-columns: 1fr; }
  .results-intro-v14 h1,
  .hero-search-card-v14 h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .home-map-panel-v14,
  .map-surface-wrapper-v14,
  .map-surface-wrapper-v14 .map-surface { min-height: 300px; }
}


/* v15 Zillow-inspired separation: home is search-first, results is map-first */
.topbar-v15 { background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); }
.nav-v15 { min-height: 82px; gap: 18px; }
.nav-links-v15 { gap: 18px; }
.nav-main-v15, .nav-actions-v15 { display:flex; align-items:center; gap: 10px; flex-wrap: wrap; }
.nav-main-v15 { flex: 1 1 auto; justify-content: center; }
.nav-actions-v15 { flex: 0 0 auto; }
.nav-link.is-active { color: var(--heading); background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; }
.home-shell-v15 { display:grid; grid-template-columns: minmax(0,1.1fr) minmax(400px,.9fr); gap: 28px; align-items: center; padding: 20px 0 8px; }
.home-copy-v15 { display:grid; gap: 18px; align-content: start; }
.home-copy-v15 h1 { max-width: 12ch; }
.home-tabs-v15 { display:flex; gap: 12px; flex-wrap: wrap; }
.search-card-v15 { padding: 28px; display:grid; gap: 18px; }
.search-grid-v15 { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search-actions-v15 { display:flex; gap: 12px; flex-wrap: wrap; }
.mini-note-v15 { color: var(--text-soft); font-size: .94rem; }
.cards-v15 { align-items: stretch; }
.summary-card-v15 { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; display:grid; gap: 10px; }
.home-secondary-v15 { display:grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 24px; align-items: stretch; }
.map-preview-panel-v15 { border:1px solid var(--border); border-radius: 22px; overflow:hidden; background: var(--surface-alt); }
.map-preview-panel-v15 .map-preview-surface { min-height: 340px; }
.page-copy-v15 { display:grid; gap: 24px; }
.results-head-v15 { display:flex; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head-v15 h1 { font-size: clamp(2rem, 3.2vw, 3.2rem); max-width: 14ch; }
.filters-bar-v15 { display:grid; gap: 14px; padding: 18px; margin-bottom: 16px; }
.filters-grid-v15 { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)) auto; gap: 12px; align-items:end; }
.filter-buttons-v15 { display:flex; gap: 10px; align-items:end; }
.results-status-row-v15 { display:flex; gap: 16px; flex-wrap: wrap; color: var(--text-soft); }
.results-shell-v15 { grid-template-columns: minmax(420px, 46%) minmax(420px, 54%); min-height: calc(100vh - 260px); }
.map-column-v15, .list-column-v15 { background: var(--surface); min-width: 0; }
.map-column-v15 { display:grid; grid-template-rows: auto 1fr; border-right: 1px solid var(--line); }
.list-column-v15 { display:grid; grid-template-rows: auto 1fr; }
.map-header-v15, .list-header-v15 { display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.map-frame-v15 { min-height: 0; }
.map-frame-v15 .map-surface { height: calc(100vh - 360px); min-height: 560px; width: 100%; }
.results-list-v15 { padding: 18px; display:grid; gap: 16px; align-content:start; overflow:auto; max-height: calc(100vh - 360px); }
.results-list-v15 .empty-panel { margin: 0; }
.auth-card-v15 { padding: 24px; }
.login-shell-v15 { grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); }
.theme-chip { min-width: 112px; }
@media (max-width: 1160px) {
  .nav-main-v15 { justify-content: flex-start; }
  .home-shell-v15, .home-secondary-v15, .results-shell-v15, .login-shell-v15 { grid-template-columns: 1fr; }
  .map-column-v15 { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-frame-v15 .map-surface, .results-list-v15 { max-height: none; }
  .filters-grid-v15 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .nav-links-v15 { position:absolute; left: 20px; right: 20px; top: calc(100% + 10px); background: var(--surface); border:1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-md); display:none; }
  .nav-links-v15.is-open { display:grid; gap: 12px; }
  .nav-main-v15, .nav-actions-v15 { display:grid; gap: 8px; }
  .nav-main-v15 { order:1; }
  .nav-actions-v15 { order:2; }
  .search-grid-v15, .filters-grid-v15 { grid-template-columns: 1fr; }
  .results-head-v15 h1, .home-copy-v15 h1 { max-width: none; }
  .map-frame-v15 .map-surface { height: 360px; min-height: 360px; }
  .map-preview-panel-v15 .map-preview-surface { min-height: 240px; }
}


.site-footer {
  margin-top: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 96%, transparent) 100%);
  border-top: 1px solid var(--border);
}
.footer-shell {
  display: grid;
  gap: 24px;
  padding: 34px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-brand {
  display: grid;
  gap: 14px;
}
.footer-brand .brand {
  align-items: flex-start;
}
.footer-brand p {
  max-width: 44ch;
}
.footer-title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--heading);
}
.footer-note {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-alt) 96%, transparent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .92rem;
}
.footer-legal {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--text-soft);
}
.footer-legal a:hover {
  color: var(--heading);
}
.auth-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-weight: 600;
}
.auth-switch a {
  color: var(--heading);
  font-weight: 800;
}
.auth-inline-link {
  color: var(--accent-strong);
  font-weight: 800;
}
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== V18 HOME / RESULTS REBUILD ===== */
.home-topbar-v18 {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.nav-v18 {
  min-height: 82px;
}
.brand-v18 .brand-mark {
  width: 40px;
  height: 40px;
}
.nav-links-v18 {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: space-between;
}
.nav-main-v18, .nav-actions-v18 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-link-strong {
  color: var(--heading);
  font-weight: 800;
}
.hero-home-v18 {
  padding: 28px 0 20px;
}
.hero-shell-v18 {
  position: relative;
}
.hero-center-v18 {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  padding: 60px 0 18px;
}
.eyebrow-v18 {
  font-size: .82rem;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title-v18 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.06em;
}
.hero-copy-v18 {
  max-width: 74ch;
  font-size: 1.04rem;
  line-height: 1.75;
}
.hero-modes-v18 {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
}
.hero-mode-v18 {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 800;
  cursor: pointer;
}
.hero-mode-v18.is-active, .hero-link-v18:hover {
  background: var(--heading);
  color: white;
}
:root[data-theme="dark"] .hero-mode-v18.is-active,
:root[data-theme="dark"] .hero-link-v18:hover {
  background: var(--accent);
  color: #1d140a;
}
.search-panel-v18 {
  width: min(1120px, 100%);
  padding: 28px;
  text-align: left;
}
.search-head-v18 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-head-v18 p {
  max-width: 44ch;
}
.search-grid-v18 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.search-actions-v18 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.btn-xl {
  min-height: 50px;
  padding: 0 20px;
}
.search-caption-v18 {
  margin-top: 12px;
  font-size: .92rem;
  color: var(--text-soft);
}
.hero-trust-v18 {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trust-chip-v18 {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.trust-chip-v18 strong {
  color: var(--heading);
}
.section-v18-light {
  padding-top: 30px;
}
.section-v18-neutral {
  padding-top: 10px;
  padding-bottom: 46px;
}
.section-copy-v18 {
  max-width: 56ch;
}
.cards-v18 {
  margin-top: 18px;
}
.journey-card-v18 {
  display: grid;
  gap: 14px;
  padding: 28px;
}
.journey-icon-v18 {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.35rem;
  font-weight: 800;
}
.text-link-v18 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-weight: 800;
}
.text-link-v18::after {
  content: '→';
}
.split-v18 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 20px;
}
.story-card-v18, .metrics-card-v18 {
  padding: 30px;
}
.story-steps-v18 {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.story-steps-v18 > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.story-steps-v18 strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.metrics-grid-v18 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.metrics-grid-v18 > div {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 94%, transparent);
}
.metrics-grid-v18 strong {
  display: block;
  color: var(--heading);
  margin-bottom: 6px;
}
.results-page-v18 .section-results-v18 {
  padding-top: 24px;
}
.results-head-clean-v18 {
  margin-bottom: 16px;
}
.filters-card-v18 {
  margin-bottom: 18px;
}
.filters-grid-clean-v18 {
  align-items: end;
}
@media (max-width: 1120px) {
  .search-grid-v18 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-trust-v18, .split-v18 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .nav-links-v18 {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 14px;
    display: none;
    gap: 14px;
  }
  .nav-links-v18.is-open {
    display: grid;
  }
  .nav-main-v18, .nav-actions-v18 {
    display: grid;
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .hero-center-v18 {
    padding-top: 28px;
  }
  .hero-title-v18 {
    max-width: none;
  }
  .search-panel-v18 {
    padding: 22px 18px;
  }
  .search-grid-v18, .metrics-grid-v18 {
    grid-template-columns: 1fr;
  }
  .hero-trust-v18 {
    grid-template-columns: 1fr;
  }
  .hero-modes-v18 {
    border-radius: 24px;
  }
  .hero-mode-v18 {
    flex: 1 1 auto;
  }
}

/* ===== Home v19 rebuild ===== */
.home-topbar-v19 {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.nav-v19 {
  position: relative;
  min-height: 84px;
}
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-left-v19,
.nav-right-v19 {
  flex: 1 1 0;
}
.nav-right-v19 {
  justify-content: flex-end;
}
.brand-center-v19 {
  justify-self: center;
}
.nav-primary-v19,
.nav-secondary-v19 {
  flex-wrap: nowrap;
}
.nav-mobile-v19 {
  display: none;
}
.nav-link-strong {
  color: var(--heading);
  font-weight: 700;
}

.home-hero-v19 {
  padding: 34px 0 24px;
}
.hero-frame-v19 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 22px 0 10px;
}
.hero-copy-v19 {
  display: grid;
  gap: 18px;
}
.hero-copy-v19 h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}
.hero-lead-v19 {
  max-width: 56ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.hero-search-v19 {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.hero-search-tabs-v19 {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 92%, var(--bg));
  border: 1px solid var(--border);
  width: fit-content;
}
.hero-search-tab-v19 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
}
.hero-search-tab-v19.is-active,
.hero-search-tab-v19:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--heading);
}
.hero-search-grid-v19 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.search-submit-v19 {
  min-width: 180px;
}
.hero-search-foot-v19 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.hero-search-foot-v19 a {
  color: var(--heading);
  font-weight: 700;
}
.hero-visual-v19 {
  position: relative;
  min-height: 620px;
}
.hero-image-shell-v19 {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.hero-image-shell-v19 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge-v19 {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.hero-badge-v19 strong {
  font-size: 0.96rem;
  color: var(--heading);
}
.hero-badge-v19 span {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.badge-top {
  top: 28px;
  right: 22px;
}
.badge-bottom {
  left: 22px;
  bottom: 22px;
}
.home-proof-v19 {
  padding-top: 8px;
}
.section-head-v19 {
  margin-bottom: 18px;
}
.section-copy-v19 {
  max-width: 56ch;
}
.home-paths-v19 {
  align-items: stretch;
}
.path-card-v19 {
  display: grid;
  gap: 12px;
  min-height: 220px;
}
.text-link-v19 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--heading);
}
.text-link-v19::after {
  content: '→';
}

:root[data-theme="dark"] .home-topbar-v19 {
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}
:root[data-theme="dark"] .hero-search-tab-v19.is-active,
:root[data-theme="dark"] .hero-search-tab-v19:hover {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}
:root[data-theme="dark"] .hero-badge-v19 {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

@media (max-width: 1180px) {
  .hero-frame-v19 {
    grid-template-columns: 1fr;
  }
  .hero-visual-v19 {
    min-height: 420px;
  }
  .hero-copy-v19 h1 {
    max-width: 11ch;
  }
  .hero-search-grid-v19 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-submit-v19 {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .nav-primary-v19,
  .nav-secondary-v19 {
    display: none;
  }
  .nav-left-v19,
  .nav-right-v19 {
    flex: 0 0 auto;
  }
  .nav-v19 {
    justify-content: space-between;
  }
  .nav-mobile-v19 {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-md);
  }
  .nav-mobile-v19.is-open {
    display: grid;
  }
}

@media (max-width: 720px) {
  .hero-copy-v19 h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
  .hero-search-grid-v19 {
    grid-template-columns: 1fr;
  }
  .hero-search-foot-v19 {
    align-items: flex-start;
  }
  .hero-visual-v19 {
    min-height: 320px;
  }
  .hero-badge-v19 {
    min-width: 0;
    max-width: calc(100% - 24px);
  }
  .badge-top {
    top: 16px;
    right: 12px;
  }
  .badge-bottom {
    left: 12px;
    bottom: 16px;
  }
}

/* ===== Home v20 refinement ===== */
.home-topbar-v20 {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}
.nav-v20 {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.nav-left-v20,
.nav-right-v20 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-v20 {
  min-width: 0;
}
.nav-primary-v20 {
  justify-content: center;
  gap: 4px;
}
.nav-secondary-v20 {
  gap: 10px;
}
.nav-mobile-v20 {
  display: none;
}
.home-hero-v20 {
  padding: 42px 0 28px;
}
.hero-shell-v20 {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 28px;
  align-items: center;
}
.hero-copy-v20 {
  display: grid;
  gap: 18px;
}
.hero-copy-v20 h1 {
  max-width: 13.8ch;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-lead-v20 {
  max-width: 58ch;
  font-size: 1rem;
  color: var(--ink-soft);
}
.hero-search-v20 {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.hero-search-grid-v20 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.search-submit-v20 {
  min-width: 190px;
}
.hero-search-meta-v20 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.hero-search-meta-v20 a {
  color: var(--heading);
  font-weight: 800;
}
.hero-visual-v20 {
  position: relative;
  min-height: 560px;
}
.hero-image-frame-v20 {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.hero-image-frame-v20 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-floating-card-v20 {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.hero-floating-card-v20 strong {
  color: var(--heading);
  font-size: 0.95rem;
}
.hero-floating-card-v20 span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.hero-floating-top-v20 {
  top: 22px;
  right: 22px;
}
.hero-floating-bottom-v20 {
  left: 22px;
  bottom: 22px;
}
.home-value-v20 {
  padding-top: 8px;
}
.section-head-v20 {
  margin-bottom: 18px;
}
.section-copy-v20 {
  max-width: 58ch;
}
.home-paths-v20 {
  align-items: stretch;
}
.path-card-v20 {
  display: grid;
  gap: 12px;
  min-height: 220px;
}
.text-link-v20 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--heading);
}
.text-link-v20::after {
  content: '→';
}
:root[data-theme="dark"] .home-topbar-v20 {
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}
:root[data-theme="dark"] .hero-floating-card-v20 {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}
@media (max-width: 1180px) {
  .hero-shell-v20 {
    grid-template-columns: 1fr;
  }
  .hero-visual-v20 {
    min-height: 420px;
  }
  .hero-search-grid-v20 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-submit-v20 {
    width: 100%;
  }
}
@media (max-width: 980px) {
  .nav-primary-v20,
  .nav-secondary-v20 {
    display: none;
  }
  .nav-v20 {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .nav-mobile-v20 {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-md);
  }
  .nav-mobile-v20.is-open {
    display: grid;
  }
}
@media (max-width: 720px) {
  .hero-copy-v20 h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }
  .hero-search-grid-v20 {
    grid-template-columns: 1fr;
  }
  .hero-search-meta-v20 {
    align-items: flex-start;
  }
  .hero-visual-v20 {
    min-height: 320px;
  }
  .hero-floating-card-v20 {
    min-width: 0;
    max-width: calc(100% - 24px);
  }
  .hero-floating-top-v20 {
    top: 16px;
    right: 12px;
  }
  .hero-floating-bottom-v20 {
    left: 12px;
    bottom: 16px;
  }
}


/* ===== Results v21 one-row filters ===== */
.results-page-v21 .section-results-v21 {
  padding-top: 22px;
}
.results-toolbar-v21 {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}
.results-toolbar-top-v21 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.results-title-v21 {
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
  max-width: 28ch;
}
.filters-rail-v21 {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.filters-rail-v21::-webkit-scrollbar {
  height: 8px;
}
.filters-rail-v21::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
}
.filter-rail-item-v21 {
  min-width: 168px;
  flex: 0 0 168px;
}
.filter-rail-item-v21 select {
  min-height: 46px;
}
.filter-rail-actions-v21 {
  display: flex;
  align-items: end;
  gap: 10px;
  flex: 0 0 auto;
  padding-left: 4px;
}
.results-status-row-v21 {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: .95rem;
}
.results-shell-v21 {
  grid-template-columns: minmax(420px, 46%) minmax(420px, 54%);
  min-height: calc(100vh - 250px);
}
.map-column-v21,
.list-column-v21 {
  background: var(--surface);
  min-width: 0;
}
.map-frame-v21 .map-surface {
  height: calc(100vh - 322px);
  min-height: 560px;
  width: 100%;
}
.results-list-v21 {
  max-height: calc(100vh - 322px);
}
@media (max-width: 1180px) {
  .results-shell-v21 {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .map-frame-v21 .map-surface,
  .results-list-v21 {
    max-height: none;
  }
  .map-column-v21 {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .results-toolbar-top-v21 {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .results-title-v21 {
    max-width: none;
  }
  .filter-rail-item-v21 {
    min-width: 160px;
    flex-basis: 160px;
  }
  .filter-rail-actions-v21 .btn {
    min-width: 120px;
  }
}



/* ===== Results v27 compact top rail near map ===== */
.results-page-v21 .section-results-v21 {
  padding-top: 12px;
}
.results-toolbar-v27 {
  gap: 10px;
  margin-bottom: 12px;
}
.results-toolbar-top-v27 {
  align-items: center;
}
.results-heading-v27 {
  display: grid;
  gap: 4px;
}
.results-title-v21 {
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  max-width: none;
  margin: 0;
}
.results-subtitle-v27 {
  margin: 0;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.45;
}
.filters-rail-v21 {
  gap: 8px;
  padding-bottom: 0;
}
.filter-rail-item-v21 {
  min-width: 152px;
  flex-basis: 152px;
}
.filter-rail-item-v21 select {
  min-height: 44px;
}
.filter-rail-actions-v21 {
  gap: 8px;
  padding-left: 0;
}
.filter-rail-actions-v21 .btn {
  min-height: 44px;
  padding-inline: 16px;
}
.results-shell-v21 {
  min-height: calc(100vh - 212px);
}
.map-frame-v21 .map-surface {
  height: calc(100vh - 286px);
  min-height: 520px;
}
.results-list-v21 {
  max-height: calc(100vh - 286px);
}
.results-meta-inline-v27 {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 18px 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.results-meta-inline-v27::-webkit-scrollbar {
  height: 8px;
}
.results-meta-inline-v27::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
}
.meta-chip-v27 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
  color: var(--text-soft);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.meta-chip-wide-v27 {
  max-width: min(520px, 68vw);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1180px) {
  .results-shell-v21 {
    min-height: auto;
  }
  .map-frame-v21 .map-surface,
  .results-list-v21 {
    max-height: none;
  }
}
@media (max-width: 760px) {
  .results-page-v21 .section-results-v21 {
    padding-top: 10px;
  }
  .results-toolbar-v27 {
    gap: 8px;
    margin-bottom: 10px;
  }
  .results-subtitle-v27 {
    font-size: .9rem;
  }
  .filter-rail-item-v21 {
    min-width: 148px;
    flex-basis: 148px;
  }
  .results-meta-inline-v27 {
    padding: 10px 14px;
  }
  .meta-chip-wide-v27 {
    max-width: calc(100vw - 84px);
  }
}

/* ===== Results + map real data refinement v26 ===== */
.results-insights-row-v26 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.insight-pill-v26 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 700;
}
.map-header-note-v26,
.list-header-note-v26 {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.55;
}
.list-header-actions-v26 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sort-control-v26 {
  display: grid;
  gap: 6px;
  min-width: 220px;
}
.sort-control-v26 > span {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.sort-control-v26 select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 42%, var(--surface));
  color: var(--text);
}
.map-legend-v26 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}
.map-legend-chip-v26 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 700;
}
.map-price-chip-sample-v26,
.map-price-pin-v26 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
  color: var(--heading);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: 0 10px 24px rgba(15, 20, 28, 0.14);
}
.map-legend-dot-v26 {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}
.map-price-marker-wrap-v26 {
  background: transparent;
  border: 0;
}
.map-price-pin-v26 {
  position: relative;
  transform: translateY(-4px);
  white-space: nowrap;
}
.map-price-pin-v26::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
}
.map-price-pin-v26.is-rent {
  border-color: color-mix(in srgb, var(--success) 60%, var(--border));
}
.map-price-pin-v26.is-rent::after {
  border-right-color: color-mix(in srgb, var(--success) 60%, var(--border));
  border-bottom-color: color-mix(in srgb, var(--success) 60%, var(--border));
}
.map-price-marker-wrap-v26.is-selected .map-price-pin-v26 {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 18px 32px rgba(15, 20, 28, 0.18);
  transform: translateY(-7px) scale(1.03);
}
.property-card-live.property-card-live-v26 {
  display: grid;
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  min-height: 250px;
}
.property-card-live-v26 .card-copy {
  padding: 22px 22px 20px;
  align-content: start;
}
.property-media-v26 {
  position: relative;
  min-height: 250px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 72%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 98%, transparent) 100%);
  overflow: hidden;
}
.property-media-v26 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-media-placeholder-v26 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  gap: 8px;
  color: var(--text-soft);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 72%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 98%, transparent) 100%);
}
.property-media-placeholder-v26 strong {
  color: var(--heading);
  font-size: 1rem;
}
.property-media-overlay-v26 {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.property-badge-v26 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 14, 19, 0.62);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.property-badge-v26.is-rent {
  background: rgba(47, 125, 96, 0.84);
}
.property-badge-v26.is-sale {
  background: rgba(123, 79, 40, 0.84);
}
.property-head-v26 {
  display: grid;
  gap: 10px;
}
.property-title-v26 {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--heading);
}
.property-address-v26 {
  color: var(--text-soft);
  font-size: .95rem;
}
.property-meta-row-v26 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.property-meta-chip-v26 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 700;
}
.property-stats-grid-v26 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.property-stat-v26 {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 90%, transparent);
}
.property-stat-v26 strong {
  display: block;
  color: var(--heading);
  font-size: 1rem;
  margin-bottom: 4px;
}
.property-stat-v26 span {
  color: var(--text-soft);
  font-size: .82rem;
}
.property-actions-v26 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.property-card-live-v26.is-focused {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-md);
}
.map-popup-shell-v26 {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.map-popup-shell-v26 strong {
  color: var(--heading);
  font-size: 1rem;
}
.map-popup-meta-v26 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: .88rem;
}
.map-popup-link-v26 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
}
.results-list-v21 {
  display: grid;
  gap: 16px;
  align-content: start;
}
@media (max-width: 1180px) {
  .property-card-live.property-card-live-v26 {
    grid-template-columns: 1fr;
  }
  .property-media-v26 {
    min-height: 220px;
  }
}
@media (max-width: 760px) {
  .results-insights-row-v26 {
    display: grid;
  }
  .list-header-actions-v26 {
    width: 100%;
    justify-content: stretch;
  }
  .sort-control-v26 {
    min-width: 0;
    width: 100%;
  }
  .property-stats-grid-v26 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .property-actions-v26 .btn {
    width: 100%;
  }
  .map-legend-v26 {
    padding-top: 12px;
  }
}


/* ===== Results v27b tighter map header ===== */
.map-column-v21 {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.list-column-v21 {
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.map-header-compact-v27b {
  padding: 10px 16px 6px;
  min-height: 0;
}
.map-title-inline-v27b {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.map-header-compact-v27b .kicker {
  margin: 0;
}
.map-header-compact-v27b h2 {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  line-height: 1.05;
}
.results-meta-inline-map-v27b {
  padding: 6px 16px 8px;
  gap: 6px;
}
.results-meta-inline-map-v27b .meta-chip-v27 {
  min-height: 30px;
  padding: 0 10px;
  font-size: .78rem;
}
.map-frame-v27b {
  position: relative;
}
.map-overlay-actions-v27b {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 24px);
}
.map-overlay-actions-v27b .btn {
  min-height: 38px;
  padding-inline: 14px;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-sm);
}
.results-shell-v21 {
  min-height: calc(100vh - 194px);
}
.map-frame-v21 .map-surface {
  height: calc(100vh - 244px);
  min-height: 540px;
}
.results-list-v21 {
  max-height: calc(100vh - 244px);
}
@media (max-width: 1180px) {
  .map-overlay-actions-v27b {
    position: static;
    padding: 0 16px 10px;
    max-width: none;
    justify-content: flex-start;
  }
  .map-frame-v21 .map-surface,
  .results-list-v21 {
    max-height: none;
  }
}
@media (max-width: 760px) {
  .map-header-compact-v27b {
    padding: 10px 14px 6px;
  }
  .results-meta-inline-map-v27b {
    padding: 6px 14px 8px;
  }
  .map-overlay-actions-v27b {
    padding: 0 14px 10px;
  }
  .map-overlay-actions-v27b .btn {
    min-height: 36px;
    padding-inline: 12px;
  }
}


.detail-gallery-live-v28 {
  align-items: stretch;
}
.detail-main-media-v28,
.detail-side-card-v28 {
  position: relative;
  min-height: 220px;
}
.detail-live-image-v28 {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}
.detail-live-image-main-v28 {
  min-height: 320px;
}
.detail-location-card-v28 {
  min-height: 220px;
  justify-content: center;
}

/* ===== Results v29 sticky map + tighter cards + pagination ===== */
.container-results-v29 {
  max-width: min(1540px, calc(100vw - 24px));
}
.results-page-v29 .section-results-v29 {
  padding-top: 10px;
  padding-bottom: 18px;
}
.results-toolbar-v29 {
  padding: 14px 16px 12px;
  margin-bottom: 14px;
}
.results-toolbar-top-v29 {
  gap: 12px;
}
.results-heading-v29 {
  max-width: 760px;
}
.results-view-toggle-v29 {
  justify-self: end;
}
.filters-rail-v29 {
  gap: 8px;
}
.filter-rail-actions-v29 {
  margin-left: auto;
}
.results-shell-v29 {
  grid-template-columns: minmax(430px, 47%) minmax(520px, 53%);
  gap: 16px;
  min-height: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.map-column-v29,
.list-column-v29 {
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.map-column-v29 {
  position: sticky;
  top: 92px;
  align-self: start;
  height: calc(100vh - 108px);
  grid-template-rows: 1fr;
}
.map-stage-v29,
.map-frame-v29 {
  height: 100%;
}
.map-frame-v29 {
  position: relative;
}
.map-frame-v29 .map-surface {
  height: 100%;
  min-height: 640px;
}
.map-overlay-head-v29 {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.map-overlay-title-v29,
.map-overlay-actions-v29,
.map-overlay-status-v29 {
  pointer-events: auto;
}
.map-overlay-title-v29 {
  display: grid;
  gap: 4px;
  max-width: min(320px, calc(100% - 180px));
  padding: 10px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.map-overlay-title-v29 .kicker {
  margin: 0;
}
.map-overlay-title-v29 h2 {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.05;
}
.map-overlay-actions-v29 {
  top: 0;
  right: 0;
  position: static;
  max-width: min(54%, 360px);
}
.map-overlay-status-v29 {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.map-inline-chip-v29 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.list-column-v29 {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 0;
}
.list-header-v29 {
  padding-bottom: 10px;
}
.list-header-actions-v29 {
  align-items: end;
}
.sort-control-v29 {
  min-width: 230px;
}
.results-summary-bar-v29 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}
.summary-chip-v29 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 700;
}
.summary-chip-wide-v29 {
  max-width: min(460px, 100%);
}
.results-pager-v29 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
}
.results-pager-v29.is-hidden {
  display: none;
}
.results-pager-top-v29 {
  border-bottom: 1px solid var(--line);
}
.results-pager-bottom-v29 {
  border-top: 1px solid var(--line);
}
.pager-status-v29 {
  color: var(--text-soft);
  font-size: .88rem;
}
.pager-actions-v29 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pager-nav-v29,
.pager-page-v29 {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
  color: var(--text);
  font-size: .88rem;
  font-weight: 800;
}
.pager-page-v29.is-active {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 30%, var(--surface));
  color: var(--heading);
}
.pager-nav-v29:disabled,
.pager-page-v29:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.results-list-v29 {
  display: grid;
  gap: 12px;
  padding: 12px 14px 16px;
  align-content: start;
  max-height: none;
}
.property-card-live.property-card-live-v29 {
  grid-template-columns: minmax(168px, 25%) minmax(0, 1fr);
  min-height: 182px;
  cursor: pointer;
}
.property-card-live-v29 .card-copy-v29 {
  padding: 16px 18px;
  gap: 12px;
}
.property-media-v29 {
  min-height: 182px;
}
.property-media-overlay-v29 {
  left: 12px;
  right: 12px;
  bottom: 12px;
}
.property-head-v29 {
  gap: 8px;
}
.card-topline-v29 .price-line {
  font-size: clamp(1.25rem, 1.8vw, 1.9rem);
}
.property-card-live-v29 .property-title-v26 {
  font-size: 1.06rem;
  line-height: 1.18;
}
.property-card-live-v29 .property-address-v26,
.property-card-live-v29 .location-line {
  font-size: .9rem;
}
.property-meta-row-v29 {
  gap: 6px;
}
.property-meta-row-v29 .property-meta-chip-v26 {
  min-height: 30px;
  padding: 0 10px;
  font-size: .8rem;
}
.property-stats-grid-v29 {
  gap: 8px;
}
.property-stats-grid-v29 .property-stat-v26 {
  padding: 10px 12px;
}
.property-stats-grid-v29 .property-stat-v26 strong {
  font-size: .95rem;
  margin-bottom: 2px;
}
.property-stats-grid-v29 .property-stat-v26 span {
  font-size: .78rem;
}
.property-actions-v29 {
  gap: 8px;
}
.property-actions-v29 .btn {
  min-height: 38px;
  padding-inline: 14px;
}
.property-card-live-v29:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 2px;
}
@media (max-width: 1240px) {
  .results-shell-v29 {
    grid-template-columns: 1fr;
  }
  .map-column-v29 {
    position: static;
    height: auto;
  }
  .map-frame-v29 .map-surface {
    height: 580px;
    min-height: 580px;
  }
}
@media (max-width: 760px) {
  .container-results-v29 {
    max-width: calc(100vw - 14px);
  }
  .results-toolbar-v29 {
    padding: 12px 12px 10px;
  }
  .results-view-toggle-v29 {
    justify-self: stretch;
  }
  .results-summary-bar-v29,
  .results-pager-v29,
  .results-list-v29 {
    padding-left: 12px;
    padding-right: 12px;
  }
  .map-frame-v29 .map-surface {
    height: 520px;
    min-height: 520px;
  }
  .map-overlay-head-v29 {
    flex-direction: column;
    align-items: stretch;
  }
  .map-overlay-title-v29 {
    max-width: none;
  }
  .map-overlay-actions-v29 {
    max-width: none;
    justify-content: flex-start;
  }
  .map-overlay-status-v29 {
    bottom: 10px;
  }
  .property-card-live.property-card-live-v29 {
    grid-template-columns: 1fr;
  }
  .property-media-v29 {
    min-height: 200px;
  }
  .property-stats-grid-v29 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-pager-v29 {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== v36 safe patch on v29: detail gallery, contact and richer cards ===== */
.media-guidelines-v30 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.media-guideline-card-v30 {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
  color: var(--text-soft);
  font-size: .92rem;
}
.media-guideline-card-v30 strong {
  color: var(--heading);
  font-size: 1rem;
}
.detail-shell-v30 {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
}
.detail-hero-v30 {
  gap: 16px;
}
.detail-gallery-v30 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
}
.detail-gallery-main-v30 {
  position: relative;
  min-height: 420px;
}
.detail-main-media-trigger-v30 {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  cursor: zoom-in;
}
.detail-main-media-trigger-v30 .detail-live-image-main-v28 {
  min-height: 420px;
}
.detail-main-zoom-hint-v30 {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 24, 36, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
}
.detail-gallery-side-v30 {
  display: grid;
  gap: 14px;
  align-content: start;
}
.detail-thumbs-v30 {
  display: grid;
  gap: 10px;
}
.detail-thumb-v30 {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: var(--surface-alt);
  aspect-ratio: 1.3;
}
.detail-thumb-v30.is-active {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.detail-thumb-v30 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-thumb-empty-v30 {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--text-soft);
  font-weight: 700;
}
.detail-video-card-v30 {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
}
.detail-video-helper-v30 {
  color: var(--text-soft);
  font-size: .84rem;
}
.detail-video-player-v30 {
  width: 100%;
  border-radius: 14px;
  background: #000;
}
.spec-grid-v30 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-feature-grid-v30 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.detail-badge-row-v30 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-feature-grid-v30 .property-stat-v26 span {
  display: block;
  line-height: 1.2;
  min-height: 2.4em;
}
.detail-feature-groups-inline-v54 {
  margin-top: 4px;
}
.timeline-v30 {
  gap: 12px;
}

.detail-feature-groups-shell-v51 {
  gap: 12px;
}
.detail-feature-groups-v51 {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.detail-feature-group-v51 {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 90%, transparent);
}
.detail-feature-group-v51 h3 {
  margin: 0;
  color: var(--heading);
  font-size: .96rem;
  font-weight: 900;
}
.detail-feature-chip-row-v51 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-feature-chip-v51 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--heading);
  font-size: .88rem;
  font-weight: 800;
}

.detail-map-card-v30 {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent);
}
.detail-map-header-v30 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.detail-map-header-v30 h2 {
  margin: 4px 0 0;
}
.detail-map-copy-v30 {
  color: var(--text-soft);
  max-width: 420px;
  text-align: right;
}
.detail-map-v30 {
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.detail-map-empty-v30 {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--text-soft);
  font-weight: 700;
}
.detail-contact-card-v30 {
  position: sticky;
  top: 92px;
  align-self: start;
}
.detail-contact-direct-v30 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.detail-contact-summary-v30 {
  gap: 8px;
}
.contact-link-v36 {
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
}
.contact-link-v36.is-whatsapp {
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 75%, var(--border));
}
.contact-icon-v36 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.detail-lightbox-v30 {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 12, 18, 0.86);
  display: grid;
  place-items: center;
  padding: 28px;
}
.detail-lightbox-v30[hidden] {
  display: none !important;
}
.detail-lightbox-image-v30 {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 80px);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.detail-lightbox-close-v30 {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12,18,28,.72);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}
.property-card-live-v30 {
  grid-template-columns: minmax(136px, 19%) minmax(0, 1fr) !important;
  min-height: 172px;
}
.property-media-v30 {
  min-height: 172px;
}
.property-media-placeholder-v30 {
  padding: 16px;
  font-size: .88rem;
}
.card-copy-v30 {
  gap: 10px !important;
}
.property-meta-row-v30 .property-meta-chip-v26 {
  font-size: .77rem;
}
.property-stats-grid-v30 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.results-list-v29 {
  padding-bottom: 10px;
}
.property-title-link-v36 {
  color: inherit;
  text-decoration: none;
}
.property-title-link-v36:hover {
  text-decoration: underline;
}
@media (max-width: 1180px) {
  .detail-shell-v30 {
    grid-template-columns: 1fr;
  }
  .detail-contact-card-v30 {
    position: static;
  }
  .detail-gallery-v30 {
    grid-template-columns: 1fr;
  }
  .detail-gallery-side-v30 {
    grid-template-columns: 1fr;
  }
  .detail-thumbs-v30 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spec-grid-v30,
  .detail-feature-grid-v30,
  .property-stats-grid-v30,
  .media-guidelines-v30 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .detail-feature-grid-v30,
  .spec-grid-v30,
  .property-stats-grid-v30,
  .media-guidelines-v30 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-gallery-main-v30,
  .detail-main-media-trigger-v30 .detail-live-image-main-v28 {
    min-height: 280px;
  }
  .detail-map-header-v30 {
    flex-direction: column;
    align-items: flex-start;
  }
}

.lightbox-open-v36 {
  overflow: hidden;
}


/* ===== v44 results card: 50% dual image stack + compact metrics ===== */
.property-card-live-v29.property-card-live-v43 {
  grid-template-columns: minmax(320px, 50%) minmax(0, 1fr);
  min-height: 248px;
}
.property-card-live-v29.property-card-live-v43 .card-copy-v43 {
  padding: 14px 16px;
  gap: 10px;
}
.property-media-v29.property-media-v43 {
  min-height: 248px;
  padding: 10px;
}
.property-media-stack-v43 {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
}
.property-media-tile-v43 {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 72%, transparent) 0%, color-mix(in srgb, var(--surface-alt) 98%, transparent) 100%);
}
.property-media-tile-v43 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-media-placeholder-v43 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  gap: 4px;
}
.property-media-placeholder-v43 strong {
  font-size: .94rem;
}
.property-media-placeholder-v43 span {
  font-size: .8rem;
  line-height: 1.2;
}
.property-media-secondary-label-v43 {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 14, 19, 0.68);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.property-media-overlay-v43 {
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.property-head-v43 {
  gap: 6px;
}
.card-topline-v43 .price-line {
  font-size: clamp(1.2rem, 1.7vw, 1.85rem);
}
.property-meta-row-v43 {
  gap: 6px;
}
.property-stats-grid-v43 {
  gap: 8px;
}
.property-stats-grid-v43-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.property-stats-grid-v43-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.property-stats-grid-v43 .property-stat-v43 {
  min-height: 70px;
  padding: 8px 10px;
  border-radius: 14px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.property-stats-grid-v43 .property-stat-v43 strong {
  font-size: .92rem;
  line-height: 1.02;
  margin-bottom: 0;
  white-space: nowrap;
}
.property-stats-grid-v43 .property-stat-v43 span {
  font-size: .78rem;
  line-height: 1.06;
}
.property-actions-v43 {
  gap: 8px;
}
@media (max-width: 1180px) {
  .property-card-live-v29.property-card-live-v43 {
    grid-template-columns: 1fr;
  }
  .property-media-v29.property-media-v43 {
    min-height: 280px;
  }
}
@media (max-width: 760px) {
  .property-media-v29.property-media-v43 {
    min-height: 240px;
    padding: 8px;
  }
  .property-stats-grid-v43-top,
  .property-stats-grid-v43-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== v45 metrics label tweak for longer 'Construido' label ===== */
.property-stats-grid-v43-bottom .property-stat-v43 span {
  font-size: .74rem;
  line-height: 1.12;
}


/* ===== v50 ficha premium: galería completa, video modal y contacto real ===== */
.detail-main-zoom-hint-v30 { padding: 0 14px; letter-spacing: .01em; }
.detail-open-video-v50 { width: 100%; justify-content: center; min-height: 40px; }
.detail-lightbox-v50 { z-index: 90; padding: 22px; place-items: stretch; }
.detail-lightbox-panel-v50 {
  position: relative; width: min(1480px, 100%); max-height: calc(100vh - 44px); margin: auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.16); background: rgba(8, 12, 18, .94);
  box-shadow: var(--shadow-md); overflow: hidden; color: #fff;
}
.detail-lightbox-top-v50 { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 0; }
.detail-lightbox-kicker-v50 { color: rgba(255,255,255,.68); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.detail-lightbox-actions-v50 { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.78); font-weight: 900; }
.detail-lightbox-v50 .detail-lightbox-close-v30 { position: static; width: 42px; height: 42px; flex: 0 0 42px; }
.detail-lightbox-media-v50 { min-height: 0; display: grid; place-items: center; padding: 0 74px; }
.detail-lightbox-v50 .detail-lightbox-image-v30,
.detail-lightbox-video-v50 { display: block; max-width: 100%; max-height: calc(100vh - 190px); border-radius: 18px; box-shadow: none; background: #000; }
.detail-lightbox-v50 .detail-lightbox-image-v30[hidden],
.detail-lightbox-video-v50[hidden] { display: none !important; }
.detail-lightbox-nav-v50 {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 68px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(12,18,28,.72);
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.detail-lightbox-nav-v50.is-prev { left: 18px; }
.detail-lightbox-nav-v50.is-next { right: 18px; }
.detail-lightbox-nav-v50[hidden] { display: none !important; }
.detail-lightbox-thumbs-v50 { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 16px; }
.detail-lightbox-thumb-v50 { width: 92px; height: 64px; flex: 0 0 92px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; overflow: hidden; padding: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.detail-lightbox-thumb-v50.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.detail-lightbox-thumb-v50 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-lightbox-video-thumb-v50 { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 900; }
.detail-contact-direct-v30:empty { display: none; }
@media (max-width: 760px) {
  .detail-lightbox-v50 { padding: 10px; }
  .detail-lightbox-panel-v50 { max-height: calc(100vh - 20px); border-radius: 18px; }
  .detail-lightbox-media-v50 { padding: 0 8px; }
  .detail-lightbox-nav-v50 { width: 38px; height: 52px; font-size: 2rem; }
  .detail-lightbox-nav-v50.is-prev { left: 10px; }
  .detail-lightbox-nav-v50.is-next { right: 10px; }
  .detail-lightbox-v50 .detail-lightbox-image-v30,
  .detail-lightbox-video-v50 { max-height: calc(100vh - 190px); }
}


/* ===== V56 ficha premium: multimedia horizontal visible + contacto QA real ===== */
.detail-gallery-v30 {
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-gallery-main-v30 {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-alt) 94%, transparent);
}

.detail-main-media-trigger-v30 {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
}

.detail-main-media-trigger-v30 .detail-live-image-main-v28,
.detail-live-image-main-v28 {
  min-height: 0;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
}

.detail-main-placeholder-v56 {
  min-height: 0;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-weight: 800;
  padding: 18px;
}

.detail-main-placeholder-v56[hidden] {
  display: none !important;
}

.detail-main-placeholder-v56::before {
  inset: 12px;
}

.detail-gallery-side-v30 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 12px;
  align-items: stretch;
}

.detail-thumbs-v30 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-thumb-v30 {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.detail-video-card-v30 {
  align-content: start;
  min-height: 100%;
  padding: 14px;
  border-radius: 20px;
}

.detail-video-card-v30 .kicker {
  color: var(--accent);
}

.detail-video-player-v30 {
  aspect-ratio: 16 / 9;
  min-height: 180px;
  object-fit: cover;
}

.detail-open-video-v50 {
  width: 100%;
  justify-content: center;
}

@media (max-width: 980px) {
  .detail-gallery-side-v30 {
    grid-template-columns: 1fr;
  }
  .detail-thumbs-v30 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .detail-thumbs-v30 {
    grid-template-columns: 1fr;
  }
  .detail-gallery-main-v30,
  .detail-main-media-trigger-v30,
  .detail-main-media-trigger-v30 .detail-live-image-main-v28,
  .detail-live-image-main-v28,
  .detail-main-placeholder-v56 {
    border-radius: 18px;
  }
}


/* ===== V57 ficha premium: encabezado limpio + precio elegante ===== */
.detail-heading-v57 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: start;
}

.detail-heading-copy-v57 {
  display: grid;
  gap: 8px;
}

.detail-heading-v57 h1 {
  margin-bottom: 0;
}

.detail-heading-v57 p {
  margin: 0;
  max-width: 780px;
}

.detail-price-card-v57 {
  justify-self: end;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-alt) 94%, transparent);
  box-shadow: var(--shadow-sm);
}

.detail-price-card-v57 span {
  display: block;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-price-card-v57 strong {
  display: block;
  color: var(--heading);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .detail-heading-v57 {
    grid-template-columns: 1fr;
  }
  .detail-price-card-v57 {
    justify-self: stretch;
  }
  .detail-price-card-v57 strong {
    white-space: normal;
  }
}


/* ===== V90 SOLD OUT visible en ficha pública ===== */
.detail-gallery-main-v30 {
  position: relative;
}

.detail-sold-ribbon-v90 {
  position: absolute;
  top: 22px;
  left: -38px;
  z-index: 8;
  transform: rotate(-18deg);
  min-width: 180px;
  padding: 10px 24px;
  text-align: center;
  font-weight: 1000;
  letter-spacing: .12em;
  color: #ffffff;
  background: linear-gradient(135deg, #9b111e, #d71920);
  box-shadow: 0 16px 34px rgba(118, 20, 26, .34);
  border: 1px solid rgba(255,255,255,.38);
  pointer-events: none;
}

.detail-sold-ribbon-v90[hidden] {
  display: none !important;
}


/* ===== v126 Comprar: mantener dos imágenes horizontales, no alargadas ===== */
.property-card-live-v29.property-card-live-v43 {
  align-items: start;
}
.property-media-v29.property-media-v43 {
  height: 336px;
  min-height: 336px;
  max-height: 336px;
  align-self: start;
}
.property-media-stack-v43 {
  height: 100%;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.property-media-tile-v43 {
  min-height: 0;
}
.property-media-tile-v43 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1180px) {
  .property-media-v29.property-media-v43 {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}
@media (max-width: 760px) {
  .property-media-v29.property-media-v43 {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }
}


/* ===== v127 exact same height for both stacked media tiles in results ===== */
.property-card-live-v29.property-card-live-v43 {
  align-items: start;
}
.property-media-v29.property-media-v43 {
  min-height: auto;
  align-content: start;
}
.property-media-stack-v43 {
  grid-template-rows: repeat(2, 118px);
  height: auto;
}
.property-media-tile-v43 {
  min-height: 118px;
}
@media (max-width: 1180px) {
  .property-media-stack-v43 {
    grid-template-rows: repeat(2, 124px);
  }
  .property-media-tile-v43 {
    min-height: 124px;
  }
}
@media (max-width: 760px) {
  .property-media-stack-v43 {
    grid-template-rows: repeat(2, 110px);
  }
  .property-media-tile-v43 {
    min-height: 110px;
  }
}


/* ===== v128 balanced landscape media ratio for results cards ===== */
.property-media-stack-v43 {
  grid-template-rows: repeat(2, auto);
  height: auto;
}
.property-media-tile-v43 {
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
}
.property-media-tile-v43 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .property-media-stack-v43 {
    grid-template-rows: repeat(2, auto);
  }
  .property-media-tile-v43 {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}


/* ===== v129 Comprar: evitar corte inferior de la segunda imagen ===== */
.property-media-v29.property-media-v43 {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.property-media-stack-v43 {
  height: auto;
  overflow: visible;
}
.property-media-tile-v43 {
  flex: none;
}
.property-card-live-v29.property-card-live-v43 {
  align-items: start;
}


/* ===== v130 public listing chips: no internal status, centered/aligned badges ===== */
.property-media-overlay-v26.property-media-overlay-v43 {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.property-media-overlay-v26.property-media-overlay-v43 .property-badge-v26 {
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.property-meta-row-v26.property-meta-row-v43 {
  align-items: center;
}
.property-meta-row-v26.property-meta-row-v43 .property-meta-chip-v26 {
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ===== v131 Comprar: métricas más compactas y menos espacio visual inferior ===== */
.property-card-live-v29.property-card-live-v43 .card-copy-v43 {
  gap: 7px;
  align-content: start;
}
.property-head-v43 {
  gap: 4px;
}
.property-stats-grid-v43 {
  gap: 6px;
}
.property-stats-grid-v43 .property-stat-v43 {
  min-height: 54px;
  padding: 6px 10px;
  border-radius: 12px;
  align-content: center;
}
.property-stats-grid-v43 .property-stat-v43 strong {
  font-size: .86rem;
  line-height: 1;
}
.property-stats-grid-v43 .property-stat-v43 span {
  font-size: .72rem;
  line-height: 1;
}
.property-actions-v43 {
  margin-top: 0;
  gap: 8px;
}
@media (max-width: 760px) {
  .property-stats-grid-v43 .property-stat-v43 {
    min-height: 50px;
    padding: 6px 8px;
  }
}


/* ===== v135 Comprar: filtros sin botones cortados ===== */
.results-page-v29 .filters-rail-v29 {
  flex-wrap: wrap;
  overflow-x: visible;
  row-gap: 10px;
}
.results-page-v29 .filter-rail-actions-v29 {
  margin-left: 0;
  flex: 0 0 auto;
  min-width: max-content;
  display: flex;
  gap: 8px;
}
.results-page-v29 .filters-rail-v29 .filter-search-local-v104 {
  min-width: 260px;
  flex: 1 1 300px;
  max-width: 420px;
}
.results-page-v29 .filters-rail-v29 .filter-search-local-v104 input {
  width: 100%;
}
@media (max-width: 1180px) {
  .results-page-v29 .filters-rail-v29 .filter-search-local-v104 {
    min-width: 240px;
    flex-basis: 280px;
  }
}
@media (max-width: 760px) {
  .results-page-v29 .filters-rail-v29 {
    overflow-x: visible;
  }
  .results-page-v29 .filters-rail-v29 .filter-search-local-v104 {
    min-width: 100%;
    flex-basis: 100%;
    max-width: none;
  }
  .results-page-v29 .filter-rail-actions-v29 {
    width: 100%;
  }
  .results-page-v29 .filter-rail-actions-v29 .btn {
    flex: 1 1 0;
  }
}


/* ===== v136 Comprar: filtros en la misma fila sin cortar botones ===== */
@media (min-width: 1181px) {
  .results-page-v29 .filters-rail-v29 {
    display: grid;
    grid-template-columns: 108px 108px 124px 124px 124px minmax(210px, 1fr) auto;
    align-items: end;
    column-gap: 8px;
    row-gap: 0;
    overflow-x: visible;
    flex-wrap: nowrap;
  }
  .results-page-v29 .filters-rail-v29 .filter-rail-item-v21 {
    min-width: 0;
    width: 100%;
    flex: initial;
  }
  .results-page-v29 .filters-rail-v29 .filter-rail-item-v21 select,
  .results-page-v29 .filters-rail-v29 .filter-rail-item-v21 input {
    width: 100%;
  }
  .results-page-v29 .filters-rail-v29 .filter-search-local-v104 {
    min-width: 0;
    width: 100%;
    max-width: none;
    flex: initial;
  }
  .results-page-v29 .filter-rail-actions-v29 {
    width: auto;
    min-width: max-content;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: 0;
  }
}
@media (max-width: 1180px) {
  .results-page-v29 .filters-rail-v29 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    row-gap: 0;
  }
  .results-page-v29 .filters-rail-v29 .filter-rail-item-v21 {
    flex: 0 0 132px;
    min-width: 132px;
  }
  .results-page-v29 .filters-rail-v29 .filter-search-local-v104 {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: none;
  }
  .results-page-v29 .filter-rail-actions-v29 {
    flex: 0 0 auto;
    min-width: max-content;
    width: auto;
  }
}
@media (max-width: 760px) {
  .results-page-v29 .filters-rail-v29 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .results-page-v29 .filters-rail-v29 .filter-rail-item-v21 {
    flex: 0 0 160px;
    min-width: 160px;
  }
  .results-page-v29 .filters-rail-v29 .filter-search-local-v104 {
    flex: 0 0 240px;
    min-width: 240px;
  }
  .results-page-v29 .filter-rail-actions-v29 {
    width: auto;
  }
}

/* ===== v194 YouTube opcional en ficha completa ===== */
.detail-youtube-preview-v194 {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.03);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.detail-youtube-preview-v194[hidden] {
  display: none;
}

.detail-youtube-preview-v194 img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.detail-youtube-preview-v194 span {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text, #0f172a);
}

.detail-lightbox-youtube-v194 {
  width: min(1100px, 92vw);
  height: min(620px, 70vh);
  border: 0;
  border-radius: 18px;
  background: #000;
}

.detail-lightbox-youtube-v194[hidden] {
  display: none;
}

.detail-lightbox-youtube-thumb-v194 {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
}

.detail-lightbox-youtube-thumb-v194 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-lightbox-youtube-thumb-v194 i {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  font-style: normal;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .detail-lightbox-youtube-v194 {
    width: 92vw;
    height: 52vw;
    min-height: 240px;
  }
}

/* v212 - Map controls and cascading geo zoom */
.hero-map-visual-v212 {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: stretch;
}
.home-map-card-v212 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 520px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.home-map-head-v212 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 0;
}
.home-map-head-v212 h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.4vw, 1.6rem);
  line-height: 1.05;
}
.home-map-pill-v212 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.home-map-preview-v212 {
  width: 100%;
  min-height: 390px;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-alt);
}
.home-map-status-v212 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.home-map-status-v212 span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 800;
}
.hero-floating-map-v212 { z-index: 5; }
.map-frame-v29 .leaflet-control-container,
.home-map-card-v212 .leaflet-control-container {
  position: relative;
  z-index: 30;
}
.map-frame-v29 .leaflet-control-zoom,
.home-map-card-v212 .leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-frame-v29 .leaflet-control-zoom a,
.home-map-card-v212 .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  color: var(--heading) !important;
  background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
  border-bottom: 1px solid var(--border) !important;
}
.map-frame-v29 .leaflet-control-zoom a:last-child,
.home-map-card-v212 .leaflet-control-zoom a:last-child {
  border-bottom: 0 !important;
}
.map-frame-v29 .leaflet-bottom.leaflet-right,
.home-map-card-v212 .leaflet-bottom.leaflet-right {
  z-index: 35;
}
@media (max-width: 980px) {
  .hero-map-visual-v212 { min-height: auto; }
  .home-map-card-v212 { min-height: 430px; }
  .home-map-preview-v212 { min-height: 300px; }
  .home-map-head-v212 { flex-direction: column; }
}


/* v215 - Controles visibles de zoom del mapa Comprar
   Se usa control propio para no depender de la visibilidad del control Leaflet por tema/cache/overlays. */
.map-frame-v29,
.map-frame-v27b,
.map-frame-v21,
.map-frame-v15 {
  position: relative;
}
.map-frame-v29 .leaflet-control-zoom,
.map-frame-v27b .leaflet-control-zoom,
.map-frame-v21 .leaflet-control-zoom,
.map-frame-v15 .leaflet-control-zoom {
  display: none !important;
}
.inmo-map-zoom-controls-v215 {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 1200;
  display: grid;
  grid-template-rows: repeat(2, 42px);
  width: 42px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 76%, var(--accent));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 16px 34px rgba(15, 20, 28, 0.22);
  pointer-events: auto;
}
.inmo-map-zoom-btn-v215 {
  width: 42px;
  height: 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, white 4%);
  color: var(--heading);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .16s ease, transform .16s ease, color .16s ease;
}
.inmo-map-zoom-btn-v215:last-child {
  border-bottom: 0;
  padding-bottom: 3px;
}
.inmo-map-zoom-btn-v215:hover,
.inmo-map-zoom-btn-v215:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
}
.inmo-map-zoom-btn-v215:active {
  transform: scale(.96);
}
:root[data-theme="dark"] .inmo-map-zoom-controls-v215 {
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}
@media (max-width: 760px) {
  .inmo-map-zoom-controls-v215 {
    right: 12px;
    bottom: 14px;
  }
}


/* v216 - Corrección de controles de zoom visibles completos en Comprar
   Motivo: en algunos tamaños el control inferior se recortaba por el borde redondeado/overflow del mapa.
   Solución: no depender del control nativo Leaflet y elevar el control propio dentro del mapa. */
.map-frame-v29 .leaflet-control-zoom,
.map-frame-v27b .leaflet-control-zoom,
.map-frame-v21 .leaflet-control-zoom,
.map-frame-v15 .leaflet-control-zoom {
  display: none !important;
}
.inmo-map-zoom-controls-v216 {
  position: absolute;
  right: 18px;
  bottom: 64px;
  z-index: 1300;
  display: grid;
  grid-template-rows: 44px 44px;
  width: 44px;
  height: 88px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 76%, var(--accent));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: 0 18px 38px rgba(15, 20, 28, 0.24);
  pointer-events: auto;
}
.inmo-map-zoom-btn-v216 {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 97%, white 3%);
  color: var(--heading);
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background .16s ease, transform .16s ease, color .16s ease;
}
.inmo-map-zoom-btn-v216:last-child {
  border-bottom: 0;
  padding-bottom: 3px;
}
.inmo-map-zoom-btn-v216:hover,
.inmo-map-zoom-btn-v216:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
}
.inmo-map-zoom-btn-v216:active {
  transform: scale(.96);
}
:root[data-theme="dark"] .inmo-map-zoom-controls-v216 {
  background: color-mix(in srgb, var(--surface) 94%, #000 6%);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.46);
}
@media (max-width: 760px) {
  .inmo-map-zoom-controls-v216 {
    right: 14px;
    bottom: 74px;
  }
}

/* v225 - CONEXION INMUEBLE: About / institutional marketplace section */
.about-v225 { padding-top: 28px; }
.about-hero-v225 {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 28px;
  align-items: stretch;
}
.about-hero-copy-v225,
.about-hero-card-v225,
.about-section-v225,
.about-final-v225,
.about-mission-v225 {
  position: relative;
}
.about-hero-copy-v225 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-alt) 96%, transparent));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
  align-content: center;
}
.about-hero-copy-v225 h1,
.about-section-head-v225 h2,
.about-final-v225 h2,
.about-mission-v225 h2 {
  letter-spacing: -0.035em;
}
.about-hero-copy-v225 h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .9;
  max-width: 10ch;
}
.about-lead-v225 {
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  margin: 0;
}
.about-hero-copy-v225 p:not(.about-lead-v225),
.about-section-head-v225 p,
.about-final-v225 p,
.about-mission-v225 p,
.about-steps-v225 p,
.about-card-v225 p,
.about-cards-4-v225 p {
  color: var(--text-soft);
  line-height: 1.72;
}
.about-hero-card-v225 {
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  gap: 14px;
  align-content: end;
  min-height: 420px;
  overflow: hidden;
}
.about-hero-card-v225::before {
  content: "";
  position: absolute;
  inset: -40% -25% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  filter: blur(12px);
}
.about-card-label-v225 {
  width: fit-content;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--heading);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.about-hero-card-v225 strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--heading);
  position: relative;
}
.about-section-v225,
.about-split-v225,
.about-final-v225 {
  margin-top: 28px;
}
.about-section-head-v225 {
  max-width: 850px;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.about-section-head-v225 h2,
.about-final-v225 h2,
.about-mission-v225 h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1;
}
.about-cards-v225 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.about-cards-4-v225 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.about-card-v225 h3 { margin: 0; }
.about-icon-v225 {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 1.4rem;
}
.about-split-v225 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.about-mission-v225 {
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  gap: 14px;
}
.about-steps-v225 {
  counter-reset: aboutStep;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.about-steps-v225 article {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}
.about-steps-v225 strong {
  color: var(--heading);
}
.about-final-v225 {
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
@media (max-width: 1100px) {
  .about-hero-v225,
  .about-split-v225,
  .about-final-v225 { grid-template-columns: 1fr; }
  .about-hero-card-v225 { min-height: auto; }
  .about-cards-v225,
  .about-cards-4-v225 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-steps-v225 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .about-cards-v225,
  .about-cards-4-v225,
  .about-steps-v225 { grid-template-columns: 1fr; }
  .about-hero-copy-v225 h1 { max-width: none; }
}

/* v226 - CONEXION INMUEBLE: Quiénes Somos ampliado y profesional */
.about-v226 {
  display: grid;
  gap: 28px;
}
.about-hero-v226 {
  margin-bottom: 4px;
}
.about-hero-copy-v226 {
  min-height: 520px;
}
.about-hero-copy-v226 h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 5.5vw, 5.4rem);
}
.about-hero-copy-v226 p {
  max-width: 780px;
}
.about-hero-actions-v226 {
  margin-top: 8px;
}
.about-hero-card-v226 {
  min-height: 520px;
  align-content: space-between;
}
.about-hero-badges-v226 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.about-hero-badges-v226 span,
.about-role-top-v226 span,
.about-timeline-v226 span,
.about-values-grid-v226 span {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--heading);
  font-weight: 800;
}
.about-hero-badges-v226 span {
  padding: 8px 11px;
  font-size: .84rem;
}
.about-panel-v226 {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 6% 12%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 32%),
    linear-gradient(135deg, var(--surface), var(--surface-alt));
  border-radius: 28px;
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 26px;
  align-items: start;
}
.about-panel-copy-v226 {
  display: grid;
  gap: 14px;
}
.about-panel-copy-v226 h2,
.about-section-head-v226 h2,
.about-flow-v226 h2,
.about-values-v226 h2,
.about-faq-v226 h2,
.about-final-v226 h2 {
  letter-spacing: -0.035em;
}
.about-panel-copy-v226 h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1;
}
.about-panel-copy-v226 p,
.about-role-card-v226 p,
.about-role-card-v226 li,
.about-timeline-v226 p,
.about-difference-v226 p,
.about-values-grid-v226 p,
.about-faq-grid-v226 p {
  color: var(--text-soft);
  line-height: 1.72;
}
.about-problem-list-v226 {
  display: grid;
  gap: 12px;
}
.about-problem-list-v226 article,
.about-difference-v226 article,
.about-values-grid-v226 article {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.about-problem-list-v226 strong,
.about-difference-v226 strong {
  display: block;
  color: var(--heading);
  margin-bottom: 6px;
}
.about-problem-list-v226 span {
  color: var(--text-soft);
  line-height: 1.5;
}
.about-section-v226 {
  margin-top: 0;
}
.about-section-head-v226 {
  max-width: 980px;
}
.about-cards-v226 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.about-card-feature-v226 {
  min-height: 220px;
}
.about-marketplace-v226,
.about-flow-v226,
.about-values-v226,
.about-faq-v226 {
  margin-top: 0;
}
.about-role-grid-v226 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.about-role-card-v226 {
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.about-role-top-v226 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-role-top-v226 span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: .86rem;
}
.about-role-card-v226 h3,
.about-faq-grid-v226 h3 {
  margin: 0;
  color: var(--heading);
}
.about-role-card-v226 ul {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.about-flow-v226,
.about-values-v226,
.about-final-v226 {
  padding: clamp(24px, 4vw, 42px);
}
.about-timeline-v226 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.about-timeline-v226 article {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}
.about-timeline-v226 span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: .86rem;
}
.about-timeline-v226 strong {
  color: var(--heading);
}
.about-split-v226 {
  margin-top: 0;
}
.about-mission-v226 {
  min-height: 330px;
}
.about-trust-grid-v226 .summary-card-v15 {
  min-height: 190px;
}
.about-difference-v226 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.about-values-grid-v226 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.about-values-grid-v226 article {
  display: grid;
  gap: 10px;
}
.about-values-grid-v226 span {
  width: fit-content;
  padding: 8px 12px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.about-faq-grid-v226 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.about-faq-grid-v226 .card {
  padding: clamp(20px, 3vw, 28px);
}
.about-final-v226 {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
}
.about-final-actions-v226 {
  display: grid;
  justify-items: stretch;
}
.about-final-actions-v226 .btn {
  justify-content: center;
}
@media (max-width: 1180px) {
  .about-panel-v226,
  .about-final-v226 { grid-template-columns: 1fr; }
  .about-role-grid-v226,
  .about-cards-v226,
  .about-values-grid-v226 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-timeline-v226 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-difference-v226 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .about-hero-copy-v226,
  .about-hero-card-v226 { min-height: auto; }
  .about-role-grid-v226,
  .about-cards-v226,
  .about-values-grid-v226,
  .about-faq-grid-v226,
  .about-timeline-v226,
  .about-difference-v226 { grid-template-columns: 1fr; }
  .about-panel-v226 { padding: 22px; }
  .about-hero-copy-v226 h1 { max-width: none; }
}


/* v229 - Home content redistribution + simple About + footer FAQ */
.home-section-head-v229 h2 {
  max-width: 920px;
  letter-spacing: -0.035em;
}
.home-platform-v229 {
  padding-top: 20px;
}
.home-feature-grid-v229 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-feature-card-v229 {
  min-height: 210px;
}
.home-feature-card-v229 h3,
.home-principles-grid-v229 strong {
  color: var(--heading);
}
.home-feature-card-v229 p,
.home-principles-grid-v229 p,
.footer-faq-v229 p,
.about-simple-v229 p {
  color: var(--text-soft);
  line-height: 1.68;
}
.home-principles-section-v229 {
  padding-top: 12px;
}
.home-principles-v229 {
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-alt) 94%, transparent));
}
.home-principles-grid-v229 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-principles-grid-v229 article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.home-principles-grid-v229 span {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--heading);
  font-weight: 800;
  padding: 8px 12px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-faq-v229 {
  display: grid;
  gap: 14px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
}
.footer-faq-grid-v229 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.footer-faq-grid-v229 article {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-alt) 94%, transparent);
}
.footer-faq-grid-v229 h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: .96rem;
  line-height: 1.25;
}
.footer-faq-grid-v229 p {
  margin: 0;
  font-size: .9rem;
}
.about-simple-v229 {
  display: grid;
  gap: 24px;
}
.about-simple-hero-v229 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 54px);
}
.about-simple-hero-v229 h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.about-simple-card-v229 {
  display: grid;
  align-content: end;
  gap: 12px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 36%), var(--surface-alt);
  padding: clamp(22px, 4vw, 34px);
}
.about-simple-card-v229 span {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--heading);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
}
.about-simple-card-v229 strong {
  color: var(--heading);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}
.about-simple-grid-v229 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-simple-grid-v229 .card,
.about-simple-focus-v229 {
  padding: clamp(22px, 3vw, 32px);
}
.about-simple-grid-v229 h2,
.about-simple-focus-v229 h2 {
  margin-top: 0;
  color: var(--heading);
}
.about-simple-focus-v229 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.about-simple-actions-v229 {
  display: grid;
  gap: 10px;
  min-width: 220px;
}
.about-simple-actions-v229 .btn {
  justify-content: center;
}
@media (max-width: 1180px) {
  .home-feature-grid-v229,
  .home-principles-grid-v229,
  .footer-faq-grid-v229,
  .about-simple-grid-v229 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-simple-hero-v229,
  .about-simple-focus-v229 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .home-feature-grid-v229,
  .home-principles-grid-v229,
  .footer-faq-grid-v229,
  .about-simple-grid-v229 {
    grid-template-columns: 1fr;
  }
  .about-simple-hero-v229 h1 { max-width: none; }
}

/* v232 - ConexionInmueble: header alignment, friendlier home/about and interactive market context */
.topbar .nav-v15,
.topbar-v15 .nav-v15 {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.2vw, 1.5rem);
  flex-wrap: nowrap;
}

.topbar .nav-v15 > .brand,
.topbar-v15 .nav-v15 > .brand {
  flex: 0 0 auto;
}

.topbar .nav-links-v15,
.topbar-v15 .nav-links-v15 {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.5rem, .8vw, 1rem);
  flex-wrap: nowrap;
}

.topbar .nav-main-v15,
.topbar-v15 .nav-main-v15 {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.25rem, .55vw, .65rem);
  flex-wrap: nowrap;
}

.topbar .nav-actions-v15,
.topbar-v15 .nav-actions-v15 {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.35rem, .7vw, .75rem);
  flex-wrap: nowrap;
}

.topbar .nav-main-v15 .nav-link,
.topbar-v15 .nav-main-v15 .nav-link {
  white-space: nowrap;
  padding-left: clamp(.55rem, .8vw, .9rem);
  padding-right: clamp(.55rem, .8vw, .9rem);
  font-size: clamp(.84rem, .88vw, .98rem);
}

.topbar .auth-nav-user,
.topbar-v15 .auth-nav-user {
  white-space: nowrap;
  min-width: 0;
}

.topbar .auth-nav-user strong,
.topbar-v15 .auth-nav-user strong {
  max-width: clamp(7rem, 12vw, 12rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

@media (max-width: 1120px) {
  .topbar .nav-main-v15 .nav-link,
  .topbar-v15 .nav-main-v15 .nav-link {
    padding-left: .48rem;
    padding-right: .48rem;
  }
  .topbar .auth-nav-user strong,
  .topbar-v15 .auth-nav-user strong {
    max-width: 8.5rem;
  }
}

@media (max-width: 940px) {
  .topbar .nav-v15,
  .topbar-v15 .nav-v15 {
    flex-wrap: wrap;
  }
  .topbar .nav-links-v15,
  .topbar-v15 .nav-links-v15 {
    flex-basis: 100%;
    order: 3;
  }
}

.home-section-head-v232 h2 {
  max-width: 780px;
}

.about-page-v232 {
  padding-top: clamp(1.5rem, 3vw, 3rem);
}

.about-hero-v232 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
  overflow: visible;
}

.about-hero-copy-v232 h1 {
  font-size: clamp(2.65rem, 6.6vw, 6.25rem);
  line-height: .96;
  letter-spacing: -.07em;
  max-width: 1020px;
  margin-bottom: clamp(1rem, 2vw, 1.55rem);
}

.about-lead-v232,
.about-hero-copy-v232 p {
  max-width: 860px;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.75;
}

.about-actions-v232 {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.4rem;
}

.about-hero-card-v232 {
  border: 1px solid rgba(148, 163, 184, .25);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.6));
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 320px;
}

[data-theme="dark"] .about-hero-card-v232,
.dark .about-hero-card-v232 {
  background: linear-gradient(145deg, rgba(15,23,42,.85), rgba(30,41,59,.75));
}

.about-hero-card-v232 span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .55rem .8rem;
  background: rgba(180, 124, 64, .12);
  color: var(--accent, #a86f3a);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .76rem;
}

.about-hero-card-v232 strong {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.about-roles-v232 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.about-role-card-v232 {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-height: 100%;
}

.about-role-card-v232 h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.about-role-card-v232 p {
  line-height: 1.7;
}

.about-modernize-v232 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 1.2rem;
}

.about-modernize-v232 h2,
.about-market-head-v232 h2,
.about-principles-v232 h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.about-modernize-v232 p {
  line-height: 1.75;
  max-width: 900px;
}

.about-modernize-list-v232 {
  display: grid;
  gap: .8rem;
  align-content: center;
}

.about-modernize-list-v232 div {
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 1.1rem;
  padding: 1rem;
  background: rgba(255,255,255,.55);
}

[data-theme="dark"] .about-modernize-list-v232 div,
.dark .about-modernize-list-v232 div {
  background: rgba(15,23,42,.4);
}

.about-modernize-list-v232 strong,
.about-modernize-list-v232 span {
  display: block;
}

.about-modernize-list-v232 strong {
  font-weight: 900;
  margin-bottom: .25rem;
}

.about-market-v232 {
  margin-top: 1.2rem;
}

.about-market-head-v232 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-market-head-v232 p {
  max-width: 840px;
  line-height: 1.7;
}

.about-chart-tabs-v232 {
  display: inline-flex;
  gap: .45rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, .14);
  border: 1px solid rgba(148, 163, 184, .22);
  flex: 0 0 auto;
}

.about-chart-tabs-v232 button {
  border: 0;
  border-radius: 999px;
  padding: .7rem .95rem;
  font-weight: 850;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

.about-chart-tabs-v232 button.is-active {
  background: var(--surface, #fff);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

[data-theme="dark"] .about-chart-tabs-v232 button.is-active,
.dark .about-chart-tabs-v232 button.is-active {
  background: rgba(30,41,59,.95);
}

.about-chart-wrap-v232 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .35fr);
  gap: 1rem;
  align-items: stretch;
}

.about-chart-v232 {
  min-height: 310px;
  display: flex;
  align-items: end;
  gap: clamp(.7rem, 1.5vw, 1.2rem);
  padding: 1rem 1rem 2.6rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(148, 163, 184, .08), rgba(148, 163, 184, .03));
  position: relative;
}

.about-chart-v232::before {
  content: '';
  position: absolute;
  inset: 1rem 1rem 2.6rem;
  background-image: linear-gradient(to top, rgba(148,163,184,.18) 1px, transparent 1px);
  background-size: 100% 25%;
  pointer-events: none;
}

.about-chart-bar-v232 {
  flex: 1 1 0;
  min-width: 72px;
  height: 260px;
  border: 0;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  cursor: pointer;
  padding: 0;
  color: inherit;
  z-index: 1;
}

.about-chart-bar-v232 .bar-fill {
  height: var(--bar-height);
  min-height: 14px;
  border-radius: 1rem 1rem .35rem .35rem;
  background: linear-gradient(180deg, #c48a4a, #7b4a23);
  box-shadow: 0 14px 30px rgba(124, 74, 35, .25);
  transition: transform .18s ease, filter .18s ease;
}

.about-chart-bar-v232:hover .bar-fill,
.about-chart-bar-v232.is-selected .bar-fill {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.about-chart-bar-v232 .bar-value {
  font-weight: 900;
  margin-bottom: .5rem;
  font-size: .92rem;
}

.about-chart-bar-v232 .bar-label {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 850;
  font-size: .82rem;
}

.about-chart-info-v232 {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1.4rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  background: rgba(255,255,255,.6);
}

[data-theme="dark"] .about-chart-info-v232,
.dark .about-chart-info-v232 {
  background: rgba(15,23,42,.38);
}

.about-chart-info-v232 strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.about-chart-info-v232 small {
  opacity: .75;
  line-height: 1.5;
}

.about-chart-source-v232 {
  margin-top: .9rem;
  font-size: .88rem;
  line-height: 1.55;
  opacity: .78;
}

.about-principles-section-v232 {
  margin-top: 1.2rem;
}

.about-principles-v232 .section-copy-v20 {
  max-width: 720px;
}

@media (max-width: 900px) {
  .about-hero-v232,
  .about-modernize-v232,
  .about-chart-wrap-v232 {
    grid-template-columns: 1fr;
  }
  .about-roles-v232 {
    grid-template-columns: 1fr;
  }
  .about-market-head-v232 {
    align-items: flex-start;
    flex-direction: column;
  }
  .about-chart-v232 {
    overflow-x: auto;
  }
  .about-chart-bar-v232 {
    min-width: 86px;
  }
}

@media (max-width: 560px) {
  .about-hero-copy-v232 h1 {
    font-size: clamp(2.25rem, 15vw, 4rem);
  }
  .about-chart-tabs-v232 {
    width: 100%;
    border-radius: 1rem;
    flex-direction: column;
  }
}

/* v233 - About hero restored, market charts without selector, stable header alignment */
.topbar-v15 .nav-v15,
.topbar .nav-v15 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(.75rem, 1.2vw, 1.4rem);
}

.topbar-v15 .nav-links-v15,
.topbar .nav-links-v15 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.35rem, .75vw, .8rem);
  min-width: 0;
}

.topbar-v15 .nav-main-v15,
.topbar .nav-main-v15,
.topbar-v15 .nav-actions-v15,
.topbar .nav-actions-v15 {
  min-width: 0;
  flex-wrap: nowrap !important;
}

.topbar-v15 .nav-main-v15,
.topbar .nav-main-v15 {
  justify-content: center;
  gap: clamp(.12rem, .35vw, .45rem);
}

.topbar-v15 .nav-main-v15 .nav-link,
.topbar .nav-main-v15 .nav-link {
  white-space: nowrap;
  padding-left: clamp(.45rem, .65vw, .78rem);
  padding-right: clamp(.45rem, .65vw, .78rem);
  font-size: clamp(.78rem, .78vw, .92rem);
}

.topbar-v15 .nav-actions-v15,
.topbar .nav-actions-v15 {
  justify-content: flex-end;
  gap: clamp(.3rem, .55vw, .6rem);
}

.topbar-v15 .auth-nav-user,
.topbar .auth-nav-user {
  padding-left: .65rem;
  padding-right: .65rem;
}

.topbar-v15 .auth-nav-user span,
.topbar .auth-nav-user span {
  font-size: .76rem;
}

.topbar-v15 .auth-nav-user strong,
.topbar .auth-nav-user strong {
  max-width: clamp(6.2rem, 8.8vw, 9.25rem);
}

@media (max-width: 1180px) {
  .topbar-v15 .brand-title,
  .topbar .brand-title { font-size: .94rem; }
  .topbar-v15 .brand-subtitle,
  .topbar .brand-subtitle { font-size: .72rem; }
  .topbar-v15 .brand-mark,
  .topbar .brand-mark { width: 42px; height: 42px; }
  .topbar-v15 .nav-actions-v15 .btn-sm,
  .topbar .nav-actions-v15 .btn-sm { padding-left: .72rem; padding-right: .72rem; }
}

@media (max-width: 1040px) {
  .topbar-v15 .nav-v15,
  .topbar .nav-v15 {
    display: flex;
    flex-wrap: wrap;
  }
  .topbar-v15 .nav-links-v15,
  .topbar .nav-links-v15 {
    flex-basis: 100%;
    grid-template-columns: 1fr;
  }
  .topbar-v15 .nav-main-v15,
  .topbar .nav-main-v15,
  .topbar-v15 .nav-actions-v15,
  .topbar .nav-actions-v15 {
    justify-content: flex-start;
    flex-wrap: wrap !important;
  }
}

.about-page-v233 {
  padding-top: clamp(1.15rem, 2.4vw, 2.4rem);
}

.about-hero-v233 {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  align-items: stretch;
  overflow: hidden;
}

.about-hero-copy-v233 h1 {
  font-size: clamp(2.45rem, 4.75vw, 4.95rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 980px;
  margin-bottom: clamp(.9rem, 1.7vw, 1.35rem);
}

.about-lead-v233,
.about-hero-copy-v233 p {
  max-width: 900px;
  font-size: clamp(1rem, 1.04vw, 1.12rem);
  line-height: 1.78;
}

.about-actions-v233 {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.25rem;
}

/* v235: About hero cleanup - remove repeated right-side claim card and let the copy use full width. */
.about-hero-clean-v235 {
  grid-template-columns: 1fr !important;
}

.about-hero-clean-v235 .about-hero-copy-v233 {
  max-width: 1080px;
}

.about-hero-card-v233 {
  border: 1px solid rgba(148, 163, 184, .25);
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 310px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

[data-theme="dark"] .about-hero-card-v233,
.dark .about-hero-card-v233 {
  background: linear-gradient(145deg, rgba(15,23,42,.82), rgba(15,23,42,.52));
}

.about-hero-card-v233 span {
  align-self: flex-start;
  border-radius: 999px;
  padding: .55rem .75rem;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 950;
  color: #a56b32;
  background: rgba(196, 138, 74, .14);
  margin-bottom: 1.25rem;
}

.about-hero-card-v233 strong {
  font-size: clamp(1.75rem, 3.1vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin-bottom: .9rem;
}

.about-roles-v233 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.about-role-card-v233 {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 100%;
}

.about-role-card-v233 h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

.about-role-card-v233 p {
  line-height: 1.68;
}

.about-modernize-v233 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(1.4rem, 3vw, 2.7rem);
  margin-top: 1.2rem;
}

.about-modernize-v233 h2,
.about-market-head-v233 h2,
.about-principles-v233 h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.about-modernize-v233 p {
  line-height: 1.76;
  max-width: 900px;
}

.about-modernize-list-v233 {
  display: grid;
  gap: .8rem;
  align-content: center;
}

.about-modernize-list-v233 div {
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 1.1rem;
  padding: 1rem;
  background: rgba(255,255,255,.55);
}

[data-theme="dark"] .about-modernize-list-v233 div,
.dark .about-modernize-list-v233 div {
  background: rgba(15,23,42,.4);
}

.about-modernize-list-v233 strong,
.about-modernize-list-v233 span {
  display: block;
}

.about-modernize-list-v233 strong {
  font-weight: 950;
  margin-bottom: .25rem;
}

.about-principles-section-v233,
.about-market-v233 {
  margin-top: 1.2rem;
}

.about-principles-v233 .section-copy-v20 {
  max-width: 720px;
}

.about-market-head-v233 {
  margin-bottom: 1.25rem;
}

.about-market-head-v233 p {
  max-width: 920px;
  line-height: 1.72;
}

.about-market-grid-v233 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-chart-card-v233 {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 1.4rem;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  background: rgba(255,255,255,.58);
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
  overflow: hidden;
}

[data-theme="dark"] .about-chart-card-v233,
.dark .about-chart-card-v233 {
  background: rgba(15,23,42,.42);
}

.about-chart-card-head-v233 {
  display: grid;
  gap: .35rem;
  margin-bottom: 1rem;
}

.about-chart-card-head-v233 span {
  color: #a56b32;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 950;
  font-size: .74rem;
}

.about-chart-card-head-v233 strong {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.about-bars-v233 {
  min-height: 250px;
  display: flex;
  align-items: end;
  gap: .65rem;
  padding: 1rem .35rem 2.2rem;
  position: relative;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(148,163,184,.09), rgba(148,163,184,.03));
  border: 1px solid rgba(148,163,184,.18);
}

.about-bars-v233::before {
  content: '';
  position: absolute;
  inset: 1rem .35rem 2.2rem;
  background-image: linear-gradient(to top, rgba(148,163,184,.18) 1px, transparent 1px);
  background-size: 100% 25%;
  pointer-events: none;
}

.about-zero-line-v233 {
  position: absolute;
  left: .45rem;
  right: .45rem;
  bottom: 45%;
  border-top: 1px dashed rgba(148,163,184,.4);
  z-index: 0;
}

.about-bar-col-v233 {
  flex: 1 1 0;
  min-width: 0;
  height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
  position: relative;
  z-index: 1;
}

.about-bar-col-v233 i {
  display: block;
  width: 100%;
  max-width: 52px;
  height: var(--bar);
  min-height: 10px;
  border-radius: 999px 999px .35rem .35rem;
  background: linear-gradient(180deg, #d69a55, #7b4a23);
  box-shadow: 0 14px 30px rgba(124,74,35,.25);
  transform-origin: bottom;
  animation: aboutBarRiseV233 .95s cubic-bezier(.2,.9,.25,1) both;
  animation-delay: calc(var(--i, 0) * .06s);
  transition: transform .2s ease, filter .2s ease;
}

.about-bar-col-v233:nth-of-type(2) i { --i: 1; }
.about-bar-col-v233:nth-of-type(3) i { --i: 2; }
.about-bar-col-v233:nth-of-type(4) i { --i: 3; }
.about-bar-col-v233:nth-of-type(5) i { --i: 4; }
.about-bar-col-v233:nth-of-type(6) i { --i: 5; }
.about-bar-col-v233:nth-of-type(7) i { --i: 6; }

.about-bar-col-v233.negative i {
  border-radius: .35rem .35rem 999px 999px;
  background: linear-gradient(180deg, #64748b, #334155);
  opacity: .9;
}

.about-bar-col-v233.highlight i {
  background: linear-gradient(180deg, #f0b56d, #b66f31);
  filter: saturate(1.12);
}

.about-bar-col-v233:hover i {
  transform: translateY(-5px) scaleX(1.05);
  filter: brightness(1.08);
}

.about-bar-col-v233 b {
  font-size: .8rem;
  font-weight: 950;
  white-space: nowrap;
}

.about-bar-col-v233 em {
  position: absolute;
  bottom: -1.65rem;
  font-style: normal;
  font-size: .78rem;
  font-weight: 900;
  opacity: .86;
}

.about-chart-card-v233 p {
  margin-top: .95rem;
  line-height: 1.6;
  font-size: .93rem;
}

.about-chart-source-v233 {
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.55;
  opacity: .78;
}

@keyframes aboutBarRiseV233 {
  from { transform: scaleY(.12); opacity: .35; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .about-bar-col-v233 i {
    animation: none;
  }
}

@media (max-width: 1020px) {
  .about-hero-v233,
  .about-modernize-v233,
  .about-market-grid-v233 {
    grid-template-columns: 1fr;
  }
  .about-roles-v233 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-hero-copy-v233 h1 {
    font-size: clamp(2.1rem, 12vw, 3.35rem);
    letter-spacing: -.05em;
  }
  .about-bars-v233 {
    overflow-x: auto;
  }
  .about-bar-col-v233 {
    min-width: 64px;
  }
}


/* v234 - About market charts refinados y tipografía hero más compacta */
.about-hero-copy-v233 h1 {
  font-size: clamp(2.15rem, 3.65vw, 4.05rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.048em !important;
  max-width: 920px;
}

.about-market-v234 {
  margin-top: 1.2rem;
}

.about-market-head-v234 {
  margin-bottom: 1.25rem;
}

.about-market-head-v234 h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  max-width: 1000px;
}

.about-market-head-v234 p {
  max-width: 980px;
  line-height: 1.72;
}

.about-market-grid-v234 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-chart-card-v234 {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 1.4rem;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  background: rgba(255,255,255,.64);
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
  overflow: hidden;
}

[data-theme="dark"] .about-chart-card-v234,
.dark .about-chart-card-v234 {
  background: rgba(15,23,42,.42);
}

.about-line-chart-v234 {
  position: relative;
  padding: .75rem .55rem .85rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(148,163,184,.09), rgba(148,163,184,.03));
  border: 1px solid rgba(148,163,184,.18);
  min-height: 238px;
}

.about-line-chart-v234 svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.about-grid-v234 {
  stroke: rgba(148,163,184,.22);
  stroke-width: 1;
}

.about-axis-v234 {
  stroke: rgba(148,163,184,.38);
  stroke-width: 1.2;
}

.about-line-fill-v234 {
  fill: rgba(196, 138, 74, .14);
  opacity: .9;
  animation: aboutAreaFadeV234 .8s ease both;
}

.about-line-stroke-v234 {
  fill: none;
  stroke: #c48a4a;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: aboutLineDrawV234 1.45s cubic-bezier(.2,.8,.2,1) forwards;
  filter: drop-shadow(0 8px 18px rgba(196,138,74,.22));
}

.about-line-point-v234 circle {
  fill: #f2b368;
  stroke: #7b4a23;
  stroke-width: 2.4;
  opacity: 0;
  transform: scale(.65);
  animation: aboutPointPopV234 .5s ease forwards;
  animation-delay: calc(.55s + var(--delay, 0s));
}

.about-line-point-v234 text {
  font-size: 12px;
  fill: currentColor;
  font-weight: 950;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255,255,255,.78);
  stroke-width: 4px;
  stroke-linejoin: round;
}

[data-theme="dark"] .about-line-point-v234 text,
.dark .about-line-point-v234 text {
  stroke: rgba(15,23,42,.92);
}

.about-line-years-v234,
.about-line-values-v234 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  text-align: center;
}

.about-line-years-v234 {
  margin-top: .25rem;
  font-size: .76rem;
  font-weight: 950;
  opacity: .82;
}

.about-line-values-v234 {
  margin-top: .45rem;
  font-size: .78rem;
  font-weight: 950;
  color: #a56b32;
}

.about-chart-card-v234 p {
  margin-top: .95rem;
  line-height: 1.62;
  font-size: .94rem;
}

.about-source-v234,
.about-chart-source-v234 {
  display: block;
  margin-top: .65rem;
  font-size: .78rem;
  line-height: 1.45;
  opacity: .72;
}

@keyframes aboutLineDrawV234 {
  to { stroke-dashoffset: 0; }
}

@keyframes aboutPointPopV234 {
  to { opacity: 1; transform: scale(1); }
}

@keyframes aboutAreaFadeV234 {
  from { opacity: 0; }
  to { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .about-line-stroke-v234,
  .about-line-fill-v234,
  .about-line-point-v234 circle { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
}

@media (max-width: 1020px) {
  .about-market-grid-v234 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .about-hero-copy-v233 h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }
  .about-line-chart-v234 { overflow-x: auto; }
  .about-line-chart-v234 svg { min-width: 320px; }
}
