/* Property Select Portal — full stylesheet
   Based on the Phase-2 UI mockups. Brand: navy + green. */

:root {
  --navy: #08416C;
  --navy-700: #0A4F84;
  --navy-50: #EDF3F8;
  --green: #1F9446;
  --green-700: #18753A;
  --green-50: #ECF5EF;
  --ink: #0F2540;
  --ink-2: #2A3D55;
  --muted: #5A6B85;
  --muted-2: #8A98AE;
  --line: #E5E9F0;
  --line-2: #EFF2F7;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --warn: #B45309;
  --warn-50: #FEF7E6;
  --danger: #B91C1C;
  --danger-50: #FEE2E2;
  --shadow: 0 1px 2px rgba(15, 37, 64, .04);
  --shadow-md: 0 8px 24px rgba(15, 37, 64, .06);
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.page-public { background: #fff; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ======= Header ======= */
.app-header {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px 32px; display: flex; align-items: center; gap: 28px;
  position: sticky; top: 0; z-index: 30;
}
.brand, .brand-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo, .brand-side .logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand .logo svg, .brand-side .logo svg { width: 22px; height: 22px; }
.brand .name, .brand-side .name {
  font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em;
}
.brand .name .dot, .brand-side .name .dot { color: var(--green); }
.brand .name .sel, .brand-side .name .sel { color: var(--green); }
.brand-center { justify-content: center; margin: 0 0 24px; }

.region-switch {
  display: flex; gap: 4px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13px; background: #fff;
}
.region-switch button {
  border: 0; background: transparent; padding: 5px 14px; border-radius: var(--r-pill);
  color: var(--muted); font-weight: 500;
}
.region-switch button.on { background: var(--navy-50); color: var(--navy); font-weight: 600; }

.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a {
  color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--green); }

.hdr-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.user-chip .av {
  width: 28px; height: 28px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--navy);
}
.user-chip .nm { font-weight: 600; }

/* ======= Buttons ======= */
.btn {
  font-weight: 600; font-size: 13px; border-radius: var(--r);
  padding: 9px 16px; border: 1px solid transparent; transition: .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-700); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-700); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: var(--muted-2); }
.btn-link { background: transparent; color: var(--navy); border: 0; padding: 9px 4px; font-weight: 600; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
.btn-light { background: #fff; color: var(--navy); border: 1px solid #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn.full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ======= Flash ======= */
.flash {
  padding: 10px 20px; border-radius: 0; font-size: 13px; font-weight: 600;
  background: var(--green-50); color: var(--green-700);
  border-bottom: 1px solid #bce0c4;
}
.flash-warn { background: var(--warn-50); color: var(--warn); border-bottom-color: #f0d5a0; }
.flash-danger { background: var(--danger-50); color: var(--danger); border-bottom-color: #f5b6b6; }

/* ======= HOMEPAGE ======= */
.hero {
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--bg) 100%);
  padding: 56px 32px 24px; position: relative; overflow: hidden;
}
.hero-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.hero h1 { font-size: 52px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 16px 0 18px; color: var(--ink); }
.hero h1 .accent { color: var(--green); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-700);
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 0 24px; line-height: 1.55; }
.trust-row { margin-top: 16px; display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.trust-row b { color: var(--green); margin-right: 4px; }

/* ======================================================================
   Centered single-column hero — homepage.
   Bold navy background, search card pops forward with depth.
   Booking.com / PropertyFinder design language.
   ====================================================================== */
.hero.hero-centered {
  padding: 64px 32px 56px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 85% 15%, rgba(31, 148, 70, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 80% at 15% 85%, rgba(74, 158, 220, 0.18), transparent 60%),
    linear-gradient(135deg, #06314F 0%, #08416C 35%, #0A4F84 65%, #073D63 100%);
}
/* subtle dot pattern overlay for texture */
.hero.hero-centered::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.hero.hero-centered .hero-inner {
  max-width: 1080px; margin: 0 auto;
  text-align: center; position: relative; z-index: 2;
}
.hero.hero-centered .hero-inner .eyebrow {
  background: rgba(31, 148, 70, 0.18);
  color: #7FE8A6;
  border: 1px solid rgba(31, 148, 70, 0.45);
  margin: 0 auto;
  backdrop-filter: blur(6px);
}
.hero.hero-centered .hero-inner h1 {
  font-size: 52px;
  max-width: 880px;
  margin: 18px auto 14px !important;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.hero.hero-centered .hero-inner h1 .accent {
  color: #4ADE80;
  background: linear-gradient(135deg, #6FE89A, #4ADE80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero.hero-centered .hero-inner p.lede {
  max-width: 620px;
  margin: 0 auto 30px !important;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}
.hero.hero-centered .hero-inner .search-card { margin: 0 auto; }
.hero.hero-centered .hero-inner .search-card-wide {
  background: #fff;
  border: 0;
  box-shadow:
    0 32px 64px -20px rgba(0, 0, 0, 0.5),
    0 12px 24px -8px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 3;
}
.hero.hero-centered .hero-inner .quick-filters {
  margin: 26px auto 0;
}
.hero.hero-centered .hero-inner .quick-filters .qf-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.hero.hero-centered .hero-inner .quick-filters a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.hero.hero-centered .hero-inner .quick-filters a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(127, 232, 166, 0.6);
  color: #fff;
  transform: translateY(-1px);
}
.hero.hero-centered .hero-inner .trust-row {
  justify-content: center;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.hero.hero-centered .hero-inner .trust-row b {
  color: #7FE8A6;
  margin-right: 4px;
  font-weight: 700;
}


.search-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 10px;
  box-shadow: var(--shadow-md);
  margin-top: 12px;
  max-width: 760px;
}
/* Wide hero search card moved below to win source-order over .search-fields */
/* Popular search pills under the bar */
.quick-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.quick-filters .qf-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 4px; letter-spacing: 0.02em; }
.quick-filters a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: all .15s;
}
.quick-filters a:hover { border-color: var(--green); color: var(--green-700); background: var(--green-50); transform: translateY(-1px); }
.search-segments { display: flex; gap: 4px; padding: 4px 4px 6px; }
.search-segments button {
  padding: 9px 16px; border: 0; background: transparent;
  font-size: 13px; font-weight: 600; border-radius: var(--r);
  color: var(--muted-2); cursor: pointer; font-family: inherit;
}
.search-segments button.on { background: var(--navy); color: #fff; }
.search-segments button:hover:not(.on) { background: var(--bg); color: var(--ink); }

.search-fields {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr auto;
  gap: 0; border-top: 1px solid var(--line);
}
.search-field {
  padding: 14px 18px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 78px;
}
.search-field:last-of-type { border-right: 0; }
.search-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.search-field select,
.search-field input[type="text"],
.search-field input[type="search"] {
  border: 0; background: transparent;
  font-size: 16px; font-weight: 600; color: var(--ink);
  width: 100%; padding: 0; outline: none; font-family: inherit;
  line-height: 1.3;
}
.search-field input[type="text"]::placeholder,
.search-field input[type="search"]::placeholder {
  color: var(--muted-2); font-weight: 500;
}
.search-field .suggest-host { width: 100%; }
.search-go {
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.search-go .btn {
  padding: 14px 22px; font-size: 14px; font-weight: 700;
  height: 100%; min-height: 60px;
  white-space: nowrap;
}

/* Autosuggest in hero — pin to left of suggest-host so dropdown can extend wider than narrow input */
.search-field .suggest-box {
  left: -18px; right: auto;
  width: 460px; min-width: 460px;
  max-width: calc(100vw - 32px);
}

@media (max-width: 760px) {
  .search-fields { grid-template-columns: 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-field .suggest-box {
    left: 0; right: 0;
    width: auto; min-width: 0;
  }
}

/* ============================================================
   Wide hero search (homepage hero) — must come AFTER .search-fields
   to win source-order on shared properties.
   ============================================================ */
.search-card-wide {
  max-width: 1080px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px -24px rgba(8, 65, 108, 0.28),
              0 4px 14px rgba(8, 65, 108, 0.06);
}
.search-card-wide .search-segments { padding: 4px 8px 8px; }
.search-card-wide .search-segments button { padding: 8px 18px; font-size: 13px; }

.search-fields-wide {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0;
  border-top: 1px solid var(--line);
  align-items: stretch;
}
.search-fields-wide .search-field {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 70px;
  text-align: left;
}
.search-fields-wide .search-field:last-of-type { border-right: 0; }
.search-fields-wide .search-field label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px;
}
.search-fields-wide .search-field input[type="text"],
.search-fields-wide .search-field select {
  border: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--ink);
  width: 100%; padding: 0; outline: none; font-family: inherit;
  line-height: 1.3;
}
.search-fields-wide .search-field input[type="text"]::placeholder {
  color: var(--muted-2); font-weight: 500;
}
.search-fields-wide .search-go {
  display: flex; align-items: stretch; justify-content: stretch;
  padding: 6px;
}
.search-fields-wide .search-go .btn {
  padding: 0 26px; height: 100%; min-height: 58px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.search-fields-wide .search-field-q .suggest-host { width: 100%; }
.search-fields-wide .search-field-q .suggest-box {
  left: -18px; right: auto;
  width: 480px; min-width: 480px;
  max-width: calc(100vw - 32px);
}

/* Tablet: 2-column with Where + button spanning */
@media (max-width: 880px) {
  .hero-centered { padding: 40px 20px 24px; }
  .hero-inner h1 { font-size: 38px; }
  .search-fields-wide {
    grid-template-columns: 1fr 1fr;
  }
  .search-fields-wide .search-field-q { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .search-fields-wide .search-field { border-right: 1px solid var(--line); }
  .search-fields-wide .search-field:nth-of-type(odd) { border-right: 1px solid var(--line); }
  .search-fields-wide .search-go { grid-column: 1 / -1; padding: 8px; }
  .search-fields-wide .search-go .btn { width: 100%; min-height: 54px; }
}
/* Mobile: full stack */
@media (max-width: 560px) {
  .hero-centered { padding: 28px 14px 18px; }
  .hero-inner h1 { font-size: 30px; line-height: 1.1; }
  .hero-inner p.lede { font-size: 15px; margin-bottom: 18px; }
  .hero-inner .eyebrow { font-size: 11px; padding: 5px 10px; }
  .search-fields-wide { grid-template-columns: 1fr; }
  .search-fields-wide .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-fields-wide .search-field-q .suggest-box { left: 0; right: 0; width: auto; min-width: 0; }
  .quick-filters { font-size: 12px; }
}

.hero-art {
  position: relative; height: 520px;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, var(--green) 130%);
}
.hero-art .pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(31, 148, 70, .35), transparent 50%);
}
.hero-art .stamp {
  position: absolute; right: 24px; top: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r); padding: 14px 16px; color: #fff;
  display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.hero-art .stamp .ic {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-art .stamp .ic svg { width: 20px; height: 20px; color: #fff; }
.hero-art .stamp .t1 { font-size: 12px; opacity: .7; }
.hero-art .stamp .t2 { font-size: 13px; font-weight: 600; }
.hero-art .city-card {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  background: #fff; border-radius: var(--r-lg); padding: 16px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.hero-art .city-card .stat .v { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.hero-art .city-card .stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.hero-art .city-card .stat.green .v { color: var(--green); }
.hero-art .floating-prop {
  position: absolute; left: 24px; top: 100px;
  background: #fff; padding: 14px 16px; border-radius: var(--r-lg);
  width: 280px; box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.hero-art .floating-prop .row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-art .floating-prop .badge-v {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-50); color: var(--green-700);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill);
}
.hero-art .floating-prop .badge-v .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero-art .floating-prop .ttl { font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-art .floating-prop .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero-art .floating-prop .price { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }

/* trust strip */
.trust-strip {
  max-width: 1240px; margin: 8px auto 0; padding: 24px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-strip .item { display: flex; align-items: center; gap: 12px; }
.trust-strip .item .ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-50); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-strip .item .ic svg { width: 18px; height: 18px; }
.trust-strip .item .t { font-size: 13px; font-weight: 600; color: var(--ink); }
.trust-strip .item .d { font-size: 12px; color: var(--muted); }

/* sections */
.section { max-width: 1240px; margin: 0 auto; padding: 56px 32px; }
.section .head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 6px; }
.section .sub { font-size: 15px; color: var(--muted); }
.section .head .right a { font-size: 13px; color: var(--navy); font-weight: 600; }
.section.section-on-white { background: #fff; max-width: none; padding: 56px 32px; }
.section.section-on-white > div { max-width: 1240px; margin: 0 auto; }

/* fears section */
.fears { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fear-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.fear-card .q { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.fear-card .a { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.fear-card .a strong { color: var(--green); }
.fear-card .ic-band {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-50); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.fear-card .ic-band svg { width: 22px; height: 22px; }
.fear-card.green-band .ic-band { background: var(--green-50); color: var(--green); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 28px; height: 2px;
  background: var(--line); z-index: 0;
}
.step { background: transparent; text-align: center; position: relative; z-index: 1; }
.step .ring {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--navy);
}
.step.done .ring { border-color: var(--green); color: var(--green); background: var(--green-50); }
.step .ring svg { width: 22px; height: 22px; }
.step .num {
  position: absolute; top: -6px; right: calc(50% - 35px);
  background: var(--ink); color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.step.done .num { background: var(--green); }
.step .ttl { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.step .desc { font-size: 12px; color: var(--muted); padding: 0 8px; line-height: 1.45; }

/* PSF banner */
.psf-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.psf-band::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 148, 70, .25), transparent 60%);
}
.psf-grid {
  max-width: 1240px; margin: 0 auto; padding: 56px 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.psf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 148, 70, .2); border: 1px solid rgba(31, 148, 70, .35);
  color: #5DCB85; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.psf-band h2 { color: #fff; font-size: 36px; letter-spacing: -0.025em; margin: 18px 0 12px; line-height: 1.1; }
.psf-band p { color: rgba(255,255,255,.78); font-size: 16px; max-width: 540px; }
.psf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.psf-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 22px; border-radius: var(--r-lg); }
.psf-stat .v { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.psf-stat .v .u { font-size: 16px; color: #5DCB85; font-weight: 600; }
.psf-stat .l { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.psf-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* project grid + cards */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prop-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: .15s;
}
.prop-card:hover { border-color: var(--muted-2); }
/* NOTE: definitive .prop-card .photo height lives at the bottom of this file
   (line ~3134). Do not set height here. */
.prop-card .photo {
  display: block; position: relative;
  background: linear-gradient(135deg, #b6c8d4, #6f8696);
}
.prop-card .photo .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.verified-pill {
  background: var(--green); color: #fff; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.verified-pill svg { width: 12px; height: 12px; }
.psf-pill {
  background: rgba(255,255,255,.95); color: var(--navy); padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  border: 1px solid rgba(8, 65, 108, .2);
}
.prop-card .price-flag {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(15, 37, 64, .85); color: #fff;
  padding: 6px 12px; border-radius: var(--r); font-size: 13px; font-weight: 600;
}
.save-toggle {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.95); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.save-toggle:hover { background: #fff; }
.save-toggle svg { width: 18px; height: 18px; }
.save-toggle.on { color: var(--green); }
.save-toggle.big { width: auto; height: auto; padding: 8px 14px; border-radius: var(--r);
                   border: 1px solid var(--line); background: #fff; gap: 6px; font-weight: 600; font-size: 13px;
                   position: static; }
.save-toggle.big.on { color: var(--green); border-color: var(--green); }
.prop-card .body { padding: 16px 20px; }
.prop-card .ttl { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0; display: block; }
.prop-card .ttl:hover { color: var(--navy); }
.prop-card .loc { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.prop-card .loc svg { width: 13px; height: 13px; }
.prop-card .specs {
  display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 14px;
  font-size: 12px; color: var(--ink-2);
}
.prop-card .specs .spec b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.prop-card .specs .spec span { color: var(--muted); }
.prop-card .roi { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.prop-card .roi .left { font-size: 12px; color: var(--muted); }
.prop-card .roi .left b { color: var(--green); font-weight: 700; font-size: 14px; }
.prop-card .roi .btn-link { padding: 4px 0; font-size: 13px; }

/* assets row */
.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============== Admin nav editor ============== */
.nav-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 2fr 110px 160px 170px;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.nav-row:last-of-type { border-bottom: 0; }
.nav-row-header {
  border-bottom: 2px solid var(--line);
  padding: 6px 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.nav-row-header .nav-cell label { color: var(--muted); margin: 0; }
.nav-row .nav-cell { display: flex; flex-direction: column; gap: 4px; }
.nav-row .nav-cell label {
  font-size: 11px; font-weight: 600; color: var(--muted-2);
  margin: 0;
}
.nav-row .nav-cell input[type="text"],
.nav-row .nav-cell input[type="number"] {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.nav-row .nav-cell input[type="text"]:focus,
.nav-row .nav-cell input[type="number"]:focus {
  border-color: var(--green);
  outline: none;
}
.nav-row .nav-flag {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.nav-row .nav-flag input[type="checkbox"] {
  width: 14px; height: 14px; cursor: pointer;
}
.nav-row .nav-cell-flags { gap: 4px; flex-direction: column; align-items: flex-start; }
.nav-row .nav-cell-actions {
  flex-direction: row; gap: 6px; align-items: center;
}
.nav-row-new {
  background: var(--green-50);
  margin: -16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed var(--green);
}
@media (max-width: 980px) {
  .nav-row, .nav-row-header { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-row-header { display: none; }
  .nav-row .nav-cell-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ============== Admin verification queue source badges ============== */
.badge-owner-listing {
  display: inline-block; vertical-align: 1px;
  padding: 2px 7px; border-radius: 4px;
  background: #FFF7E1; color: #8B5A00;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; margin-left: 6px;
  border: 1px solid #F2D58A;
}
.badge-source-rera, .badge-source-agent {
  display: inline-block; vertical-align: 1px;
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; margin-left: 6px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}

/* ============== "List your property" header CTA ============== */
.btn-list-property {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--green);
  color: #fff !important;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--green);
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-list-property::before {
  content: "+";
  font-size: 16px; font-weight: 700; line-height: 0;
}
.btn-list-property:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(31, 148, 70, 0.35);
}
@media (max-width: 880px) {
  .btn-list-property { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 600px) {
  .btn-list-property::before { content: ""; }  /* drop the + on mobile */
}

/* ============== /list-your-property landing page ============== */
.lyp-hero {
  background: linear-gradient(135deg, #06314F, #0A4F84);
  color: #fff;
  padding: 56px 32px 48px;
  text-align: center;
}
.lyp-hero h1 { color: #fff; font-size: 40px; max-width: 800px; margin: 0 auto 14px; line-height: 1.1; }
.lyp-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.55; }
.lyp-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(31,148,70,0.2); color: #7FE8A6;
  border: 1px solid rgba(31,148,70,0.4);
  padding: 6px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px;
}

.lyp-funnel {
  max-width: 1080px; margin: -28px auto 0;
  padding: 0 32px 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  position: relative; z-index: 2;
}
@media (max-width: 880px) { .lyp-funnel { grid-template-columns: 1fr; } }
.lyp-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px;
  box-shadow: 0 8px 24px -8px rgba(8, 65, 108, 0.12);
  display: flex; flex-direction: column;
  transition: all .15s ease;
}
.lyp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -10px rgba(8, 65, 108, 0.2); border-color: var(--green); }
.lyp-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.lyp-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.lyp-card .pitch { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; flex: 1; }
.lyp-card ul {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink-2);
}
.lyp-card ul li { display: flex; align-items: flex-start; gap: 8px; }
.lyp-card ul li::before {
  content: "✓"; color: var(--green); font-weight: 700;
}
.lyp-card .price-line { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.lyp-card .price-line b { color: var(--green-700); }

.lyp-trust {
  max-width: 1080px; margin: 0 auto; padding: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 720px) { .lyp-trust { grid-template-columns: repeat(2, 1fr); } }
.lyp-trust-item { text-align: center; padding: 14px; }
.lyp-trust-item b { display: block; font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.lyp-trust-item span { font-size: 12px; color: var(--muted); }

/* ============== Owner post form ============== */
.owner-form-shell {
  max-width: 720px; margin: 0 auto; padding: 32px;
}
.owner-form-shell h1 { margin: 0 0 6px; }
.owner-form-shell .lede { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.owner-form-shell .step {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 16px;
}
.owner-form-shell .step h3 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.owner-form-shell label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.owner-form-shell input[type="text"],
.owner-form-shell input[type="number"],
.owner-form-shell input[type="email"],
.owner-form-shell input[type="tel"],
.owner-form-shell select,
.owner-form-shell textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.owner-form-shell .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.owner-form-shell .row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .owner-form-shell .row, .owner-form-shell .row-3 { grid-template-columns: 1fr; } }
.owner-form-shell .field { margin-bottom: 14px; }
.owner-form-shell .helper { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.owner-form-shell .submit-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.owner-form-shell .submit-row .btn { padding: 12px 28px; font-size: 14px; }

/* Thank-you page */
.lyp-thanks { max-width: 640px; margin: 56px auto; padding: 40px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.lyp-thanks .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.lyp-thanks h1 { margin: 0 0 12px; font-size: 28px; }
.lyp-thanks .ref { display: inline-block; padding: 8px 14px; background: var(--bg); border-radius: 8px; font-family: ui-monospace, monospace; font-size: 13px; color: var(--ink); margin: 8px 0 24px; }
.lyp-thanks ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.lyp-thanks ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.lyp-thanks ul li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 11px; }
.lyp-thanks ul li:nth-child(1)::before { content: "1"; }
.lyp-thanks ul li:nth-child(2)::before { content: "2"; }
.lyp-thanks ul li:nth-child(3)::before { content: "3"; }

/* ============== Footer ============== */
footer.app-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 56px 32px 28px;
  margin-top: 80px;
}
footer.app-footer .grid {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
footer.app-footer h4 {
  color: #fff; font-size: 12px; font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
footer.app-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
footer.app-footer ul a {
  font-size: 13.5px; color: rgba(255,255,255,.65);
  text-decoration: none; transition: color .15s;
}
footer.app-footer ul a:hover { color: #fff; }
footer.app-footer .brand-foot { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
footer.app-footer .brand-foot .name { color: #fff; font-weight: 700; font-size: 17px; }
footer.app-footer .brand-foot .name .sel { color: var(--green); }
footer.app-footer p {
  font-size: 13px; line-height: 1.55;
  color: rgba(255,255,255,.6); margin: 0;
  max-width: 300px;
}
footer.app-footer .legal {
  max-width: 1240px; margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.48);
  flex-wrap: wrap; gap: 12px;
}

/* CTA strip */
.cta-strip {
  background: var(--green-50);
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--line);
  padding: 36px 32px;
}
.cta-grid { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-grid h3 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.cta-grid p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* search page */
.search-page { display: grid; grid-template-columns: 300px 1fr; gap: 0; max-width: 1440px; margin: 0 auto; }
.search-filters {
  border-right: 1px solid var(--line); padding: 24px 22px;
  background: #fff; position: sticky; top: 70px;
  align-self: start; max-height: calc(100vh - 80px); overflow-y: auto;
}
.search-filters h3 {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 18px 0 8px;
  padding-bottom: 6px;
}
.search-filters h3:first-child { margin-top: 0; }
.search-filters > form:first-of-type { margin-bottom: 8px; }
.search-filters > form:first-of-type input[type="search"] {
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background .15s, border-color .15s;
}
.search-filters > form:first-of-type input[type="search"]:focus {
  background: #fff; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50); outline: none;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill, .filter-link {
  padding: 6px 12px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-pill); font-size: 12px; color: var(--ink-2); font-weight: 500;
  display: inline-block; text-decoration: none;
  transition: all .12s;
}
.filter-pill.on, .filter-link.on {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 1px 4px rgba(8, 65, 108, .15);
}
.filter-pill:hover, .filter-link:hover { background: var(--bg); border-color: var(--muted-2); }
.filter-pill.on:hover, .filter-link.on:hover { background: var(--navy-700); border-color: var(--navy-700); }

/* ====== Routing-rule form (admin) — clean 2-row grid ====== */
.routing-rule-form .rule-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.7fr 1.2fr;
  column-gap: 12px;
  row-gap: 12px;
  align-items: end;
}
.routing-rule-form .rule-fld { display: flex; flex-direction: column; min-width: 0; }
.routing-rule-form .rule-fld label {
  font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; margin-bottom: 4px;
}
.routing-rule-form .rule-fld input,
.routing-rule-form .rule-fld select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.routing-rule-form .rule-fld--owner { grid-column: span 2; }
.routing-rule-form .rule-fld--pri { grid-column: span 1; }
.routing-rule-form .rule-fld--score { grid-column: span 1; }
.routing-rule-form .rule-fld--submit {
  grid-column: span 1;
  justify-content: end;
}
.routing-rule-form .rule-fld--submit button { width: 100%; }
@media (max-width: 1080px) {
  .routing-rule-form .rule-grid { grid-template-columns: 1fr 1fr; }
  .routing-rule-form .rule-fld--owner,
  .routing-rule-form .rule-fld--submit { grid-column: span 2; }
}

/* ====== Compact sidebar variant ====== */
.search-filters.search-filters--compact {
  padding: 18px 18px;
  width: 280px;
}
.search-filters--compact .filter-search input[type="search"] {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.search-filters--compact .filter-search input[type="search"]:focus {
  background: #fff; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50); outline: none;
}
.search-filters--compact .filter-block {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.search-filters--compact .filter-block:first-of-type { border-top: 0; padding-top: 14px; }
.search-filters--compact .filter-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 8px;
}
.search-filters--compact .filter-pills--compact { gap: 4px; }
.search-filters--compact .filter-pills--compact .filter-pill {
  padding: 4px 9px;
  font-size: 11.5px;
  line-height: 1.4;
  border-radius: 999px;
}
.search-filters--compact .filter-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
  transition: border-color .12s;
}
.search-filters--compact .filter-input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8, 65, 108, .08);
}
.search-filters--compact .filter-more-toggle {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(8, 65, 108, .3);
}
.search-filters--compact .filter-more-toggle:hover { text-decoration-color: var(--navy); }

/* Default state — collapsed list shows first 6 amenity pills only */
.search-filters--compact [data-amenity-collapse]:not(.expanded) .filter-pill:nth-child(n+7) {
  display: none;
}
.search-filters--compact [data-amenity-collapse].expanded ~ .filter-more-toggle::after { content: " (less)"; }

/* ====== Dual-range price slider ====== */
.price-slider-form { padding-top: 4px; }
.price-slider {
  position: relative;
  height: 28px;
  margin: 6px 4px 4px;
}
.price-slider-track {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 12px;
}
.price-slider-fill {
  position: absolute;
  height: 100%;
  background: var(--navy);
  border-radius: 2px;
  pointer-events: none;
}
.price-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 24px;
  background: transparent;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: 0 1px 4px rgba(8, 65, 108, .25);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.price-slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: 0 1px 4px rgba(8, 65, 108, .25);
  cursor: pointer;
  pointer-events: auto;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track {
  background: transparent; border: none;
}
.price-slider input[type="range"]::-moz-range-track {
  background: transparent; border: none;
}
.price-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-2);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.city-filter {
  font-size: 13px; color: var(--ink-2); padding: 7px 10px; border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none;
  transition: background .12s;
}
.city-filter:hover { background: var(--bg); }
.city-filter.on {
  background: var(--navy-50); color: var(--navy); font-weight: 600;
}
.city-filter.clear { color: var(--danger); font-weight: 600; }
.city-filter .count {
  color: var(--muted-2); font-size: 11px;
  background: var(--bg); padding: 2px 7px; border-radius: 999px; font-weight: 500;
}
.city-filter.on .count { background: rgba(8, 65, 108, .12); color: var(--navy); }

.search-results { padding: 24px 32px; }
.search-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.search-toolbar .crumbs { font-size: 13px; color: var(--muted); }
.search-toolbar h2 { font-size: 22px; font-weight: 700; margin: 4px 0; letter-spacing: -0.015em; }

.results-list {
  display: grid;
  /* auto-fit lets cards size themselves; minmax sets a sensible width band so they
     never stretch past 460px on a wide monitor (which made photos look huge). */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
@media (min-width: 1400px) {
  .results-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .results-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.search-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  color: #fff; padding: 20px 24px; border-radius: var(--r-lg); margin-bottom: 16px;
  text-decoration: none;
}
.search-banner .banner-eyebrow {
  background: var(--green); padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
}
.search-banner .hd { font-size: 18px; font-weight: 700; margin: 8px 0 4px; }
.search-banner .sub { font-size: 13px; opacity: .8; }

.pagination { display: flex; justify-content: center; padding: 24px; gap: 8px; flex-wrap: wrap; }
.pag-dots { padding: 6px 8px; color: var(--muted); }

/* Property detail */
.prop-detail { max-width: 1240px; margin: 0 auto; padding: 24px 32px 0; }
.crumbs-bar { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs-bar a { color: var(--navy); }
.detail-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-header .left h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.detail-header .left .sub { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-header .badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.b-pill {
  font-size: 11px; padding: 4px 10px; border-radius: var(--r-pill); font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.b-pill.green { background: var(--green-50); color: var(--green-700); border: 1px solid #bce0c4; }
.b-pill.green svg { width: 12px; height: 12px; }
.b-pill.navy { background: var(--navy-50); color: var(--navy); border: 1px solid #bcd1e1; }
.b-pill.warn { background: var(--warn-50); color: var(--warn); border: 1px solid #f0d5a0; }
.detail-header .right { text-align: right; }
.detail-header .right .price { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.detail-header .right .psf { font-size: 13px; color: var(--muted); margin-top: 4px; }

.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px; gap: 4px;
  border-radius: var(--r-lg); overflow: hidden;
}
.gallery > div { position: relative; }
.gallery .g1 { grid-row: span 2; }
.gallery .g5::after {
  content: "+ more"; position: absolute; inset: 0;
  background: rgba(15, 37, 64, .55); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}

.detail-body { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 32px 0; }
.detail-main h2 { font-size: 20px; font-weight: 700; margin: 32px 0 14px; letter-spacing: -0.015em; }
.detail-main h2:first-of-type { margin-top: 0; }

.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
}
.kpi-strip .item { padding: 18px 20px; border-right: 1px solid var(--line); }
.kpi-strip .item:last-child { border-right: 0; }
.kpi-strip .item .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.kpi-strip .item .v { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.kpi-strip .item .v.green { color: var(--green); }

.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.specs-grid .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.specs-grid .row .l { color: var(--muted); }
.specs-grid .row .v { font-weight: 600; color: var(--ink); }

.verif-block {
  background: var(--green-50); border: 1px solid #bce0c4;
  padding: 24px; border-radius: var(--r-lg);
}
.verif-block .title { font-weight: 700; font-size: 17px; color: var(--green-700); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.verif-block .title svg { width: 18px; height: 18px; }
.verif-block .desc { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.verif-rows .vrow { display: grid; grid-template-columns: 32px 1fr auto; padding: 10px 0; border-bottom: 1px solid #d8eadd; align-items: center; gap: 12px; }
.verif-rows .vrow:last-child { border-bottom: 0; }
.verif-rows .vrow .ic {
  width: 24px; height: 24px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.verif-rows .vrow .ic svg { width: 14px; height: 14px; }
.verif-rows .vrow .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.verif-rows .vrow .label .sub { font-weight: 400; color: var(--muted); display: block; font-size: 12px; }
.verif-rows .vrow .meta { font-size: 11px; color: var(--muted); }

.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.roi-grid .card .lab { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.roi-grid .card .big-v { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.roi-grid .card .sub { font-size: 12px; color: var(--muted); }

.services-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.svc { background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: var(--r); text-align: center; }
.svc .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--navy-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.svc .ic svg { width: 20px; height: 20px; }
.svc .ttl { font-size: 13px; font-weight: 700; color: var(--ink); }
.svc .price { font-size: 11px; color: var(--green); margin-top: 4px; font-weight: 600; }

/* enquiry sidebar */
.enquiry-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-md);
}
.enquiry-card h3 { font-size: 17px; margin: 0 0 12px; font-weight: 700; }
.enquiry-card .agent {
  display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.enquiry-card .agent .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.enquiry-card .agent .nm { font-weight: 600; font-size: 14px; }
.enquiry-card .agent .rl { font-size: 12px; color: var(--muted); }
.field { margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50);
}
.field input[type="checkbox"] { width: auto; margin-right: 6px; vertical-align: middle; accent-color: var(--green); }
.field .hint { color: var(--muted-2); font-size: 11px; }

/* ======= Custom dropdown styling (closed state) ======= */
select, .ps-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: inherit;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235A6B85' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}
select:hover { border-color: var(--muted-2); }
select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50);
}
select::-ms-expand { display: none; }

/* ======= Custom OPEN dropdown (replaces native popup) ======= */
.ps-select-wrapper { position: relative; display: block; width: 100%; }
.ps-select-wrapper.inline { display: inline-block; width: auto; }
.ps-select-wrapper select.ps-select-native {
  /* Hide native — keep accessible & form-submittable */
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
}
.ps-select-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.ps-select-trigger:hover { border-color: var(--muted-2); }
.ps-select-wrapper.open .ps-select-trigger,
.ps-select-trigger:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50);
}
.ps-select-trigger .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-select-trigger .placeholder { color: var(--muted-2); font-weight: 500; }
.ps-select-trigger .chev {
  width: 12px; height: 8px; flex-shrink: 0; margin-left: 8px;
  color: var(--muted-2); transition: transform .15s;
}
.ps-select-wrapper.open .ps-select-trigger .chev { transform: rotate(180deg); }

.ps-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 37, 64, .12);
  max-height: 320px; overflow-y: auto;
  padding: 6px;
  display: none;
  animation: ps-fade-down .12s ease-out;
}
.ps-select-wrapper.open .ps-select-menu { display: block; }
@keyframes ps-fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.ps-select-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  user-select: none;
}
.ps-select-option:hover { background: var(--bg); color: var(--ink); }
.ps-select-option.on {
  background: var(--navy-50); color: var(--navy); font-weight: 600;
}
.ps-select-option.on::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308416C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.ps-select-option:not(.on)::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
}
.ps-select-option[data-disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.ps-select-option .opt-sub { font-size: 11px; color: var(--muted-2); margin-left: auto; }

.ps-select-search {
  position: sticky; top: -6px; margin: -6px -6px 6px;
  padding: 8px 12px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.ps-select-search input {
  width: 100%; border: 0; outline: none; font-family: inherit; font-size: 13px;
  color: var(--ink); background: transparent;
}

/* Dropdown variants for table-toolbar selects */
.toolbar-select.ps-select-trigger, .sort-select.ps-select-trigger {
  height: 34px; padding: 6px 12px; font-size: 13px;
}

/* ======= Rich text editor ======= */
.rich-editor {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.rich-editor:focus-within {
  border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50);
}
.rich-toolbar {
  display: flex; gap: 2px; align-items: center;
  padding: 6px 8px; border-bottom: 1px solid var(--line);
  background: var(--bg);
  border-top-left-radius: 8px; border-top-right-radius: 8px;
  flex-wrap: wrap;
}
.rich-toolbar button {
  border: 0; background: transparent;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer; color: var(--ink-2);
  font-size: 13px; font-weight: 600;
}
.rich-toolbar button:hover { background: #fff; color: var(--navy); }
.rich-toolbar button.active { background: var(--navy); color: #fff; }
.rich-toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rich-content {
  min-height: 140px; max-height: 480px; overflow-y: auto;
  padding: 12px 14px; outline: none; font-size: 14px; line-height: 1.6;
  color: var(--ink); cursor: text;
}
.rich-content:empty::before {
  content: attr(data-placeholder); color: var(--muted-2);
  pointer-events: none;
}
.rich-content p { margin: 0 0 8px; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content h3 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.rich-content ul, .rich-content ol { margin: 0 0 8px 20px; padding: 0; }
.rich-content a { color: var(--navy); text-decoration: underline; }
.rich-content strong { font-weight: 700; color: var(--ink); }
.rich-counter {
  font-size: 11px; color: var(--muted-2);
  padding: 4px 12px 8px; text-align: right;
}

/* Inline (toolbar) selects */
.toolbar-select, .sort-select {
  padding: 8px 36px 8px 12px;
  font-size: 13px;
  background-color: #fff;
}

/* Dropdown menu (custom JS-driven) */
.dd { position: relative; display: inline-block; }
.dd-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer;
}
.dd-trigger:hover { border-color: var(--muted-2); }
.dd-trigger .chev { width: 10px; height: 10px; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-md); min-width: 200px; padding: 6px;
  display: none;
}
.dd.open .dd-menu { display: block; }
.dd-menu a, .dd-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 6px; font-size: 13px;
  background: transparent; border: 0; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
}
.dd-menu a:hover, .dd-menu button:hover { background: var(--bg); color: var(--navy); }
.dd-menu a.on { background: var(--navy); color: #fff; font-weight: 600; }
.dd-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ======= Filter bar ======= */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 12px 0; margin-bottom: 16px;
}
.filter-bar input[type="search"], .filter-bar input[type="text"] {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; min-width: 220px;
}
.filter-bar .spacer { flex: 1; }

/* ======= Compact filter toolbar — single-row, dropdowns + chips ======= */
.filter-toolbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.filter-toolbar .filter-group {
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-toolbar select.compact {
  height: 32px; padding: 4px 30px 4px 12px;
  font-size: 12px; font-weight: 500;
  background-position: right 10px center;
  background-color: transparent;
  border: 1px solid var(--line);
  min-width: 0; max-width: 200px;
}
.filter-toolbar select.compact:hover { border-color: var(--muted-2); }

/* When enhanceSelect() wraps a .compact select with .ps-select-wrapper,
   force the wrapper to behave inline-compact (otherwise it inherits width:100%) */
.filter-toolbar .ps-select-wrapper {
  display: inline-block !important;
  width: auto !important;
  vertical-align: middle;
  max-width: 220px;
}
.filter-toolbar .ps-select-trigger {
  min-height: 32px !important; height: 32px;
  padding: 4px 30px 4px 12px;
  font-size: 12px; font-weight: 500;
  border-radius: var(--r-pill);
}
.filter-toolbar .ps-select-trigger .label {
  font-size: 12px;
}
.filter-toolbar .compact-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
}
.filter-toolbar .compact-toggle:hover { background: var(--bg); }
.filter-toolbar .compact-toggle.on {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.filter-toolbar .compact-toggle .x {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
}
.filter-toolbar .vsep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.filter-toolbar .reset-link {
  font-size: 12px; color: var(--muted); margin-left: 4px;
  text-decoration: none;
}
.filter-toolbar .reset-link:hover { color: var(--danger); text-decoration: underline; }
.filter-toolbar .filter-summary {
  font-size: 11px; color: var(--muted-2); font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; margin-right: 4px;
}

/* Date popover */
.date-popover-wrap { position: relative; display: inline-block; }
.date-popover-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  cursor: pointer;
}
.date-popover-trigger:hover { border-color: var(--muted-2); }
.date-popover-trigger.has-value {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.date-popover-trigger svg { width: 12px; height: 12px; opacity: .6; }
.date-popover {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 37, 64, .12);
  padding: 14px; min-width: 320px;
  display: none;
  animation: ps-fade-down .12s ease-out;
}
.date-popover-wrap.open .date-popover { display: block; }
.date-popover-head {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600; margin-bottom: 8px;
}
.date-popover-presets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-bottom: 12px;
}
.date-popover-presets a {
  text-align: center; padding: 7px 8px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; font-size: 12px;
  color: var(--ink-2); font-weight: 500;
}
.date-popover-presets a:hover { background: var(--bg); }
.date-popover-presets a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.date-popover-divider {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600; margin: 8px 0;
}
.date-popover-form {
  display: flex; gap: 8px; align-items: center;
}
.date-popover-form input[type="date"] {
  flex: 1; min-width: 0; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; font-family: inherit;
}
.date-popover-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2);
}
.date-popover-foot .clear {
  font-size: 12px; color: var(--muted); text-decoration: none;
}
.date-popover-foot .clear:hover { color: var(--danger); }

/* sortable column header */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th.sortable .sort-arrow { font-size: 9px; opacity: .5; margin-left: 4px; }
th.sortable.active { color: var(--navy); }
th.sortable.active .sort-arrow { opacity: 1; }

/* ======= Image upload ======= */
.image-uploader {
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  padding: 24px; text-align: center; background: var(--bg);
  cursor: pointer; transition: .15s;
}
.image-uploader:hover, .image-uploader.dragover { border-color: var(--green); background: var(--green-50); }
.image-uploader .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-50); color: var(--green);
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
}
.image-uploader h4 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.image-uploader p { margin: 0; font-size: 12px; color: var(--muted); }
.image-uploader input[type="file"] { display: none; }

/* image cropper */
.cropper-modal {
  position: fixed; inset: 0; background: rgba(15, 37, 64, .8);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.cropper-modal.open { display: flex; }
.cropper-card {
  background: #fff; border-radius: var(--r-lg); padding: 20px;
  max-width: 720px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; gap: 12px;
}
.cropper-card h3 { margin: 0; font-size: 16px; }
.cropper-stage {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; max-height: 480px;
}
.cropper-stage canvas { display: block; max-width: 100%; height: auto; }
.cropper-foot { display: flex; gap: 8px; justify-content: flex-end; }
.cropper-warning {
  background: var(--warn-50); color: var(--warn); border: 1px solid #f0d5a0;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
}

/* uploaded thumbnails */
.image-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.image-thumb {
  position: relative; width: 100px; height: 75px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg);
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-thumb .x {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15, 37, 64, .85); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 12px; line-height: 1;
}
.image-thumb .x:hover { background: var(--danger); }
.image-thumb.cover::before {
  content: "Cover"; position: absolute; bottom: 4px; left: 4px;
  background: var(--green); color: #fff; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}

/* Settings tabs */
.settings-tabs {
  display: flex; gap: 4px; padding: 0; margin: 0 0 24px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.settings-tabs .tab {
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--muted-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.settings-tabs .tab:hover { color: var(--ink); }
.settings-tabs .tab.on { color: var(--navy); border-bottom-color: var(--green); }

/* Toggle switch */
.toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track {
  width: 36px; height: 20px; background: var(--line);
  border-radius: 999px; position: relative; transition: .15s;
}
.toggle .track::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .15s;
}
.toggle input:checked ~ .track { background: var(--green); }
.toggle input:checked ~ .track::after { left: 18px; }
.toggle .lab { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* Lead distribution UI */
.assignment-list { display: flex; flex-direction: column; gap: 8px; }
.assignment-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.assignment-row .order { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.assignment-row .meta { font-size: 11px; color: var(--muted); }
.assignment-row.scheduled { background: var(--warn-50); border-color: #f0d5a0; }
.assignment-row.revoked { opacity: .55; }

.lead-related {
  background: var(--warn-50); border: 1px solid #f0d5a0; border-radius: 8px;
  padding: 12px 16px; font-size: 13px; margin-bottom: 16px;
}
.lead-related b { color: var(--warn); }

/* Developer storefront */
.storefront-hero {
  position: relative; height: 320px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--green));
  margin-bottom: -60px;
}
.storefront-hero .cover-img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.storefront-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; display: grid; grid-template-columns: 100px 1fr auto; gap: 28px; align-items: center;
}
.storefront-logo {
  width: 100px; height: 100px; border-radius: 16px; background: var(--bg);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--navy); overflow: hidden;
}
.storefront-logo img { width: 100%; height: 100%; object-fit: cover; }
.storefront-card h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; }
.storefront-card .tag { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.storefront-card .badges { display: flex; gap: 8px; }

.activity-timeline { display: flex; flex-direction: column; gap: 0; }
.activity-row {
  display: grid; grid-template-columns: 100px 28px 1fr; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line-2); align-items: start;
}
.activity-row:last-child { border-bottom: 0; }
.activity-row .when { font-size: 11px; color: var(--muted-2); }
.activity-row .ic-pill {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy-50); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.activity-row.kind-verif .ic-pill { background: var(--green-50); color: var(--green); }
.activity-row.kind-lead .ic-pill { background: var(--warn-50); color: var(--warn); }
.activity-row.kind-edit .ic-pill { background: var(--navy-50); color: var(--navy); }
.activity-row .what { font-size: 13px; font-weight: 600; color: var(--ink); }
.activity-row .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.psf-callout {
  background: var(--navy); color: #fff; padding: 24px; border-radius: var(--r-lg); margin-top: 16px;
}
.psf-callout .label { font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.psf-callout h4 { font-size: 18px; margin: 4px 0 6px; color: #fff; font-weight: 700; }
.psf-callout p { font-size: 13px; color: rgba(255,255,255,.75); margin: 0 0 14px; }

.trust-card {
  margin-top: 16px; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; gap: 14px; align-items: center;
}
.trust-card .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-50); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-card .t { font-size: 13px; font-weight: 700; color: var(--ink); }
.trust-card .sub { font-size: 12px; color: var(--muted); }

/* ======= Dashboard ======= */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.dash-side {
  background: #fff; border-right: 1px solid var(--line); padding: 20px 16px;
  display: flex; flex-direction: column; position: sticky; top: 70px;
  align-self: start; height: calc(100vh - 70px);
  overflow-y: auto; /* long admin menus scroll inside the rail instead of clipping */
}
.dash-side .role-pill {
  margin: 0 8px 16px; display: inline-flex; padding: 4px 10px;
  background: var(--green-50); color: var(--green-700);
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700; align-self: flex-start;
}
.dash-side nav { display: flex; flex-direction: column; gap: 2px; }
.dash-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.dash-side nav a svg { width: 16px; height: 16px; }
.dash-side nav a:hover { background: var(--bg); }
.dash-side nav a.on { background: var(--navy); color: #fff; }
.dash-side nav a.on svg { color: #fff; }
.dash-side .foot { margin-top: auto; padding: 12px 8px; border-top: 1px solid var(--line); }
.dash-side .user { display: flex; gap: 10px; align-items: center; }
.dash-side .user .av { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.dash-side .user .nm { font-size: 13px; font-weight: 600; }
.dash-side .user .em { font-size: 11px; color: var(--muted); }

.dash-main { padding: 24px 32px; background: var(--bg); }
.dash-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-top h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.dash-top .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); padding: 18px 20px; border-radius: var(--r-lg); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi .delta { font-size: 12px; color: var(--green); font-weight: 600; }
.kpi .delta-down { color: var(--danger); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; font-weight: 700; margin: 0; }
.card-h .h-actions { display: flex; gap: 6px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--bg); }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
table.tbl td .row-name { font-weight: 600; color: var(--ink); }
table.tbl td .row-sub { font-size: 12px; color: var(--muted); }

.status-pill { font-size: 11px; padding: 3px 8px; border-radius: var(--r-pill); font-weight: 700; display: inline-block; }
.status-pill.green { background: var(--green-50); color: var(--green-700); }
.status-pill.navy { background: var(--navy-50); color: var(--navy); }
.status-pill.warn { background: var(--warn-50); color: var(--warn); }
.status-pill.gray { background: var(--line-2); color: var(--muted); }
.status-pill.danger { background: var(--danger-50); color: var(--danger); }

.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.col-23 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.col-32 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-bottom: 16px; }

.lead-list .lrow { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.lead-list .lrow:last-child { border-bottom: 0; }
.lead-list .lrow .av { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.lead-list .lrow .ic-warn { width: 28px; height: 28px; border-radius: 8px; background: var(--warn-50); color: var(--warn); display: inline-flex; align-items: center; justify-content: center; }
.lead-list .lrow .ic-warn svg { width: 14px; height: 14px; }
.lead-list .lrow .nm { font-size: 13px; font-weight: 600; color: var(--ink); }
.lead-list .lrow .sub { font-size: 11px; color: var(--muted); }
.lead-list .lrow .num { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.saved-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.saved-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: .15s; text-decoration: none; }
.saved-card:hover { border-color: var(--muted-2); }
.saved-card .img { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; }
.saved-card .ttl { font-size: 13px; font-weight: 600; color: var(--ink); }
.saved-card .px { font-size: 13px; color: var(--green); font-weight: 700; margin-top: 4px; }

.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.svc-grid .svc-cell { padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; background: #fff; transition: .15s; cursor: pointer; text-decoration: none; }
.svc-grid .svc-cell:hover { border-color: var(--green); }
.svc-grid .svc-cell .ic-mini { width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 10px; background: var(--green-50); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.svc-grid .svc-cell .ic-mini svg { width: 18px; height: 18px; }
.svc-grid .svc-cell .nm { font-size: 12px; font-weight: 700; color: var(--ink); }
.svc-grid .svc-cell .st { font-size: 11px; color: var(--muted); margin-top: 2px; }
.svc-grid .svc-cell.done .ic-mini { background: var(--green); color: #fff; }
.svc-grid .svc-cell.done .st { color: var(--green-700); font-weight: 600; }

.journey { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
.journey .tile { flex: 1; min-width: 140px; padding: 16px 18px; border-right: 1px solid var(--line); position: relative; }
.journey .tile:last-child { border-right: 0; }
.journey .tile .step-no { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.journey .tile .nm { font-size: 14px; font-weight: 700; color: var(--ink); margin: 4px 0 4px; }
.journey .tile .desc { font-size: 12px; color: var(--muted); }
.journey .tile.now { background: var(--green-50); border-top: 3px solid var(--green); margin-top: -1px; }
.journey .tile.now .nm { color: var(--green-700); }
.journey .tile.done .nm { color: var(--ink-2); }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 10px; }
.funnel-row .lab { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.funnel-row .bar { height: 28px; background: var(--navy); border-radius: 4px; }
.funnel-row .val { font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* form-grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
h3.form-section {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 24px 0 10px; padding-top: 14px; border-top: 1px solid var(--line-2);
}
h3.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

/* CMS blocks */
.cms-block { padding: 48px 32px; }
.cms-block.section-on-white { background: #fff; }
.cms-block.block-navy { background: var(--navy); color: #fff; }
.cms-block.block-navy h2 { color: #fff; }
.cms-block.block-navy .cms-body { color: rgba(255,255,255,.85); }
.cms-block.block-green { background: var(--green); color: #fff; }
.cms-block.block-green h2 { color: #fff; }
.cms-block.block-green .cms-body { color: rgba(255,255,255,.9); }
.cms-block.block-navy-tint { background: var(--navy-50); }
.cms-block .cms-block-inner { max-width: 1240px; margin: 0 auto; }
.cms-block h1 { font-size: 44px; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.1; }
.cms-block h2 { font-size: 28px; letter-spacing: -0.015em; margin: 0 0 14px; }
.cms-block .lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.cms-block.hero-block { padding: 64px 32px; background: linear-gradient(180deg, #fff, var(--bg)); }
.cms-block .sub { color: var(--muted); margin-top: -8px; margin-bottom: 16px; }
.cms-block .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  max-width: 960px; margin: 16px auto 0;
}
.stat-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 20px; text-align: center;
}
.stat-cell .v { font-size: 32px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
.stat-cell .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 0;
}
.faq-item summary {
  padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 14px;
  list-style: none; outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--muted-2); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 18px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* CMS pages */
.cms-page { max-width: 760px; margin: 0 auto; padding: 48px 32px; }
.cms-page h1 { font-size: 32px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
.cms-page .lede { font-size: 16px; color: var(--muted); }
.cms-page .cms-body { line-height: 1.6; color: var(--ink-2); }
.cms-page .cms-body p { margin: 12px 0; }
.cms-page .back-link { font-size: 13px; color: var(--navy); font-weight: 600; }
.cms-page .period { font-size: 12px; color: var(--muted); margin: 4px 0 16px; text-transform: uppercase; letter-spacing: .05em; }
.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pulse-card { display: block; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.pulse-card:hover { border-color: var(--muted-2); }
.pulse-card .region-tag { font-size: 11px; color: var(--green-700); background: var(--green-50); padding: 3px 8px; border-radius: var(--r-pill); font-weight: 700; }
.pulse-card h3 { font-size: 17px; margin: 8px 0 4px; }
.pulse-card .period { font-size: 12px; color: var(--muted); }
.pulse-card p { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }

/* Auth pages */
.auth-shell {
  min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.auth-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-md);
}
.auth-card h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -0.015em; text-align: center; }
.auth-card .auth-foot { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }
.demo-creds { margin-top: 24px; padding: 12px; background: var(--bg); border-radius: 8px; font-size: 12px; }
.demo-creds summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.demo-creds ul { margin: 8px 0 0; padding: 0 0 0 16px; color: var(--ink-2); }

/* dev/broker package + plan cards */
.pkg-grid, .plan-grid, .psf-avail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pkg-card, .plan-card, .psf-avail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pkg-card h4, .plan-card h4, .psf-avail-card h4 { font-size: 14px; margin: 0 0 4px; }
.pkg-card .px, .plan-card .px { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.pkg-card .meta, .psf-avail-card .meta { font-size: 12px; color: var(--muted); }
.plan-card.current { border-color: var(--green); background: var(--green-50); }
.plan-card .cur-tag { background: var(--green); color: #fff; padding: 3px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.plan-card .hd { display: flex; justify-content: space-between; align-items: center; }
.plan-card ul { margin: 0; padding-left: 16px; font-size: 12px; color: var(--ink-2); }
.psf-avail-card .hd { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.psf-avail-card .cta-row { display: flex; gap: 6px; align-items: center; }

/* event list */
.event-list { display: flex; flex-direction: column; gap: 0; }
.event-row { display: grid; grid-template-columns: 130px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.event-row:last-child { border-bottom: 0; }
.event-row .dt { font-size: 11px; color: var(--muted-2); }
.event-row .sub { font-size: 12px; color: var(--muted); }

/* messages */
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.msg-card .hd { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg-card .body { font-size: 14px; color: var(--ink); }
.msg-card .dt { font-size: 11px; color: var(--muted-2); margin-top: 6px; }

/* admin specific */
.av-mini { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; color: #fff; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; margin-right: 6px; vertical-align: middle; }
.step-chip {
  display: inline-flex; width: 24px; height: 24px; border-radius: 50%;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  background: var(--line-2); color: var(--muted); margin-right: 4px;
}
.step-chip.passed { background: var(--green); color: #fff; }
.step-chip.failed { background: var(--danger); color: #fff; }
.step-chip.pending { background: var(--warn-50); color: var(--warn); }

/* empty states */
.empty { text-align: center; padding: 80px 24px; max-width: 480px; margin: 0 auto; }
.empty h2 { font-size: 24px; margin-bottom: 12px; }
.empty p { color: var(--muted); margin-bottom: 16px; }
.empty-inline { color: var(--muted); font-size: 13px; padding: 16px 0; }

/* toast */
#toast-host { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
  padding: 12px 18px; border-radius: var(--r); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md); background: var(--ink); color: #fff;
  min-width: 240px;
}
.toast.ok { background: var(--green); }
.toast.warn { background: var(--warn); }
.toast.danger { background: var(--danger); }

/* ======= SEO strips (related searches, locality, builder, price-band) ======= */
.seo-strip-card { margin-top: 16px; }
.seo-strip-block + .seo-strip-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.seo-strip-h {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700; margin-bottom: 8px;
}
.seo-strip-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-pill {
  display: inline-flex; align-items: center;
  background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 500;
  text-decoration: none; transition: all .12s;
}
.seo-pill:hover {
  border-color: var(--green); color: var(--green-700); background: var(--green-50);
  text-decoration: none;
}
.seo-longform h2, .seo-longform h3 { color: var(--ink); }
.seo-longform p {
  margin-bottom: 12px;
}

/* ======= Footer SEO cluster — aligns to the same 5-column grid as the top row ======= */
.app-footer .seo-grid {
  max-width: 1240px; margin: 36px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
/* Three SEO clusters laid out across cols 2-5: Browse / Localities (2 cols) / Developers */
.app-footer .seo-grid > div:nth-child(1) { grid-column: 2 / span 1; }
.app-footer .seo-grid > div:nth-child(2) { grid-column: 3 / span 2; }
.app-footer .seo-grid > div:nth-child(3) { grid-column: 5 / span 1; }
.app-footer .seo-grid h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.55); font-weight: 700; margin: 0 0 12px;
}
.app-footer .seo-cluster {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
/* Localities cluster spans 2 grid cols → flow into 2 text columns for balance */
.app-footer .seo-grid > div:nth-child(2) .seo-cluster {
  display: block;
  column-count: 2;
  column-gap: 30px;
}
.app-footer .seo-grid > div:nth-child(2) .seo-cluster li {
  break-inside: avoid; padding: 4px 0;
}
.app-footer .seo-cluster li { font-size: 12.5px; line-height: 1.5; }
.app-footer .seo-cluster a {
  color: rgba(255,255,255,.6); text-decoration: none;
  display: inline-block;
}
.app-footer .seo-cluster a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 880px) {
  footer.app-footer .grid,
  .app-footer .seo-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .app-footer .seo-grid > div { grid-column: auto !important; }
  .app-footer .seo-grid > div:nth-child(2) .seo-cluster { column-count: 1; }
}
@media (max-width: 560px) {
  footer.app-footer .grid,
  .app-footer .seo-grid { grid-template-columns: 1fr; }
}

/* ======= RTL / Arabic localization ======= */
html[dir="rtl"], body.lang-ar {
  font-family: "Noto Sans Arabic", "Segoe UI", -apple-system, sans-serif;
}
body.lang-ar { text-align: right; }
body.lang-ar .row-sub,
body.lang-ar .sub { text-align: right; }
/* Mirror the asymmetric components automatically via [dir="rtl"] */
html[dir="rtl"] .filter-toolbar,
html[dir="rtl"] .search-fields,
html[dir="rtl"] .rb-grid,
html[dir="rtl"] .rb-toolbar,
html[dir="rtl"] .home-strips,
html[dir="rtl"] .kpi-row { direction: rtl; }
html[dir="rtl"] .btn { font-family: inherit; }
/* Numbers + dates stay LTR even inside RTL container */
html[dir="rtl"] .num,
html[dir="rtl"] code,
html[dir="rtl"] [data-keep-ltr] {
  direction: ltr; unicode-bidi: embed; display: inline-block;
}
/* Lang toggle button in nav */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
  cursor: pointer; font-family: inherit;
}
.lang-toggle:hover { border-color: var(--navy); color: var(--navy); }
.lang-toggle.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ======= Admin alerts strip + buyer recommendation cards ======= */
.alerts-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.alert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: transform .12s;
}
.alert-item:hover { transform: translateY(-1px); }
.alert-item .alert-icon { font-size: 16px; flex-shrink: 0; }
.alert-item .alert-arrow { margin-left: auto; opacity: .6; }

.rec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 18px 24px;
}
.rec-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: all .15s;
}
.rec-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 37, 64, .08); }
.rec-card .rec-img {
  height: 120px; position: relative;
}
.rec-card .rec-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255, 255, 255, .9); color: var(--green-700);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.rec-card .rec-body { padding: 12px 14px; }
.rec-card .rec-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.rec-card .rec-loc { font-size: 11px; color: var(--muted); margin-top: 3px; }
.rec-card .rec-px { font-size: 13px; font-weight: 700; color: var(--green-700); margin-top: 8px; }
@media (max-width: 900px) { .rec-grid { grid-template-columns: 1fr 1fr; } }

/* ======= UI polish — empty states + focus + micro-interactions ======= */

/* Empty state — used in tables/lists with no rows */
.empty-block {
  text-align: center; padding: 48px 32px;
  background: var(--bg); border: 2px dashed var(--line); border-radius: 12px;
  color: var(--muted);
}
.empty-block .empty-icon {
  font-size: 44px; margin-bottom: 14px; opacity: .35; line-height: 1;
}
.empty-block h3 {
  margin: 0 0 8px; font-size: 17px; color: var(--ink); font-weight: 700;
}
.empty-block p {
  margin: 0 0 18px; font-size: 13px; color: var(--muted); max-width: 420px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}
.empty-block .empty-cta {
  display: inline-block; padding: 9px 18px; font-size: 13px; font-weight: 600;
  background: var(--green); color: #fff; border-radius: 8px; text-decoration: none;
  transition: background .12s;
}
.empty-block .empty-cta:hover { background: var(--green-700); }

/* Better focus rings on every form input — accessibility + polish */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  outline: none; border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(31, 148, 70, .15);
}

/* Better hover lift on every action button */
.btn:not(:disabled):active { transform: translateY(0); }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn-primary:hover, .btn-green:hover { box-shadow: 0 4px 12px rgba(31, 148, 70, .25); }

/* Smoother card hover */
.card { transition: box-shadow .15s, border-color .12s; }

/* Loading skeleton (for dashboard widgets that lazy-load) */
.skel {
  background: linear-gradient(90deg, var(--bg) 0%, #ebedf0 50%, var(--bg) 100%);
  background-size: 200% 100%; animation: skel-shimmer 1.4s linear infinite;
  border-radius: 4px;
}
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-line { height: 12px; margin: 6px 0; }
.skel-line.lg { height: 18px; }
.skel-card { padding: 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }

/* Anchor cards — hover lift */
a.card-link, a.recent-verif-card, .prop-card a.photo {
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card-link:hover { transform: translateY(-2px); }

/* Small interactive details */
button.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  cursor: pointer; transition: background .12s; color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
}
button.icon-btn:hover { background: var(--bg); color: var(--ink); }

/* Tooltip on hover — generic [data-tooltip] */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 6px 10px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 500; border-radius: 6px;
  white-space: nowrap; z-index: 100; pointer-events: none;
}

/* ======= Homepage SEO strips ======= */
/* Outer section wrapper — same widths/padding as .section */
.home-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px;
}
.home-section .section-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}
.home-section .section-h h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}
.home-section .section-h .sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.home-section .section-h .right a {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .home-section { padding: 32px 16px; }
  .home-section .section-h { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.home-strips {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.home-strip {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px;
}
.home-strip-h {
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.home-strip-h h3 {
  font-size: 15px; font-weight: 700; margin: 0; color: var(--ink);
}
.home-strip-h .strip-sub {
  font-size: 12px; color: var(--muted); margin: 2px 0 0;
}
.home-strip-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.recent-verif-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  /* parent .home-section already provides max-width and padding */
}
.recent-verif-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  transition: all .15s; display: block;
}
.recent-verif-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 37, 64, .08); }
.recent-verif-card .recent-verif-stamp {
  display: inline-block; font-size: 10px; font-weight: 700; color: var(--green-700);
  background: var(--green-50); border: 1px solid #bce0c4;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
}
.recent-verif-card .recent-verif-name {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-verif-card .recent-verif-meta {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}

@media (max-width: 720px) {
  .home-strips { grid-template-columns: 1fr; }
}

/* ======= Project detail enrichment (highlights, configs, amenities, FAQ, locality) ======= */
.highlights-row {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin: 18px 0;
}
.highlights-row .hl-label {
  flex: 0 0 auto; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  padding-top: 4px;
}
.highlights-row .hl-pills {
  display: flex; flex-wrap: wrap; gap: 6px; flex: 1;
}
.hl-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700);
  border: 1px solid #bce0c4; font-size: 12px; font-weight: 600;
}
.hl-pill .hl-ic { font-size: 13px; }

.amen-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.amen-cat h4 {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  color: var(--navy); text-transform: uppercase; letter-spacing: .05em;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.amen-list {
  list-style: none; padding: 0; margin: 0;
}
.amen-list li {
  font-size: 13px; padding: 4px 0; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.amen-list .amen-dot {
  color: var(--green); font-size: 8px; flex-shrink: 0;
}

.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; padding: 14px 4px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 32px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--muted-2); font-weight: 400; line-height: 1;
  transition: transform .15s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--navy); }
.faq-item .faq-ans {
  padding: 0 4px 14px; font-size: 13px; line-height: 1.65;
  color: var(--ink-2); white-space: pre-line;
}

.locality-card .loc-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.locality-card .loc-stat { display: flex; flex-direction: column; gap: 2px; }
.locality-card .loc-stat .l {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .07em; font-weight: 700;
}
.locality-card .loc-stat .v {
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.locality-card .loc-intro,
.locality-card .loc-conn {
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
}

/* ======= Region section toolbar (India / Dubai partition) ======= */
.region-section-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--navy-50), #fff);
  border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px;
}
.region-section-toolbar .rs-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700;
}
.region-section-toolbar .rs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all .12s; position: relative;
}
.region-section-toolbar .rs-btn:hover { border-color: var(--navy); transform: translateY(-1px); }
.region-section-toolbar .rs-btn.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(8, 65, 108, .25);
}
.region-section-toolbar .rs-flag { font-size: 18px; line-height: 1; }
.region-section-toolbar .rs-help {
  position: absolute; bottom: -22px; left: 0; right: 0;
  font-size: 10px; color: var(--muted-2); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: none; letter-spacing: 0;
}
.region-section-toolbar .rs-btn.active .rs-help { color: var(--green-700); font-weight: 600; }
.region-section-toolbar .rs-meta {
  flex: 1; min-width: 200px; text-align: right;
  font-size: 11px; color: var(--muted-2); font-style: italic;
}
@media (max-width: 720px) {
  .region-section-toolbar { padding-bottom: 22px; }
  .region-section-toolbar .rs-meta { width: 100%; text-align: left; }
}

/* ======= Drag-and-drop report builder ======= */
.rb-help {
  background: var(--green-50); border: 1px solid #bce0c4;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.rb-shell {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin-bottom: 16px;
}
.rb-toolbar {
  display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.rb-toolbar-grp { display: flex; flex-direction: column; gap: 4px; }
.rb-toolbar-grp label {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700;
}
.rb-toolbar-grp select, .rb-toolbar-grp input {
  font-family: inherit; font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
.rb-filter-chips {
  display: flex; gap: 6px; flex-wrap: wrap; min-height: 32px;
  align-items: center; padding: 4px 0;
}
.rb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy-50); color: var(--navy);
  border: 1px solid #c8d6e3;
  border-radius: 999px; padding: 3px 4px 3px 10px;
  font-size: 11px; font-weight: 500;
}
.rb-chip button {
  width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: rgba(8, 65, 108, .15); color: var(--navy);
  cursor: pointer; font-size: 12px; line-height: 1; padding: 0;
}
.rb-chip button:hover { background: var(--danger); color: #fff; }

.rb-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 16px;
}
.rb-palette {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; min-height: 320px;
}
.rb-palette-section + .rb-palette-section { margin-top: 16px; }
.rb-palette h4 {
  margin: 0 0 4px; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
}
.rb-help-sm { margin: 0 0 8px; font-size: 11px; color: var(--muted-2); }
.rb-card-list {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 36px;
}
.rb-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 7px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 500;
  cursor: grab; user-select: none;
  transition: all .12s;
  display: flex; align-items: center; gap: 6px; justify-content: space-between;
}
.rb-card::before {
  content: '⋮⋮'; color: var(--muted-2); font-size: 13px; letter-spacing: -2px;
  font-weight: 700; flex-shrink: 0;
}
.rb-card:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.rb-card:active { cursor: grabbing; }
.rb-card.dragging { opacity: 0.4; }
.rb-card.rb-dim { border-left: 3px solid var(--navy); }
.rb-card.rb-metric { border-left: 3px solid var(--green); }
.rb-card.placed {
  background: #fff; padding-right: 6px;
}
.rb-card.placed::before { content: '⋮'; }
.rb-card.placed span { flex: 1; }
.rb-x {
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--bg); color: var(--muted); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0;
  flex-shrink: 0;
}
.rb-x:hover { background: var(--danger); color: #fff; }
.rb-empty {
  padding: 16px; text-align: center; color: var(--muted-2);
  font-size: 11px; font-style: italic;
}

.rb-zones { display: flex; flex-direction: column; gap: 10px; }
.rb-zone {
  border: 2px dashed #d6dde6; border-radius: 10px;
  background: #fafbfc; padding: 12px 14px;
  transition: all .15s;
}
.rb-zone.over {
  border-color: var(--green); background: var(--green-50);
}
.rb-zone-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.rb-zone-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--ink);
}
.rb-zone-help { font-size: 10.5px; color: var(--muted-2); }
.rb-zone-body { display: flex; gap: 6px; flex-wrap: wrap; min-height: 36px; align-items: center; }
.rb-zone-empty {
  flex: 1; text-align: center; color: var(--muted-2);
  font-size: 12px; font-style: italic; padding: 6px 0;
}
.rb-zone-metrics .rb-zone-body { min-height: 80px; align-items: flex-start; }

/* Result table — clickable cells for drill-in filtering */
.rb-table td.rb-clickable { cursor: pointer; }
.rb-table td.rb-clickable:hover { background: var(--green-50); color: var(--navy); }

@media (max-width: 980px) {
  .rb-grid { grid-template-columns: 1fr; }
  .rb-palette { min-height: 0; }
}

/* ======= Search autosuggest dropdown ======= */
.suggest-host { position: relative; }
.suggest-box {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 37, 64, .14);
  max-height: 420px; overflow-y: auto;
  padding: 6px;
  display: none;
  min-width: 360px;     /* don't shrink below readable width even if input is narrow */
}
@media (max-width: 480px) {
  .suggest-box { min-width: 280px; }
}
.suggest-host.open .suggest-box { display: block; }
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  cursor: pointer; text-decoration: none; color: var(--ink);
  transition: background-color .1s;
}
.suggest-item:hover, .suggest-item.active { background: var(--bg); }
.suggest-item .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.suggest-item .body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.suggest-item .lbl {
  font-weight: 600; font-size: 13px; line-height: 1.25;
  color: var(--ink);
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggest-item .sub {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggest-item .kind {
  font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); font-weight: 700;
  flex-shrink: 0;
  align-self: center;
  margin-left: 8px;
}
.suggest-section-h {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); padding: 8px 12px 4px; font-weight: 700;
}
.suggest-empty {
  padding: 18px; text-align: center; color: var(--muted); font-size: 13px;
}
.suggest-loading {
  padding: 18px; text-align: center; color: var(--muted-2); font-size: 12px;
}

/* ======= Search pill (unified search bar) ======= */
.search-pill {
  display: inline-flex; align-items: center; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0; transition: border-color .15s, box-shadow .15s;
  height: 40px; min-width: 320px;
  position: relative; overflow: hidden;
}
.search-pill:hover { border-color: var(--muted-2); }
.search-pill:focus-within {
  border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50);
}
.search-pill .ico {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px 0 14px; color: var(--muted-2); flex-shrink: 0;
}
.search-pill .ico svg { width: 16px; height: 16px; }
.search-pill input[type="search"], .search-pill input[type="text"] {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 13px; padding: 0 12px; height: 100%;
  font-family: inherit; color: var(--ink);
}
.search-pill input::placeholder { color: var(--muted-2); }
.search-pill .clear-btn {
  border: 0; background: transparent; color: var(--muted-2);
  width: 28px; height: 28px; border-radius: 50%; margin-right: 4px;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.search-pill input:not(:placeholder-shown) ~ .clear-btn { display: inline-flex; }
.search-pill .clear-btn:hover { background: var(--bg); color: var(--ink); }
.search-pill button[type="submit"] {
  border: 0; background: var(--navy); color: #fff;
  font-weight: 600; font-size: 13px;
  padding: 0 18px; height: 100%; cursor: pointer;
  border-radius: 0;
  transition: background .15s;
  flex-shrink: 0;
}
.search-pill button[type="submit"]:hover { background: var(--navy-700); }
.search-pill.search-pill-green button[type="submit"] { background: var(--green); }
.search-pill.search-pill-green button[type="submit"]:hover { background: var(--green-700); }

/* compact variant */
.search-pill.sm { height: 34px; min-width: 240px; }
.search-pill.sm input { font-size: 12px; }
.search-pill.sm button[type="submit"] { font-size: 12px; padding: 0 14px; }

/* ======= Date range filter ======= */
.date-filter {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 4px 6px 4px 14px; height: 40px;
  font-size: 12px;
}
.date-filter:hover { border-color: var(--muted-2); }
.date-filter:focus-within {
  border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50);
}
.date-filter .label {
  color: var(--muted); font-weight: 500;
}
.date-filter input[type="date"] {
  border: 0; outline: none; font-family: inherit; font-size: 12px;
  background: transparent; color: var(--ink); padding: 0 4px;
  height: 100%; min-width: 110px;
}
.date-filter .sep { color: var(--muted-2); }
.date-filter button[type="submit"] {
  border: 0; background: var(--navy); color: #fff;
  font-weight: 600; font-size: 12px;
  padding: 0 12px; height: 32px; border-radius: var(--r-pill);
  cursor: pointer; transition: background .15s;
}
.date-filter button[type="submit"]:hover { background: var(--navy-700); }

.date-presets {
  display: inline-flex; gap: 4px; flex-wrap: wrap;
}
.date-presets a {
  padding: 7px 12px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-pill); font-size: 12px; color: var(--ink-2); font-weight: 500;
  height: 32px; display: inline-flex; align-items: center;
}
.date-presets a:hover { background: var(--bg); }
.date-presets a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ======= Mini KPI strip ======= */
.kpi-row-7 { grid-template-columns: repeat(7, 1fr); }
.kpi-row-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-mini { padding: 14px 16px; }
.kpi-mini .l { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.kpi-mini .v { font-size: 22px; }
.kpi-link { display: block; text-decoration: none; }
.kpi-link .kpi { transition: border-color .15s, transform .1s; }
.kpi-link:hover .kpi { border-color: var(--green); }
.kpi-link.kpi-on .kpi { border-color: var(--green); background: var(--green-50); }

/* ======= Assignee chips on leads table ======= */
.assignee-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 2px 8px 2px 2px;
  font-size: 11px; color: var(--ink-2); margin-right: 4px; margin-bottom: 2px;
  font-weight: 500;
}
.assignee-chip .av {
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.assignee-chip .nm { font-size: 11px; }
.assignee-more {
  display: inline-flex; align-items: center; padding: 2px 8px;
  background: var(--navy-50); color: var(--navy);
  border-radius: var(--r-pill); font-size: 10px; font-weight: 700;
}
.assignee-none {
  font-size: 11px; color: var(--warn); font-weight: 600;
  padding: 2px 8px; background: var(--warn-50); border-radius: var(--r-pill);
}
.row-icon { text-decoration: none; opacity: .6; margin-left: 4px; font-size: 11px; }
.row-icon:hover { opacity: 1; }

/* ======= Repeat-enquiry badge on lead rows ======= */
.repeat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #fff5e0, #ffe9b8);
  border: 1px solid #f0c870;
  color: #8a5a00;
  border-radius: var(--r-pill);
  padding: 1px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform .1s, box-shadow .15s;
}
.repeat-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(138, 90, 0, .2);
  text-decoration: none;
}
.repeat-badge .ic { font-size: 11px; }

/* Tooltip wrapper for assignee chip */
.assignee-chip[data-tooltip] {
  position: relative; cursor: help;
}
.assignee-chip[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0; bottom: calc(100% + 6px);
  background: var(--ink); color: #fff;
  padding: 8px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 500; white-space: pre-line;
  min-width: 200px; max-width: 300px;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.assignee-chip[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  left: 12px; bottom: 100%;
  border: 5px solid transparent;
  border-top-color: var(--ink);
  z-index: 101;
}

/* ======= SVG charts ======= */
.chart-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.chart-wrap .chart-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.chart-wrap .chart-h h3 { margin: 0; font-size: 14px; font-weight: 700; }
.chart-wrap .chart-h .meta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chart-wrap svg { width: 100%; display: block; }
.chart-bar { fill: var(--navy); transition: fill .15s; }
.chart-bar:hover { fill: var(--navy-700); }
.chart-bar.green { fill: var(--green); }
.chart-axis-line { stroke: var(--line); stroke-width: 1; }
.chart-axis-text { fill: var(--muted); font-size: 10px; font-family: 'Inter', sans-serif; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: var(--green-50); }
.chart-dot { fill: var(--green); stroke: #fff; stroke-width: 2; }
.chart-grid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2,3; }
.chart-label { fill: var(--ink); font-size: 10px; font-weight: 600; font-family: 'Inter', sans-serif; }
.chart-value { fill: var(--ink-2); font-size: 10px; font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
.donut-segment { transition: opacity .15s; }
.donut-segment:hover { opacity: .85; }
.donut-center { fill: var(--ink); font-size: 22px; font-weight: 700; font-family: 'Inter'; }
.donut-center-sub { fill: var(--muted); font-size: 10px; font-family: 'Inter'; text-transform: uppercase; letter-spacing: .04em; }

.legend-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; }
.legend-row .lg { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.legend-row .lg .sw { width: 10px; height: 10px; border-radius: 2px; }

/* Two-column / three-column chart grids */
.chart-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) {
  .chart-grid-2, .chart-grid-3 { grid-template-columns: 1fr; }
  .kpi-row-7 { grid-template-columns: repeat(3, 1fr); }
  .kpi-row-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .kpi-row-7 { grid-template-columns: repeat(2, 1fr); }
  .kpi-row-3 { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  background: var(--ink); color: #fff;
  padding: 14px 20px; border-radius: var(--r-lg);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; box-shadow: var(--shadow-md);
  z-index: 90;
}

/* Notification rows */
.notif-list { display: flex; flex-direction: column; }
.notif-row {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.notif-row:last-child { border-bottom: 0; }
.notif-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 4px; }
.notif-row.unread .dot { background: var(--green); }
.notif-row .ttl { font-weight: 600; font-size: 13px; }
.notif-row .sub { font-size: 12px; color: var(--muted); }
.notif-row .dt { font-size: 11px; color: var(--muted-2); }

/* Kanban */
.kanban-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.kanban-col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.kanban-h {
  padding: 10px 14px; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between;
}
.kanban-h .count { color: var(--muted-2); font-weight: 400; font-size: 12px; }
.kanban-cards { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.kanban-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; cursor: pointer; transition: .15s; text-decoration: none; color: var(--ink);
}
.kanban-card:hover { border-color: var(--green); }
.kanban-card .ttl { font-size: 13px; font-weight: 600; }
.kanban-card .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kanban-card .meta { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.kanban-card .wa-btn { display: inline-block; font-size: 10px; color: var(--green); margin-top: 6px; }

/* Chat bubbles */
.chat-stream { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.chat-bubble { max-width: 70%; padding: 10px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.chat-bubble.left { background: #fff; align-self: flex-start; }
.chat-bubble.right { background: var(--green-50); align-self: flex-end; border-color: #bce0c4; }
.chat-bubble .meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.chat-bubble .text { font-size: 14px; color: var(--ink); }

/* Q&A + Reviews + EMI calc */
.qa-list, .reviews-list { display: flex; flex-direction: column; gap: 14px; }
.qa-row { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.qa-row:last-child { border-bottom: 0; }
.qa-question .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.qa-question .text { font-size: 14px; color: var(--ink); }
.qa-answer { margin-top: 10px; padding: 10px 14px; background: var(--green-50); border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.qa-answer b { color: var(--green-700); }
.qa-answer .dt { font-size: 11px; color: var(--muted); margin-top: 4px; }
.review-row { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.review-row:last-child { border-bottom: 0; }
.review-row .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.review-row .ttl { font-size: 14px; font-weight: 700; color: var(--ink); }
.review-row .text { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-page { background: var(--bg); padding-bottom: 64px; }

/* Tasks list striking through done items */
tr.task-done td { color: var(--muted-2); text-decoration: line-through; }
tr.task-done td b { color: var(--muted-2); }

/* Print styles for property pages */
@media print {
  .app-header, .app-footer, .cookie-banner, #toast-host,
  .save-toggle, .enquiry-card, .psf-callout, .trust-card, .share-row { display: none !important; }
  body { background: #fff; }
}

/* responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .psf-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .results-list { grid-template-columns: 1fr; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-23, .col-32 { grid-template-columns: 1fr; }
  .saved-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .services-row { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .search-page { grid-template-columns: 1fr; }
  .search-filters { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .hero { padding: 32px 16px 16px; }
  .hero h1 { font-size: 36px; }
  .app-header { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }
  .search-fields { grid-template-columns: 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .fears, .assets, .proj-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { display: none; }
  .saved-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px 140px; }
  .gallery .g1 { grid-row: span 1; grid-column: span 2; }
  .section { padding: 32px 16px; }
  .dash-main { padding: 16px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   New components added in roadmap items (Exclusive, integrations, strings,
   CMS blocks, match score, etc.) — give them proper CSS so inline styles
   aren't load-bearing.
   ========================================================================= */

/* Property Select Exclusive — gold mark on cards + project pages */
.exclusive-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: #1A1A1A;
  color: #C9A96E;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exclusive-mark--hero {
  padding: 6px 14px;
  background: linear-gradient(135deg, #1A1A1A, #0E2A3A);
  border: 1px solid #C9A96E;
  font-size: 12px;
}

/* Exclusive listing card on /exclusive landing */
.exclusive-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #0E2A3A;
  box-shadow: 0 4px 20px rgba(8, 65, 108, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.exclusive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(8, 65, 108, 0.18);
}

/* Home hero banner (admin-uploaded full-bleed) */
.home-hero-banner {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.home-hero-banner:hover {
  filter: brightness(1.05);
}

/* AI match score badge on cards */
.match-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: help;
}

/* Photo-recency / Trakheesi inline pills (on cards) */
.prop-card .badges .b-pill,
.prop-card .badges .exclusive-mark,
.prop-card .badges .match-score {
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Integrations page — card grid + tabs */
.integration-section { margin-bottom: 24px; }
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.integration-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.integration-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(8, 65, 108, 0.08);
}
.integration-card details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}
.integration-card details summary:hover { text-decoration: underline; }
.integrations-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Site-strings editor rows */
.strings-row {
  transition: background 0.1s;
}
.strings-row:hover {
  background: #FAFBFC;
}
.strings-row code {
  word-break: break-all;
}

/* Reset link in filter toolbar */
.reset-link {
  font-size: 11px;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(8, 65, 108, 0.3);
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.reset-link:hover { text-decoration-color: var(--navy); }

/* Filter "Show more" toggle */
.filter-more-toggle {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(8, 65, 108, 0.3);
}
.filter-more-toggle:hover { text-decoration-color: var(--navy); }

/* Confidence flag (brochure import) */
.conf-flag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* CMS block management row */
.cms-block-row {
  transition: border-color 0.12s;
}
.cms-block-row:hover {
  border-color: var(--navy);
}

/* CMS block-type renderers */
.cms-block { padding: 32px; max-width: 100%; }
.cms-block-inner { max-width: 1140px; margin: 0 auto; }
.hero-block .cms-block-inner { text-align: left; }
.hero-block h1 { font-size: 36px; margin-bottom: 12px; }
.image-block .cms-block-inner { text-align: center; }
.split-block .cms-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-block { background: var(--green-50); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.stats-block .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.stats-block .stat-cell { text-align: center; }
.stats-block .stat-cell .v {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stats-block .stat-cell .l {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.faq-block .faq-list { margin-top: 16px; }
.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: " +"; color: var(--muted); }
.faq-item[open] summary::after { content: " –"; }
.faq-item > div { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.video-block .cms-block-inner { max-width: 800px; }
.testimonial-block { padding: 48px 32px; }
.gallery-block .cms-block-inner { max-width: 1240px; }

/* Search-page sort select polish */
.sort-select {
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
}

/* Responsive: stack split-block on narrow screens */
@media (max-width: 720px) {
  .split-block .cms-block-inner { grid-template-columns: 1fr; gap: 16px; }
  .integration-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .stats-block .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* RTL handling for new components */
html[dir="rtl"] .exclusive-mark,
html[dir="rtl"] .match-score,
html[dir="rtl"] .conf-flag {
  margin-left: 0;
  margin-right: 6px;
}

/* Print: hide expensive interactive bits */
@media print {
  .home-hero-banner, .exclusive-mark--hero, .match-score, .filter-more-toggle,
  .reset-link, .integration-card details, .save-toggle, .enquiry-card,
  .home-hero-banner *, [data-otp-unlock], [data-emi-widget], [data-payment-plan] {
    display: none !important;
  }
}

/* =========================================================================
   Search page rebuild — toolbar, chips, view toggle, map, mobile drawer
   ========================================================================= */

/* Result breakdown dots */
.result-breakdown {
  display: flex; gap: 14px; margin-top: 8px;
  font-size: 12px; color: var(--muted-2);
}
.result-breakdown .dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}

/* Toolbar refinements */
.search-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-start; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.toolbar-right {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.view-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.view-toggle .view-btn {
  padding: 7px 12px; font-size: 12px; color: var(--ink-2);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border-right: 1px solid var(--line); transition: background 0.12s;
}
.view-toggle .view-btn:last-child { border-right: 0; }
.view-toggle .view-btn:hover { background: var(--bg); }
.view-toggle .view-btn.on { background: var(--navy); color: #fff; }

.save-search-form button { font-size: 12px; }

/* Active filter chips */
.filter-chips-active {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.filter-chip-active {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 12px;
  background: var(--navy-50); color: var(--navy);
  border: 1px solid #bcd1e1; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  text-decoration: none; transition: all 0.12s;
}
.filter-chip-active:hover { background: #d6e2ee; border-color: var(--navy); }
.filter-chip-active .x {
  font-size: 14px; font-weight: 700; color: var(--navy);
  line-height: 1; padding: 0 2px;
}
.filter-chip-clear {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: transparent; color: var(--danger);
  font-size: 12px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(220, 38, 38, 0.3);
}
.filter-chip-clear:hover { text-decoration-color: var(--danger); }

/* Card cover image — fixed 170px (Bayut/Dubizzle pattern).
   Flat height keeps photos consistent across cards regardless of card width.
   The double-class selector beats any earlier .prop-card .photo rule. */
.prop-card.prop-card .photo,
.prop-card .photo.photo {
  position: relative;
  display: block;
  height: 170px !important;
  overflow: hidden;
}
.prop-card .photo > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
@media (max-width: 600px) {
  .prop-card.prop-card .photo,
  .prop-card .photo.photo { height: 150px !important; }
}
.prop-card .photo > .badges,
.prop-card .photo > .price-flag,
.prop-card .photo > .save-toggle {
  position: relative;
  z-index: 2;
}
.prop-card .photo > img {
  z-index: 0;
}
.prop-card .photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.45) 100%);
  z-index: 1; pointer-events: none;
}
.prop-card .photo > .price-flag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.prop-card .photo > .badges {
  position: absolute; top: 12px; left: 12px; right: 56px;
  display: flex; flex-wrap: wrap; gap: 4px;
  z-index: 2;
}
.prop-card .photo > .save-toggle {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(8px); z-index: 3;
}
.prop-card .photo > .save-toggle.on { color: var(--danger); }

/* Card body refinements */
.prop-card .body { padding: 14px 16px; }
.prop-card .ttl {
  font-size: 16px; font-weight: 700; color: var(--ink);
  text-decoration: none; display: block; margin-bottom: 4px;
}
.prop-card .ttl:hover { color: var(--navy); }
.prop-card .loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
}
.prop-card .loc svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Card CTA row */
.card-ctas {
  display: flex; align-items: center; gap: 6px;
}
.card-cta {
  width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: all 0.12s;
  text-decoration: none;
  padding: 0;
}
.card-cta:hover {
  background: var(--bg); border-color: var(--navy); color: var(--navy);
}
.card-cta.on {
  background: var(--green-50); border-color: var(--green); color: var(--green-700);
}
.card-ctas .btn-link {
  margin-left: auto;
  font-weight: 600; color: var(--navy);
}

/* Map view */
.search-map-host {
  margin: 16px 0;
}
.search-map-host .leaflet-popup-content { font-family: inherit; font-size: 13px; }

/* Mobile filter drawer (off-canvas) */
.filter-drawer-toggle {
  display: none;
  align-items: center; gap: 6px;
  padding: 10px 14px; margin-bottom: 12px;
  background: var(--navy); color: #fff; border: 0;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%;
  justify-content: center;
}
@media (max-width: 900px) {
  .search-page { grid-template-columns: 1fr !important; }
  .filter-drawer-toggle { display: inline-flex; }
  .search-filters {
    position: fixed; top: 0; left: -320px; bottom: 0; width: 300px;
    z-index: 1000; transition: left 0.25s ease-out;
    overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    max-height: 100vh;
  }
  body.filter-drawer-open .search-filters {
    left: 0;
  }
  body.filter-drawer-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  body.filter-drawer-open { overflow: hidden; }
}


/* Public, time-stamped, expiring verification badge (trust-moat, 2026-06-01) */
.verified-pill .verif-age{font-weight:500;opacity:.82;margin-left:5px;font-size:.92em}
.verif-recheck{display:inline-flex;align-items:center;margin-left:6px;padding:2px 8px;border-radius:999px;
  font-size:10px;font-weight:700;letter-spacing:.04em;background:#fff4e0;color:#a86a12;border:1px solid #f0d9a8}

/* Public agent/developer quality score (competitive Iteration 2, 2026-06-01) */
.qual-wrap{display:inline-flex;flex-wrap:wrap;align-items:center;gap:7px;margin:4px 0}
.qual-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.02em}
.qual-pill.elite{background:linear-gradient(135deg,#C9A96E,#b6924f);color:#2a1f08}
.qual-pill.pro{background:#0E2A3A;color:#cfe0ee}
.qual-pill.standard{background:#eef3f8;color:#0a4f84;border:1px solid #d6e2ec}
.qual-pill.new{background:#f3f5f7;color:#5d6b79;border:1px solid #e4e9ef}
.qual-bit{display:inline-flex;align-items:center;font-size:11.5px;font-weight:600;color:#3a4a57;background:#f3f6f9;border:1px solid #e4e9ef;border-radius:999px;padding:3px 9px}
