/* =============================================================
   Zenex v2 — Zillow density × Expert Listing cinema
   ============================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: radial-gradient(circle at 20% 20%, rgba(10, 25, 47, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(73, 133, 123, 0.06), transparent 35%);
}

.page-auth .top-bar { display: none; }
.page-auth .site-header { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-auth section { padding: 0; }

/* Auth — dedicated full-page experience */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface-alt);
}

.auth-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: white;
  overflow: hidden;
  background: var(--navy-900);
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.55) 45%, rgba(10, 25, 47, 0.88) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}

.auth-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(73, 133, 123, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 133, 123, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 20%, transparent 95%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.auth-visual-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.auth-visual-back svg { width: 16px; height: 16px; }
.auth-visual-back:hover { color: var(--hero-lime); }

.auth-visual-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-lime);
  margin-bottom: 1rem;
}

.auth-visual-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.auth-visual-lead {
  margin: 0 0 2rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38ch;
}

.auth-visual-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.auth-visual-stats li {
  flex: 1 1 100px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.auth-visual-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--hero-lime);
  margin-bottom: 0.25rem;
}

.auth-visual-stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-visual-quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--hero-lime);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.auth-visual-quote p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.auth-visual-quote footer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}

.auth-visual-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-visual-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.auth-visual-feature-icon {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hero-lime);
  padding-top: 0.15rem;
}

.auth-visual-features strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.auth-visual-features span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.auth-page-form-col {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface-alt);
}

.auth-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  flex-shrink: 0;
}

.auth-page-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}

.auth-page-logo img {
  height: 38px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
}

.auth-header-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  transition: background 0.2s, transform 0.2s;
}

.auth-header-cta:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
}

.auth-header-cta--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy-800);
}

.auth-header-cta--ghost:hover {
  border-color: var(--gold-400);
  background: white;
}

.auth-page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem clamp(1.5rem, 4vw, 2.5rem) 2rem;
}

.auth-page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.auth-page-footer nav {
  display: flex;
  gap: 1.25rem;
}

.auth-page-footer a:hover { color: var(--gold-600); }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08);
}

.auth-card--wide { max-width: 460px; }

.auth-card-head { margin-bottom: 1.75rem; }

.auth-card-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy-900);
}

.auth-card-head p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.auth-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.auth-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-alert p { margin: 0; }
.auth-alert p + p { margin-top: 0.25rem; }

.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-form { display: flex; flex-direction: column; gap: 1.15rem; }

.auth-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.auth-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.auth-field-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-sage);
}

.auth-field-link:hover {
  color: var(--gold-600);
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  display: flex;
  color: var(--muted-soft);
  pointer-events: none;
}

.auth-input-icon svg { width: 18px; height: 18px; }

.auth-input-wrap input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-wrap input::placeholder { color: var(--muted-soft); }

.auth-input-wrap input:hover {
  border-color: #cbd5e1;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--brand-sage);
  box-shadow: 0 0 0 3px rgba(73, 133, 123, 0.18);
  background: white;
}

.auth-input-wrap input[data-password-input] {
  padding-right: 3rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.auth-password-toggle:hover {
  color: var(--navy-800);
  background: var(--surface-alt);
}

.auth-password-toggle svg { width: 18px; height: 18px; }
.auth-password-toggle .icon-hide { display: none; }
.auth-password-toggle.is-visible .icon-show { display: none; }
.auth-password-toggle.is-visible .icon-hide { display: block; }

.auth-form-row { margin-top: -0.25rem; }

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  user-select: none;
}

.auth-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.auth-checkbox input:checked + .auth-checkbox-box {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.auth-checkbox input:checked + .auth-checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-checkbox input:focus-visible + .auth-checkbox-box {
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: white;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.25);
}

.auth-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.auth-submit:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.3);
}

.auth-submit:hover svg { transform: translateX(3px); }

.auth-submit:active { transform: translateY(0); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
  color: var(--muted-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-switch {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-switch a {
  font-weight: 700;
  color: var(--gold-600);
  margin-left: 0.25rem;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.auth-trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-trust-strip svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-600);
}

.auth-legal {
  margin: -0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-legal a {
  font-weight: 600;
  color: var(--gold-600);
}

/* =============================================================
   Proof band — compliance + metrics (replaces trust/stats strips)
   ============================================================= */

.proof-band,
.proof-band--white {
  position: relative;
  background: #ffffff;
  color: var(--ink);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-sage) 20%, var(--brand-gold) 50%, var(--brand-sage) 80%, transparent);
}

.proof-band--white::before,
.proof-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
}

.proof-band-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.proof-band-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-sage);
  margin-bottom: 1rem;
}

.proof-band-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 16ch;
  color: var(--ink);
}

.proof-band-highlight {
  color: var(--brand-sage);
}

.proof-band-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
}

.proof-compliance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

.proof-compliance-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease-out);
}

.proof-compliance-item:last-child { border-bottom: 0; }

.proof-compliance-item:hover {
  background: var(--brand-surface);
}

.proof-compliance-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sage);
  padding-top: 0.15rem;
}

.proof-compliance-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.proof-compliance-item span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.proof-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.5rem;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
}

.proof-metric {
  background: #ffffff;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
}

.proof-metric--hero {
  background: #ffffff;
  border-left: 3px solid var(--brand-sage);
  padding: 1.6rem 1.75rem;
}

.proof-metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.proof-metric-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums lining-nums;
}

.proof-metric--hero .proof-metric-value {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
}

.proof-metric-value span {
  font-size: 0.55em;
  color: var(--brand-sage);
  font-style: italic;
  margin-left: 0.05em;
}

.proof-metric-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22ch;
}

/* Budget filters — institutional price rail */

.budget-filters {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.budget-filters .section-header--compact {
  margin-bottom: 1.75rem;
}

.budget-filters-foot {
  margin-top: 1.5rem;
}

.budget-filters-foot .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.budget-filters-foot .btn svg {
  width: 16px;
  height: 16px;
}

.budget-filters nav.budget-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(2, minmax(0, 1.15fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.budget-rail-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 108px;
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid transparent;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.budget-rail-item:last-child {
  border-right: none;
}

.budget-rail-item:hover,
.budget-rail-item:focus-visible {
  background: var(--brand-sage);
  color: #fff;
  outline: none;
}

.budget-rail-item:hover .budget-rail-desc,
.budget-rail-item:focus-visible .budget-rail-desc {
  color: rgba(255, 255, 255, 0.78);
}

.budget-rail-price {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--navy-900);
}

.budget-rail-item:hover .budget-rail-price,
.budget-rail-item:focus-visible .budget-rail-price {
  color: #fff;
}

.budget-rail-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22ch;
}

.hero-search-btn-label { display: none; font-weight: 700; margin-left: 0.35rem; }

.pd-back { font-size: 0.82rem; font-family: var(--font-mono); color: var(--muted); display: inline-block; margin-bottom: 0.75rem; }
.pd-back:hover { color: var(--gold-600); }
.pd-address { color: var(--muted); margin: 0.35rem 0 0; }
.pd-gallery-thumb { border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-md); overflow: hidden; }
.pd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.btn-save { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.btn-save svg { width: 16px; height: 16px; }

/* Browse by type — Zillow horizontal rail */
.browse-rail-section {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 3.5rem;
  background: var(--surface);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.browse-rail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.browse-rail-header h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.browse-rail-track {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.25rem;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.browse-rail-track.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.browse-rail-track::before,
.browse-rail-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(20px, 5vw, 44px);
  z-index: 2;
  pointer-events: none;
}

.browse-rail-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 0%, transparent 100%);
}

.browse-rail-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface) 0%, transparent 100%);
}

.browse-rail-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
  padding: 0.35rem 0 1rem;
  animation: browse-rail-marquee 68s linear infinite;
  -webkit-animation: browse-rail-marquee 68s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.browse-rail-inner.is-js-marquee {
  animation: none !important;
  -webkit-animation: none !important;
}

@keyframes browse-rail-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes browse-rail-marquee {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

.browse-tile {
  flex: 0 0 clamp(220px, 24vw, 287px);
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 287 / 354;
  cursor: inherit;
  -webkit-user-drag: none;
  user-drag: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.browse-tile:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.browse-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.browse-tile:hover img { transform: scale(1.08); }
.browse-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.82));
}
.browse-tile span {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem; z-index: 1;
  color: white; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em;
}

/* Explore areas chips */
.explore-areas { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.explore-chip {
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--brand-sage);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
  cursor: pointer;
}
.explore-chip:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}

/* Listing carousel */
.listing-carousel-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.listing-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.listing-section-intro {
  max-width: 52ch;
}

.listing-section-intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.listing-section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.listing-section-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.listing-section-link svg {
  width: 16px;
  height: 16px;
}

.listing-carousel-wrap {
  position: relative;
}

.listing-carousel {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 1.25rem;
  scrollbar-width: thin;
  scroll-padding-inline: 0.5rem;
}

.listing-carousel-hint {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.listing-carousel .property-card--listing {
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.listing-carousel .property-card--listing:hover {
  border-color: rgba(73, 133, 123, 0.35);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.12);
}

.listing-carousel .property-card--listing .property-body {
  padding: 1.15rem 1.2rem 1.25rem;
  gap: 0.45rem;
}

.listing-carousel .property-card--listing .property-attrs {
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  gap: 0.85rem;
  font-size: 0.8rem;
}

.listing-carousel .property-card--listing .property-card-actions {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* Marketplace — Zillow split */
.page-marketplace .top-bar,
.page-developers .top-bar,
.page-developer .top-bar { display: none; }
.page-marketplace .site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.page-marketplace .site-nav a:not(.nav-cta) { color: var(--ink-soft); }
.page-marketplace .brand .text-accent { color: var(--brand-sage); }
.page-marketplace .site-nav a.active {
  color: var(--brand-sage);
  background: rgba(73, 133, 123, 0.1);
}
.page-marketplace .nav-cta-primary {
  background: var(--brand-sage) !important;
  color: white !important;
}
.page-marketplace .nav-cta-primary:hover {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
}

.marketplace-shell { padding-bottom: 0; }
.marketplace-toolbar { padding: 1.5rem 0 1rem; }
.marketplace-toolbar-head h1 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 0.25rem; }
.marketplace-toolbar-head p { margin: 0; font-size: 0.88rem; }
.marketplace-toolbar .hero-search-form { margin-top: 1.25rem; }
.marketplace-toolbar .hero-tabs { background: var(--surface-warm); }
.marketplace-toolbar-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.view-toggle {
  display: flex; padding: 0.25rem; background: var(--surface-warm);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.view-toggle button {
  border: 0; background: transparent; padding: 0.45rem 1rem;
  border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all 0.2s var(--ease-out);
}
.view-toggle button.is-active { background: var(--navy-900); color: white; }
.sort-form select {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); font-size: 0.85rem; background: var(--surface);
}

.marketplace-split {
  display: grid;
  grid-template-columns: minmax(340px, 480px) 1fr;
  min-height: calc(100vh - 280px);
  border-top: 1px solid var(--line);
}
.marketplace-split[data-view="list"] { grid-template-columns: 1fr; }
.marketplace-split[data-view="list"] .marketplace-map-panel { display: none; }
.marketplace-split[data-view="map"] { grid-template-columns: 1fr; }
.marketplace-split[data-view="map"] .marketplace-list { display: none; }

.marketplace-list {
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.marketplace-list-scroll {
  flex: 1; overflow-y: auto; max-height: calc(100vh - 280px);
}
.marketplace-pagination { padding: 1rem; border-top: 1px solid var(--line); }
.marketplace-empty { margin: 2rem; }

.listing-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease-out);
  cursor: pointer;
}
.listing-row:hover, .listing-row.is-active {
  background: rgba(73, 133, 123, 0.06);
}
.listing-row.is-active { box-shadow: inset 3px 0 0 var(--brand-sage); }
.listing-row-media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.listing-row-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-row-badge {
  position: absolute; top: 0.4rem; left: 0.4rem;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.5rem; border-radius: var(--radius-pill);
  background: var(--brand-sage); color: white;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.listing-row-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.listing-row-top h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.listing-row-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-700);
  white-space: nowrap;
}
.listing-row-loc { margin: 0.2rem 0; font-size: 0.82rem; color: var(--muted); }
.listing-row-meta { display: flex; flex-wrap: wrap; gap: 0.65rem; font-size: 0.78rem; color: var(--muted-soft); margin: 0 0 0.65rem; }
.listing-row-units { color: var(--emerald-600); font-family: var(--font-mono); }
.listing-row-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-save {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: all 0.25s var(--ease-out); padding: 0;
}
.btn-save svg { width: 16px; height: 16px; color: var(--muted); transition: color 0.2s; }
.btn-save:hover { border-color: var(--gold-300); }
.btn-save.is-saved svg { fill: #e11; stroke: #e11; color: #e11; }

.marketplace-map-panel { position: sticky; top: 72px; height: calc(100vh - 72px); }
.marketplace-map {
  position: relative; width: 100%; height: 100%; min-height: 480px;
  background: var(--navy-800); overflow: hidden;
}
.marketplace-map-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,25,47,0.2), rgba(10,25,47,0.55)),
    url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.marketplace-map .map-pin,
.map-pin--price {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  transform: translate(-50%, -100%);
  background: white;
  border: 2px solid var(--navy-900);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background 0.2s, color 0.2s;
}
.map-pin--price.is-active, .map-pin--price:hover {
  background: var(--brand-sage);
  color: white;
  border-color: var(--brand-sage-dark);
  transform: translate(-50%, -100%) scale(1.08);
  z-index: 5;
}
.map-card--float { left: 1rem; bottom: 1rem; }

/* Property detail v2 */
.page-property-detail { background: var(--surface); }
.pd-hero { padding: 1.5rem 0 0; }
.pd-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pd-hero-actions { display: flex; gap: 0.5rem; }
.pd-gallery {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.5rem;
  border-radius: var(--radius-xl); overflow: hidden; max-height: 520px;
}
.pd-gallery-main { position: relative; min-height: 320px; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.pd-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 0.5rem; }
.pd-gallery-side img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-count {
  position: absolute; right: 1rem; bottom: 1rem;
  background: rgba(10,15,26,0.75); color: white;
  padding: 0.45rem 0.85rem; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
}

.pd-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem;
  padding: 2.5rem 0 4rem; align-items: start;
}
.pd-sticky {
  position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.pd-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--gold-700);
  margin: 0 0 0.5rem;
}
.pd-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin: 2rem 0 1.5rem; }
.pd-tab {
  border: 0; background: transparent; padding: 0.75rem 1.1rem;
  font-weight: 600; font-size: 0.88rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.pd-tab.is-active {
  color: var(--navy-900);
  border-bottom-color: var(--brand-sage);
}
.pd-panel { display: none; }
.pd-panel.is-active { display: block; animation: pd-fade 0.35s var(--ease-out); }
@keyframes pd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pd-snapshot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.pd-snapshot {
  aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  position: relative; background: var(--surface-warm);
}
.pd-snapshot img { width: 100%; height: 100%; object-fit: cover; }
.pd-snapshot span {
  position: absolute; left: 0.5rem; bottom: 0.5rem;
  font-size: 0.68rem; font-family: var(--font-mono);
  background: rgba(10,15,26,0.7); color: white; padding: 0.2rem 0.45rem; border-radius: 4px;
}


/* =============================================================
   Why Zenex — homepage pillars board
   ============================================================= */

.zenex-pillars {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--surface-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.zenex-pillars::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(73, 133, 123, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(197, 160, 89, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.zenex-pillars-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-sage) 18%, var(--gold-500) 50%, var(--brand-sage) 82%, transparent);
}

.zenex-pillars .container {
  position: relative;
}

.zenex-pillars-intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.zenex-pillars-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}

.zenex-pillars-intro h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 16ch;
}

.zenex-pillars-deck {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}

.zenex-pillars-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 1rem;
}

.zenex-pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-spring);
}

.zenex-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-sage), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
  z-index: 2;
}

.zenex-pillar-card:hover {
  border-color: rgba(73, 133, 123, 0.35);
  box-shadow: 0 20px 48px -24px rgba(10, 25, 47, 0.18);
  transform: translateY(-3px);
}

.zenex-pillar-card:hover::before {
  transform: scaleX(1);
}

.zenex-pillar-card--lead {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
}

.zenex-pillar-card--escrow {
  grid-column: 9 / 13;
  grid-row: 1;
}

.zenex-pillar-card--vault {
  grid-column: 9 / 13;
  grid-row: 2;
}

.zenex-pillar-card--realtors {
  grid-column: 1 / 7;
  grid-row: 3;
}

.zenex-pillar-card--portal {
  grid-column: 7 / 13;
  grid-row: 3;
}

.zenex-pillar-card-media {
  position: relative;
  min-height: 220px;
  flex: 1;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
}

.zenex-pillar-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.15) 0%, rgba(10, 25, 47, 0.75) 100%);
}

.zenex-pillar-live {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 25, 47, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.zenex-pillar-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-sage);
  box-shadow: 0 0 0 0 rgba(73, 133, 123, 0.55);
  animation: zenex-pillar-pulse 2.2s var(--ease-soft) infinite;
}

@keyframes zenex-pillar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(73, 133, 123, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(73, 133, 123, 0); }
}

.zenex-pillar-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.zenex-pillar-card--lead .zenex-pillar-card-body {
  padding: 1.5rem 1.5rem 1.65rem;
}

.zenex-pillar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.zenex-pillar-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-sage);
}

.zenex-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(73, 133, 123, 0.1);
  border: 1px solid rgba(73, 133, 123, 0.2);
  color: var(--brand-sage-dark);
  flex-shrink: 0;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.zenex-pillar-icon svg {
  width: 20px;
  height: 20px;
}

.zenex-pillar-card:hover .zenex-pillar-icon {
  background: var(--brand-sage);
  border-color: var(--brand-sage);
  color: white;
}

.zenex-pillar-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy-900);
}

.zenex-pillar-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: none;
}

.zenex-pillar-card--lead h3 {
  font-size: 1.2rem;
}

.zenex-pillar-card--escrow,
.zenex-pillar-card--vault {
  justify-content: center;
}

.zenex-pillar-card--portal {
  flex-direction: row;
  align-items: stretch;
}

.zenex-pillar-card--portal .zenex-pillar-card-body {
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
}

.zenex-pillar-portal-preview {
  flex: 0 0 38%;
  max-width: 200px;
  margin: 1rem 1rem 1rem 0;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
}

.zenex-pillar-portal-bar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.zenex-pillar-portal-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.zenex-pillar-portal-bar span:first-child {
  background: var(--brand-sage);
}

.zenex-pillar-portal-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  width: 88%;
}

.zenex-pillar-portal-line--wide { width: 100%; }
.zenex-pillar-portal-line--short { width: 55%; }

.zenex-pillar-portal-progress {
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  margin-top: 0.35rem;
  overflow: hidden;
}

.zenex-pillar-portal-progress span {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-sage), var(--gold-500));
}

@media (min-width: 1101px) {
  .zenex-pillars-board {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .zenex-pillar-card--lead {
    min-height: 100%;
  }

  .zenex-pillar-card--escrow,
  .zenex-pillar-card--vault {
    min-height: 0;
  }
}

@media (max-width: 1100px) {
  .zenex-pillars-intro-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .zenex-pillars-deck {
    max-width: 52ch;
  }

  .zenex-pillars-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .zenex-pillar-card--lead,
  .zenex-pillar-card--escrow,
  .zenex-pillar-card--vault,
  .zenex-pillar-card--realtors,
  .zenex-pillar-card--portal {
    grid-column: auto;
    grid-row: auto;
  }

  .zenex-pillar-card--lead {
    grid-column: 1 / -1;
  }

  .zenex-pillar-card-media {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .zenex-pillars-board {
    grid-template-columns: 1fr;
  }

  .zenex-pillar-card--portal {
    flex-direction: column;
  }

  .zenex-pillar-portal-preview {
    flex: none;
    max-width: none;
    margin: 0 1rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zenex-pillar-live-dot { animation: none; }
  .zenex-pillar-card:hover { transform: none; }
}

/* Role portals */
.page-portal section { padding: 2rem 0 4rem; }
.portal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.portal-sidebar { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
.portal-sidebar-head h2 { font-size: 1.15rem; margin: 0.35rem 0 0; }
.portal-nav { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.25rem; }
.portal-nav a { padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.portal-nav a.is-active,
.portal-nav a:hover {
  background: rgba(73, 133, 123, 0.1);
  color: var(--brand-sage-dark);
}
.portal-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--brand-sage);
}
.portal-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.portal-stats > div strong { display: block; font-size: 1.6rem; font-family: var(--font-mono); color: var(--navy-900); }
.portal-stats > div span { font-size: 0.78rem; color: var(--muted); }
.portal-list { display: flex; flex-direction: column; gap: 0.65rem; }
.portal-list-item { display: flex; gap: 1rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color 0.2s, transform 0.2s; cursor: pointer; }
.portal-list-item:hover { border-color: var(--gold-300); transform: translateX(3px); }
.portal-list-item--static { cursor: default; }
.portal-list-item--static:hover { transform: none; }
.portal-list-item img { width: 72px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.portal-list-item strong { display: block; }
.portal-list-item span { display: block; font-size: 0.82rem; color: var(--muted); }
.portal-chat { display: flex; flex-direction: column; gap: 0.75rem; max-height: 360px; overflow-y: auto; padding: 1rem; background: var(--surface-warm); border-radius: var(--radius-md); margin: 1rem 0; }
.portal-chat-msg { max-width: 85%; padding: 0.65rem 0.85rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.portal-chat-msg.is-self { align-self: flex-end; background: var(--navy-900); color: white; border-color: var(--navy-900); }
.portal-chat-msg.is-self small { color: rgba(255,255,255,0.65); }
.portal-chat-msg.is-system { align-self: center; background: transparent; border: 0; font-size: 0.82rem; color: var(--muted); text-align: center; }
.portal-chat-msg small { display: block; margin-top: 0.25rem; font-size: 0.68rem; color: var(--muted-soft); }
.portal-chat-form { display: flex; gap: 0.65rem; align-items: flex-end; }
.portal-chat-form textarea { flex: 1; min-height: 72px; }
.portal-code-panel { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-warm); }
.portal-code-list { list-style: none; padding: 0; margin: 0; }
.portal-code-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.portal-property-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; margin-bottom: 1.5rem; }
.portal-property-hero img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/10; object-fit: cover; }
.portal-progress-bar { height: 6px; background: var(--line); border-radius: var(--radius-pill); margin-top: 0.5rem; overflow: hidden; }
.portal-progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--brand-sage), var(--gold-500));
}

@media (max-width: 1024px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; }
  .portal-property-hero { grid-template-columns: 1fr; }
  .marketplace-map-panel { position: relative; top: 0; height: 360px; }
  .marketplace-list-scroll { max-height: none; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sticky { position: static; }
  .pd-gallery { grid-template-columns: 1fr; max-height: none; }
  .pd-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .auth-page-grid { grid-template-columns: 1fr; }
  .auth-visual { min-height: 280px; order: 2; }
  .auth-page-form-col { order: 1; min-height: auto; }
  .auth-visual-quote { display: none; }
  .auth-form-split { grid-template-columns: 1fr; }
  .proof-band-grid { grid-template-columns: 1fr; }
  .proof-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-metric--hero { grid-column: 1 / -1; }
  .budget-filters nav.budget-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .budget-rail-item:nth-child(3n) {
    border-right: none;
  }

  .budget-rail-item:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .listing-row { grid-template-columns: 96px 1fr; padding: 0.85rem; }
  .pd-snapshot-grid { grid-template-columns: 1fr 1fr; }
  .hero-search-btn-label { display: inline; }
  .proof-metrics { grid-template-columns: 1fr; }
  .proof-compliance-item { grid-template-columns: 56px 1fr; }
  .budget-filters nav.budget-rail {
    grid-template-columns: 1fr;
  }

  .budget-rail-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: auto;
    padding: 1.15rem 1.1rem;
  }

  .budget-rail-item:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-panel.is-active { animation: none; }
  .browse-tile:hover { transform: none; }
}

/* =================================================== Site assistant chatbot */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zenex-assistant {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 1200;
  font-family: var(--font-body);
}

.zenex-assistant-launcher {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-sage, #2F5D50), var(--brand-sage-dark, #254a40));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 32px rgba(9, 14, 24, 0.28);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.zenex-assistant-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(9, 14, 24, 0.32);
}

.zenex-assistant-launcher-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
}

.zenex-assistant-launcher-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 520px) {
  .zenex-assistant-launcher-label { display: none; }
  .zenex-assistant-launcher { padding: 0.95rem; border-radius: 50%; }
}

.zenex-assistant-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(400px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 6rem));
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(9, 14, 24, 0.22);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.zenex-assistant-panel.is-open {
  display: flex;
  pointer-events: auto;
}

.zenex-assistant-panel[hidden] {
  display: none !important;
  pointer-events: none;
}

.zenex-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--navy-900);
  color: #fff;
}

.zenex-assistant-header strong {
  display: block;
  font-size: 0.95rem;
}

.zenex-assistant-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.15rem;
}

.zenex-assistant-close {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zenex-assistant-close svg {
  width: 1rem;
  height: 1rem;
}

.zenex-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--surface-warm);
}

.zenex-assistant-msg {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.55;
}

.zenex-assistant-msg p {
  margin: 0;
  max-width: none;
}

.zenex-assistant-msg--user {
  align-self: flex-end;
  background: var(--brand-sage, #2F5D50);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.zenex-assistant-msg--user p {
  color: #fff;
}

.zenex-assistant-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.zenex-assistant-msg--typing p {
  display: flex;
  gap: 0.25rem;
}

.zenex-assistant-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: zenex-assistant-dot 1s infinite ease-in-out;
}

.zenex-assistant-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.zenex-assistant-msg--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes zenex-assistant-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.zenex-assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.zenex-assistant-form textarea {
  flex: 1;
  resize: none;
  min-height: 2.5rem;
  max-height: 6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9rem;
}

.zenex-assistant-send {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gold-500, #ae9566);
  color: var(--navy-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zenex-assistant-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zenex-assistant-send svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Inspection booking */
.inspection-booking-card h2 {
  margin-top: 0;
}

.inspection-property-summary {
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--brand-surface);
}

.inspection-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.inspection-fieldset legend {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sage);
  margin-bottom: 0.85rem;
  padding: 0;
}

.inspection-date-input {
  min-height: 2.75rem;
  cursor: pointer;
}

.inspection-booking-form .required-mark {
  color: var(--brand-gold);
  font-weight: 600;
}

.page-schedule-inspection .inspection-booking-form select,
.page-schedule-inspection .inspection-booking-form input[type="date"],
.page-schedule-inspection .inspection-booking-form input[type="number"] {
  width: 100%;
}

/* =============================================================
   About page — editorial founder story
   ============================================================= */

.page-about section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-about .page-hero--centered .page-hero-copy p {
  max-width: 52ch;
  margin-inline: auto;
}

/* Founder */
.about-founder {
  background: var(--surface);
}

.about-founder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-founder-portrait {
  margin: 0;
  position: relative;
}

.about-founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 0 0 var(--brand-gold),
    0 28px 60px -20px rgba(10, 25, 47, 0.35);
}

.about-founder-caption {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-founder-caption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-navy);
}

.about-founder-caption span {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.about-founder-story h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0.6rem 0 1.4rem;
  max-width: 22ch;
  color: var(--brand-navy);
}

.about-founder-story p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 58ch;
}

.about-founder-story p strong {
  color: var(--brand-navy);
}

.about-founder-quote {
  margin: 2rem 0 0;
  padding: 1.75rem 0 0 1.5rem;
  border-left: 3px solid var(--brand-gold);
  max-width: 52ch;
}

.about-founder-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--brand-navy);
  margin: 0 0 0.75rem;
}

.about-founder-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-sage);
}

/* Stats strip */
.about-stats {
  background: var(--brand-sage);
  color: white;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.about-stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}

.about-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  color: white;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 16ch;
}

/* Mission */
.about-mission {
  background: var(--surface-alt);
}

.about-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-mission-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0.5rem 0 1.25rem;
  max-width: 20ch;
  color: var(--brand-navy);
}

.about-mission-copy p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  max-width: 58ch;
}

.about-mission-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-mission-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 12px 32px -24px rgba(10, 25, 47, 0.18);
}

.about-mission-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-sage);
  margin-bottom: 0.55rem;
}

.about-mission-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.about-mission-card strong {
  color: var(--brand-navy);
}

/* Values */
.about-values {
  background: var(--surface);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-value-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.6rem 2rem;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-value-card:hover {
  border-color: rgba(73, 133, 123, 0.35);
  box-shadow: 0 20px 48px -28px rgba(10, 25, 47, 0.2);
}

.about-value-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

.about-value-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--brand-navy);
}

.about-value-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Audiences */
.about-audiences {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.about-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-audience-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

.about-audience-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--brand-sage);
}

.about-audience-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* CTA */
.about-cta {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-cta-inner {
  background: var(--brand-sage);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 100px -30px rgba(37, 74, 64, 0.45);
}

.about-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 92% 12%, rgba(197, 160, 89, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 8% 88%, rgba(255, 255, 255, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.about-cta-inner > * {
  position: relative;
  z-index: 1;
}

.about-cta-inner h2 {
  color: white;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin: 0.5rem 0 0.75rem;
  max-width: 22ch;
}

.about-cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  line-height: 1.65;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.about-cta .btn-primary {
  background: white;
  color: var(--brand-sage-dark);
  border-color: white;
}

.about-cta .btn-primary:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
}

.about-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.about-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}
