/* ── Design tokens ────────────────────────────────────────────────── */
:root {
  --bg:       #f4f6f9;
  --surface:  #ffffff;
  --border:   #e4e8ee;
  --border-2: #f0f2f6;
  --ink:      #111827;
  --ink-2:    #374151;
  --muted:    #6b7280;
  --muted-2:  #9ca3af;
  --blue:     #1d4ed8;
  --green:    #059669;
  --amber:    #f59e0b;
  --red:      #dc2626;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --radius:    12px;
  --radius-sm: 8px;
  --topbar-h:  62px;
  --sidebar-w: 280px;
  --bottom-h:  64px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--ink); }
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn.full { width: 100%; }
.btn-primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover { background: #1f2937; }
.btn-outline {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--ink); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.82rem; }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  font-size: 1rem;
}
.brand-name { color: var(--ink); }

/* Desktop view toggle */
.view-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.view-btn {
  min-height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.view-btn.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  box-shadow: var(--shadow-xs);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.account-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  transition: border-color .15s;
}
.account-btn:hover { border-color: var(--ink); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── Workspace (3-column desktop) ────────────────────────────────── */
.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: calc(100vh - var(--topbar-h));
}

/* split view = default (sidebar + results + map) */
.workspace[data-view="split"] .filter-panel,
.workspace[data-view="split"] .results-pane,
.workspace[data-view="split"] .map-panel { display: flex; }

/* list view = sidebar + results, no map */
.workspace[data-view="list"] {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.workspace[data-view="list"] .map-panel { display: none; }

/* map view = sidebar + map, no results */
.workspace[data-view="map"] {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.workspace[data-view="map"] .results-pane { display: none; }

/* ── Filter sidebar ───────────────────────────────────────────────── */
.filter-panel {
  position: sticky;
  top: var(--topbar-h);
  align-self: start;
  flex-direction: column;
  gap: 20px;
  height: calc(100vh - var(--topbar-h));
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
}
.filter-panel { display: flex; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header strong { font-size: 1.05rem; }
.reset-link {
  border: none;
  background: none;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}
.reset-link:hover { text-decoration: underline; }

.filter-section { display: flex; flex-direction: column; gap: 10px; }
.filter-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filter-label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted-2);
  font-weight: 500;
}

.input-with-icon { position: relative; }
.field-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-with-icon input { padding-left: 34px; }

/* Price */
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.preset-chip:hover, .preset-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.price-sep { width: 12px; height: 1px; background: var(--border); margin-bottom: 22px; }
.price-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.dollar-wrap { position: relative; }
.dollar-wrap span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.88rem;
  pointer-events: none;
}
.dollar-wrap input { padding-left: 24px; min-height: 40px; }

/* Rental type radio rows */
.type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.type-row:hover { border-color: var(--ink); }
.type-row input[type="radio"] { display: none; }
.type-row:has(input:checked) {
  border-color: var(--ink);
  background: var(--bg);
}
.type-icon { font-size: 1rem; }
.type-text { display: flex; flex-direction: column; gap: 1px; }
.type-text strong { font-size: 0.88rem; }
.type-text small { font-size: 0.76rem; color: var(--muted); }

/* Freshness */
.freshness-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.fresh-btn {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.fresh-btn:hover { border-color: var(--ink); color: var(--ink); }
.fresh-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-text strong { font-size: 0.88rem; }
.toggle-text small { font-size: 0.76rem; color: var(--muted); }
.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.toggle-switch[aria-checked="true"] { background: var(--ink); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .2s;
}
.toggle-switch[aria-checked="true"] .toggle-knob { transform: translateX(18px); }

/* Live badge */
.live-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.live-badge strong { font-size: 1.6rem; line-height: 1; }
.live-badge span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ── Results pane ─────────────────────────────────────────────────── */
.results-pane {
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
}
.results-pane { display: flex; }

.results-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}
.location-label {
  margin: 0 0 3px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.results-header h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  line-height: 1.1;
}
.result-sub { margin: 0; font-size: 0.86rem; color: var(--muted); }
.results-header-end { display: flex; gap: 8px; padding-top: 4px; }

.filter-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}
.filter-trigger:hover { border-color: var(--ink); }

.mobile-view-bar { display: none; }

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  font-size: 0.88rem;
}
.result-bar strong { font-size: 0.95rem; }
.result-bar span { color: var(--muted); font-size: 0.82rem; }

/* ── Listing grid ─────────────────────────────────────────────────── */
.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  padding: 12px;
  background: var(--bg);
  gap: 8px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .15s, border-color .15s;
}
.listing-card:hover { box-shadow: var(--shadow-sm); }
.listing-card.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm);
}

.listing-main {
  display: grid;
  grid-template-columns: 156px minmax(0,1fr);
  gap: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
}

.listing-photo {
  position: relative;
  width: 100%;        /* fill whatever the grid column gives it */
  align-self: stretch;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;   /* prevent the image from bleeding into the text column */
}
.listing-photo img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) 0 0 var(--radius);
  /* Ensure image never exceeds its container */
  max-width: 100%;
}
.listing-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 130px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg);
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.placeholder-img {
  filter: brightness(0.88) saturate(0.7);
}
.no-photo-label {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  pointer-events: none;
}
.freshness-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.freshness-badge.new { background: var(--green); color: #fff; }
.freshness-badge.recent { background: rgba(0,0,0,.55); color: #fff; }

.listing-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 10px;
  min-width: 0;
}
.listing-price {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
}
.listing-price span { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.listing-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.listing-address {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0;
}
.listing-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--ink-2);
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.source-badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.listing-time { font-size: 0.76rem; color: var(--muted-2); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px 10px;
}
.view-orig {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}
.view-orig:hover { text-decoration: underline; }
.no-source { font-size: 0.8rem; color: var(--muted-2); }

/* Skeleton loading */
.skeleton-card { pointer-events: none; }
.skeleton-card .listing-main { cursor: default; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel {
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f6 25%, #f8fafc 50%, #eef1f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skel-photo { width: 156px; min-height: 130px; border-radius: var(--radius) 0 0 var(--radius); }
.skel-line { height: 14px; margin-bottom: 8px; }
.skel-line.w40 { width: 40%; }
.skel-line.w70 { width: 70%; }
.skel-line.w55 { width: 55%; }
.skel-lg { height: 22px; width: 50%; margin-bottom: 10px; }

/* Empty state */
.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}
.empty-state strong { display: block; color: var(--ink); font-size: 1rem; }
.empty-state p { margin: 0; font-size: 0.9rem; line-height: 1.5; }

/* ── Map panel ────────────────────────────────────────────────────── */
.map-panel {
  position: sticky;
  top: var(--topbar-h);
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  border-left: 1px solid var(--border);
}
.map-panel { display: flex; }

.map-canvas {
  flex: 1;
  min-height: 0;
  background: #dde8ef;
}
.leaflet-container { font: inherit; }

.map-count-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
}
.map-count-bar strong { font-weight: 700; }

/* Locate-me button */
.locate-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(16,24,40,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.locate-btn:hover { background: var(--ink); color: #fff; }
.locate-btn.locating { animation: pulse-ring .9s ease-in-out infinite; }
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(29,78,216,.0); }
}

/* User location dot */
.user-location-dot {
  width: 16px !important;
  height: 16px !important;
  background: var(--blue);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(29,78,216,.3), 0 2px 8px rgba(0,0,0,.2);
}

/* Price markers */
.price-marker {
  display: grid !important;
  place-items: center;
  width: auto !important;
  min-width: 60px;
  height: 30px !important;
  padding: 0 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  white-space: nowrap;
}
.price-marker.active {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}
.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 1.2rem !important;
  color: var(--ink) !important;
}

/* ── Landlord post section ────────────────────────────────────────── */
.post-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 28px;
  border-top: 1px solid var(--border);
}
.post-intro { padding-top: 12px; }
.partner-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
}
.post-intro h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 10px; }
.post-intro p { color: var(--muted); line-height: 1.6; }

.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
}

.category-group { display: flex; flex-direction: column; gap: 10px; }
.category-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-2);
  transition: border-color .12s, background .12s;
}
.cat-card input[type="radio"] { display: none; }
.cat-card:hover { border-color: var(--ink); }
.cat-card.active {
  border-color: var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-weight: 750;
}

.whats-next {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.86rem;
}
.whats-next svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.whats-next strong { display: block; margin-bottom: 3px; }
.whats-next p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.84rem; }

.terms-note { margin: -6px 0 0; font-size: 0.76rem; color: var(--muted-2); text-align: center; }
.form-status { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.form-status:empty { display: none; }

.value-props { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; border-top: 1px solid var(--border-2); }
.vp-row { display: flex; align-items: flex-start; gap: 10px; }
.vp-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.vp-row strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.vp-row p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

/* ── Seekers section ─────────────────────────────────────────────── */
.seekers-section {
  padding: 56px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.seekers-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 28px;
}
.seekers-header h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 6px; }
.seekers-header p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.seekers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
}
.seekers-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 32px;
  font-size: 0.9rem;
}

.seeker-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.seeker-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }

.seeker-header { display: flex; align-items: center; gap: 10px; }
.seeker-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.seeker-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seeker-source {
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.seeker-time { font-size: 0.76rem; color: var(--muted-2); }

.seeker-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}

.seeker-details { display: flex; flex-wrap: wrap; gap: 6px; }
.seeker-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--ink-2);
}

.seeker-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.seeker-footer { margin-top: auto; }
.seeker-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}
.seeker-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .seekers-section { padding: 32px 16px; }
  .seekers-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .seekers-grid { grid-template-columns: 1fr; }
}

/* ── Post section stats ───────────────────────────────────────────── */
.post-stats {
  display: flex;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.post-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.post-stat:last-child { border-right: none; }
.post-stat strong { font-size: 1.1rem; font-weight: 800; }
.post-stat span { font-size: 0.76rem; color: var(--muted); font-weight: 600; }

/* ── Verify CTA section ───────────────────────────────────────────── */
.verify-cta {
  background: var(--ink);
  color: #fff;
  padding: 64px 28px;
}
.verify-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.verify-cta .eyebrow { color: rgba(255,255,255,.5); }
.verify-cta h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: #fff; margin-bottom: 12px; }
.verify-cta > .verify-cta-inner > div > p { color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 24px; }
.verify-cta .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.verify-cta .btn-primary:hover { background: #f0f0f0; }

.verify-trust-items { display: flex; flex-direction: column; gap: 20px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.trust-item strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 3px; }
.trust-item p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,.6); line-height: 1.45; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}

/* ── Mobile bottom tab bar ────────────────────────────────────────── */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--bottom-h);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  padding: 0 4px;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.tab-btn span { font-size: 0.68rem; }
.tab-btn.active { color: var(--ink); }
.tab-btn svg { transition: transform .15s; }
.tab-btn.active svg { transform: scale(1.08); }

/* ── Filter dialog ────────────────────────────────────────────────── */
dialog {
  padding: 0;
  border: none;
  outline: none;
}
dialog::backdrop { background: rgba(0,0,0,.45); }

#filterDialog {
  width: min(480px, 100vw);
  max-height: 100dvh;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: auto auto 0;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) {
  #filterDialog {
    border-radius: var(--radius);
    margin: auto;
    max-height: 90vh;
  }
}
.filter-sheet { display: flex; flex-direction: column; max-height: 90dvh; }
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
}
.sheet-header strong { font-size: 1rem; }
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .12s;
}
.check-row:hover { border-color: var(--ink); }
.check-row:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.check-row input[type="radio"] { display: none; }
.check-icon { font-size: 1.1rem; flex-shrink: 0; }
.check-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.check-text strong { font-size: 0.9rem; }
.check-text small { font-size: 0.78rem; color: var(--muted); }
.match-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.88rem;
}
.match-preview svg { color: var(--green); flex-shrink: 0; }
.match-preview p { margin: 0; }
.sheet-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── Auth / verify dialog ─────────────────────────────────────────── */
#accessDialog {
  width: min(460px, calc(100vw - 24px));
  max-height: 92dvh;
  border-radius: var(--radius);
  margin: auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.verify-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 20px;
  overflow-y: auto;
  max-height: 92dvh;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: color .15s;
}
.modal-close:hover { color: var(--ink); }
.verify-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  margin: 0 auto 4px;
}
.verify-modal h2 { font-size: 1.3rem; text-align: center; margin: 0; }
.verify-modal > p { font-size: 0.9rem; color: var(--muted); text-align: center; line-height: 1.55; margin: 0; }
.auth-status {
  min-height: 18px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-status:empty { display: none; }
.verify-field-group { display: flex; flex-direction: column; gap: 8px; }
.email-chips { display: flex; gap: 6px; }
.email-chip {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.email-chip:hover { border-color: var(--ink); background: var(--bg); }
.cant-access {
  border: none;
  background: none;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  padding: 0;
  margin: -6px auto 0;
  text-decoration: underline;
}
.why-verify { display: flex; flex-direction: column; gap: 12px; }
.why-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  margin: 0;
}
.why-item { display: flex; align-items: flex-start; gap: 10px; }
.why-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.why-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.why-item p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.privacy-note {
  font-size: 0.76rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
  padding: 10px 0 0;
  border-top: 1px solid var(--border-2);
  margin: 0;
}

/* ── Location autocomplete ───────────────────────────────────────── */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}
.ac-list:empty { display: none; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background .1s;
}
.ac-item:hover, .ac-item[aria-selected="true"] { background: var(--bg); }
.ac-item-icon { color: var(--muted); flex-shrink: 0; }
.ac-item-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ac-item-name { font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-item-sub { font-size: 0.76rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-loading, .ac-empty {
  padding: 10px 12px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────── */

/* Tablet: hide map column, show 2-col */
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 260px minmax(0,1fr);
  }
  .workspace[data-view="split"] .map-panel,
  .workspace[data-view="map"] .map-panel { display: none; }
  .workspace[data-view="map"] .results-pane { display: flex; }
  .view-toggle { display: none; }
}

/* Mobile: single column, bottom nav */
@media (max-width: 760px) {
  body { padding-bottom: var(--bottom-h); background: var(--surface); }
  .bottom-bar { display: flex; }
  .topbar { padding: 0 14px; }
  .topbar-actions .btn-outline { display: none; }
  .view-toggle { display: none; }

  .workspace {
    display: block;
    min-height: auto;
  }

  /* Default mobile tab = listings */
  .filter-panel { display: none !important; }
  .results-pane { display: flex !important; }
  .map-panel { display: none !important; }

  /* tab = search → show filter panel */
  body[data-tab="search"] .filter-panel {
    display: flex !important;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  body[data-tab="search"] .results-pane { display: none !important; }

  /* tab = map */
  body[data-tab="map"] .results-pane { display: none !important; }
  body[data-tab="map"] .map-panel {
    display: flex !important;
    position: static;
    height: calc(100dvh - var(--topbar-h) - var(--bottom-h));
    border-left: none;
  }
  body[data-tab="map"] .map-count-bar { display: flex; }

  /* tab = profile → listings is shown, dialog opens */
  body[data-tab="profile"] .results-pane { display: flex !important; }

  /* Mobile view bar (List/Map) inside results pane */
  .mobile-view-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .mob-view-btn {
    flex: 1;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
  }
  .mob-view-btn.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }

  /* Show filter button in mobile results header */
  .filter-trigger { display: inline-flex; }

  /* Listing cards */
  .listing-main { grid-template-columns: 120px minmax(0,1fr); }
  .listing-photo img,
  .listing-image-fallback { min-height: 110px; }
  .skel-photo { width: 120px; min-height: 110px; }
  .listing-price { font-size: 1.05rem; }
  .listing-title {
    font-size: 0.9rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Results header */
  .results-header { padding: 14px; }
  .results-header h1 { font-size: 1.2rem; }

  /* Result bar */
  .result-bar { padding: 8px 14px; }
  .listing-grid { padding: 8px; gap: 6px; }

  /* Post section */
  .post-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px;
  }
  .post-stats { flex-wrap: wrap; }
  .post-stat { min-width: 120px; }
  .category-cards { grid-template-columns: repeat(3, 1fr); }

  /* Verify */
  .verify-cta { padding: 40px 16px 56px; }
  .verify-cta-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Filter dialog on mobile = bottom sheet */
  #filterDialog {
    width: 100vw;
    max-height: 95dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: auto auto 0;
  }
}

@media (max-width: 400px) {
  .listing-main { grid-template-columns: 100px minmax(0,1fr); }
  .listing-photo img,
  .listing-image-fallback { min-height: 96px; }
  .skel-photo { width: 100px; min-height: 96px; }
}
