/* ================================================================
   delhirent — style.css
   Design tokens → components → map overrides → utilities
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --green:       #2D6A4F;
  --green-hover: #1B4332;
  --green-tint:  #D8F3DC;
  --green-mid:   #74C69D;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --border:      #ccc;
  --radius-sm:   8px;
  --radius-md:   12px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --topbar-h:    52px;
}

/* ── Reset / Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a      { font-family: inherit; }

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.site-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.3px;
  user-select: none;
  position: relative;
  display: inline-block;
}
.site-name::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 50%, var(--green) 100%);
  background-size: 200% 100%;
  border-radius: 1px;
  animation: underline-shimmer 3s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes underline-shimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position:   0% 0; }
  100% { background-position: 100% 0; }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.how-to-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.how-to-link:hover { color: var(--text); }

.icon-btn {
  background: none;
  border: none;
  padding: 7px;
  border-radius: 6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--green-tint);
  color: var(--green);
}

/* ── Map ─────────────────────────────────────────────────────── */
#map {
  position: fixed;
  top: var(--topbar-h);
  inset: var(--topbar-h) 0 0 0;
}

/* Crosshair cursor in placement mode */
body.placement-mode #map { cursor: crosshair !important; }
body.placement-mode #map .leaflet-interactive { cursor: crosshair !important; }

/* ── Loading indicator ───────────────────────────────────────── */
.loading-indicator {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: #fff;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  display: none;
  white-space: nowrap;
}
.loading-indicator.visible { display: block; }

/* ── Placement banner ────────────────────────────────────────── */
.placement-banner {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: var(--green);
  color: #fff;
  padding: 10px 16px 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}
.placement-banner.visible { display: flex; }

.placement-cancel {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.placement-cancel:hover { background: rgba(255,255,255,0.35); }

/* ── FAB ─────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(45,106,79,0.4);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.fab:hover { background: var(--green-hover); }
.fab:active { transform: translateX(-50%) scale(0.97); }

body.placement-mode .fab {
  background: var(--green-hover);
  box-shadow: 0 4px 20px rgba(27,67,50,0.5);
}

/* ── Overlay ─────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Bottom sheet ────────────────────────────────────────────── */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  inset: auto 0 0 0;
  z-index: 1100;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.bottom-sheet.open { transform: translateY(0); }

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
  flex-shrink: 0;
}
.sheet-header h2 { font-size: 18px; font-weight: 500; }

.sheet-body {
  overflow-y: auto;
  padding: 12px 20px 40px;
  flex: 1;
  overscroll-behavior: contain;
}

/* ── Close button ────────────────────────────────────────────── */
.close-btn {
  background: none;
  border: none;
  font-size: 17px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.close-btn:hover { color: var(--text); background: #f5f5f5; }

/* ── Form groups ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.required { color: #e53e3e; margin-left: 2px; }
.optional  { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; }

/* ── Inputs ──────────────────────────────────────────────────── */
input[type="text"],
input[type="number"],
input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
input::placeholder { color: #aaa; }

.helper-text {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Select ──────────────────────────────────────────────────── */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

/* ── Pill groups ─────────────────────────────────────────────── */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  transition: all 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--green);
  color: var(--green);
}
.pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── Primary button ──────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
  margin-top: 8px;
}
.btn-primary:hover    { background: var(--green-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Filter panel ────────────────────────────────────────────── */
.filter-overlay { z-index: 1000; }

.filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: 320px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.filter-panel.open { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.panel-header h3 { font-size: 16px; font-weight: 500; }

.panel-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-inputs input { flex: 1; }
.range-inputs span { color: var(--text-muted); flex-shrink: 0; }

.clear-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-top: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.clear-link:hover { color: var(--text); background: #f5f5f5; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 { font-size: 16px; font-weight: 500; }

.modal-body { padding: 20px 24px; }
.modal-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.modal-body p:last-child { margin-bottom: 0; }
.modal-body strong { font-weight: 500; color: var(--text); }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 1400;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Leaflet popup overrides ─────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 280px !important;
  max-height: 70vh;
  overflow-y: auto;
}
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-close-button {
  font-size: 18px !important;
  color: var(--text-muted) !important;
  padding: 6px 10px !important;
  right: 2px !important;
  top: 2px !important;
}
.leaflet-popup-close-button:hover { color: var(--text) !important; }

/* ── Popup content ───────────────────────────────────────────── */
.popup-inner { padding: 16px; }

.popup-rent {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 3px;
}
.popup-society {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.popup-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: var(--green-tint);
  color: var(--green);
}
.popup-one-liner {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.55;
}

.popup-comparison {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.popup-comparison .cmp-label { color: var(--text-muted); margin-bottom: 3px; font-size: 12px; }
.popup-comparison .cmp-value { font-weight: 500; font-size: 14px; }

.price-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}
.price-badge.green { background: #d4edda; color: #155724; }
.price-badge.amber { background: #fff3cd; color: #856404; }
.price-badge.red   { background: #f8d7da; color: #721c24; }

.popup-ratings {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.stars { color: #f4a624; letter-spacing: 1px; }

.popup-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.popup-action {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s;
}
.popup-action:hover { color: var(--green-hover); text-decoration: underline; }

/* ── Rating form (inside popup) ──────────────────────────────── */
.rating-form {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 8px;
}
.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rating-row-label { font-size: 13px; color: var(--text-muted); }
.star-row {
  display: flex;
  gap: 3px;
}
.star-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #ddd;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}
.star-btn:hover,
.star-btn.lit { color: #f4a624; }
.star-btn:active { transform: scale(0.9); }

.rating-submit {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
.rating-submit:hover { background: var(--green-hover); }

/* ── Custom map pin markers ──────────────────────────────────── */
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
  position: relative;
  transition: transform 0.1s;
}
.pin-dot:hover { transform: scale(1.2); }

.pin-warn {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 10px;
  line-height: 1;
  background: #fff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Popup loading state ─────────────────────────────────────── */
.popup-loading {
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .fab { bottom: 24px; font-size: 14px; padding: 12px 22px; }
  .placement-banner { font-size: 13px; }
}

/* ================================================================
   Map controls — search bar + filter chips
   ================================================================ */
.map-controls {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: 420px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* allow map clicks to pass through the transparent gap areas */
  pointer-events: none;
}
.map-controls > * { pointer-events: all; }

/* ── Search bar ─────────────────────────────────────────────── */
.search-wrap { position: relative; width: 100%; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(45,106,79,0.08), 0 1px 3px rgba(0,0,0,0.06);
}

.search-icon { flex-shrink: 0; }

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  padding: 0;
  box-shadow: none !important;
  border-radius: 0;
  width: 100%;
}
.search-bar input::placeholder { color: #aaa; }
.search-bar input:focus { border-color: transparent; box-shadow: none !important; }

/* ── Search dropdown ────────────────────────────────────────── */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 10;
}
.search-dropdown.visible { display: block; }

.search-dropdown li {
  padding: 11px 16px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s;
}
.search-dropdown li:last-child { border-bottom: none; }
.search-dropdown li:hover { background: #f5f5f5; }

/* ── Filter chip bar ────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: #bbb; color: #333; }
.chip.active { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }

/* ── Filter FAB button (inside search bar) ──────────────────── */
.sb-divider {
  width: 1px;
  height: 20px;
  background: #e0e0e0;
  flex-shrink: 0;
}

.filter-fab {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.filter-fab:hover  { background: #f0f0f0; color: #333; }
.filter-fab.has-filters { color: #2D6A4F; }

.filter-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 14px;
  height: 14px;
  background: #2D6A4F;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* ── Filter panel (dropdown below search bar) ───────────────── */
.filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  padding: 16px;
  z-index: 25;
}
.filter-panel.visible { display: block; }

.fp-section { margin-bottom: 14px; }
.fp-section:last-child { margin-bottom: 0; }

.fp-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 8px;
}

.fp-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.fp-chip {
  padding: 6px 13px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.fp-chip:hover  { border-color: #bbb; color: #333; }
.fp-chip.active { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }

.fp-rent-row { display: flex; align-items: center; gap: 8px; }
.fp-rent-sep { color: #999; font-size: 13px; flex-shrink: 0; }
.fp-rent-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  background: #f9f9f9;
  color: var(--text);
  outline: none;
  box-shadow: none !important;
}
.fp-rent-input:focus { border-color: var(--green); }

.fp-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  align-items: center;
}
.fp-clear-btn {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.fp-clear-btn:hover { background: #f5f5f5; color: #333; }
.fp-apply-btn {
  flex: 2;
  padding: 9px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-apply-btn:hover { background: var(--green-hover); }

/* ── Rent range chip + popover ──────────────────────────────── */
.chip-rent-wrap { position: relative; flex-shrink: 0; }

.rent-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 14px;
  z-index: 20;
}
.rent-popover.visible { display: block; }

.rent-popover-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rent-popover-row input {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  background: #f9f9f9;
  color: var(--text);
  outline: none;
  box-shadow: none !important;
}
.rent-popover-row input:focus { border-color: var(--green); }
.rent-popover-row span { color: #999; font-size: 13px; flex-shrink: 0; }

.rent-apply-btn {
  width: 100%;
  padding: 9px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.rent-apply-btn:hover { background: var(--green-hover); }

/* ================================================================
   Pin modal — centered card (desktop) / bottom sheet (mobile)
   ================================================================ */
.pin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.pin-modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.pin-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

/* drag handle hidden on desktop */
.modal-drag-handle { display: none; }

.pin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.pin-modal-header h2 { font-size: 17px; font-weight: 500; color: #111; }

/* ── Modal form groups ──────────────────────────────────────── */
.mform-group { margin-bottom: 18px; }

.mform-label {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
}
.mform-optional { font-weight: 400; color: #999; }

.mform-input {
  width: 100%;
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.mform-input:focus { border-color: var(--green); box-shadow: none; }
.mform-input::placeholder { color: #aaa; }

.mform-select {
  width: 100%;
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 12px 36px 12px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mform-select:focus { border-color: var(--green); }

/* ── Option button rows ─────────────────────────────────────── */
.opt-row      { display: flex; flex-wrap: wrap;   gap: 8px; }
.opt-row-2    { flex-wrap: nowrap; }
.opt-row-3    { flex-wrap: nowrap; }

.opt-btn {
  flex: 1;
  padding: 10px 8px;
  background: #F5F5F5;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.opt-btn:hover { border-color: #bbb; }
.opt-btn.active {
  background: #D8F3DC;
  border-color: #2D6A4F;
  color: #1B4332;
}

/* ── Flatmate banner ────────────────────────────────────────── */
.flatmate-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #D8F3DC;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.flatmate-icon  { font-size: 20px; flex-shrink: 0; line-height: 1.3; }
.flatmate-title { font-size: 13px; font-weight: 600; color: #1B4332; margin-bottom: 2px; }
.flatmate-sub   { font-size: 12px; color: #555; }

/* ── Pin modal footer ───────────────────────────────────────── */
.pin-modal-footer { display: flex; gap: 10px; }

.btn-cancel {
  flex: 1;
  height: 48px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-cancel:hover { background: #f5f5f5; }

.btn-pin-it {
  flex: 1;
  height: 48px;
  background: var(--green);
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-pin-it:hover    { background: var(--green-hover); }
.btn-pin-it:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Temporary placement marker ─────────────────────────────── */
.temp-pin-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(45,106,79,0.5);
  animation: pulse-temp 1.4s ease-in-out infinite;
}
@keyframes pulse-temp {
  0%, 100% { transform: scale(1);    box-shadow: 0 2px 8px  rgba(45,106,79,0.45); }
  50%       { transform: scale(1.18); box-shadow: 0 4px 18px rgba(45,106,79,0.65); }
}

/* ================================================================
   Mobile overrides (≤ 640px)
   ================================================================ */
@media (max-width: 640px) {
  /* map controls full-width */
  .map-controls { width: 90vw; }

  /* pin modal → bottom sheet */
  .pin-modal-backdrop { align-items: flex-end; }

  .pin-modal-card {
    max-width: 100%;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    padding: 0 20px 32px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .pin-modal-backdrop.visible .pin-modal-card { transform: translateY(0); }

  .modal-drag-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 14px auto 0;
  }
  .pin-modal-header { padding-top: 16px; }
}

/* ================================================================
   Phase 2 — Overlay toggle buttons
   ================================================================ */
.overlay-btn.active {
  background: var(--green-tint);
  color: var(--green);
}

/* ── Area stats banner (reuses placement-banner style) ────── */
.area-stats-banner {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 850;
  background: var(--green);
  color: #fff;
  padding: 10px 16px 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}
.area-stats-banner.visible { display: flex; }

/* crosshair during area-stats drawing */
body.area-stats-mode #map                  { cursor: crosshair !important; }
body.area-stats-mode #map .leaflet-interactive { cursor: crosshair !important; }

/* ── Near-metro chip popover ─────────────────────────────── */
.chip-metro-wrap { position: relative; flex-shrink: 0; }

.metro-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 14px;
  z-index: 20;
}
.metro-popover.visible { display: block; }

.metro-pop-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.metro-dist-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.metro-dist-btn {
  flex: 1;
  padding: 6px 4px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.metro-dist-btn:hover  { border-color: #bbb; }
.metro-dist-btn.active { background: var(--green-tint); border-color: var(--green); color: var(--green); font-weight: 500; }

.metro-clear-btn {
  display: block;
  width: 100%;
  padding: 7px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 6px;
  text-align: center;
  transition: color 0.15s;
}
.metro-clear-btn:hover { color: var(--text); }

/* ── Metro station tooltip ───────────────────────────────── */
.metro-tooltip {
  background: rgba(20,20,20,0.82) !important;
  border: none !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.metro-tooltip::before { display: none !important; }

/* ================================================================
   Phase 2 — Bottom-left panel (Live stats + AQI legend)
   ================================================================ */
.bottom-left-panel {
  position: fixed;
  bottom: 32px;
  left: 20px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 220px;
}

/* ── Live stats pill ─────────────────────────────────────── */
.live-stats-pill {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  width: 100%;
}

.live-stats-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.live-stats-toggle:hover { background: #f8f8f8; }
.live-stats-toggle svg:first-child { color: var(--green); flex-shrink: 0; }

.live-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}
.live-stats-pill.expanded .live-chevron { transform: rotate(180deg); }

.live-stats-content {
  display: none;
  padding: 4px 14px 12px;
  border-top: 1px solid #f0f0f0;
}
.live-stats-pill.expanded .live-stats-content { display: block; }

.lstats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
  gap: 8px;
}
.lstats-row:last-child { border-bottom: none; }
.lstats-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.lstats-val   { font-size: 12px; font-weight: 500; color: var(--text); text-align: right; }
.lstats-loading { color: #bbb; }
.lstats-empty { font-size: 12px; color: var(--text-muted); padding: 4px 0; }

/* ================================================================
   Phase 2 — Area stats panel (slides from right)
   ================================================================ */
.area-stats-panel {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: 300px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.30s cubic-bezier(0.32, 0.72, 0, 1);
}
.area-stats-panel.open { transform: translateX(0); }

.area-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.area-panel-header h3 { font-size: 15px; font-weight: 500; }

.area-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.area-panel-footer {
  padding: 12px 20px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

/* toggle row */
.area-toggle-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.area-toggle-btn {
  flex: 1;
  padding: 7px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f5f5f5;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}
.area-toggle-btn:hover  { border-color: #bbb; }
.area-toggle-btn.active { background: var(--green-tint); border-color: var(--green); color: var(--green-hover); font-weight: 500; }

/* stats table */
.area-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.area-stats-table th {
  text-align: left;
  padding: 6px 4px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  font-size: 11px;
}
.area-stats-table td {
  padding: 8px 4px;
  color: var(--text);
  border-bottom: 1px solid #f8f8f8;
  white-space: nowrap;
}
.area-stats-table tbody tr:last-child td { border-bottom: none; }
.area-no-data {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 640px) {
  .area-stats-panel { width: 100%; }
  .bottom-left-panel { bottom: 24px; left: 12px; max-width: calc(100vw - 24px); }
  .live-stats-pill { border-radius: 14px; }
}

/* ================================================================
   SEARCH — two-line dropdown results
   ================================================================ */
.search-dropdown li {
  white-space: normal;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
}
.search-result-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-result-main {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-manual-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #2D6A4F;
  font-size: 13px;
  font-style: italic;
  cursor: pointer;
}

/* ── Preview pin (search result) ────────────────────────────── */
@keyframes pin-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(45,106,79,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(45,106,79,0); }
  100% { box-shadow: 0 0 0 0    rgba(45,106,79,0); }
}
.preview-pin {
  width: 16px;
  height: 16px;
  background: #2D6A4F;
  border: 2.5px solid #fff;
  border-radius: 50%;
  animation: pin-pulse 1.4s ease-out infinite;
}

/* ── Search confirm card ─────────────────────────────────────── */
.search-confirm-card {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.13);
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  min-height: 80px;
}
.search-confirm-card.visible {
  transform: translateY(0);
}
.scc-info {
  flex: 1;
  min-width: 0;
}
.scc-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scc-addr {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.scc-btn-pin {
  background: #2D6A4F;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.scc-btn-pin:hover { background: #245a42; }
.scc-btn-cancel {
  background: #fff;
  color: #555;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.scc-btn-cancel:hover { border-color: #bbb; color: #333; }
@media (max-width: 640px) {
  .search-confirm-card { padding: 14px 16px 22px; gap: 10px; }
  .scc-actions { flex-direction: row; }
}

/* ================================================================
   PIN PILLS  (individual markers)
   ================================================================ */

/* Wrapper centers the pill on the map point; badge floats above without
   displacing the anchor — position:relative contains the absolute badge */
.pin-pill-wrap {
  position: relative;
  display: inline-flex;
  transform: translate(-50%, -50%);
}

.pin-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1.5px solid #2D6A4F;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-family: Inter, sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  cursor: pointer;
}
.pin-pill:hover {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12), 0 2px 8px rgba(45,106,79,0.15);
}
.pin-pill--gated { background: #D8F3DC; }
.pin-pill--warn  { border-color: #D97706; }
.pp-bhk  { font-weight: 600; color: #2D6A4F; }
.pp-sep  { color: #bbb; }
.pp-rent { color: #444; }
.pin-pill--warn .pp-rent { color: #D97706; }

/* ── Available pin ─────────────────────────────────────────── */
.pin-avail-badge {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  background: #52B788;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.5;
  pointer-events: none;
}
.pin-pill--available {
  background: #1B4332;
  border-color: #1B4332;
}
.pin-pill--available .pp-bhk,
.pin-pill--available .pp-rent { color: #fff; }
.pin-pill--available .pp-sep  { color: rgba(255,255,255,0.45); }

/* one-shot pulse when owner marks a pin available */
@keyframes pin-avail-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(45,106,79,0.65); }
  60%  { box-shadow: 0 0 0 14px rgba(45,106,79,0); }
  100% { box-shadow: 0 0 0 0   rgba(45,106,79,0); }
}
.pin-pill--pulse { animation: pin-avail-pulse 0.7s ease-out; }

/* ================================================================
   CLUSTER PILLS
   ================================================================ */
.cluster-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  font-family: Inter, sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  cursor: pointer;
}
.cluster-pill:hover { border-color: #2D6A4F; }
.cp-count { font-weight: 500; color: #111; }
.cp-bhk   { color: #2D6A4F; font-weight: 500; }
.cp-rent  { color: #555; }
.cp-sep   { color: #ccc; }
.cp-avail { color: #52B788; font-size: 9px; font-weight: 700; margin-right: 1px; }
.cluster-pill--has-avail  { border-color: #1B4332; }
.cluster-pill--seekers    { border-color: #7c3aed; }
.cp-seekers               { color: #7c3aed; font-size: 10px; font-weight: 600; }

/* ================================================================
   PIN CARD (side / bottom panel)
   ================================================================ */
.pin-card {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.15);
  z-index: 1000;
  transform: translateX(calc(100% + 20px));
  transition: transform 0.2s ease;
  overflow: hidden;
}
.pin-card.visible { transform: translateX(0); }

.pin-card-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  z-index: 1;
}
.pin-card-close:hover { color: #555; }

.pin-card-body {
  padding: 16px 16px 18px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Card content elements */
.pc-loading { color: #aaa; font-size: 13px; padding: 8px 0; }
.pc-header  { padding-right: 24px; margin-bottom: 6px; }
.pc-society { font-size: 15px; font-weight: 600; color: #111; line-height: 1.3; }
.pc-bhk-line { font-size: 12px; color: #888; margin-top: 2px; }
.pc-rent { font-size: 26px; font-weight: 700; color: #111; margin-bottom: 8px; }
.pc-rent-unit { font-size: 14px; font-weight: 400; color: #666; }

.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.pc-tag {
  background: #D8F3DC;
  color: #1B4332;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
}

.pc-sep {
  border-top: 1px solid #f0f0f0;
  margin-top: 10px;
  padding-top: 10px;
}
.pc-one-liner { font-size: 13px; color: #555; font-style: italic; }
.pc-comp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
  gap: 8px;
}
.pc-cmp-green { color: #2D6A4F; font-weight: 600; }
.pc-cmp-amber { color: #D97706; font-weight: 600; }
.pc-cmp-red   { color: #DC2626; font-weight: 600; }

.pc-ratings { font-size: 12px; color: #555; }

.pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-action-btn {
  font-size: 13px;
  color: #2D6A4F;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
}
.pc-action-btn:hover { text-decoration: underline; }
.pc-action-sep { color: #ddd; font-size: 12px; user-select: none; }

/* Drag handle — visible on mobile only (hidden on desktop via display:none) */
.pin-card-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* mobile: slide up as bottom sheet */
@media (max-width: 640px) {
  .pin-card {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .pin-card.visible { transform: translateY(0); }
  .pin-card-body {
    max-height: 55vh;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
  .pin-card-handle { display: block; }

  /* bigger tap target for close button */
  .pin-card-close {
    padding: 12px;
    top: 4px;
    right: 4px;
  }

  /* lift FAB above the open card */
  body.pin-card-open .fab {
    bottom: calc(55vh + 28px);
  }
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}
.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #2D6A4F;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 14px;
  color: #2D6A4F;
  font-weight: 500;
  font-family: Inter, sans-serif;
}

/* ================================================================
   SEEKER MARKER
   ================================================================ */
.seeker-pill {
  display: inline-block;
  background: #fff;
  border: 2px dashed #7c3aed;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0,0,0,0.14);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.15s;
}
.seeker-pill:hover {
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}

/* ================================================================
   LIVE STATS — available badge
   ================================================================ */
.lstats-avail-badge {
  background: #52B788;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
  white-space: nowrap;
}

/* ================================================================
   FLAT HUNT BANNER
   ================================================================ */
.fh-banner {
  position: fixed;
  bottom: 98px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: #fff;
  border: 1.5px solid #2D6A4F;
  border-radius: 28px;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  transition: opacity 0.3s, transform 0.3s;
}
.fh-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}
.fh-banner-new {
  background: #52B788;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.fh-banner-text {
  font-size: 13px;
  font-weight: 500;
  color: #1B4332;
}
.fh-banner-cta {
  font-size: 13px;
  font-weight: 600;
  color: #2D6A4F;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  flex-shrink: 0;
}
.fh-banner-dismiss {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
}
.fh-banner-dismiss:hover { color: #888; background: #f5f5f5; }

/* ── Mini-FAB (after banner dismissed) ─────────────────────── */
.fh-mini-fab {
  position: fixed;
  bottom: 104px;
  left: 16px;
  z-index: 700;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1.5px solid #2D6A4F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 17px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}
.fh-mini-fab.visible { opacity: 1; pointer-events: all; }
.fh-mini-fab:hover { transform: scale(1.08); }

/* ================================================================
   FLAT HUNT MAIN MODAL
   ================================================================ */
.fh-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.fh-overlay.visible { opacity: 1; pointer-events: all; }

.fh-card {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  position: relative;
}
.fh-card-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 18px; color: #aaa;
  cursor: pointer; padding: 4px 6px;
  border-radius: 6px; line-height: 1;
}
.fh-card-close:hover { color: #555; background: #f5f5f5; }
.fh-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-bottom: 4px;
}
.fh-sub {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-bottom: 22px;
}
.fh-flow-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.fh-flow-btn {
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.fh-flow-btn:hover { border-color: #2D6A4F; background: #f7fdf9; }
.fh-flow-emoji { font-size: 26px; flex-shrink: 0; }
.fh-flow-title { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 2px; }
.fh-flow-desc  { font-size: 12px; color: #888; }
.fh-tagline {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
}
.fh-tagline a { color: #2D6A4F; text-decoration: none; }
.fh-tagline a:hover { text-decoration: underline; }

/* ================================================================
   EXPLAINER MODAL
   ================================================================ */
.fh-explainer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.fh-explainer-overlay.visible { opacity: 1; pointer-events: all; }
.fh-explainer-card {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}
.fh-explainer-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
}
.fh-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.fh-step { display: flex; gap: 12px; align-items: flex-start; }
.fh-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #D8F3DC;
  color: #1B4332;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fh-step-text { font-size: 14px; color: #444; line-height: 1.5; }
.fh-explainer-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-dont-show {
  background: none; border: none;
  color: #bbb; font-size: 13px;
  cursor: pointer; padding: 4px;
  font-family: inherit;
}
.btn-dont-show:hover { color: #777; }

/* ================================================================
   OWNER / SEEKER FORM (bottom sheet)
   ================================================================ */
.fh-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.fh-form-overlay.visible { opacity: 1; pointer-events: all; }

.fh-form-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
.fh-form-overlay.visible .fh-form-sheet { transform: translateY(0); }

.fh-form-handle {
  width: 36px; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.fh-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 4px;
  flex-shrink: 0;
}
.fh-form-header h3 { font-size: 18px; font-weight: 600; color: #111; }
.fh-form-body {
  overflow-y: auto;
  padding: 12px 20px 40px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* prefill notice */
.fh-prefill-notice {
  background: #D8F3DC;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1B4332;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* form groups inside fh forms reuse .mform-* from pin modal */

/* ================================================================
   SHARE PROMPT
   ================================================================ */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.share-overlay.visible { opacity: 1; pointer-events: all; }
.share-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}
.share-card-title { font-size: 17px; font-weight: 600; color: #111; margin-bottom: 6px; }
.share-card-sub   { font-size: 13px; color: #888; margin-bottom: 14px; }
.share-msg-box {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: #333;
  line-height: 1.55;
  margin-bottom: 16px;
}
.share-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: #25D366; color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.btn-wa:hover { background: #1fb85a; }
.btn-copy {
  width: 100%; padding: 10px;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px; color: #555;
  cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.btn-copy:hover { border-color: #2D6A4F; color: #2D6A4F; }
.btn-share-skip {
  width: 100%; padding: 6px;
  background: none; border: none;
  font-size: 13px; color: #bbb;
  cursor: pointer; font-family: inherit;
}
.btn-share-skip:hover { color: #777; }

/* ── Mobile tweaks for flat hunt UI ─────────────────────────── */
@media (max-width: 640px) {
  .fh-banner { bottom: 88px; }
  .fh-mini-fab { bottom: 88px; }
}

/* ================================================================
   OWNER PIN PICKER
   ================================================================ */
.owner-pin-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 280px;
  overflow-y: auto;
}
.owner-pin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.owner-pin-card:hover { border-color: #2D6A4F; background: #f7fdf9; }
.opc-society { font-size: 14px; font-weight: 600; color: #111; }
.opc-meta    { font-size: 12px; color: #666; }
.owner-pin-picker-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  text-align: center;
}
.owner-drop-new-btn {
  background: none;
  border: none;
  color: #2D6A4F;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.owner-drop-new-btn:hover { background: #f7fdf9; }

/* ================================================================
   DARK MODE ICON TOGGLE
   ================================================================ */
#darkModeBtn .icon-sun { display: none; }
[data-theme="dark"] #darkModeBtn .icon-moon { display: none; }
[data-theme="dark"] #darkModeBtn .icon-sun  { display: block; }

/* ================================================================
   DARK MODE OVERRIDES  (data-theme="dark" on <html>)
   ================================================================ */
[data-theme="dark"] body {
  background: #1a1a1a;
  color: #f0f0f0;
}

/* Topbar */
[data-theme="dark"] .topbar {
  background: rgba(20,20,20,0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
[data-theme="dark"] .site-name { color: #52b788; }
[data-theme="dark"] .how-to-link { color: #888; }
[data-theme="dark"] .how-to-link:hover { color: #ccc; }
[data-theme="dark"] .icon-btn { color: #888; }
[data-theme="dark"] .icon-btn:hover { background: #2a2a2a; color: #52b788; }
[data-theme="dark"] .overlay-btn.active { background: #1a3d2e; color: #52b788; }

/* Search */
[data-theme="dark"] .search-bar {
  background: #252525;
  border-color: #383838;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .search-bar input { color: #f0f0f0; }
[data-theme="dark"] .search-bar input::placeholder { color: #666; }
[data-theme="dark"] .search-dropdown {
  background: #252525;
  border-color: #383838;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
[data-theme="dark"] .search-dropdown li { color: #e0e0e0; border-color: #333; }
[data-theme="dark"] .search-dropdown li:hover { background: #2e2e2e; }
[data-theme="dark"] .search-result-main { color: #f0f0f0; }
[data-theme="dark"] .search-result-sub  { color: #777; }
[data-theme="dark"] .search-manual-drop { color: #52b788; }

/* Filter chips */
[data-theme="dark"] .chip {
  background: #252525;
  border-color: #383838;
  color: #aaa;
  box-shadow: none;
}
[data-theme="dark"] .chip:hover { border-color: #555; color: #e0e0e0; }
[data-theme="dark"] .chip.active { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }
[data-theme="dark"] .rent-popover,
[data-theme="dark"] .metro-popover {
  background: #252525;
  border-color: #383838;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
[data-theme="dark"] .rent-popover-row input { background: #2e2e2e; border-color: #444; color: #f0f0f0; }
[data-theme="dark"] .metro-pop-label { color: #888; }
[data-theme="dark"] .metro-dist-btn { background: #2e2e2e; border-color: #444; color: #aaa; }
[data-theme="dark"] .metro-dist-btn.active { background: #1a3d2e; border-color: #2D6A4F; color: #52b788; }

/* Pin modal */
[data-theme="dark"] .pin-modal-backdrop { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .pin-modal-card {
  background: #252525;
  color: #f0f0f0;
}
[data-theme="dark"] .pin-modal-header h2 { color: #f0f0f0; }
[data-theme="dark"] .mform-label { color: #e0e0e0; }
[data-theme="dark"] .mform-optional { color: #666; }
[data-theme="dark"] .mform-input, [data-theme="dark"] .mform-select {
  background: #2e2e2e;
  border-color: #444;
  color: #f0f0f0;
}
[data-theme="dark"] .mform-input::placeholder { color: #555; }
[data-theme="dark"] .opt-btn { background: #2e2e2e; border-color: #444; color: #ccc; }
[data-theme="dark"] .opt-btn:hover { border-color: #666; }
[data-theme="dark"] .opt-btn.active { background: #1a3d2e; border-color: #2D6A4F; color: #52b788; }
[data-theme="dark"] .flatmate-banner { background: #1a3d2e; }
[data-theme="dark"] .flatmate-title { color: #52b788; }
[data-theme="dark"] .flatmate-sub { color: #888; }
[data-theme="dark"] .btn-cancel { background: #2e2e2e; border-color: #444; color: #aaa; }
[data-theme="dark"] .btn-cancel:hover { background: #383838; }
[data-theme="dark"] .helper-text { color: #666; }
[data-theme="dark"] .select-wrap::after { border-top-color: #888; }

/* Pin card */
[data-theme="dark"] .pin-card { background: #252525; }
[data-theme="dark"] .pc-society { color: #f0f0f0; }
[data-theme="dark"] .pc-bhk-line { color: #888; }
[data-theme="dark"] .pc-rent { color: #f0f0f0; }
[data-theme="dark"] .pc-rent-unit { color: #888; }
[data-theme="dark"] .pc-tag { background: #1a3d2e; color: #52b788; }
[data-theme="dark"] .pc-one-liner { color: #888; }
[data-theme="dark"] .pc-comp { color: #888; border-top-color: #333; }
[data-theme="dark"] .pc-ratings { color: #888; border-top-color: #333; }
[data-theme="dark"] .pc-sep { border-top-color: #333; }
[data-theme="dark"] .pc-actions { border-top-color: #333; }
[data-theme="dark"] .pc-action-sep { color: #444; }
[data-theme="dark"] .pin-card-close { color: #666; }
[data-theme="dark"] .pin-card-close:hover { color: #ccc; }
[data-theme="dark"] .pin-card-handle { background: #444; }
[data-theme="dark"] .pc-loading { color: #666; }

/* Live stats */
[data-theme="dark"] .live-stats-pill { background: #252525; border-color: #383838; }
[data-theme="dark"] .live-stats-toggle { color: #e0e0e0; }
[data-theme="dark"] .live-stats-toggle:hover { background: #2e2e2e; }
[data-theme="dark"] .live-chevron { color: #666; }
[data-theme="dark"] .live-stats-content { border-top-color: #333; }
[data-theme="dark"] .lstats-label { color: #777; }
[data-theme="dark"] .lstats-val   { color: #e0e0e0; }
[data-theme="dark"] .lstats-row   { border-bottom-color: #2e2e2e; }
[data-theme="dark"] .lstats-empty { color: #666; }

/* Area stats panel */
[data-theme="dark"] .area-stats-panel { background: #252525; }
[data-theme="dark"] .area-panel-header { border-bottom-color: #333; }
[data-theme="dark"] .area-panel-header h3 { color: #f0f0f0; }
[data-theme="dark"] .area-panel-footer { border-top-color: #333; }
[data-theme="dark"] .area-toggle-btn { background: #2e2e2e; border-color: #444; color: #aaa; }
[data-theme="dark"] .area-toggle-btn.active { background: #1a3d2e; border-color: #2D6A4F; color: #52b788; }
[data-theme="dark"] .area-stats-table th { color: #666; border-bottom-color: #333; }
[data-theme="dark"] .area-stats-table td { color: #e0e0e0; border-bottom-color: #2e2e2e; }
[data-theme="dark"] .area-no-data { color: #666; }
[data-theme="dark"] .clear-link { color: #666; }
[data-theme="dark"] .clear-link:hover { color: #aaa; background: #2e2e2e; }

/* How to modal */
[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .modal { background: #252525; }
[data-theme="dark"] .modal-header { border-bottom-color: #333; }
[data-theme="dark"] .modal-header h3 { color: #f0f0f0; }
[data-theme="dark"] .modal-body p { color: #aaa; }
[data-theme="dark"] .modal-body strong { color: #e0e0e0; }
[data-theme="dark"] .close-btn { color: #666; }
[data-theme="dark"] .close-btn:hover { color: #ccc; background: #2e2e2e; }

/* Flat hunt overlays */
[data-theme="dark"] .fh-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .fh-card { background: #252525; }
[data-theme="dark"] .fh-card-close { color: #666; }
[data-theme="dark"] .fh-card-close:hover { color: #ccc; background: #2e2e2e; }
[data-theme="dark"] .fh-title { color: #f0f0f0; }
[data-theme="dark"] .fh-sub   { color: #666; }
[data-theme="dark"] .fh-flow-btn { border-color: #383838; background: #252525; }
[data-theme="dark"] .fh-flow-btn:hover { border-color: #2D6A4F; background: #1a3d2e; }
[data-theme="dark"] .fh-flow-title { color: #f0f0f0; }
[data-theme="dark"] .fh-flow-desc  { color: #777; }
[data-theme="dark"] .fh-tagline { color: #666; }
[data-theme="dark"] .fh-explainer-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .fh-explainer-card { background: #252525; }
[data-theme="dark"] .fh-explainer-title { color: #f0f0f0; }
[data-theme="dark"] .fh-step-num { background: #1a3d2e; color: #52b788; }
[data-theme="dark"] .fh-step-text { color: #aaa; }
[data-theme="dark"] .btn-dont-show { color: #555; }
[data-theme="dark"] .btn-dont-show:hover { color: #999; }
[data-theme="dark"] .fh-form-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .fh-form-sheet { background: #252525; }
[data-theme="dark"] .fh-form-handle { background: #444; }
[data-theme="dark"] .fh-form-header { border-bottom-color: #333; }
[data-theme="dark"] .fh-form-header h3 { color: #f0f0f0; }
[data-theme="dark"] .fh-prefill-notice { background: #1a3d2e; color: #52b788; }

/* Owner pin picker */
[data-theme="dark"] .owner-pin-card { border-color: #383838; background: #252525; }
[data-theme="dark"] .owner-pin-card:hover { border-color: #2D6A4F; background: #1a3d2e; }
[data-theme="dark"] .opc-society { color: #f0f0f0; }
[data-theme="dark"] .opc-meta    { color: #777; }
[data-theme="dark"] .owner-pin-picker-footer { border-top-color: #333; }
[data-theme="dark"] .owner-drop-new-btn { color: #52b788; }
[data-theme="dark"] .owner-drop-new-btn:hover { background: #1a3d2e; }

/* Share prompt */
[data-theme="dark"] .share-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .share-card { background: #252525; }
[data-theme="dark"] .share-card-title { color: #f0f0f0; }
[data-theme="dark"] .share-card-sub   { color: #777; }
[data-theme="dark"] .share-msg-box { background: #2e2e2e; border-color: #444; color: #ccc; }
[data-theme="dark"] .btn-copy { border-color: #444; color: #aaa; }
[data-theme="dark"] .btn-copy:hover { border-color: #2D6A4F; color: #52b788; }
[data-theme="dark"] .btn-share-skip { color: #555; }

/* Flat hunt banner */
[data-theme="dark"] .fh-banner { background: #252525; border-color: #2D6A4F; }
[data-theme="dark"] .fh-banner-text { color: #52b788; }
[data-theme="dark"] .fh-mini-fab { background: #252525; border-color: #2D6A4F; }

/* Search confirm card */
[data-theme="dark"] .search-confirm-card { background: #252525; }
[data-theme="dark"] .scc-name { color: #f0f0f0; }
[data-theme="dark"] .scc-addr { color: #777; }

/* Loading overlay */
[data-theme="dark"] .loading-overlay { background: rgba(26,26,26,0.96); }
[data-theme="dark"] .loading-text { color: #52b788; }
[data-theme="dark"] .loading-spinner { border-color: #333; border-top-color: #52b788; }

/* Placement / area stats banners stay green — fine in dark mode */

/* Pin pills — dark mode */
[data-theme="dark"] .pin-pill {
  background: #2a2a2a;
  border-color: #2D6A4F;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
[data-theme="dark"] .pp-bhk  { color: #52b788; }
[data-theme="dark"] .pp-sep  { color: #444; }
[data-theme="dark"] .pp-rent { color: #ccc; }
[data-theme="dark"] .pin-pill--gated { background: #1a3d2e; }
[data-theme="dark"] .pin-pill--warn  { border-color: #D97706; }
[data-theme="dark"] .pin-pill--warn .pp-rent { color: #D97706; }
[data-theme="dark"] .pin-pill--available {
  background: #1B4332;
  border-color: #52b788;
  box-shadow: 0 0 12px rgba(82,183,136,0.35);
}
[data-theme="dark"] .pin-pill--available .pp-bhk,
[data-theme="dark"] .pin-pill--available .pp-rent { color: #fff; }

/* Cluster pills — dark mode */
[data-theme="dark"] .cluster-pill {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
[data-theme="dark"] .cluster-pill:hover { border-color: #2D6A4F; }
[data-theme="dark"] .cp-count { color: #e0e0e0; }
[data-theme="dark"] .cp-bhk   { color: #52b788; }
[data-theme="dark"] .cp-rent  { color: #aaa; }
[data-theme="dark"] .cp-sep   { color: #444; }
[data-theme="dark"] .cluster-pill--has-avail { border-color: #52b788; }
[data-theme="dark"] .cluster-pill--seekers   { border-color: #7c3aed; }

/* Seeker pill — dark mode */
[data-theme="dark"] .seeker-pill {
  background: #2a2a2a;
  color: #a78bfa;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Filter FAB + panel — dark mode */
[data-theme="dark"] .sb-divider        { background: #3a3a3a; }
[data-theme="dark"] .filter-fab        { color: #888; }
[data-theme="dark"] .filter-fab:hover  { background: #2a2a2a; color: #e0e0e0; }
[data-theme="dark"] .filter-fab.has-filters { color: #52b788; }
[data-theme="dark"] .filter-panel {
  background: #1e1e1e;
  border-color: #3a3a3a;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] .fp-label { color: #666; }
[data-theme="dark"] .fp-chip  { background: #2a2a2a; border-color: #3a3a3a; color: #ccc; }
[data-theme="dark"] .fp-chip:hover   { border-color: #555; color: #e0e0e0; }
[data-theme="dark"] .fp-chip.active  { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }
[data-theme="dark"] .fp-rent-input   { background: #2a2a2a; border-color: #3a3a3a; color: #e0e0e0; }
[data-theme="dark"] .fp-footer       { border-color: #333; }
[data-theme="dark"] .fp-clear-btn    { color: #888; }
[data-theme="dark"] .fp-clear-btn:hover { background: #2a2a2a; color: #e0e0e0; }