/* dilli.rent — premium dark design system */
:root {
  --bg: #0a0a0b;
  --surface: #161618;
  --surface-2: #1e1e22;
  --surface-glass: rgba(22, 22, 24, 0.88);
  --text: #f5f5f4;
  --text-muted: #a8a29e;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #f97316;
  --accent-hover: #fb923c;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'DM Sans', system-ui, sans-serif;
  --header-height: 124px;
  --header-bar-height: 72px;
  --header-categories-height: 52px;
  --mobile-nav-height: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* legacy aliases */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--text-muted);
  --color-border: var(--border);
  --color-primary: var(--accent);
  --color-primary-dark: #ea580c;
  --color-accent: var(--success);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: var(--shadow);
  --nav-height: var(--header-height);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

#map {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
}

/* Leaflet dark map + controls */
.leaflet-tile-pane {
  filter: brightness(0.5) contrast(1.2) saturate(0.75);
}
.leaflet-container {
  background: #0a0a0b;
}
.leaflet-control-zoom,
.leaflet-control-scale {
  background: var(--surface-glass) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: transparent !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: var(--surface-2) !important; }
.leaflet-control-scale-line {
  background: var(--surface-glass) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow) !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
}
.leaflet-popup-content { margin: 10px 12px !important; }

/* Map badge pins */
.map-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  max-width: 120px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  pointer-events: auto;
  text-align: center;
  line-height: 1.2;
}
.map-badge:hover {
  transform: scale(1.06);
  filter: brightness(1.12);
}
.map-badge__primary {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.map-badge__secondary {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.map-badge--rent { border-color: rgba(249, 115, 22, 0.55); }
.map-badge--rent .map-badge__primary { color: #fdba74; }
.map-badge--listing-whole { border-color: rgba(34, 197, 94, 0.55); }
.map-badge--listing-whole .map-badge__primary { color: #86efac; }
.map-badge--listing-room { border-color: rgba(45, 212, 191, 0.55); }
.map-badge--listing-room .map-badge__primary { color: #5eead4; }
.map-badge--has-photo { box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35); }
.map-badge--seeker { border-color: rgba(167, 139, 250, 0.55); }
.map-badge--seeker .map-badge__primary { color: #c4b5fd; }
.map-badge--external { border-color: rgba(56, 189, 248, 0.55); }
.map-badge--external .map-badge__primary { color: #7dd3fc; }
.map-badge--suspicious { border-color: rgba(239, 68, 68, 0.65); }
.map-badge--suspicious .map-badge__primary { color: #fca5a5; }

/* Search result pin (distinct from rent/listing badges) */
.map-search-pin {
  position: relative;
  width: 36px;
  height: 36px;
}
.map-search-pin__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.map-search-pin__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.35);
  animation: map-search-pulse 1.6s ease-out infinite;
}
.map-search-pin__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
}
@keyframes map-search-pulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.map-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 56px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}
.map-cluster strong {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.map-cluster--rent { border-color: rgba(249, 115, 22, 0.45); }
.map-cluster--listing { border-color: rgba(34, 197, 94, 0.45); }
.map-cluster--seeker { border-color: rgba(167, 139, 250, 0.45); }
.map-cluster--external { border-color: rgba(56, 189, 248, 0.45); }

.map-error {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.map-error[hidden] { display: none !important; }
.map-error p { max-width: 420px; }
.map-error strong { display: block; margin-bottom: 8px; font-size: 16px; color: var(--accent); }

/* Header + search — Airbnb-style two-row layout */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.header-bar,
.nav-categories {
  pointer-events: auto;
}

.header-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.brand-mark .nav-icon svg { width: 22px; height: 22px; }

.nav-icon { display: inline-flex; line-height: 0; align-items: center; justify-content: center; }

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
}

.search-bar-pill {
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}
.search-bar-pill:focus-within {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 8px 28px rgba(0, 0, 0, 0.18);
}

.search-bar-main {
  flex: 1;
  min-width: 0;
  padding: 6px 4px 6px 20px;
}

.search-bar-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1px;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.search-input {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  box-shadow: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.search-bar-submit {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 4px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.search-bar-submit:hover { background: var(--accent-hover); }
.search-bar-submit:active { transform: scale(0.96); }
.search-bar-submit .nav-icon svg { width: 18px; height: 18px; stroke-width: 2.5; }

.search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.search-clear:hover { background: var(--bg); color: var(--text); }
.search-clear[hidden] { display: none !important; }
.search-clear .nav-icon svg { width: 14px; height: 14px; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 120;
  padding: 6px;
}
.search-results[hidden] { display: none !important; }

.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.12s;
}
.search-result:hover,
.search-result.active {
  background: var(--surface-2);
}
.search-result-name { font-size: 14px; font-weight: 600; color: var(--text); }
.search-result-sub { font-size: 12px; color: var(--text-muted); }
.search-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.header-host-cta {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.header-host-cta:hover {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Airbnb-style category strip */
.nav-categories {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.nav-categories-scroll {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: flex-start;
}
.nav-categories-scroll::-webkit-scrollbar { display: none; }

.nav-category {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  padding: 10px 14px 8px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.nav-category:hover {
  opacity: 1;
  color: var(--text);
  border-bottom-color: rgba(245, 245, 244, 0.25);
}
.nav-category.active {
  opacity: 1;
  color: var(--text);
  border-bottom-color: var(--text);
}
.nav-category-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.nav-category-icon .nav-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}
.nav-category-label {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-category-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}
.nav-category-badge.badge-accent { background: #7c3aed; }
.nav-category--mobile-only { display: none; }

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  display: none;
}
.badge-accent { background: #7c3aed; }

.more-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: max(12px, calc((100vw - 1280px) / 2 + 12px));
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 6px;
  pointer-events: auto;
  z-index: 110;
}
.more-menu[hidden] { display: none !important; }
.more-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}
.more-item:hover { background: var(--surface-2); }

/* Legacy mobile bottom nav — hidden; categories live in header */
.mobile-nav {
  display: none !important;
}

@media (min-width: 900px) {
  .nav-categories-scroll {
    justify-content: center;
    padding: 0 24px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 124px;
    --header-bar-height: 72px;
    --header-categories-height: 52px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 112px;
    --header-bar-height: 60px;
    --header-categories-height: 52px;
    --mobile-nav-height: 0px;
  }
  .header-bar-inner {
    gap: 10px;
    padding: 10px 14px;
  }
  .nav-brand { font-size: 16px; }
  .search-wrap {
    flex: 1;
    max-width: none;
    margin: 0;
  }
  .search-bar-label { display: none; }
  .search-bar-main { padding: 8px 4px 8px 16px; }
  .search-bar-pill { min-height: 44px; }
  .search-bar-submit { width: 36px; height: 36px; margin: 4px; }
  .header-host-cta { display: none; }
  .nav-category--mobile-only { display: flex; }
  .nav-categories-scroll {
    padding: 0 8px;
    mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
}

.map-hint {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 24px);
}
.hint-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
}

.ad-slot {
  position: fixed;
  z-index: 80;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  text-align: center;
}
.ad-top { top: calc(var(--header-height) + 48px); right: 12px; width: 160px; display: none; }
.ad-bottom { bottom: calc(var(--mobile-nav-height) + 8px + var(--safe-bottom)); left: 12px; right: 12px; max-width: 400px; }
.ad-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.ad-placeholder { font-size: 11px; color: var(--text-muted); padding: 8px; }
@media (min-width: 768px) {
  .ad-top { display: block; }
  .ad-bottom { bottom: calc(36px + var(--safe-bottom)); }
}

.map-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  justify-content: center;
  gap: 16px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  font-size: 11px;
}
@media (min-width: 768px) {
  .map-footer { display: flex; }
}

.map-footer a { color: var(--text-muted); text-decoration: none; }
.map-footer a:hover { color: var(--accent); }

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  gap: 16px;
  color: var(--text-muted);
}
.loading-overlay.hidden { display: none; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-inline {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none !important; }
#introModal { z-index: 350; }
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.panel-overlay[hidden] { display: none !important; }

.modal, .panel.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.modal.wide { max-width: 560px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal, .panel.sheet { border-radius: var(--radius-lg); max-height: 85vh; }
  .panel-overlay { display: flex; align-items: stretch; justify-content: flex-end; }
  .panel.sheet {
    max-width: 360px;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
    animation: slideLeft 0.25s ease;
  }
  @keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }
}

.modal-header, .panel-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.modal-header h2, .panel-header h2 { font-size: 18px; font-weight: 600; color: var(--text); }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-close, .panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover, .panel-close:hover { background: var(--bg); color: var(--text); }
.modal-body, .panel-body { padding: 16px 20px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.panel-footer {
  padding: 12px 20px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--surface);
}

.intro-header { padding: 24px 24px 16px; }
.intro-header h1 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; color: var(--text); }
.intro-sub { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px 16px; }
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.stat-num { display: block; font-size: 24px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-muted); }
.intro-tagline { text-align: center; font-size: 13px; color: var(--success); font-weight: 500; padding: 0 24px 16px; }
.modal-actions { display: flex; gap: 10px; padding: 0 24px 24px; flex-shrink: 0; }

.btn {
  min-height: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 12px; border-radius: var(--radius-md); }

.field-row { margin-bottom: 14px; }
.field-row label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.field-row.required label::after { content: ' *'; color: var(--accent); }
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-row textarea { min-height: 80px; resize: vertical; }
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs input { flex: 1; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-cta { font-size: 13px; margin: 12px 0; color: var(--text-muted); }
.form-cta a { color: var(--accent); }
.form-note { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

/* Form inline location search */
.form-search-wrap {
  position: relative;
  width: 100%;
}
.form-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}
.form-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.form-search-input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.form-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-search-clear[hidden] { display: none !important; }
.form-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: min(240px, 40vh);
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 500;
  padding: 4px;
}
.form-search-results .search-result {
  cursor: pointer;
  user-select: none;
}
.form-search-results .search-result:active {
  background: var(--surface-2);
}

.building-autocomplete-wrap {
  position: relative;
}
.building-suggestions-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.building-suggestions-hint[hidden] { display: none !important; }

/* Keep form location dropdowns above modal scroll clipping */
.modal-body .field-row:has(.form-search-wrap),
.modal-body .field-row:has(.building-autocomplete-wrap) {
  overflow: visible;
  position: relative;
  z-index: 1;
}
.modal-body .field-row:has(.form-search-wrap:focus-within) {
  z-index: 10;
}
.form-search-results[hidden] { display: none !important; }

.location-selected { margin-top: 8px; }
.location-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.location-chip-text { min-width: 0; flex: 1; }
.location-chip-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.location-chip-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.location-chip-change {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.location-chip-change:hover { background: rgba(249, 115, 22, 0.1); }

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}
.field-error[hidden] { display: none !important; }

.link-btn {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--accent-hover); }

.modal-actions.sticky-footer {
  position: sticky;
  bottom: 0;
  margin: 0 -20px -16px;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, var(--surface) 80%, transparent);
  border-top: 1px solid var(--border);
}

.chip-group { border: none; margin: 0 0 14px; padding: 0; min-width: 0; }
.chip-group legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text); padding: 0; float: left; width: 100%; }
.chip-group legend + * { clear: both; }
.chip {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 8px 14px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip:has(input:checked) {
  background: rgba(249, 115, 22, 0.18);
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.45);
}
.chip:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--text);
}
.chip:has(input:checked):hover {
  color: var(--accent-hover);
}
.field-row label.chip,
.chip-group label.chip {
  display: inline-flex;
  font-weight: 500;
  margin-bottom: 0;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.choice-cards { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.choice-card:hover { border-color: rgba(249, 115, 22, 0.45); background: var(--surface); }
.choice-icon { font-size: 24px; }
.choice-card strong { font-size: 15px; }
.choice-card span:last-child { font-size: 13px; color: var(--text-muted); }

.tab-bar { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.tab {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.detail-rent { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row span:first-child { color: var(--text-muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tag { padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.tag-gated { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.tag-nongated { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.tag-avbl { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.tag-seeker { background: rgba(8, 145, 178, 0.2); color: #67e8f9; }
.tag-external { background: rgba(37, 99, 235, 0.22); color: #93c5fd; }
.tag-yours { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.tag-flagged { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.tag-above { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }

.comments-section { margin-top: 20px; }
.comments-section h3 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.comment-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.comment-date { font-size: 11px; color: var(--text-muted); }
.rating-stars { display: flex; gap: 4px; margin: 8px 0; }
.rating-stars button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--border);
  min-width: 36px;
  min-height: 36px;
}
.rating-stars button.active { color: #f59e0b; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stats-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-md);
}
.stats-item .val { font-size: 20px; font-weight: 700; color: var(--accent); }
.stats-item .lbl { font-size: 11px; color: var(--text-muted); }
.stats-table { width: 100%; font-size: 13px; border-collapse: collapse; color: var(--text); }
.stats-table th, .stats-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border); }
.area-instruction { font-size: 14px; color: var(--text-muted); text-align: center; padding: 20px; }

.howto-content ol { padding-left: 20px; margin: 12px 0; }
.howto-content li { margin-bottom: 8px; font-size: 14px; color: var(--text); }
.howto-content p { font-size: 14px; margin-bottom: 8px; color: var(--text-muted); }

.toast {
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + 16px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  text-align: center;
}
@media (min-width: 768px) {
  .toast { bottom: 80px; }
}
.toast[hidden] { display: none; }

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.page-body {
  overflow: auto;
  height: auto;
  background: var(--bg);
  font-family: var(--font);
}
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin: 0 -20px 32px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.page-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.page-brand span:first-child { font-size: 18px; }
.page-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 13px;
}
.page-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}
.page-nav a:hover { background: var(--surface-2); color: var(--text); }
.page-nav a.is-active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
}
.page-wrap h1 { font-size: clamp(28px, 5vw, 36px); margin-bottom: 10px; color: var(--text); letter-spacing: -0.02em; }
.page-wrap h2 { font-size: 18px; margin: 0 0 12px; color: var(--text); font-weight: 600; }
.page-wrap p, .page-wrap li { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.page-wrap ul, .page-wrap ol { padding-left: 24px; margin-bottom: 16px; }
.page-wrap a { color: var(--accent); }
.page-header { border: none; padding: 0; margin-bottom: 32px; }
.page-header p { font-size: 16px; color: var(--text-muted); max-width: 52ch; margin: 0; }
.page-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
}
.page-section {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.page-section--flat { background: transparent; border: none; padding: 0; }
.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}
@media (min-width: 560px) {
  .about-cards { grid-template-columns: repeat(3, 1fr); }
}
.about-card {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.about-card-icon {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1;
}
.about-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.about-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.page-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.page-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-xl);
}
.page-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.12s;
}
.page-cta:hover { background: var(--accent-hover); color: #fff; }
.page-highlight {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(249, 115, 22, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}
.page-highlight p { margin: 0; font-size: 14px; color: var(--text); }
.page-meta { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.page-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-section ul li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.page-section ul li:last-child { border-bottom: none; }
.page-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.page-section ul li strong { color: var(--text); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.faq-item p { margin: 0; font-size: 14px; line-height: 1.55; }
.page-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.12s, background 0.12s;
}
.page-contact-email:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent-hover);
}
.page-form .field-row { margin-bottom: 14px; }
.page-form .field-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.page-form .field-row input,
.page-form .field-row textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
}
.page-form .field-row input:focus,
.page-form .field-row textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
}
.page-form-status {
  font-size: 13px;
  color: var(--success);
  margin-top: 10px;
  min-height: 1.2em;
}
.page-link-row { margin-top: 20px; font-size: 14px; }
.page-link-row a { text-decoration: none; }
.page-link-row a:hover { text-decoration: underline; }
.filter-advanced {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--surface-2);
}
.filter-advanced summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.filter-advanced .field-row { margin: 10px 0 0; }
.detail-source-section {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.detail-source-section h3 {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--text);
}
.detail-source-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* Listing questions + interest */
.listing-engagement {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.listing-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.listing-tab {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.listing-tab.is-active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.listing-tab-panel { display: none; }
.listing-tab-panel.is-active { display: block; }
.listing-section-title {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
}
.listing-section-note,
.listing-privacy-note,
.listing-owner-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.45;
}
.listing-comments-list { margin-bottom: 12px; }
.listing-comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.listing-comment-body { font-size: 14px; color: var(--text); line-height: 1.45; }
.listing-comment-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.listing-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.listing-empty.is-loading { font-style: italic; }
.listing-comment-form .field-row,
.listing-interest-form .field-row { margin-bottom: 10px; }
.listing-comment-form textarea,
.listing-interest-form textarea,
.listing-comment-form input,
.listing-interest-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.field-success {
  font-size: 12px;
  color: #86efac;
  margin: 0 0 10px;
}
.field-success[hidden] { display: none !important; }
.listing-owner-tools {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.listing-owner-warning {
  font-size: 12px;
  color: #fcd34d;
  margin: 0 0 10px;
}
.owner-inquiries-panel { margin-top: 10px; }
.owner-inquiry-item {
  padding: 12px;
  margin-bottom: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.owner-inquiry-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.owner-inquiry-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.owner-inquiry-row span:first-child { color: var(--text-muted); }
.owner-inquiry-message {
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.45;
}
.listing-sticky-cta {
  position: sticky;
  bottom: 0;
  margin: 16px -16px -8px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, var(--surface) 75%, transparent);
  border-top: 1px solid var(--border);
}
.listing-sticky-cta .btn { width: 100%; }
@media (min-width: 768px) {
  .listing-sticky-cta { display: none; }
  .listing-engagement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .listing-detail-tabs { display: none; }
  .listing-tab-panel {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
  }
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { color: var(--text); }

/* Seeker contact (lister → seeker) */
.seeker-engagement {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
@media (min-width: 768px) {
  .seeker-engagement {
    display: block;
    grid-template-columns: unset;
  }
}
.seeker-engagement-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}
.seeker-engagement-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.seeker-engagement-lead {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.seeker-engagement-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}
.seeker-engagement-empty {
  text-align: center;
  padding: 24px 18px;
}
.seeker-engagement-empty .seeker-engagement-title { margin-bottom: 8px; }
.seeker-privacy-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.22);
}
.seeker-privacy-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}
.seeker-privacy-callout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.seeker-contact-form .field-row { margin-bottom: 12px; }
.seeker-contact-form .field-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.seeker-contact-form .field-row.required label::after {
  content: ' *';
  color: var(--accent);
}
.seeker-select-wrap { position: relative; }
.seeker-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.seeker-contact-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.seeker-contact-form select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.seeker-source-preview {
  margin: -4px 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.seeker-source-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.seeker-source-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.seeker-source-dist {
  font-size: 11px;
  color: var(--text-muted);
}
.seeker-source-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seeker-source-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.seeker-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 12px;
}
@media (min-width: 480px) {
  .seeker-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .seeker-contact-grid .field-row { margin-bottom: 0; }
}
.seeker-contact-form input,
.seeker-contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.seeker-contact-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}
.seeker-contact-form input::placeholder,
.seeker-contact-form textarea::placeholder { color: rgba(168, 162, 158, 0.65); }
.seeker-contact-form input:focus,
.seeker-contact-form textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.seeker-form-footnote {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 4px 0 14px;
}
.seeker-contact-form .btn-primary {
  margin-top: 4px;
  min-height: 48px;
  font-size: 15px;
}
.seeker-engagement-owner .owner-inquiries-panel { margin-top: 14px; }

.advisor-loading { margin: 16px 0; color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.advisor-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.advisor-modal-overlay { backdrop-filter: blur(8px); background: rgba(0, 0, 0, 0.72); }
.advisor-modal { max-height: min(92vh, 900px); }
.advisor-modal-body { padding-bottom: calc(16px + var(--safe-bottom)); }
.advisor-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.45;
}
.advisor-error[hidden] { display: none !important; }
.field-row.has-error textarea,
.field-row.has-error input {
  border-color: var(--danger);
}
.advisor-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 4px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--surface) 85%, transparent);
  padding-bottom: 4px;
}
.advisor-form-actions .btn-primary { flex: 1; min-width: 140px; }
.advisor-results-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px; }
.advisor-results-header .advisor-summary { margin-top: 0; flex: 1; }
.advisor-stats-compact { grid-template-columns: 1fr; }
.advisor-mode-note { font-size: 12px; color: var(--text-muted); margin: 8px 0 16px; }
.advisor-summary { font-size: 15px; margin: 16px 0 8px; }
.advisor-disclaimer { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.advisor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
}
.advisor-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.advisor-card-header h3 { margin: 0; font-size: 16px; }
.advisor-score { font-weight: 700; color: var(--accent); white-space: nowrap; }
.advisor-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; margin-bottom: 12px; }
.advisor-stats dt { color: var(--text-muted); margin: 0; }
.advisor-stats dd { margin: 0; font-weight: 500; }
.advisor-why, .advisor-tradeoffs { font-size: 13px; margin-bottom: 10px; }
.advisor-why ul, .advisor-tradeoffs ul { margin: 4px 0 0; padding-left: 18px; }
.advisor-photo-note { font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.advisor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seeker-ai-helper { padding: 0 20px 8px; margin: 0; }

/* Area listings panel */
.area-listings-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 55vh;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  z-index: 600;
  display: flex;
  flex-direction: column;
}
.area-listings-panel[hidden] { display: none !important; }
.area-listings-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.area-listings-header h3 { margin: 0; font-size: 16px; }
.area-listings-list { overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.area-listing-card { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px; }
.area-listing-thumb { width: 88px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.area-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.area-listing-no-photo { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 11px; color: var(--text-muted); text-align: center; padding: 4px; }
.area-listing-rent { font-weight: 700; font-size: 15px; margin: 4px 0; }
.area-listing-meta { font-size: 12px; color: var(--text-muted); }
.area-listings-empty { font-size: 14px; color: var(--text-muted); }

/* Photo upload */
.photo-upload-label { font-weight: 600; margin: 0 0 4px; }
.photo-upload-helper, .photo-upload-warning { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; }
.photo-upload-badge { font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.photo-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 8px;
}
.photo-dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.photo-preview-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-item.is-cover { outline: 2px solid var(--accent); }
.photo-cover-badge { position: absolute; bottom: 4px; left: 4px; font-size: 10px; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; }
.photo-remove-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; }

/* Photo gallery */
.photo-gallery { margin: 12px 0; }
.photo-gallery-main { border-radius: var(--radius-md); overflow: hidden; max-height: 220px; }
.photo-gallery-main img { width: 100%; max-height: 220px; object-fit: cover; cursor: pointer; }
.photo-gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.photo-thumb { border: none; padding: 0; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-gallery-empty { font-size: 13px; color: var(--text-muted); padding: 12px; background: var(--surface-2); border-radius: var(--radius-md); margin: 8px 0; }
.photo-gallery-empty.is-loading { font-style: italic; }
.detail-photo-actions { margin: 8px 0 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.modal-photo-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 10, 11, 0.88);
  border-radius: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  padding: 24px;
}
.modal-photo-upload-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: photo-upload-spin 0.8s linear infinite;
}
@keyframes photo-upload-spin { to { transform: rotate(360deg); } }
.modal-photo-upload-failure {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.modal-photo-upload-failure-title { font-weight: 600; margin: 0 0 4px; color: #fca5a5; }
.modal-photo-upload-failure-msg { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.modal-photo-upload-failure-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-community-note, .photo-external-note { font-size: 12px; color: var(--text-muted); margin: 8px 0 4px; }
.photo-external-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
.tag-photos { background: #1e3a5f; color: #93c5fd; }
.tag-photos-btn {
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, transform 0.1s;
}
.tag-photos-btn:hover { background: #254670; color: #bfdbfe; }
.tag-photos-btn:active { transform: scale(0.98); }
.photo-fullscreen {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
}
.photo-fullscreen[hidden] { display: none !important; }
.photo-fullscreen img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
.photo-fullscreen-close { position: absolute; top: 16px; right: 16px; font-size: 28px; background: none; border: none; color: #fff; cursor: pointer; }
.photo-fullscreen-nav { position: absolute; bottom: 24px; display: flex; gap: 16px; }
.photo-fullscreen-nav button { font-size: 32px; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }

@media (min-width: 768px) {
  .area-listings-panel {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 380px;
    max-height: 70vh;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }
}

/* SEO pages + crawlable homepage content */
.seo-crawlable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.seo-page .page-header { margin-bottom: 24px; }
.seo-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 560px) {
  .seo-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.seo-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.seo-stat-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.seo-stat-value { display: block; font-size: 18px; font-weight: 700; color: var(--text); margin: 4px 0; }
.seo-stat-sub { font-size: 11px; color: var(--text-muted); }
.seo-updated { font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }
.seo-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.seo-section { margin-bottom: 28px; }
.seo-section h2 { font-size: 20px; margin-bottom: 10px; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seo-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--accent);
}
.seo-bhk-nav, .seo-locality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 20px;
  font-size: 14px;
}
.seo-bhk-nav a, .seo-locality-grid a { color: var(--accent); text-decoration: none; }
.seo-bhk-nav a:hover, .seo-locality-grid a:hover { text-decoration: underline; }
.seo-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .seo-pros-cons { grid-template-columns: 1fr 1fr; }
}
.seo-pros-cons h3 { font-size: 15px; margin-bottom: 8px; }
.seo-pros-cons ul { margin: 0; padding-left: 18px; }
.seo-faq-list { display: flex; flex-direction: column; gap: 8px; }
.seo-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 0 14px;
}
.seo-faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--text); }
.seo-faq-item p { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }
.seo-trend-list { list-style: none; padding: 0; margin: 0; }
.seo-trend-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.seo-locality-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .seo-locality-cards { grid-template-columns: repeat(2, 1fr); }
}
.seo-locality-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface-2);
}
.seo-locality-card h3 { margin: 0 0 6px; font-size: 16px; }
.seo-locality-card h3 a { color: var(--text); text-decoration: none; }
.seo-locality-card h3 a:hover { color: var(--accent); }
.seo-card-links { font-size: 13px; margin: 0; }
.seo-page-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.seo-footer-note { font-size: 12px; color: var(--text-muted); }
.seo-breadcrumb { font-size: 13px; margin: 0 0 16px; }
.seo-breadcrumb a { color: var(--accent); }
