@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --brand-primary-1: #000000;
  --brand-primary-2: #111111;
  --brand-primary-rgb: 0, 0, 0;
  --brand-accent: #1f7ea8;
  --brand-accent-2: #2f94bf;
  --bg: #f6f3ea;
  --panel: #fffdf8;
  --panel-2: #f4efe6;
  --menu-card-bg: #ffffff;
  --menu-card-alt: #f7f9fc;
  --menu-border: rgba(16, 34, 58, 0.12);
  --menu-accent: var(--brand-primary-1);
  --menu-accent-soft: rgba(var(--brand-primary-rgb), 0.12);
  --ink: #0f2239;
  --ink-soft: #4a5f7f;
  --brand: var(--brand-primary-1);
  --brand-2: #f18b2b;
  --ok: #157347;
  --warn: #c75b12;
  --shadow: 0 20px 45px rgba(10, 28, 45, 0.14);
  --radius: 14px;
  --rail-width: 72px;
  --sidebar-width-expanded: 440px;
  --map-tile-filter: none;
  --search-overlay-bg: rgba(12, 18, 24, 0.34);
  --search-sheet-bg: rgba(244, 246, 247, 0.96);
  --search-sheet-border: rgba(255, 255, 255, 0.62);
  --search-sheet-shadow-a: rgba(5, 30, 45, 0.2);
  --search-sheet-shadow-b: rgba(var(--brand-primary-rgb), 0.26);
  --search-sheet-shadow-c: rgba(var(--brand-primary-rgb), 0.08);
  --search-title-color: var(--brand-primary-1);
  --search-subtitle-color: var(--ink-soft);
  --search-close-color: #7c8792;
  --search-input-bg: #ecf0f3;
  --search-input-text: #334559;
  --search-input-focus-bg: #f7fafc;
  --search-input-focus-border: rgba(var(--brand-primary-rgb), 0.24);
  --search-pill-bg: #d6e2ef;
  --search-pill-text: #486175;
  --search-pill-active-bg: var(--brand-primary-1);
  --search-pill-active-text: #ffffff;
  --search-range-card-bg: #f2f5f7;
  --search-range-card-border: rgba(130, 145, 156, 0.12);
  --search-range-meta: #8a99a7;
  --search-amenity-bg: #edf2f5;
  --search-amenity-border: rgba(var(--brand-primary-rgb), 0.18);
  --search-amenity-text: var(--brand-primary-1);
  --search-footer-bg: #e7ecef;
  --search-footer-border: rgba(109, 124, 136, 0.12);
  --search-footer-link: #5a6d7e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.app-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 139, 43, 0.18), transparent 32%),
    radial-gradient(circle at 100% 10%, rgba(var(--brand-primary-rgb), 0.16), transparent 34%),
    var(--bg);
}

.sidebar {
  height: 100%;
  width: var(--sidebar-width-expanded);
  display: flex;
  border-right: 1px solid rgba(16, 34, 58, 0.12);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: width 220ms ease;
  z-index: 850;
}

.sidebar.collapsed {
  width: var(--rail-width);
}

.sidebar-rail {
  width: var(--rail-width);
  height: 100%;
  padding: 10px 8px;
  border-right: 1px solid rgba(16, 34, 58, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.rail-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: rgba(var(--brand-primary-rgb), 0.1);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.rail-btn:hover {
  transform: translateY(-1px);
  background: rgba(var(--brand-primary-rgb), 0.18);
}

.rail-btn-active {
  background: linear-gradient(140deg, var(--brand-primary-1), var(--brand-primary-2));
  color: #fff;
}

.rail-btn-toggle {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  background: linear-gradient(120deg, var(--brand-2), #de6f0f);
  color: #fff;
  font-size: 1.35rem;
}

.sidebar-panel {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  overflow: hidden;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar.collapsed .sidebar-panel {
  opacity: 0;
  transform: translateX(-8px);
  width: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar-header {
  display: grid;
  gap: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  letter-spacing: 0.01em;
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
}

.status-pill {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(16, 34, 58, 0.2);
  background: var(--panel);
}

.status-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.telemetry-pill {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid rgba(16, 34, 58, 0.2);
  background: var(--panel);
  color: var(--ink-soft);
}

.telemetry-low {
  color: #0f7a3c;
  border-color: rgba(15, 122, 60, 0.35);
}

.telemetry-medium {
  color: #b86a12;
  border-color: rgba(184, 106, 18, 0.38);
}

.telemetry-high {
  color: #922525;
  border-color: rgba(146, 37, 37, 0.38);
}

.telemetry-unknown {
  color: var(--ink-soft);
}

.status-loading {
  color: var(--warn);
  border-color: rgba(199, 91, 18, 0.35);
}

.status-ok {
  color: var(--ok);
  border-color: rgba(21, 115, 71, 0.35);
}

.status-error {
  color: #8d1f1f;
  border-color: rgba(141, 31, 31, 0.35);
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(16, 34, 58, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  padding: 10px;
}

.toolbar label {
  display: grid;
  gap: 5px;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--ink-soft);
  font-weight: 700;
}

.toolbar input,
.toolbar select,
.toolbar button {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(16, 34, 58, 0.22);
  padding: 0 9px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.toolbar button {
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
}

.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.sidebar-hidden-data {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stats article,
.card {
  background: var(--menu-card-bg);
  border: 1px solid var(--menu-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats article {
  padding: 9px;
}

.stats h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1.55rem;
}

.stats p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.card {
  padding: 10px;
}

.card h3 {
  margin: 0 0 6px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 0.98rem;
}

.muted {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.density-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.density-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.density-legend strong {
  color: var(--ink);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(16, 34, 58, 0.26);
}

.analytics-list {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
}

.analytics-list dt {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.analytics-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.listing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 36vh;
  overflow: auto;
}

.listing-list li {
  border: 1px solid rgba(16, 34, 58, 0.1);
  border-radius: 10px;
  padding: 8px;
  background: var(--panel-2);
}

.listing-list h4 {
  margin: 0 0 3px;
  font-size: 0.9rem;
}

.listing-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.listing-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 4px;
}

.listing-meta {
  font-weight: 700;
}

.listing-submeta {
  margin-top: 3px;
}

.price-pill {
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.map-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.leaflet-pane,
.leaflet-tile-pane,
.leaflet-layer,
.leaflet-tile {
  filter: var(--map-tile-filter) !important;
  opacity: 1 !important;
}

.search-fab {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 960;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
  box-shadow: 0 12px 26px rgba(10, 28, 45, 0.32);
  cursor: pointer;
}

.search-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 950;
  background: var(--search-overlay-bg);
  backdrop-filter: blur(4px);
}

#settings-sheet-backdrop {
  background: rgba(3, 7, 12, 0.08);
  backdrop-filter: blur(1px);
}

.search-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 120%);
  width: min(760px, calc(100vw - 156px));
  z-index: 960;
  max-height: min(92vh, 760px);
  overflow: auto;
  background: var(--search-sheet-bg);
  border: 1px solid var(--search-sheet-border);
  border-radius: 24px;
  box-shadow:
    0 24px 38px var(--search-sheet-shadow-a),
    0 20px 0 var(--search-sheet-shadow-b),
    0 0 0 2px var(--search-sheet-shadow-c);
  padding: 26px 24px 24px;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.search-sheet.open {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.search-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-sheet-header h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--search-title-color);
}

.sheet-subtitle {
  margin: 6px 0 0;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--search-subtitle-color);
}

.sheet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-sheet-close {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--search-close-color);
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.apply-results-btn {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary-1), var(--brand-primary-2));
  color: #fff;
  min-width: 120px;
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.32);
}

.search-modal-section {
  margin-top: 24px;
}

.search-modal-label {
  margin: 0 0 12px;
  color: var(--search-subtitle-color);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.search-modal-grid {
  display: grid;
  gap: 14px;
}

.search-modal-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-modal-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search-modal-grid-1 {
  grid-template-columns: 1fr;
}

.search-property-type-block {
  margin-top: 10px;
}

.search-modal-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.search-modal-grid input,
.search-modal-grid select {
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--search-input-bg);
  color: var(--search-input-text);
  padding: 0 12px;
  font: inherit;
}

.search-modal-grid input:focus,
.search-modal-grid select:focus {
  outline: none;
  border-color: var(--search-input-focus-border);
  background: var(--search-input-focus-bg);
}

.segmented-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.segmented-pills .pill {
  border: none;
  border-radius: 999px;
  background: var(--search-pill-bg);
  color: var(--search-pill-text);
  padding: 6px 15px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.segmented-pills .pill.active {
  background: var(--search-pill-active-bg);
  color: var(--search-pill-active-text);
}

.segmented-pills .pill.disabled-pill {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-modal-ranges {
  margin-top: 12px;
}

.range-card {
  border-radius: 12px;
  background: var(--search-range-card-bg);
  border: 1px solid var(--search-range-card-border);
  padding: 12px 12px 10px;
}

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.range-head strong {
  font-size: 0.68rem;
  color: #5c6f7e;
  letter-spacing: 0.01em;
}

.range-head span {
  font-size: 0.68rem;
  color: var(--brand-primary-1);
  font-weight: 800;
}

.range-track {
  position: relative;
  height: 16px;
  margin: 8px 2px 5px;
}

.range-line {
  position: absolute;
  left: 14%;
  right: 20%;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-primary-1);
  transform: translateY(-50%);
}

.range-dot {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--brand-primary-1);
  transform: translate(-50%, -50%);
}

.range-dot-left {
  left: 14%;
}

.range-dot-right {
  right: 20%;
  transform: translate(50%, -50%);
}

.range-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.range-meta em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--search-range-meta);
  font-weight: 700;
}

.range-inputs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range-inputs input {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--search-input-focus-border);
  background: var(--search-input-focus-bg);
  color: var(--search-input-text);
  padding: 0 10px;
  font-size: 0.74rem;
}

.amenity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amenity-pill {
  border: 1px solid var(--search-amenity-border);
  border-radius: 999px;
  background: var(--search-amenity-bg);
  color: var(--search-amenity-text);
  padding: 6px 11px;
  font-weight: 700;
  font-size: 0.68rem;
  cursor: pointer;
}

.amenity-pill.active {
  background: var(--brand-primary-1);
  border-color: var(--brand-primary-1);
  color: #fff;
}

.search-sheet-footer {
  margin: 24px -24px -24px;
  padding: 16px 24px 18px;
  background: var(--search-footer-bg);
  border-top: 1px solid var(--search-footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 0 0 24px 24px;
}

.search-reset-btn,
.search-cancel-btn {
  border: none;
  background: transparent;
  color: var(--search-footer-link);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#map {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #e9eff5, #f6f2e9);
}

.map-hover-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(860px, calc(100vw - 120px));
  z-index: 940;
  pointer-events: auto;
}

.hover-card {
  width: 100%;
  border: 1px solid var(--menu-border);
  background: var(--menu-card-bg);
}

.map-hover-kicker {
  margin: 0 0 4px;
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5d7390;
  font-weight: 700;
}

.mega-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
  align-items: start;
}

.mega-overview-info {
  display: grid;
  gap: 4px;
}

.mega-overview-listings {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.zone-metrics {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.zone-metrics div {
  background: var(--menu-card-alt);
  border: 1px solid rgba(16, 34, 58, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
}

.zone-metrics dt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.zone-metrics dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
}

.mini-title {
  margin: 10px 0 4px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hover-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--ink);
}

.hover-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

#hover-zone-stats {
  margin-top: 4px;
  font-weight: 700;
}

.hover-top-zones {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.hover-top-zones li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: var(--menu-card-alt);
  border: 1px solid rgba(16, 34, 58, 0.08);
  border-radius: 8px;
  padding: 4px 6px;
}

.hover-top-zones strong {
  color: var(--ink);
}

.listing-list-rich {
  max-height: 28vh;
  padding-right: 2px;
}

.listing-list-rich li {
  background: var(--menu-card-alt);
}

.listing-item-btn {
  width: 100%;
  border: 1px solid rgba(16, 34, 58, 0.12);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 8px;
  cursor: pointer;
}

.listing-item-btn:hover {
  border-color: rgba(24, 127, 168, 0.56);
  box-shadow: 0 6px 16px rgba(14, 35, 53, 0.14);
}

.property-detail-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100% - 24px);
  z-index: 980;
  border: 1px solid rgba(16, 34, 58, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 30px rgba(10, 28, 45, 0.28);
  overflow: hidden;
}

.property-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 34, 58, 0.1);
  background: linear-gradient(140deg, rgba(22, 66, 98, 0.08), rgba(23, 114, 125, 0.05));
}

.detail-kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  font-weight: 800;
}

.property-detail-close {
  border: 1px solid rgba(16, 34, 58, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 700;
  cursor: pointer;
}

.property-detail-body {
  padding: 10px 12px 12px;
  overflow: auto;
  max-height: calc(100vh - 150px);
}

.property-detail-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.property-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.property-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}

.property-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(16, 34, 58, 0.15);
  background: #fff;
  color: var(--ink);
}

.property-badge-sale {
  background: rgba(16, 185, 129, 0.12);
}

.property-badge-rent {
  background: rgba(59, 130, 246, 0.12);
}

.property-detail-summary .field {
  border: 1px solid rgba(16, 34, 58, 0.08);
  border-radius: 10px;
  background: var(--menu-card-alt);
  padding: 6px 8px;
}

.property-detail-summary .field dt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.property-detail-summary .field dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  word-break: break-word;
}

.property-detail-links {
  margin-bottom: 8px;
}

.property-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand), #1c88a8);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.76rem;
}

.property-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.property-chip {
  border: 1px solid rgba(16, 34, 58, 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  background: #fff;
  color: var(--ink);
}

.property-detail-description {
  margin: 8px 0 10px;
  border: 1px solid rgba(16, 34, 58, 0.1);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--ink);
  max-height: 120px;
  overflow: auto;
}

.property-debug {
  margin-top: 8px;
}

.property-debug summary {
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--ink-soft);
  user-select: none;
}

.property-detail-json {
  margin: 6px 0 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 34, 58, 0.12);
  background: #0d1f31;
  color: #d7e7f3;
  font-size: 0.72rem;
  line-height: 1.38;
  max-height: 34vh;
  overflow: auto;
}

.legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(16, 34, 58, 0.82);
  color: #f2f7fb;
  backdrop-filter: blur(6px);
  z-index: 900;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-sector {
  background: #64748b;
}

.legend-point {
  background: var(--brand);
}

.map-error {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(141, 31, 31, 0.9);
  color: #fff;
  font-size: 0.85rem;
  z-index: 1000;
}

.leaflet-tooltip.sector-hover-tooltip {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34);
  font-size: 0.78rem;
  line-height: 1.28;
}

.leaflet-tooltip.sector-hover-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.92);
}

.hidden {
  display: none;
}

/* Stitch-style Home + Hover Menu overrides */
.app-shell {
  background: #edf1f3;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.sidebar {
  width: 96px;
  min-width: 96px;
  background: #f8fafc;
  border-right: none;
  box-shadow: none;
  transition: none;
}

.sidebar.collapsed {
  width: 96px;
  min-width: 96px;
}

.sidebar-rail {
  width: 100%;
  height: 100%;
  padding: 20px 0 14px;
  align-items: center;
  justify-content: space-between;
  border-right: none;
  gap: 18px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.editorial-brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-decoration: none;
  border-bottom: 0;
}

.brand-mark:hover,
.brand-mark:focus,
.brand-mark:visited {
  text-decoration: none;
  border-bottom: 0;
}

.brand-mark-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.brand-title {
  margin: 0;
  color: var(--brand-primary-1);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  line-height: 1;
  text-align: center;
}

.brand-subtitle {
  margin: 0;
  color: #8694a4;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-align: center;
}

.sidebar-toggle-btn {
  display: none;
}

.rail-spacer {
  flex: 1;
}

#search-sheet-toggle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--brand-primary-1), var(--brand-primary-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.28);
  border: none;
}

.rail-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: #7f8c99;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.rail-btn-wide .nav-icon {
  width: auto;
  text-align: center;
  font-size: 1.3rem;
}

.rail-btn-wide .nav-label {
  display: none;
}

.rail-btn:hover {
  background: #eef2f6;
  border-color: transparent;
  transform: none;
}

.rail-btn[data-tooltip],
.sidebar-avatar[data-tooltip] {
  position: relative;
}

.rail-btn[data-tooltip]::after,
.sidebar-avatar[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9, 15, 22, 0.96);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1200;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.rail-btn[data-tooltip]:hover::after,
.sidebar-avatar[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

.rail-btn-active {
  background: rgba(var(--brand-primary-rgb), 0.12);
  color: var(--brand-primary-1);
  border-color: transparent;
}

.rail-btn-ghost {
  opacity: 1;
}

.new-search-btn {
  display: none;
}

.sidebar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2em;
  height: 3.2em;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb), 0.28);
  cursor: pointer;
  text-decoration: none;
}

.sidebar-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.sidebar-panel {
  display: none;
}

#map {
  background: radial-gradient(circle at 80% 80%, rgba(var(--brand-primary-rgb), 0.42), rgba(35, 70, 94, 0.86));
}

.map-hover-panel {
  width: min(800px, calc(100vw - 330px));
  z-index: 960;
}

.hover-card {
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 22px 40px rgba(9, 28, 43, 0.26);
}

.mega-overview {
  gap: 0;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
}

.mega-overview-info {
  background: linear-gradient(160deg, var(--brand-primary-1), var(--brand-primary-2));
  padding: 22px 22px 18px;
  color: #e7f5fa;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.zone-tag {
  margin: 0 0 10px;
  color: rgba(220, 245, 252, 0.78);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
}

.mega-overview-info h3 {
  color: #fff;
  font-size: clamp(2.35rem, 3.3vw, 3.45rem);
  line-height: 0.98;
  margin: 0 0 8px;
}

#hover-zone-meta,
#hover-zone-stats {
  color: rgba(231, 245, 250, 0.9);
  font-size: 0.88rem;
  max-width: 95%;
}

.zone-metrics div {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.zone-metrics dt {
  color: rgba(229, 247, 253, 0.6);
  font-size: 0.64rem;
}

.zone-metrics dd {
  color: #fff;
  font-size: 1.06rem;
}

.zone-analysis-btn {
  margin-top: auto;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #f4f8fb;
  color: #12667d;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.mega-overview-listings {
  background: #eef2f4;
  padding: 18px 18px 14px;
}

.mini-title {
  margin: 0 0 8px;
  color: #6e7d8f;
}

.listing-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mini-title-top {
  margin-bottom: 2px;
  font-size: 0.88rem;
}

.mini-title-main {
  margin: 0;
  color: #2d4558;
  font-size: 1.6rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.filter-link {
  border: none;
  background: transparent;
  color: #16768e;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.8rem;
}

.listing-list-rich {
  max-height: 360px;
}

.listing-list li {
  border: none;
  background: transparent;
  padding: 0;
}

.listing-item-btn {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  grid-template-areas:
    "thumb title price"
    "thumb meta price"
    "thumb submeta price";
  column-gap: 12px;
  border: 1px solid rgba(17, 52, 74, 0.08);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 9px;
  padding: 9px 11px;
  align-items: center;
  min-height: 88px;
}

.listing-item-btn:hover {
  box-shadow: 0 8px 18px rgba(17, 55, 70, 0.14);
  border-color: transparent;
}

.listing-thumb {
  grid-area: thumb;
  width: 96px;
  height: 66px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(27, 47, 66, 0.22), rgba(98, 122, 144, 0.2)),
    linear-gradient(145deg, #c8d2da, #aebcc7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.listing-head {
  grid-area: title;
  display: block;
  margin-bottom: 2px;
}

.listing-head h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  color: #243a4c;
}

.listing-meta {
  grid-area: meta;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: #6f7f8d;
}

.listing-submeta {
  grid-area: submeta;
  font-size: 0.78rem;
  color: #506170;
}

.price-pill {
  grid-area: price;
  align-self: start;
  background: #10889e;
  font-size: 0.72rem;
  padding: 5px 9px;
  margin-left: 8px;
}

.legend {
  background: rgba(19, 37, 53, 0.68);
}

/* Property detail panel (reference-accurate) */
.property-detail-panel {
  top: 10px;
  right: 10px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 20px);
  border-radius: 18px;
  border: 1px solid rgba(12, 33, 51, 0.12);
  background: #f7fafc;
  box-shadow: 0 22px 46px rgba(8, 28, 42, 0.34);
}

.property-detail-header {
  padding: 14px 18px 8px;
  border-bottom: none;
  background: transparent;
}

.detail-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #427087;
  font-weight: 900;
  text-transform: uppercase;
}

.property-detail-close {
  border: none;
  background: transparent;
  color: #50667a;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.property-detail-body {
  padding: 0 16px 14px;
  max-height: calc(100vh - 94px);
}

.property-detail-hero {
  position: relative;
  width: 100%;
  height: 198px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(15, 43, 62, 0.42), rgba(90, 132, 166, 0.25)),
    linear-gradient(140deg, #495a6a, #9db0be);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.23);
}

.property-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-detail-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  display: flex;
  gap: 6px;
}

.property-badge {
  font-size: 0.61rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: none;
  color: #fff;
  background: #0d8ba1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.property-badge-sale {
  background: #0d8ba1;
}

.property-badge-rent {
  background: #2d8f7b;
}

.property-badge-featured {
  background: #75562a;
}

.property-detail-title {
  margin: 14px 0 5px;
  color: #1f2c36;
  font-size: 2.45rem;
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.property-detail-location {
  margin: 0;
  color: #738598;
  font-size: 0.78rem;
}

.property-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 10px;
}

.property-tag-chip {
  border-radius: 999px;
  border: 1px solid rgba(27, 82, 101, 0.15);
  background: #e6edf3;
  color: #587083;
  font-size: 0.64rem;
  padding: 4px 8px;
  font-weight: 800;
}

.property-section-title {
  margin: 12px 0 8px;
  color: #7a8d9f;
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 900;
}

.property-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 6px;
}

.property-detail-summary .field {
  border-radius: 10px;
  border: 1px solid rgba(30, 78, 100, 0.09);
  background: #eef3f7;
  padding: 9px 10px 8px;
}

.property-detail-summary .field dt {
  margin: 0;
  color: #7890a3;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.property-detail-summary .field dd {
  margin: 3px 0 0;
  color: #20303c;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.property-detail-description {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.52;
  color: #4f6170;
  max-height: 170px;
}

.property-chip-grid {
  gap: 8px;
  margin: 0;
}

.property-chip {
  border-radius: 999px;
  border: 1px solid rgba(14, 104, 129, 0.14);
  padding: 6px 10px;
  font-size: 0.7rem;
  color: #2b667f;
  background: #ecf4f8;
  font-weight: 700;
}

.property-detail-links {
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  padding: 8px 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0), rgba(247, 250, 252, 0.95) 30%, rgba(247, 250, 252, 1));
}

.property-link {
  flex: 1;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
  box-shadow: 0 8px 16px rgba(var(--brand-primary-rgb), 0.28);
}

.property-mini-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(33, 84, 104, 0.2);
  border-radius: 10px;
  background: #f5f9fb;
  color: #477489;
  font-weight: 900;
  cursor: pointer;
}

.property-detail-extra {
  margin-top: 8px;
}

.home-auth-dock {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 930;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 34, 58, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(10, 32, 52, 0.18);
}

.home-auth-locate {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
  box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), 0.34);
}

.home-auth-locate:hover {
  transform: translateY(-1px);
}

.home-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 34, 58, 0.12);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.home-auth-btn-login {
  color: #4e6174;
  background: #f6f8fa;
}

.home-auth-btn-register {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
}

.home-auth-badge {
  min-width: auto;
  gap: 6px;
  padding: 0 13px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #000;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-auth-badge .diamond {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
  display: inline-block;
  flex: 0 0 auto;
}

.geo-quick-card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 920;
  width: min(150px, calc(100vw - 26px));
  max-height: 120px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.settings-sheet {
  position: absolute;
  left: 72px;
  bottom: 78px;
  z-index: 950;
  width: min(302px, calc(100vw - 104px));
  max-height: min(330px, calc(100vh - 110px));
  overflow: hidden;
  background: rgba(8, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #ecf3fa;
}

.settings-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-sheet-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.settings-sheet .sheet-subtitle {
  margin: 2px 0 0;
  color: rgba(227, 236, 246, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.settings-sheet-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9f2fa;
  cursor: pointer;
}

.settings-sheet-section {
  padding: 9px 10px;
}

.settings-sheet .search-modal-grid label {
  color: rgba(233, 241, 250, 0.92);
}

.settings-sheet .search-modal-grid select {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.2);
}

.settings-sheet .search-modal-grid select:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(109, 203, 255, 0.45);
}

.settings-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px 9px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-reset-btn,
.settings-cancel-btn,
.settings-apply-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-reset-btn,
.settings-cancel-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #dce8f3;
  border-color: rgba(255, 255, 255, 0.12);
}

.settings-apply-btn {
  background: linear-gradient(130deg, var(--brand-primary-2), var(--brand-primary-1));
  color: #ffffff;
}

.metric-icon-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.listing-icon-pills {
  margin-top: 6px;
}

.metric-icon-btn {
  position: relative;
  height: 44px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d7e4ef;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.metric-icon-btn .material-symbols-outlined {
  font-size: 1.0rem;
}

.metric-btn-label {
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.metric-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.metric-icon-btn.active {
  color: #ffffff;
  border-color: rgba(var(--brand-primary-rgb), 0.66);
  background: linear-gradient(120deg, var(--brand-primary-1), var(--brand-primary-2));
  box-shadow: 0 8px 16px rgba(var(--brand-primary-rgb), 0.36);
}

.settings-apply-btn {
  min-width: 88px;
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
}

.usage-badge-residential {
  background: #e8f5ec;
  color: #0f6d3f;
}

.usage-badge-commercial {
  background: #fff0e6;
  color: #a64f10;
}

.usage-badge-mixed {
  background: #eef1f7;
  color: #475569;
}

.toggle-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.geo-quick-card.hidden {
  display: none !important;
}

.geo-quick-card h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: rgba(255, 255, 255, 0.92);
}

.geo-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.geo-stats article {
  padding: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0;
}

.geo-stats span {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.64);
  text-transform: uppercase;
  font-weight: 700;
}

.geo-stats strong {
  font-size: 0.66rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width-expanded: 360px;
  }

  .search-sheet {
    width: calc(100vw - 26px);
    left: 50%;
    top: 50%;
    padding: 18px 16px 16px;
  }

  .search-modal-grid-2,
  .search-modal-grid-3 {
    grid-template-columns: 1fr;
  }

  .mega-overview {
    grid-template-columns: 1fr;
  }

  .map-hover-panel {
    width: min(500px, calc(100vw - 90px));
  }

  .property-detail-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
  }

  .property-detail-title {
    font-size: 1.95rem;
  }

  .home-auth-dock {
    bottom: 12px;
    gap: 8px;
    padding: 7px 8px;
  }

  .home-auth-locate {
    width: 34px;
    height: 34px;
  }

  .home-auth-btn {
    min-width: 78px;
    height: 30px;
    padding: 0 10px;
  }

  .geo-quick-card {
    top: 12px;
    right: 12px;
    width: min(150px, calc(100vw - 86px));
    max-height: 120px;
  }

  .settings-sheet {
    left: 12px;
    right: 12px;
    bottom: 82px;
    width: auto;
    max-height: calc(100vh - 108px);
  }
}

.marker-price-tooltip {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.marker-price-tooltip::before {
  display: none;
}

.leaflet-tooltip.marker-price-tooltip {
  pointer-events: auto;
  cursor: default;
}

.leaflet-tooltip.marker-price-tooltip.theme-light {
  background: #ffffff;
  color: #111111;
  border-color: rgba(15, 23, 42, 0.18);
}

.leaflet-tooltip.marker-price-tooltip.theme-glass {
  background: rgba(14, 18, 26, 0.72);
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.leaflet-tooltip.marker-price-tooltip.zone-m2-tooltip {
  padding: 2px 0;
  margin-left: 0;
  margin-right: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  position: relative;
}

.leaflet-tooltip.marker-price-tooltip.zone-m2-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #000000;
}

.zone-price-label-icon {
  background: transparent;
  border: none;
}

.zone-price-pill {
  display: inline-block;
  position: relative;
  transform: translate(-50%, -135%);
  background: #f8fafc;
  color: #111111;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  white-space: nowrap;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.zone-price-pill .pill-listing-icon {
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.9;
}

.leaflet-tooltip.marker-price-tooltip.tooltip-priority-top {
  z-index: 12000 !important;
}

.leaflet-marker-icon.zone-label-priority-top {
  z-index: 12000 !important;
}

.zone-price-pill::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #f8fafc;
}
