@import url("./vendor/fonts.css");

: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;
  --scrollbar-size: 12px;
  --scrollbar-radius: 999px;
  --scrollbar-track: rgba(177, 192, 209, 0.12);
  --scrollbar-thumb-top: rgba(120, 147, 173, 0.88);
  --scrollbar-thumb-bottom: rgba(79, 108, 138, 0.94);
  --scrollbar-thumb-hover-top: rgba(94, 125, 157, 0.96);
  --scrollbar-thumb-hover-bottom: rgba(60, 90, 121, 0.98);
  --scrollbar-thumb-border: rgba(245, 248, 252, 0.86);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-bottom) var(--scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-bottom) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(231, 237, 243, 0.72));
  border-radius: var(--scrollbar-radius);
  box-shadow: inset 0 0 0 1px rgba(140, 159, 179, 0.12);
}

*::-webkit-scrollbar-thumb {
  border-radius: var(--scrollbar-radius);
  border: 2px solid var(--scrollbar-thumb-border);
  background:
    linear-gradient(180deg, var(--scrollbar-thumb-top), var(--scrollbar-thumb-bottom));
  box-shadow:
    0 3px 10px rgba(38, 61, 86, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, var(--scrollbar-thumb-hover-top), var(--scrollbar-thumb-hover-bottom));
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Platform title typography unification (same base as login title). */
.sidebar-header h1,
.mobile-filter-title-block h3,
.filter-section-title,
.property-detail-title,
.zone-quality-report-header h3,
.guest-sector-name,
.market-filters-sheet h3 {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Keep effective families under control across map UI surfaces. */
.leaflet-container,
.leaflet-control,
.leaflet-popup-content-wrapper {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  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-title-sku {
  color: #0f766e;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.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: #fdfefe;
  border: 1px solid #dfe7f2;
  border-radius: 24px;
  box-shadow: 0 32px 60px rgba(9, 28, 52, 0.22);
  padding: 18px 18px 0;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.search-sheet.open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.search-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.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: #142747;
}

.sheet-subtitle {
  margin: 6px 0 0;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
  color: #667a97;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-sheet-close {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #1f66e5;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.apply-results-btn {
  border: 1px solid #1762e8;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f70ee, #135ddf);
  color: #fff;
  min-width: 170px;
  height: 46px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 112, 238, 0.28);
  font-size: 0.92rem;
}

.search-modal-section {
  margin: 0 0 12px;
  border: 1px solid #e3ebf4;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px 12px;
}

.search-modal-label {
  margin: 0 0 12px;
  color: #6c809c;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.search-modal-grid {
  display: grid;
  gap: 10px;
}

.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-3 label {
  gap: 6px;
  padding: 8px 9px;
  font-size: 0.72rem;
}

.search-modal-grid-3 .segmented-pills {
  gap: 5px;
}

.search-modal-grid-3 .segmented-pills .pill {
  padding: 6px 10px;
  font-size: 0.68rem;
}

.search-modal-grid-1 {
  grid-template-columns: 1fr;
}

.search-property-type-block {
  margin-top: 10px;
}

.search-modal-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #344c69;
  border: 1px solid #e3ebf4;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px 10px;
}

.search-modal-grid input,
.search-modal-grid select {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d3deec;
  background: #ffffff;
  color: #445c79;
  padding: 0 10px;
  font: inherit;
}

.search-modal-grid input:focus,
.search-modal-grid select:focus {
  outline: none;
  border-color: #77a6ff;
  background: #ffffff;
}

.segmented-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.segmented-pills .pill {
  border: 1px solid #b9cff9;
  border-radius: 999px;
  background: #ffffff;
  color: #1f66d9;
  padding: 7px 13px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
}

.segmented-pills .pill.active {
  background: linear-gradient(135deg, #1f71ef, #165fe2);
  border-color: #1f71ef;
  color: #ffffff;
}

.segmented-pills .pill.disabled-pill {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-modal-ranges {
  margin-top: 6px;
}

.range-card {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3ebf4;
  padding: 10px 10px 9px;
}

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.range-head strong {
  font-size: 0.73rem;
  color: #4f6682;
  letter-spacing: 0.01em;
}

.range-head span {
  font-size: 0.78rem;
  color: #1d66de;
  font-weight: 800;
}

.range-track {
  position: relative;
  height: 16px;
  margin: 6px 2px 4px;
}

.range-line {
  position: absolute;
  left: 14%;
  right: 20%;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: #1d66de;
  transform: translateY(-50%);
}

.range-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #1d66de;
  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;
  min-width: 0;
}

.range-meta em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: #7f90a3;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.range-meta em:last-child {
  text-align: right;
}

.range-inputs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.range-inputs input {
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d3deec;
  background: #ffffff;
  color: #445c79;
  padding: 0 9px;
  font-size: 0.76rem;
  width: 100%;
  min-width: 0;
}

.range-inputs input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.range-inputs input[type="number"]::-webkit-outer-spin-button,
.range-inputs input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amenity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amenity-pill {
  border: 1px solid #9fc0fb;
  border-radius: 999px;
  background: #ffffff;
  color: #1d66de;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
}

.amenity-pill.active {
  background: #1d66de;
  border-color: #1d66de;
  color: #fff;
}

.search-sheet-footer {
  margin: 10px -18px 0;
  padding: 10px 18px 12px;
  background: #ffffff;
  border-top: 1px solid #e3ebf4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-radius: 0 0 24px 24px;
}

.search-reset-btn,
.search-cancel-btn {
  border: 1px solid #b8cdf6;
  border-radius: 16px;
  background: #ffffff;
  color: #1b62db;
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 160px;
  height: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.search-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#property-type-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  font-size: 0.6rem;
  text-transform: none;
}

#property-type-pills .pill .material-symbols-outlined {
  font-size: 0.74rem;
  line-height: 1;
  text-transform: none;
}

.search-property-type-block label {
  gap: 7px;
  font-size: 0.72rem;
  padding: 8px 10px;
}

.search-sheet-footer #search-sheet-cancel {
  display: none;
}

#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);
  max-height: calc(100dvh - 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: 7px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.28);
  font-size: 0.68rem;
  line-height: 1.16;
}

.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, #000000, #111111);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  border: none;
  animation: filtersPulseGlow 3.2s ease-in-out infinite;
}

#search-sheet-toggle:hover,
#search-sheet-toggle:focus-visible,
#search-sheet-toggle.rail-btn-active,
#metrics-sheet-toggle:hover,
#metrics-sheet-toggle:focus-visible,
#metrics-sheet-toggle.rail-btn-active,
#settings-sheet-toggle:hover,
#settings-sheet-toggle:focus-visible,
#settings-sheet-toggle.rail-btn-active {
  background: linear-gradient(160deg, #000000, #111111);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.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;
}

#search-sheet-toggle[data-tooltip]::after {
  display: none;
}

.rail-tooltip-card {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  width: fit-content;
  max-width: 250px;
  transform: translateY(-50%) translateX(-4px);
  background: rgba(9, 15, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 10px 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1200;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: opacity 140ms ease, transform 180ms ease, visibility 140ms ease;
}

.rail-tooltip-title {
  display: block;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.rail-tooltip-subtitle {
  display: block;
  color: rgba(232, 239, 248, 0.95);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  text-wrap: pretty;
}

#search-sheet-toggle:hover .rail-tooltip-card,
#search-sheet-toggle:focus-visible .rail-tooltip-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.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;
}

@keyframes filtersPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.44);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  }
}

.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));
  height: min(320px, calc(100vh - 150px));
  height: min(320px, calc(100dvh - 150px));
  max-height: min(320px, calc(100vh - 150px));
  max-height: min(320px, calc(100dvh - 150px));
  z-index: 960;
}

.hover-card {
  height: 100%;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 22px 40px rgba(9, 28, 43, 0.26);
}

.mega-overview {
  height: 100%;
  gap: 0;
  grid-template-columns: 370px minmax(0, 1fr);
  align-items: stretch;
}

.mega-overview-info {
  background: linear-gradient(160deg, var(--brand-primary-1), var(--brand-primary-2));
  padding: 16px 14px 12px;
  color: #e7f5fa;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zone-tag {
  margin: 0 0 7px;
  color: rgba(220, 245, 252, 0.78);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
}

.mega-overview-info h3 {
  color: #fff;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 0.94;
  margin: 0 0 5px;
}

#hover-zone-meta,
#hover-zone-stats {
  color: rgba(231, 245, 250, 0.9);
  font-size: 0.8rem;
  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.6rem;
}

.zone-metrics dd {
  color: #fff;
  font-size: 0.96rem;
}

.zone-analysis-btn {
  margin-top: auto;
  width: 100%;
  height: 31px;
  border-radius: 10px;
  border: none;
  background: #f4f8fb;
  color: #12667d;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.mega-overview-listings {
  background: #eef2f4;
  padding: 9px 9px 7px;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mini-title {
  margin: 0 0 7px;
  color: #6e7d8f;
}

.listing-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  position: relative;
}

.mini-title-top {
  margin-bottom: 1px;
  font-size: 0.68rem;
}

.mini-title-main {
  margin: 0;
  color: #2d4558;
  font-size: 0.82rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.filter-link {
  border: none;
  background: transparent;
  color: #16768e;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.76rem;
}

.listing-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.listing-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 264px;
  padding: 4px;
  border: 1px solid rgba(18, 57, 83, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(16, 44, 67, 0.18);
  display: grid;
  gap: 1px;
  z-index: 6;
}

.listing-filter-menu.hidden {
  display: none;
}

.listing-filter-field {
  display: grid;
  gap: 2px;
  padding: 0;
}

.listing-filter-field span {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #718293;
  padding: 1px 6px 0;
}

.listing-sort-options {
  display: grid;
  gap: 1px;
}

.listing-sort-option {
  width: 100%;
  border: none;
  border-radius: 7px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding: 0 7px;
  text-align: left;
  color: #2b3f52;
  font-size: 0.82rem;
  cursor: pointer;
}

.listing-sort-option.active {
  background: rgba(27, 90, 125, 0.08);
  color: #1f3448;
  font-weight: 700;
}

.listing-sort-check {
  width: 14px;
  text-align: center;
  color: #273f55;
  font-weight: 800;
  font-size: 0.74rem;
}

.listing-sort-option:hover,
.filter-link:hover {
  filter: brightness(0.98);
}

.listing-list-rich {
  max-height: none;
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.listing-headline {
  margin-bottom: 4px;
}

.listing-list li {
  border: none;
  background: transparent;
  padding: 0;
}

.listing-item-btn {
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-areas:
    "thumb title"
    "thumb meta"
    "thumb submeta";
  column-gap: 8px;
  border: 1px solid rgba(17, 52, 74, 0.08);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 3px;
  padding: 4px 6px;
  align-items: center;
  min-height: 54px;
}

.listing-item-btn:hover {
  box-shadow: 0 8px 18px rgba(17, 55, 70, 0.14);
  border-color: transparent;
}

.listing-thumb {
  grid-area: thumb;
  width: 68px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  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-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-head {
  grid-area: title;
  display: block;
  margin-bottom: 2px;
}

.listing-head h4 {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.08;
  color: #243a4c;
}

.listing-meta {
  grid-area: meta;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: #6f7f8d;
}

.listing-submeta {
  grid-area: submeta;
  font-size: 0.66rem;
  color: #2f627f;
  font-weight: 800;
}

.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);
  max-height: calc(100dvh - 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);
  max-height: calc(100dvh - 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: 970;
  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));
  max-height: min(330px, calc(100dvh - 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: 20px 16px 0;
  }

  .search-sheet-header h3 {
    font-size: 2.2rem;
  }

  .sheet-subtitle {
    font-size: 1.05rem;
  }

  .search-modal-grid label {
    font-size: 1rem;
    padding: 12px;
  }

  .segmented-pills .pill {
    font-size: 0.9rem;
    padding: 9px 14px;
  }

  .search-sheet-footer {
    margin: 10px -16px 0;
    padding: 12px 16px 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-reset-btn,
  .search-cancel-btn,
  .apply-results-btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 1rem;
  }

  .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));
    height: min(380px, calc(100vh - 130px));
    height: min(380px, calc(100dvh - 130px));
    max-height: min(380px, calc(100vh - 130px));
    max-height: min(380px, calc(100dvh - 130px));
  }

  .property-detail-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 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);
    max-height: calc(100dvh - 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;
}

@media (min-width: 981px) {
  #map-hover-panel.guest-sector-panel-active .guest-sector-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-summary-head .guest-panel-close-btn {
    margin-left: auto;
    align-self: flex-start;
  }
}

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

.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);
  pointer-events: none;
}

.zone-price-pill * {
  pointer-events: none;
}

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

.zone-quality-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #020617;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}


.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;
}

/* 2026-04-29: visual alignment to provided reference design */
body {
  background: #e6eaf1;
}

.app-shell {
  padding: 12px;
  background: radial-gradient(circle at 0% 0%, rgba(20, 126, 255, 0.3), transparent 26%), #dde2ea;
}

.sidebar {
  width: 170px;
  min-width: 170px;
  border: none;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, #03142f 0%, #051328 56%, #020d1f 100%);
  box-shadow: inset 0 0 0 1px rgba(75, 140, 255, 0.2), 0 24px 54px rgba(0, 17, 43, 0.45);
}

.sidebar.collapsed {
  width: 170px;
}

.sidebar-rail {
  width: 100%;
  border-right: none;
  padding: 14px 14px 16px;
  gap: 12px;
  align-items: stretch;
}

.editorial-brand {
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(0, 76, 190, 0.42), rgba(2, 19, 40, 0.4));
  border: 1px solid rgba(80, 156, 255, 0.2);
  padding: 16px 10px 14px;
  text-align: center;
}

.brand-title { color: #f2f6ff; }
.brand-subtitle { color: #2d96ff; }
.sidebar-toggle-btn { display: none; }

.rail-btn {
  width: 100%;
  height: 86px;
  border-radius: 20px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(221, 232, 255, 0.85);
  background: rgba(10, 22, 45, 0.78);
  border: 1px solid rgba(83, 123, 180, 0.26);
}

.rail-btn .nav-label {
  display: block;
  font-size: 1.02rem;
  line-height: 1;
  font-weight: 600;
}

.rail-btn .nav-icon { font-size: 1.55rem; }

.rail-btn-active {
  background: linear-gradient(165deg, #0d264d 0%, #0b1b37 100%);
  color: #e5f1ff;
  border-color: rgba(54, 149, 255, 0.7);
  box-shadow: inset 0 0 20px rgba(15, 113, 255, 0.4), 0 0 18px rgba(21, 95, 219, 0.38);
}

.sidebar-panel,
.sidebar-hidden-data,
.new-search-btn {
  display: none;
}

.rail-spacer { min-height: 24px; }

.sidebar-avatar {
  margin-top: auto;
  border-radius: 16px;
  background: rgba(7, 19, 40, 0.92);
  border: 1px solid rgba(96, 140, 210, 0.25);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sidebar-avatar-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.56);
}

.sidebar-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-avatar-meta strong {
  color: #f4f8ff;
  font-size: 0.94rem;
}

.sidebar-avatar-meta span {
  color: #2f92ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.map-stage {
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  background: #ecf0f6;
}

#map { filter: saturate(0.7) brightness(1.04) contrast(0.9); }

.leaflet-control-zoom {
  border: 1px solid rgba(15, 34, 57, 0.08) !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 10px 30px rgba(15, 34, 57, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1300 !important;
}

.leaflet-control-zoom a {
  width: 1.2cm !important;
  height: 2cm !important;
  line-height: 2cm !important;
  background: #ffffff !important;
  color: #1e7bff !important;
  border: none !important;
  font-size: 34px !important;
  font-weight: 700 !important;
}

.leaflet-control-zoom a:hover {
  background: #f4f8ff !important;
  color: #1a73f2 !important;
}

.leaflet-control-zoom a.leaflet-disabled {
  background: #ffffff !important;
  color: #1e7bff !important;
  opacity: 1 !important;
}

.leaflet-top .leaflet-control {
  z-index: 1300 !important;
}

.leaflet-control-zoom a:active {
  background: #e8f1ff !important;
}

.leaflet-control-zoom-in {
  border-radius: 28px 28px 0 0 !important;
  border-bottom: 1px solid rgba(15, 34, 57, 0.08) !important;
}

.leaflet-control-zoom-out { border-radius: 0 0 28px 28px !important; }

@media (max-width: 860px) {
  .leaflet-control-zoom a {
    width: 0.82cm !important;
    height: 1.36cm !important;
    line-height: 1.36cm !important;
    font-size: 23px !important;
    background: #ffffff !important;
  }

  .leaflet-control-zoom,
  .leaflet-control-zoom a:hover,
  .leaflet-control-zoom a:active,
  .leaflet-control-zoom a.leaflet-disabled {
    background: #ffffff !important;
  }
}

.map-top-actions {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 720;
  display: flex;
  gap: 10px;
}

.map-top-btn {
  border: 1px solid rgba(78, 134, 228, 0.24);
  background: linear-gradient(180deg, #0d2348, #08152d);
  color: #f3f8ff;
  border-radius: 13px;
  height: 50px;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 22px rgba(2, 13, 30, 0.34);
}

.map-top-btn-icon {
  width: 50px;
  padding: 0;
  justify-content: center;
}

.legend {
  left: 16px;
  bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(66, 118, 206, 0.32);
  background: linear-gradient(180deg, rgba(10, 27, 58, 0.94), rgba(8, 18, 39, 0.94));
  color: #d8e6ff;
  box-shadow: 0 18px 32px rgba(4, 15, 34, 0.35);
}

.home-auth-dock {
  left: calc(16px + 620px + 76px);
  right: auto;
  transform: none;
  bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(66, 118, 206, 0.32);
  background: linear-gradient(180deg, rgba(10, 27, 58, 0.94), rgba(8, 18, 39, 0.94));
  box-shadow: 0 18px 32px rgba(4, 15, 34, 0.35);
}

.home-auth-locate,
.home-auth-btn {
  border-radius: 999px;
}

.help-fab {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 720;
  border: 1px solid rgba(66, 118, 206, 0.32);
  background: linear-gradient(180deg, rgba(10, 27, 58, 0.96), rgba(8, 18, 39, 0.96));
  color: #f3f8ff;
  border-radius: 16px;
  height: 58px;
  padding: 0 22px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 24px rgba(2, 13, 30, 0.34);
}

@media (max-width: 980px) {
  .app-shell { padding: 0; }
  .sidebar,
  .sidebar.collapsed {
    width: 88px;
    min-width: 88px;
    border-radius: 0;
  }
  .editorial-brand,
  .sidebar-avatar-meta,
  .rail-btn .nav-label { display: none; }
  .rail-btn {
    height: 56px;
    border-radius: 14px;
  }
  .map-stage { border-radius: 0; }
}

/* Final sidebar lock: exact visual from reference */
.app-shell > .sidebar {
  width: 162px !important;
  min-width: 162px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(120px 140px at 16px 0, rgba(12, 98, 246, 0.38), transparent 70%),
    linear-gradient(180deg, #021b45 0%, #021737 34%, #02112c 100%) !important;
  border-right: 1px solid rgba(90, 126, 188, 0.28) !important;
  box-shadow: none !important;
}

.app-shell > .sidebar.collapsed {
  width: 162px !important;
}

.app-shell > .sidebar > .sidebar-rail {
  width: 100% !important;
  padding: 12px 10px 10px !important;
  gap: 11px !important;
  align-items: stretch !important;
}

.app-shell > .sidebar .editorial-brand {
  border-radius: 14px !important;
  border: 1px solid rgba(79, 145, 255, 0.36) !important;
  background: linear-gradient(160deg, rgba(2, 48, 114, 0.74), rgba(2, 23, 58, 0.82)) !important;
  padding: 10px 8px 8px !important;
}

.app-shell > .sidebar .brand-mark {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 6px !important;
}

.app-shell > .sidebar .brand-mark-logo {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
}

.app-shell > .sidebar .brand-title {
  margin-top: 2px !important;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #f4f8ff !important;
}

.app-shell > .sidebar .brand-subtitle {
  margin-top: 5px !important;
  font-size: 0.66rem !important;
  line-height: 1.12 !important;
  letter-spacing: 0.13em !important;
  color: #2d9cff !important;
}

.app-shell > .sidebar .rail-btn {
  height: 76px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(72, 112, 172, 0.42) !important;
  background: rgba(3, 23, 58, 0.84) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 53, 113, 0.2) !important;
  gap: 6px !important;
}

.app-shell > .sidebar #search-sheet-toggle.rail-btn {
  height: 52px !important;
  border-radius: 15px !important;
}

.app-shell > .sidebar .rail-btn .nav-icon {
  font-size: 1.35rem !important;
  color: #d8e7ff !important;
}

.app-shell > .sidebar .rail-btn .nav-label {
  font-size: 1.95rem !important;
  font-weight: 700 !important;
  color: #dce8ff !important;
}

.app-shell > .sidebar #search-sheet-toggle .nav-label {
  color: #ffffff !important;
}

.app-shell > .sidebar .rail-btn-active {
  border-color: rgba(99, 168, 255, 0.64) !important;
  background: linear-gradient(170deg, rgba(4, 39, 93, 0.95), rgba(3, 27, 68, 0.95)) !important;
  box-shadow: inset 0 0 20px rgba(13, 116, 255, 0.23) !important;
}

.app-shell > .sidebar .rail-spacer {
  min-height: 72px !important;
}

.app-shell > .sidebar .sidebar-avatar {
  width: 100% !important;
  padding: 6px 8px !important;
  min-height: 54px !important;
  border-radius: 27px !important;
  border: 1px solid rgba(120, 157, 216, 0.34) !important;
  background: rgba(6, 26, 63, 0.96) !important;
  gap: 8px !important;
}

.app-shell > .sidebar .sidebar-avatar-image {
  width: 40px !important;
  height: 40px !important;
}

.app-shell > .sidebar .sidebar-avatar-meta {
  gap: 1px !important;
}

.app-shell > .sidebar .sidebar-avatar-meta strong {
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
}

.app-shell > .sidebar .sidebar-avatar-meta span {
  font-size: 0.57rem !important;
  line-height: 1.1 !important;
}

.app-shell > .sidebar .rail-btn[data-tooltip]::after,
.app-shell > .sidebar .sidebar-avatar[data-tooltip]::after {
  display: none !important;
}

/* Sidebar fidelity pass: match original compact design */
.app-shell > .sidebar {
  width: 118px !important;
  min-width: 118px !important;
  background:
    radial-gradient(120px 140px at 12px 0, rgba(12, 98, 246, 0.34), transparent 72%),
    linear-gradient(180deg, #031a44 0%, #031433 42%, #020f28 100%) !important;
}

.app-shell > .sidebar.collapsed {
  width: 118px !important;
}

.app-shell > .sidebar > .sidebar-rail {
  padding: 10px 8px 10px !important;
  gap: 1cm !important;
}

.app-shell > .sidebar .editorial-brand {
  border: 0 !important;
  background: transparent !important;
  padding: 2px 2px 0 !important;
  text-align: left !important;
}

.app-shell > .sidebar .brand-mark {
  width: 24px !important;
  height: 24px !important;
  margin: 0 0 4px 0 !important;
}

.app-shell > .sidebar .brand-mark-logo {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) invert(1) !important;
}

.app-shell > .sidebar .brand-title {
  font-size: 0.66rem !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #ffffff !important;
}

.app-shell > .sidebar .brand-subtitle {
  font-size: 0.53rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.08em !important;
  margin: 2px 0 0 !important;
  color: #2d97ff !important;
}

.app-shell > .sidebar .rail-btn {
  height: 46px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 4px !important;
}

.app-shell > .sidebar #search-sheet-toggle.rail-btn {
  height: 46px !important;
  display: grid !important;
  grid-auto-rows: min-content !important;
  align-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 0 !important;
  gap: 3px !important;
}

.app-shell > .sidebar #search-sheet-toggle .nav-icon,
.app-shell > .sidebar #search-sheet-toggle .nav-label {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  text-align: center !important;
  transform: none !important;
}

.app-shell > .sidebar #search-sheet-toggle .nav-label {
  position: static !important;
  line-height: 1 !important;
}

.app-shell > .sidebar #search-sheet-toggle .rail-tooltip-card {
  display: none !important;
}

/* Match legend pill height/style with login/register dock */
.legend {
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(66, 118, 206, 0.32) !important;
  background: linear-gradient(180deg, rgba(10, 27, 58, 0.94), rgba(8, 18, 39, 0.94)) !important;
  box-shadow: 0 18px 32px rgba(4, 15, 34, 0.35) !important;
}

.legend span {
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.98rem !important;
}

/* Final fixes requested: bigger right buttons, bigger logo, restore profile card */
.app-shell > .sidebar .brand-mark,
.app-shell > .sidebar .brand-mark-logo {
  width: 34px !important;
  height: 34px !important;
}

.app-shell > .sidebar .brand-mark {
  margin-bottom: 6px !important;
}

.app-shell > .sidebar .brand-title {
  font-size: 0.84rem !important;
}

.app-shell > .sidebar .brand-subtitle {
  font-size: 0.62rem !important;
}

.app-shell > .sidebar .sidebar-avatar {
  display: flex !important;
  margin-top: auto !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-shell > .sidebar .sidebar-avatar-meta {
  display: none !important;
}

.app-shell > .sidebar .sidebar-avatar-meta strong {
  font-size: 0.8rem !important;
}

.app-shell > .sidebar .sidebar-avatar-meta span {
  font-size: 0.7rem !important;
}

.home-auth-dock {
  min-height: 56px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.home-auth-locate {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}

.home-auth-btn {
  min-height: 44px !important;
  padding: 0 22px !important;
  font-size: 1rem !important;
}

.app-shell > .sidebar .rail-btn .nav-icon {
  font-size: 1.1rem !important;
  color: #9fb4d8 !important;
}

.app-shell > .sidebar .rail-btn .nav-label {
  font-size: 0.56rem !important;
  font-weight: 600 !important;
  color: #9fb4d8 !important;
}

.app-shell > .sidebar .rail-btn-active {
  background: linear-gradient(180deg, #0e4da6, #0b3e89) !important;
  box-shadow: inset 0 0 0 1px rgba(106, 179, 255, 0.55), 0 8px 18px rgba(5, 72, 165, 0.4) !important;
}

.app-shell > .sidebar .rail-btn-active .nav-icon,
.app-shell > .sidebar .rail-btn-active .nav-label {
  color: #ffffff !important;
}

.app-shell > .sidebar .rail-spacer {
  min-height: 54px !important;
}

.app-shell > .sidebar .sidebar-avatar {
  display: flex !important;
}

/* Alignment lock: keep all left-rail buttons perfectly centered on same axis */
.app-shell > .sidebar .rail-btn-wide {
  display: grid !important;
  grid-template-rows: min-content min-content !important;
  align-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 0 !important;
  width: 72px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.app-shell > .sidebar .rail-btn-wide .nav-icon,
.app-shell > .sidebar .rail-btn-wide .nav-label {
  justify-self: center !important;
  margin: 0 auto !important;
  text-align: center !important;
  transform: none !important;
}

.app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
.app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
.app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
  width: 72px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Requested: +15% button size on left sidebar, keeping spacing/position unchanged */
.app-shell > .sidebar .rail-btn {
  height: 53px !important;
}

.app-shell > .sidebar .rail-btn-wide,
.app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
.app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
.app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
  width: 83px !important;
}

/* Make the +15% increase visually evident (icon + label) */
.app-shell > .sidebar .rail-btn .nav-icon {
  font-size: 1.27rem !important;
}

.app-shell > .sidebar .rail-btn .nav-label {
  font-size: 0.64rem !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Match profile button size increase (+15%) */
.app-shell > .sidebar .sidebar-avatar-image {
  width: 46px !important;
  height: 46px !important;
}

/* Bottom map controls: match reference design */
.legend {
  left: 8px !important;
  bottom: 10px !important;
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(65, 110, 180, 0.38) !important;
  background: linear-gradient(180deg, #0d2348 0%, #08152d 100%) !important;
  box-shadow: 0 10px 26px rgba(2, 12, 28, 0.45) !important;
  gap: 12px !important;
}

.legend span {
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #cfe0ff !important;
  font-size: 0.88rem !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.legend span:nth-child(1) {
  padding: 0 12px !important;
  background: linear-gradient(180deg, #0f4ea9 0%, #0a3f8a 100%) !important;
  border: 1px solid rgba(103, 173, 255, 0.6) !important;
  color: #ffffff !important;
}

.legend span:nth-child(2) {
  padding: 0 10px !important;
  background: rgba(10, 23, 46, 0.62) !important;
  border: 1px solid rgba(87, 123, 181, 0.32) !important;
}

.legend span:nth-child(3) {
  padding: 0 2px !important;
  color: #b8cdf4 !important;
  font-size: 0.78rem !important;
}

.home-auth-dock {
  bottom: 10px !important;
  min-height: 52px !important;
  height: 52px !important;
  padding: 6px 10px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(65, 110, 180, 0.38) !important;
  background: linear-gradient(180deg, #0d2348 0%, #08152d 100%) !important;
  box-shadow: 0 10px 26px rgba(2, 12, 28, 0.45) !important;
  gap: 8px !important;
}

.home-auth-locate {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(95, 168, 255, 0.58) !important;
  background: linear-gradient(180deg, #1a8dff 0%, #0e63d3 100%) !important;
  box-shadow: inset 0 0 14px rgba(143, 211, 255, 0.3) !important;
}

.home-auth-btn {
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.home-auth-btn-login {
  background: rgba(6, 14, 30, 0.74) !important;
  border: 1px solid rgba(87, 123, 181, 0.42) !important;
  color: #e6f0ff !important;
}

.home-auth-btn-register {
  background: #050b1a !important;
  border: 1px solid rgba(87, 123, 181, 0.42) !important;
  color: #ffffff !important;
}

/* Home auth dock: centered and polished to match reference */
.home-auth-dock {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  justify-content: center !important;
  z-index: 970 !important;
}

.home-auth-locate {
  position: relative !important;
  overflow: hidden !important;
}

.home-auth-locate-icon {
  width: 16px !important;
  height: 16px !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20 !important;
}

.home-auth-btn {
  gap: 8px !important;
}

.home-auth-icon {
  font-size: 0.86rem;
  line-height: 1;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-auth-token-icon {
  color: #2f8fff !important;
  font-size: 0.9rem !important;
  text-shadow: 0 0 8px rgba(47, 143, 255, 0.34) !important;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 20 !important;
}

.home-auth-logout-icon {
  color: #dfeaff !important;
  font-size: 0.88rem !important;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 20 !important;
}

/* Market filters sheet: replica style */
.market-filters-sheet {
  width: min(1240px, calc(100vw - 130px));
  max-height: min(92vh, 1120px);
  border-radius: 22px;
  padding: 20px 22px 22px;
  border: 1px solid #d7e0ec;
  background: #fbfcff;
  box-shadow: 0 30px 56px rgba(13, 29, 58, 0.18);
}

.market-filters-sheet .search-sheet-header {
  margin-bottom: 14px;
  align-items: center;
}

.market-header-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.market-header-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid #d8e1ee;
  background: linear-gradient(180deg, #f7f9fc, #f1f4f8);
  color: #18253b;
  font-size: 1.85rem;
}

.market-filters-sheet .search-sheet-header h3 {
  font-size: 2.9rem;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #182a48;
}

.market-filters-sheet .sheet-subtitle {
  margin-top: 8px;
  font-size: 1.1rem;
  color: #7a8ea9;
}

.market-filters-sheet .search-sheet-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #31496e;
  font-size: 1.65rem;
  border: 1px solid transparent;
}

.market-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 14px;
  align-items: start;
}

.market-sheet-main {
  display: grid;
  gap: 12px;
}

.market-filters-sheet .search-modal-section {
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.market-filters-sheet .search-modal-grid label {
  font-size: 0.99rem;
  font-weight: 700;
  color: #1f3150;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  gap: 11px;
}

.market-filters-sheet .market-filter-pairs {
  gap: 12px;
}

.market-filters-sheet .segmented-pills {
  gap: 10px;
}

.market-filters-sheet .segmented-pills .pill {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid #c8d6ee;
  background: #ffffff;
  color: #2a4367;
  font-size: 0.94rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.market-filters-sheet .segmented-pills .pill.active {
  border-color: #1d66e3;
  background: linear-gradient(180deg, #2b77ef, #185fde);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(26, 99, 229, 0.26);
}

.market-filters-sheet #property-type-pills {
  gap: 8px;
}

.market-filters-sheet #property-type-pills .pill {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
  gap: 7px;
  border-color: #c8d6ee;
}

.market-filters-sheet #property-type-pills .pill .material-symbols-outlined {
  font-size: 1rem;
}

.market-filters-sheet .range-card {
  border-radius: 13px;
  border: 1px solid #dce5f1;
  background: #ffffff;
  padding: 12px 12px 10px;
}

.market-filters-sheet .range-head strong {
  font-size: 1rem;
  color: #2a3e60;
}

.market-filters-sheet .range-head span {
  font-size: 1.05rem;
  color: #1a63de;
}

.market-filters-sheet .range-track {
  position: relative;
  height: 24px;
  margin: 10px 2px 16px;
  overflow: visible;
  isolation: isolate;
}

.market-filters-sheet .range-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #d6e0ef;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

.market-filters-sheet .range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: #2a73e9;
  left: 0%;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.market-filters-sheet .range-slider {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 22px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
  z-index: 3;
}

.market-filters-sheet .range-slider::-webkit-slider-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #2a73e9;
  background: #ffffff;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(42, 115, 233, 0.25);
}

.market-filters-sheet .range-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #2a73e9;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(42, 115, 233, 0.25);
}

.market-filters-sheet .range-slider::-webkit-slider-runnable-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

.market-filters-sheet .range-slider::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

.market-filters-sheet .range-bubble {
  position: absolute;
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  min-width: 56px;
  max-width: 112px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d5e0ef;
  background: #ffffff;
  color: #2a3e60;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(43, 68, 99, 0.12);
  opacity: 0.92;
  z-index: 4;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.market-filters-sheet .range-bubble.range-bubble-active {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 14px rgba(34, 68, 120, 0.18);
}

.market-filters-sheet .range-bubble.range-bubble-shift-left {
  transform: translateX(calc(-50% - 18px));
}

.market-filters-sheet .range-bubble.range-bubble-shift-right {
  transform: translateX(calc(-50% + 18px));
}

.market-filters-sheet .range-bubble.range-bubble-active.range-bubble-shift-left {
  transform: translateX(calc(-50% - 18px)) translateY(-2px);
}

.market-filters-sheet .range-bubble.range-bubble-active.range-bubble-shift-right {
  transform: translateX(calc(-50% + 18px)) translateY(-2px);
}

.market-filters-sheet .range-track.range-compact .range-bubble {
  background: #eaf3ff;
  border-color: #9fc3ff;
  color: #1b56b9;
}

.market-filters-sheet .range-track.range-balanced .range-bubble {
  background: #f3f8ff;
  border-color: #bfd6fb;
  color: #295596;
}

.market-filters-sheet .range-track.range-wide .range-bubble {
  background: #f8f9fb;
  border-color: #dbe3ef;
  color: #465d7a;
}

.market-filters-sheet .range-meta em {
  font-size: 0.78rem;
  color: #7c8ea6;
}

.market-filters-sheet .range-inputs {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.market-filters-sheet .range-inputs::before {
  content: none;
}

.market-filters-sheet .range-inputs input {
  height: 46px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.95rem;
  border-color: #cfd9e8;
}

/* --- Slider real arrastrable en las tarjetas de rango del sheet movil --- */
/* Las burbujas de valor viven sobre el track y muestran el rango en vivo, por
   eso se oculta el texto de rango redundante del encabezado y se da aire arriba
   del track para que las burbujas no choquen con el titulo de la tarjeta. */
#search-sheet.market-filters-sheet .mobile-range-card .mobile-range-active-text {
  display: none !important;
}
#search-sheet.market-filters-sheet .mobile-range-card .range-track {
  margin-top: 34px;
}

.market-filters-sheet .search-modal-grid input,
.market-filters-sheet .search-modal-grid select {
  height: 46px;
  border-radius: 12px;
  border-color: #cfd9e8;
  color: #3d5576;
}

.market-multiselect-wrap {
  position: relative;
}

.market-filters-sheet .market-multiselect-toggle {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  background: #fdfefe;
  color: #314968;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.market-filters-sheet .market-multiselect-toggle .material-symbols-outlined {
  font-size: 1.02rem;
  color: #6c7f99;
}

.market-filters-sheet .market-multiselect-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 268px;
  overflow: auto;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 34px rgba(16, 44, 67, 0.18);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 18;
}

.market-filters-sheet .market-multiselect-menu.hidden {
  display: none;
}

.market-filters-sheet .market-multiselect-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f486a;
  cursor: pointer;
}

.market-filters-sheet .market-multiselect-option:hover {
  background: #f4f8fe;
}

.market-filters-sheet .market-multiselect-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1d66e3;
}

.market-filters-sheet .market-multiselect-help {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7184a0;
}

.market-filters-sheet .search-modal-label {
  margin-bottom: 12px;
  color: #5f7391;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.market-filters-sheet .amenity-pills {
  gap: 8px;
}

.market-filters-sheet .amenity-pill {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-color: #c8d6ee;
  color: #2a466b;
}

.market-filters-sheet .amenity-pill.active {
  background: linear-gradient(180deg, #2b77ef, #185fde);
  border-color: #1d66e3;
}

.market-sheet-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 6px;
}

.market-sheet-summary h4 {
  margin: 2px 0 12px;
  color: #1c2f4e;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.market-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-summary-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid #e7edf6;
}

.market-summary-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.market-summary-list .material-symbols-outlined {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f5fa;
  color: #5f7598;
  font-size: 1.04rem;
}

.market-summary-list small {
  display: block;
  margin: 0 0 2px;
  color: #788ca7;
  font-size: 0.76rem;
  font-weight: 600;
}

.market-summary-list strong {
  display: block;
  color: #223a5d;
  font-size: 1rem;
  font-weight: 700;
}

.market-summary-list button {
  border: 0;
  background: transparent;
  color: #8fa0ba;
  font-size: 1rem;
  cursor: pointer;
}

.market-results-card {
  margin-top: 12px;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4fe, #f7fbff);
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.market-results-card .material-symbols-outlined {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7faff;
  color: #2f74e9;
  font-size: 2rem;
}

.market-results-card strong {
  display: block;
  font-size: 3rem;
  line-height: 0.95;
  color: #1f64df;
  letter-spacing: -0.03em;
}

.market-results-card p {
  margin: 5px 0 0;
  color: #243c5f;
  font-size: 1.03rem;
  font-weight: 700;
}

.market-results-card small {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: #6e829f;
}

.market-access-note {
  margin-top: 10px;
  border: 1px solid rgba(27, 102, 229, 0.18);
  border-radius: 12px;
  background: rgba(27, 102, 229, 0.08);
  color: #1d4d9a;
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.market-access-note.hidden {
  display: none;
}

.market-auth-gate {
  margin: 10px 0 14px;
  border: 1px solid rgba(27, 102, 229, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(236, 243, 253, 0.95));
  color: #214a82;
  padding: 18px 18px 20px;
  text-align: center;
}

.market-auth-gate .material-symbols-outlined {
  font-size: 1.7rem;
  line-height: 1;
  color: #1f66dd;
}

.market-auth-gate h4 {
  margin: 7px 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1d3553;
}

.market-auth-gate p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #335070;
}

.market-auth-gate-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.market-auth-gate-btn {
  min-width: 140px;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

.market-auth-gate-btn-login {
  background: #0f1728;
  color: #f8fbff;
  box-shadow: 0 10px 20px rgba(5, 21, 44, 0.22);
}

.market-auth-gate-btn-register {
  background: rgba(27, 102, 229, 0.14);
  color: #1f4f92;
  border: 1px solid rgba(27, 102, 229, 0.24);
  min-width: 208px;
}

.market-auth-gate-btn:hover,
.market-auth-gate-btn:focus-visible {
  transform: translateY(-1px);
}

.market-auth-gate-btn:focus-visible {
  outline: 2px solid rgba(39, 104, 220, 0.34);
  outline-offset: 2px;
}

.market-filters-sheet.market-filters-auth-only .market-sheet-layout {
  display: none;
}

.market-filters-sheet.market-filters-locked .market-sheet-main {
  opacity: 0.72;
}

.market-filters-sheet.market-filters-locked .search-modal-section label,
.market-filters-sheet.market-filters-locked .search-modal-section .search-modal-label {
  cursor: not-allowed;
}

.market-filters-sheet.market-filters-locked .market-sheet-main :is(input, select, button, textarea):disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.market-summary-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.market-summary-actions .apply-results-btn,
.market-summary-actions .search-reset-btn {
  width: 100%;
  min-width: 0;
  height: 56px;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.market-summary-actions .material-symbols-outlined {
  font-size: 1.18rem;
  line-height: 1;
}

.market-summary-actions .apply-results-btn {
  border-color: #1b66e5;
  box-shadow: 0 12px 24px rgba(31, 112, 238, 0.28);
}

.market-summary-actions .search-reset-btn {
  border-color: #b6cae9;
  color: #1e64df;
}

.market-hidden-cancel {
  display: none;
}

.market-filters-sheet .search-sheet-footer {
  display: none;
}

@media (max-width: 900px) {
  #search-sheet.market-filters-sheet .filter-section-mobile {
    background: #ffffff;
    border: 1px solid #dce6f8;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
  }

  #search-sheet.market-filters-sheet .filter-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  #search-sheet.market-filters-sheet .filter-section-title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1d3359;
  }

  #search-sheet.market-filters-sheet .mobile-more-link {
    border: none;
    background: transparent;
    color: #0b67f2;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid .mobile-property-pill {
    min-height: 44px;
    justify-content: flex-start;
    padding: 9px 10px;
    gap: 6px;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid .mobile-property-pill .material-symbols-outlined {
    font-size: 1rem;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid:not(.expanded) .mobile-expandable-option {
    display: none;
  }

  #search-sheet.market-filters-sheet .mobile-compact-grid.mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group {
    display: grid;
    gap: 8px;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .search-modal-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #5f7192;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  #search-sheet.market-filters-sheet .round-pills,
  #search-sheet.market-filters-sheet .mobile-parking-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #search-sheet.market-filters-sheet .mobile-range-card {
    --range-start: 8%;
    --range-end: 92%;
    border-radius: 14px;
    border: 1px solid #d5e1f7;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  }

  #search-sheet.market-filters-sheet .mobile-range-card .range-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

  #search-sheet.market-filters-sheet .range-head-muted {
    color: #6e81a8;
    font-size: 0.74rem;
    font-weight: 600;
  }

  #search-sheet.market-filters-sheet .mobile-range-active-text {
    color: #3058a8;
    font-size: 0.74rem;
    font-weight: 700;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: #eaf1ff;
    margin: 6px 0 10px;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-line {
    position: absolute;
    left: var(--range-start);
    right: calc(100% - var(--range-end));
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #2a7bff 0%, #5bb0ff 100%);
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #2a7bff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(42, 123, 255, 0.2);
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-left {
    left: var(--range-start);
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-right {
    left: var(--range-end);
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 8px;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    display: grid;
    gap: 4px;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap > span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6b7ea3;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
    height: 38px;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-separator {
    color: #8ea4cb;
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 8px;
  }

  #search-sheet.market-filters-sheet .amenities-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill {
    justify-content: flex-start;
    gap: 6px;
    min-height: 42px;
    padding: 9px 10px;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill .material-symbols-outlined {
    font-size: 1rem;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid:not(.expanded) .amenity-pill:nth-child(n + 5) {
    display: none;
  }
}

.mobile-market-copy,
.mobile-filters-footer {
  display: none;
}


/* Market filters: compact single-screen desktop pass (no internal scroll) */
@media (min-width: 861px) {
  .market-filters-sheet {
    padding: 12px 14px 12px;
    max-height: min(92vh, 1020px);
    overflow: hidden;
  }

  .market-filters-sheet .search-sheet-header {
    margin-bottom: 8px;
  }

  .market-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.15rem;
  }

  .market-filters-sheet .search-sheet-header h3 {
    font-size: 2rem;
    line-height: 0.98;
  }

  .market-filters-sheet .sheet-subtitle {
    margin-top: 2px;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .market-sheet-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 8px;
    align-items: stretch;
  }

  .market-sheet-main {
    gap: 7px;
  }

  .market-filters-sheet .search-modal-section {
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .market-filters-sheet .search-modal-grid {
    gap: 6px;
  }

  .market-filters-sheet .search-modal-grid label {
    padding: 6px 8px;
    gap: 4px;
    border-radius: 10px;
    font-size: 0.84rem;
    border: 1px solid #dce5f1;
    background: #ffffff;
  }

  .market-filters-sheet .market-filter-pairs {
    gap: 6px;
  }

  .market-filters-sheet .segmented-pills {
    gap: 6px;
    margin: 0;
  }

  .market-filters-sheet .segmented-pills .pill {
    min-height: 29px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .market-filters-sheet #property-type-pills {
    gap: 6px;
  }

  .market-filters-sheet #property-type-pills .pill {
    min-height: 29px;
    padding: 0 9px;
    font-size: 0.74rem;
    gap: 5px;
  }

  .market-filters-sheet #property-type-pills .pill .material-symbols-outlined {
    font-size: 0.74rem;
  }

  .market-filters-sheet .search-modal-ranges .search-modal-grid {
    gap: 8px;
  }

  .market-filters-sheet .range-card {
    border-radius: 11px;
    padding: 7px 8px;
    border: 1px solid #dce5f1;
    background: #ffffff;
  }

  .market-filters-sheet .range-head strong {
    font-size: 0.82rem;
  }

  .market-filters-sheet .range-head span {
    font-size: 0.8rem;
  }

  .market-filters-sheet .range-track {
    height: 18px;
    margin: 4px 1px 12px;
  }

  .market-filters-sheet .range-line {
    height: 3px;
  }

  .market-filters-sheet .range-slider {
    height: 14px;
    top: 50%;
  }

  .market-filters-sheet .range-slider::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
  }

  .market-filters-sheet .range-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
  }

  .market-filters-sheet .range-bubble {
    min-width: 44px;
    max-width: 92px;
    padding: 1px 6px;
    font-size: 0.62rem;
    bottom: calc(100% + 5px);
  }

  .market-filters-sheet .range-meta em {
    font-size: 0.66rem;
  }

  .market-filters-sheet .range-inputs {
    margin-top: 4px;
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-filters-sheet .range-inputs input {
    height: 32px;
    border-radius: 10px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .market-filters-sheet .search-modal-grid input,
  .market-filters-sheet .search-modal-grid select {
    height: 32px;
    border-radius: 10px;
    font-size: 0.74rem;
  }

  .market-filters-sheet .market-multiselect-toggle {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .market-filters-sheet .market-multiselect-toggle .material-symbols-outlined {
    font-size: 0.82rem;
  }

  .market-filters-sheet .market-multiselect-menu {
    max-height: 224px;
    padding: 4px;
    border-radius: 12px;
  }

  .market-filters-sheet .market-multiselect-option {
    padding: 5px 7px;
    font-size: 0.68rem;
    gap: 7px;
  }

  .market-filters-sheet .market-multiselect-option input {
    width: 13px;
    height: 13px;
  }

  .market-filters-sheet .market-multiselect-help {
    font-size: 0.62rem;
  }

  .market-filters-sheet [aria-label="Límite de resultados"] .search-modal-grid label {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .market-filters-sheet .search-modal-label {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .market-filters-sheet .amenity-pills {
    gap: 6px;
  }

  .market-filters-sheet .amenity-pill {
    min-height: 29px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .market-sheet-summary {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-content: stretch;
    height: 100%;
    min-height: 0;
    padding: 9px 9px 8px;
    border-radius: 11px;
  }

  .market-sheet-summary h4 {
    margin: 0 0 6px;
    font-size: 1.6rem;
  }

  .market-summary-list {
    min-height: 0;
    overflow: hidden;
  }

  .market-summary-list li {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 6px;
    padding: 5px 0;
  }

  .market-summary-list .material-symbols-outlined {
    width: 22px;
    height: 22px;
    font-size: 0.84rem;
  }

  .market-summary-list small {
    margin-bottom: 1px;
    font-size: 0.6rem;
  }

  .market-summary-list strong {
    font-size: 0.7rem;
    line-height: 1.12;
  }

  .market-summary-list button {
    font-size: 0.86rem;
  }

  .market-results-card {
    margin-top: 4px;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #dce5f1;
    background: linear-gradient(135deg, #eef4fe, #f7fbff);
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px;
  }

  .market-results-card .material-symbols-outlined {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .market-results-card strong {
    font-size: 1.9rem;
  }

  .market-results-card p {
    margin-top: 3px;
    font-size: 0.76rem;
  }

  .market-results-card small {
    margin-top: 1px;
    font-size: 0.64rem;
  }

  .market-summary-actions {
    margin-top: 4px;
    gap: 6px;
  }

  .market-summary-actions .apply-results-btn,
  .market-summary-actions .search-reset-btn {
    height: 38px;
    border-radius: 10px;
    font-size: 0.76rem;
    gap: 6px;
  }

  .market-summary-actions .material-symbols-outlined {
    font-size: 1rem;
  }
}

@media (max-width: 1180px) {
  .market-filters-sheet {
    width: calc(100vw - 28px);
    padding: 16px 14px;
  }

  .market-sheet-layout {
    grid-template-columns: 1fr;
  }

  .market-sheet-summary h4 {
    font-size: 1.7rem;
  }
}

@media (max-width: 860px) {
  .market-filters-sheet {
    width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 12px 10px 12px !important;
    border-radius: 18px !important;
  }

  .desktop-market-copy {
    display: none !important;
  }

  .mobile-market-copy {
    display: inline !important;
  }

  .mobile-filter-header {
    margin-bottom: 8px !important;
  }

  .mobile-filter-title-block h3 {
    font-size: 1.45rem !important;
    line-height: 0.98 !important;
    letter-spacing: -0.03em !important;
  }

  .mobile-filter-title-block .sheet-subtitle {
    margin-top: 3px !important;
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
  }

  .market-filters-sheet .search-sheet-close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    border: 1px solid #d9e4f5 !important;
    color: #5a7094 !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
  }

  .market-filters-sheet .search-sheet-close .material-symbols-outlined {
    font-size: 1.05rem !important;
    line-height: 1 !important;
  }

  .market-sheet-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .market-sheet-summary {
    display: none !important;
  }

  .market-sheet-main {
    gap: 8px !important;
    padding-bottom: 86px !important;
  }

  .market-filters-sheet .search-modal-section {
    margin: 0 0 8px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  .market-filters-sheet .search-modal-grid label {
    padding: 8px 8px !important;
    gap: 6px !important;
    font-size: 0.72rem !important;
  }

  .market-filters-sheet .segmented-pills .pill {
    min-height: 33px !important;
    padding: 0 11px !important;
    font-size: 0.74rem !important;
  }

  .market-filters-sheet .range-card {
    padding: 8px !important;
    border-radius: 12px !important;
  }

  .mobile-filters-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 0 -2px -2px;
    padding: 10px 2px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(245, 249, 255, 0.98));
    border-top: 1px solid #e2ebf8;
  }

  .mobile-filters-stats {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-filters-stats strong {
    color: #16315c;
    font-size: 1.14rem;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 800;
  }

  .mobile-filters-stats span {
    color: #6f83a2;
    font-size: 0.67rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-filters-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-btn-reset,
  .mobile-btn-apply {
    height: 36px;
    min-width: 0;
    border-radius: 10px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-btn-reset {
    border: 1px solid #c4d5ef;
    background: #ffffff;
    color: #2a66d7;
  }

  .mobile-btn-apply {
    border: 1px solid #1e69e8;
    background: linear-gradient(135deg, #2d7df4, #1660e4);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(29, 103, 230, 0.24);
  }

  .mobile-btn-reset .material-symbols-outlined,
  .mobile-btn-apply .material-symbols-outlined {
    font-size: 0.95rem;
  }

  .market-filters-sheet .search-sheet-header h3 {
    font-size: 1.45rem;
  }

  .market-filters-sheet .sheet-subtitle {
    font-size: 0.76rem;
  }

  .market-filters-sheet .search-modal-grid-2 {
    grid-template-columns: 1fr;
  }

  .market-filters-sheet .segmented-pills .pill {
    min-height: 33px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .market-filters-sheet .range-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .market-summary-actions .apply-results-btn,
  .market-summary-actions .search-reset-btn {
    height: 50px;
    font-size: 0.98rem;
  }
}

/* Metrics sheet replica (light card) */
#settings-sheet.settings-sheet {
  top: 10px !important;
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  width: min(268px, calc(100vw - 14px)) !important;
  max-height: calc(100vh - 20px) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow: auto !important;
  overflow-x: hidden !important;
  border-radius: 12px !important;
  border: 1px solid #dce3ee !important;
  background: #ffffff !important;
  box-shadow: 0 16px 34px rgba(18, 38, 69, 0.2) !important;
  color: #172b4a !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

#settings-sheet .settings-sheet-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 12px 14px 8px !important;
  border-bottom: 0 !important;
}

#settings-sheet .settings-sheet-header > div:first-child {
  min-width: 0 !important;
}

#settings-sheet .settings-sheet-header h3 {
  margin: 0 !important;
  color: #1a2e4a !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  padding-right: 10px !important;
}

#settings-sheet .sheet-subtitle {
  margin-top: 5px !important;
  font-size: 0.72rem !important;
  color: #2f79ee !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

#settings-sheet .settings-sheet-close {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  border: 1px solid #d6dfec !important;
  background: #f6f8fc !important;
  color: #7789a2 !important;
  font-size: 1.1rem !important;
}

#settings-sheet .settings-sheet-section {
  padding: 8px 10px 10px !important;
}

#settings-sheet .metric-icon-pills {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#settings-sheet .listing-icon-pills {
  margin-top: 8px !important;
}

#settings-sheet .metric-icon-btn {
  height: 70px !important;
  border-radius: 10px !important;
  border: 1px solid #d8e0ed !important;
  background: #f8fafd !important;
  color: #4d6482 !important;
  gap: 4px !important;
  box-shadow: none !important;
  transform: none !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

#settings-sheet .metric-icon-btn:hover {
  background: #f2f6fc !important;
  transform: none !important;
}

#settings-sheet .metric-icon-btn .material-symbols-outlined {
  font-size: 1rem !important;
}

#settings-sheet .metric-btn-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  line-height: 1.1 !important;
}

#settings-sheet .metric-icon-btn.active {
  color: #ffffff !important;
  border-color: #1d68e5 !important;
  background: linear-gradient(180deg, #2a78ef, #1760e0) !important;
  box-shadow: 0 8px 18px rgba(30, 106, 230, 0.28) !important;
}

#settings-sheet .metric-icon-btn.active::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #2a78ef;
  font-size: 0.55rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#settings-sheet .settings-sheet-footer {
  padding: 8px 10px 10px !important;
  border-top: 0 !important;
}

#settings-sheet .settings-footer-actions {
  width: 100% !important;
}

#settings-sheet .settings-apply-btn {
  width: 100% !important;
  height: 34px !important;
  min-width: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #1f6ce7 !important;
  background: linear-gradient(180deg, #2a78ef, #1760e0) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  letter-spacing: 0.01em !important;
}

@media (max-width: 760px) {
  #settings-sheet.settings-sheet {
    left: 6px !important;
    width: calc(100vw - 12px) !important;
  }
}

/* Ultra-final sidebar override: light left panel + keep profile option bottom */
@media (min-width: 761px) {
  .app-shell {
    padding: 10px !important;
    gap: 10px !important;
    background: #eef1f6 !important;
  }

  .app-shell > .sidebar,
  .app-shell > .sidebar.collapsed {
    width: 318px !important;
    min-width: 318px !important;
    border-radius: 34px !important;
    border: 1px solid #e4e9f2 !important;
    background: linear-gradient(180deg, #ffffff, #f7f9fd) !important;
    box-shadow: 0 18px 38px rgba(31, 47, 76, 0.12) !important;
    overflow: hidden !important;
  }

  .app-shell > .sidebar .sidebar-panel {
    display: none !important;
  }

  .app-shell > .sidebar > .sidebar-rail {
    width: 100% !important;
    padding: 28px 24px 20px !important;
    gap: 18px !important;
    align-items: stretch !important;
    border-right: 0 !important;
  }

  .app-shell > .sidebar .editorial-brand {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas: "mark title" "mark subtitle" !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: center !important;
    padding: 2px 0 8px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .app-shell > .sidebar .brand-mark {
    grid-area: mark !important;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-shell > .sidebar .brand-mark-logo {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    filter: none !important;
  }

  .app-shell > .sidebar .brand-title {
    grid-area: title !important;
    margin: 0 !important;
    font-size: 2.95rem !important;
    line-height: 0.92 !important;
    letter-spacing: -0.03em !important;
    color: #070a10 !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  .app-shell > .sidebar .brand-subtitle {
    grid-area: subtitle !important;
    margin-top: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.015em !important;
    text-transform: uppercase !important;
    color: #1f6fff !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  .app-shell > .sidebar .sidebar-toggle-btn,
  .app-shell > .sidebar #sidebar-toggle {
    display: none !important;
  }

  .app-shell > .sidebar .rail-btn,
  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    width: 100% !important;
    height: 88px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
  }

  .app-shell > .sidebar a.rail-btn {
    text-decoration: none !important;
  }

  .app-shell > .sidebar .rail-btn .nav-icon {
    font-size: 2.1rem !important;
    color: #697ba2 !important;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24 !important;
  }

  .app-shell > .sidebar .rail-btn .nav-label {
    font-size: 1.86rem !important;
    line-height: 1 !important;
    color: #6678a1 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    display: inline !important;
  }

  .app-shell > .sidebar .rail-btn-active {
    background: #edf2ff !important;
  }

  .app-shell > .sidebar .rail-btn-active .nav-icon,
  .app-shell > .sidebar .rail-btn-active .nav-label {
    color: #1f6fff !important;
    font-weight: 700 !important;
  }

  .app-shell > .sidebar .rail-tooltip-card,
  .app-shell > .sidebar .rail-btn[data-tooltip]::after,
  .app-shell > .sidebar .sidebar-avatar[data-tooltip]::after {
    display: none !important;
  }

  .app-shell > .sidebar .rail-spacer {
    flex: 1 1 auto !important;
    min-height: 26px !important;
    margin: 8px 0 2px !important;
    width: 100% !important;
    border-top: 1px solid #e6ebf4 !important;
  }

  .app-shell > .sidebar .sidebar-avatar {
    margin-top: 0 !important;
    width: 100% !important;
    min-height: 70px !important;
    border-radius: 18px !important;
    border: 1px solid #e3e8f2 !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-image {
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta {
    display: grid !important;
    gap: 1px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta strong {
    font-size: 0.88rem !important;
    line-height: 1.12 !important;
    color: #22385c !important;
    font-weight: 700 !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta span {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
    color: #6f86ab !important;
    font-weight: 600 !important;
  }

  .map-stage {
    border-radius: 28px !important;
    overflow: hidden !important;
    border: 1px solid #e1e7f0 !important;
  }
}

/* Auth dock replica (logout + tokens) */
.home-auth-dock.is-authenticated {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 18px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 72px !important;
  height: 72px !important;
  width: min(438px, calc(100vw - 128px)) !important;
  padding: 8px 12px !important;
  border-radius: 24px !important;
  border: 1px solid #d9e2f1 !important;
  background: #f7f9fe !important;
  box-shadow: 0 16px 34px rgba(21, 41, 78, 0.16) !important;
}

.home-auth-dock.is-authenticated .home-auth-locate {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 14px !important;
  border: 1px solid #e2eaf6 !important;
  background: linear-gradient(180deg, #eef3ff 0%, #e8effd 100%) !important;
  box-shadow: none !important;
}

.home-auth-dock.is-authenticated .home-auth-locate-icon {
  color: #1f79f1 !important;
  font-size: 22px !important;
  font-variation-settings: "FILL" 0, "wght" 650, "GRAD" 0, "opsz" 24 !important;
}

.home-auth-dock.is-authenticated .home-auth-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.home-auth-dock.is-authenticated .home-auth-btn-login {
  border: 1px solid #d7dfed !important;
  background: #ffffff !important;
  color: #48567f !important;
  box-shadow: 0 6px 12px rgba(38, 64, 110, 0.08) inset !important;
}

.home-auth-dock.is-authenticated .home-auth-btn-register,
.home-auth-dock.is-authenticated .home-auth-badge {
  border: 0 !important;
  background: linear-gradient(135deg, #1f79f1 0%, #0f62e7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(20, 99, 233, 0.32) !important;
}

.home-auth-dock.is-authenticated .home-auth-btn-register.hidden,
.home-auth-dock.is-authenticated .home-auth-badge.hidden {
  display: none !important;
}

.home-auth-dock.is-authenticated #home-auth-register {
  display: none !important;
}

.home-auth-dock.is-authenticated .home-auth-logout-icon {
  color: #5f6f98 !important;
  font-size: 1.25rem !important;
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 24 !important;
}

.home-auth-dock.is-authenticated .home-auth-token-icon {
  color: #ffffff !important;
  font-size: 1.22rem !important;
  text-shadow: none !important;
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 24 !important;
}

@media (max-width: 760px) {
  .home-auth-dock.is-authenticated {
    width: calc(100vw - 124px) !important;
    min-height: 64px !important;
    height: 64px !important;
    grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 7px 9px !important;
    border-radius: 20px !important;
  }

  .home-auth-dock.is-authenticated .home-auth-locate {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
  }

  .home-auth-dock.is-authenticated .home-auth-locate-icon {
    font-size: 19px !important;
  }

  .home-auth-dock.is-authenticated .home-auth-btn {
    min-height: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    padding: 0 10px !important;
  }
}

/* Guest dock replica (not logged in) */
.home-auth-dock:not(.is-authenticated) {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 18px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 72px !important;
  height: 72px !important;
  width: min(620px, calc(100vw - 64px)) !important;
  padding: 8px 12px !important;
  border-radius: 24px !important;
  border: 1px solid #d8e2f1 !important;
  background: #f7f9fe !important;
  box-shadow: 0 14px 30px rgba(21, 41, 78, 0.14) !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-locate {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 14px !important;
  border: 1px solid #d9e5f7 !important;
  background: linear-gradient(180deg, #2f90ff 0%, #176fe5 100%) !important;
  box-shadow: 0 8px 16px rgba(28, 116, 236, 0.34) !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-locate-icon {
  color: #ffffff !important;
  font-size: 22px !important;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20 !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-btn-login {
  border: 1px solid #d7dfed !important;
  background: #ffffff !important;
  color: #3f5078 !important;
  box-shadow: 0 4px 10px rgba(36, 66, 120, 0.08) !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-btn-register {
  border: 0 !important;
  background: linear-gradient(135deg, #1f79f1 0%, #0f62e7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(20, 99, 233, 0.3) !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-btn-register {
  min-width: 230px !important;
  white-space: normal !important;
  line-height: 1.12 !important;
  text-align: center !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-icon {
  font-size: 1rem !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  .home-auth-dock:not(.is-authenticated) {
    width: calc(100vw - 100px) !important;
    min-height: 64px !important;
    height: 64px !important;
    grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 7px 9px !important;
    border-radius: 20px !important;
  }

  .home-auth-dock:not(.is-authenticated) .home-auth-locate {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
  }

  .home-auth-dock:not(.is-authenticated) .home-auth-locate-icon {
    font-size: 19px !important;
  }

  .home-auth-dock:not(.is-authenticated) .home-auth-btn {
    min-height: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    padding: 0 10px !important;
    font-size: 0.88rem !important;
  }
}

/* Final left panel redesign (reference: light sidebar), keep profile option at bottom */
@media (min-width: 761px) {
  .app-shell {
    padding: 10px !important;
    gap: 10px !important;
    background: #eef1f6 !important;
  }

  .app-shell > .sidebar,
  .app-shell > .sidebar.collapsed {
    width: 318px !important;
    min-width: 318px !important;
    border-radius: 34px !important;
    border: 1px solid #e4e9f2 !important;
    background: linear-gradient(180deg, #ffffff, #f7f9fd) !important;
    box-shadow: 0 18px 38px rgba(31, 47, 76, 0.12) !important;
    overflow: hidden !important;
  }

  .app-shell > .sidebar > .sidebar-panel,
  .app-shell > .sidebar .sidebar-panel {
    display: none !important;
  }

  .app-shell > .sidebar > .sidebar-rail {
    width: 100% !important;
    padding: 28px 24px 20px !important;
    gap: 18px !important;
    align-items: stretch !important;
    border-right: 0 !important;
  }

  .app-shell > .sidebar .editorial-brand {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "mark title"
      "mark subtitle" !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: center !important;
    padding: 2px 0 8px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .app-shell > .sidebar .brand-mark {
    grid-area: mark !important;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-shell > .sidebar .brand-mark-logo {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    filter: none !important;
  }

  .app-shell > .sidebar .brand-title {
    grid-area: title !important;
    margin: 0 !important;
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
    font-size: 2.95rem !important;
    line-height: 0.92 !important;
    letter-spacing: -0.03em !important;
    color: #070a10 !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  .app-shell > .sidebar .brand-subtitle {
    grid-area: subtitle !important;
    margin-top: 0 !important;
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.015em !important;
    text-transform: uppercase !important;
    color: #1f6fff !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  .app-shell > .sidebar .sidebar-toggle-btn,
  .app-shell > .sidebar #sidebar-toggle {
    display: none !important;
  }

  .app-shell > .sidebar .rail-btn,
  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    width: 100% !important;
    height: 88px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
  }

  .app-shell > .sidebar a.rail-btn {
    text-decoration: none !important;
  }

  .app-shell > .sidebar .rail-btn .nav-icon {
    font-size: 2.1rem !important;
    color: #697ba2 !important;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24 !important;
  }

  .app-shell > .sidebar .rail-btn .nav-label {
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
    font-size: 1.86rem !important;
    line-height: 1 !important;
    color: #6678a1 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    display: inline !important;
  }

  .app-shell > .sidebar .rail-btn-active {
    background: #edf2ff !important;
  }

  .app-shell > .sidebar .rail-btn-active .nav-icon,
  .app-shell > .sidebar .rail-btn-active .nav-label {
    color: #1f6fff !important;
    font-weight: 700 !important;
  }

  .app-shell > .sidebar .rail-tooltip-card,
  .app-shell > .sidebar .rail-btn[data-tooltip]::after,
  .app-shell > .sidebar .sidebar-avatar[data-tooltip]::after {
    display: none !important;
  }

  .app-shell > .sidebar .rail-spacer {
    flex: 1 1 auto !important;
    min-height: 26px !important;
    margin: 8px 0 2px !important;
    width: 100% !important;
    border-top: 1px solid #e6ebf4 !important;
  }

  .app-shell > .sidebar .sidebar-avatar {
    margin-top: 0 !important;
    width: 100% !important;
    min-height: 70px !important;
    border-radius: 18px !important;
    border: 1px solid #e3e8f2 !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-image {
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta {
    display: grid !important;
    gap: 1px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta strong {
    font-size: 0.88rem !important;
    line-height: 1.12 !important;
    color: #22385c !important;
    font-weight: 700 !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta span {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
    color: #6f86ab !important;
    font-weight: 600 !important;
  }

  .map-stage {
    border-radius: 28px !important;
    overflow: hidden !important;
    border: 1px solid #e1e7f0 !important;
  }
}

/* Map properties panel replica */
.map-hover-panel {
  width: min(640px, calc(100vw - 16px)) !important;
  height: min(242px, calc(100vh - 16px)) !important;
  height: min(242px, calc(100dvh - 16px)) !important;
  max-height: min(242px, calc(100vh - 16px)) !important;
  max-height: min(242px, calc(100dvh - 16px)) !important;
  top: 6px !important;
  left: 6px !important;
  z-index: 960 !important;
}

.hover-card {
  border-radius: 14px !important;
  border: 1px solid #0f1723 !important;
  background: #dfe4ec !important;
  box-shadow: 0 8px 16px rgba(8, 14, 25, 0.2) !important;
  overflow: hidden !important;
}

.mega-overview {
  height: 100% !important;
  display: grid !important;
  grid-template-columns: 40% 60% !important;
  gap: 0 !important;
  align-items: stretch !important;
}

.mega-overview-info {
  background: #03070e !important;
  color: #edf3ff !important;
  border-radius: 13px 0 0 13px !important;
  padding: 10px 12px 10px !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.zone-tag {
  margin: 0 0 6px !important;
  color: #1f6fc7 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
}

.mega-overview-info h3 {
  margin: 0 0 5px !important;
  color: #f4f7fc !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: clamp(2.08rem, 2.45vw, 2.6rem) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
}

#hover-zone-meta {
  margin: 0 !important;
  color: #9ca8ba !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
}

#hover-zone-stats {
  margin: 8px 0 8px !important;
  color: #e3eaf6 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 1.86rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.zone-metrics {
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 12px !important;
}

.zone-metrics div {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.zone-metrics dt {
  color: #7b889b !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.61rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.zone-metrics dd {
  margin: 1px 0 0 !important;
  color: #f2f6ff !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 1.88rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.zone-analysis-btn {
  margin-top: auto !important;
  height: 28px !important;
  border-radius: 9px !important;
  border: 0 !important;
  background: #eef2f7 !important;
  color: #006f8c !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.mega-overview-listings {
  background: #dce2ea !important;
  border: none !important;
  border-radius: 0 13px 13px 0 !important;
  padding: 8px 9px 7px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.listing-headline {
  margin-bottom: 4px !important;
}

.mini-title-top {
  margin: 0 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.05em !important;
  color: #8b97aa !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.mini-title-main {
  margin: 1px 0 0 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 1.02 !important;
  color: #304660 !important;
  font-weight: 800 !important;
}

.filter-link {
  height: 22px !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #086f8f !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
}

.listing-list-rich {
  flex: 1 !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding-right: 2px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #9eabbc transparent !important;
}

.listing-list li {
  margin: 0 0 6px !important;
}

.listing-item-btn {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) 14px !important;
  grid-template-areas:
    "thumb title arrow"
    "thumb meta arrow"
    "thumb price arrow"
    "thumb submeta arrow" !important;
  align-items: center !important;
  column-gap: 8px !important;
  min-height: 48px !important;
  padding: 6px 8px 5px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #eef1f5 !important;
}

.listing-item-btn:hover {
  background: #e7edf3 !important;
  box-shadow: none !important;
}

.listing-thumb {
  grid-area: thumb !important;
  width: 52px !important;
  height: 44px !important;
  border-radius: 9px !important;
  background-color: #9aabbd !important;
  background-size: cover !important;
  background-position: center !important;
  border: none !important;
  box-shadow: none !important;
}

.listing-head {
  grid-area: title !important;
}

.listing-head h4 {
  margin: 0 !important;
  color: #30465f !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.55rem !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
}

.listing-meta {
  grid-area: meta !important;
  margin: 0 !important;
  color: #49678f !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.36rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.listing-price {
  grid-area: price !important;
  margin: 0 !important;
  color: #2b4f7d !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.56rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.listing-submeta {
  grid-area: submeta !important;
  margin: 0 !important;
  color: #6f7f94 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.34rem !important;
  font-weight: 600 !important;
}

.listing-arrow {
  grid-area: arrow !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 0 !important;
  border: none !important;
  color: #6b7c93 !important;
  font-size: 0.74rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 980px) {
  .map-hover-panel {
    width: min(92vw, 640px) !important;
    height: min(78vh, 620px) !important;
    max-height: min(78vh, 620px) !important;
  }

  .mega-overview {
    grid-template-columns: 1fr !important;
  }

  .listing-item-btn {
    grid-template-columns: 78px minmax(0, 1fr) 20px !important;
    min-height: 88px !important;
  }

  .listing-thumb {
    width: 78px !important;
    height: 66px !important;
  }

  .listing-price {
    font-size: 1.2rem !important;
  }
}

/* Final fidelity pass: exact light panel (Santa Monica reference) */
.map-hover-panel {
  width: min(980px, calc(100vw - 20px)) !important;
  height: min(430px, calc(100vh - 20px)) !important;
  height: min(430px, calc(100dvh - 20px)) !important;
  max-height: min(430px, calc(100vh - 20px)) !important;
  max-height: min(430px, calc(100dvh - 20px)) !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  transform: scale(0.85) !important;
  transform-origin: top left !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hover-card {
  border-radius: 16px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: 0 14px 30px rgba(20, 41, 69, 0.14) !important;
}

.mega-overview {
  grid-template-columns: 41% 59% !important;
  gap: 10px !important;
  padding: 6px !important;
}

.mega-overview-info {
  background: #ffffff !important;
  color: #1a3158 !important;
  border-radius: 14px !important;
  border: 1px solid #e2e9f4 !important;
  padding: 16px 16px 14px !important;
}

.zone-tag {
  margin: 0 0 10px !important;
  color: #3d73d9 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}

.mega-overview-info h3 {
  margin: 0 0 6px !important;
  color: #142a53 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: clamp(2.08rem, 2.4vw, 3rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
}

#hover-zone-meta {
  margin: 0 !important;
  color: #6f7f95 !important;
  font-size: 1.04rem !important;
  line-height: 1.2 !important;
}

#hover-zone-stats {
  margin: 12px 0 12px !important;
  color: #445a79 !important;
  font-size: 0.86rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.zone-metrics {
  gap: 10px !important;
}

.zone-metrics div {
  border: 1px solid #e3eaf5 !important;
  background: #f3f7fc !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

.zone-metrics dt {
  color: #7f90ab !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.zone-metrics dd {
  margin: 2px 0 0 !important;
  color: #19335f !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.zone-analysis-btn {
  height: 44px !important;
  border-radius: 10px !important;
  border: 1px solid #1f68e7 !important;
  background: linear-gradient(180deg, #2877ef, #1b64e1) !important;
  color: #ffffff !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(35, 110, 235, 0.23) !important;
}

.mega-overview-listings {
  background: #ffffff !important;
  border: 1px solid #e2e9f4 !important;
  border-radius: 14px !important;
  padding: 12px 12px 10px !important;
}

.listing-headline {
  margin-bottom: 8px !important;
}

.mini-title-top {
  margin: 0 !important;
  color: #8392a7 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.mini-title-main {
  margin: 2px 0 0 !important;
  color: #243d63 !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 1.08rem !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
}

.filter-link {
  height: 30px !important;
  border-radius: 999px !important;
  border: 1px solid #d4e0f3 !important;
  background: #ffffff !important;
  color: #286fdc !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  padding: 0 10px !important;
}

.listing-list-rich {
  scrollbar-color: #c1ccdd transparent !important;
}

.listing-list li {
  margin: 0 0 9px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.mega-overview-listings .listing-list > li,
.mega-overview-listings .listing-list-rich > li,
.listing-list-rich > li {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.listing-item-btn {
  grid-template-columns: 108px minmax(0, 1fr) 24px !important;
  column-gap: 11px !important;
  min-height: 98px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  border: 1px solid #e3eaf5 !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}

.listing-item-btn:hover {
  border-color: #cddaf1 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(34, 70, 113, 0.12) !important;
}

.listing-item-btn.is-readonly {
  cursor: default !important;
}

.listing-item-btn.is-readonly:hover {
  transform: none !important;
  box-shadow: none !important;
}

.listing-source-note {
  align-self: end;
  justify-self: end;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #6b7b90;
  text-transform: uppercase;
}

.listing-item-btn:focus,
.listing-item-btn:focus-visible {
  outline: none !important;
  border-color: #cddaf1 !important;
  box-shadow: none !important;
}

.listing-thumb {
  width: 108px !important;
  height: 78px !important;
  border-radius: 10px !important;
  border: 1px solid #d8e2ef !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.listing-head h4 {
  color: #1b3156 !important;
  font-size: 1rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

.listing-meta {
  color: #2a6fda !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.listing-price {
  color: #1b2d4e !important;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.listing-submeta {
  color: #7287a8 !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}

.listing-arrow {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  border: 1px solid #d9e3f2 !important;
  color: #8da0bb !important;
  font-size: 1.06rem !important;
}

@media (max-width: 980px) {
  .map-hover-panel {
    width: min(96vw, 700px) !important;
    height: min(86vh, 700px) !important;
    max-height: min(86vh, 700px) !important;
    transform: scale(0.85) !important;
    transform-origin: top left !important;
  }

  .mega-overview {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .mega-overview-info,
  .mega-overview-listings {
    border-radius: 12px !important;
  }

  .listing-item-btn {
    grid-template-columns: 86px minmax(0, 1fr) 20px !important;
    min-height: 86px !important;
  }

  .listing-thumb {
    width: 86px !important;
    height: 64px !important;
  }

  .listing-price {
    font-size: 1.22rem !important;
  }
}

/* Sidebar scale pass: +15% logo and rail controls */
.app-shell > .sidebar .brand-mark,
.app-shell > .sidebar .brand-mark-logo {
  width: 39px !important;
  height: 39px !important;
}

.app-shell > .sidebar .brand-title {
  font-size: 0.97rem !important;
}

.app-shell > .sidebar .brand-subtitle {
  font-size: 0.71rem !important;
}

.app-shell > .sidebar .rail-btn {
  height: 61px !important;
}

.app-shell > .sidebar .rail-btn-wide,
.app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
.app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
.app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
  width: 95px !important;
}

.app-shell > .sidebar .rail-btn .nav-icon {
  font-size: 1.46rem !important;
}

.app-shell > .sidebar .rail-btn .nav-label {
  font-size: 0.74rem !important;
}

.app-shell > .sidebar .sidebar-avatar-image {
  width: 53px !important;
  height: 53px !important;
}

/* Property detail panel typography + CTA blue */
#property-detail-panel,
#property-detail-panel .property-detail-body,
#property-detail-panel .property-detail-location,
#property-detail-panel .property-detail-description,
#property-detail-panel .property-tag-chip,
#property-detail-panel .property-chip,
#property-detail-panel .property-detail-close,
#property-detail-panel .property-link {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

#property-detail-panel .property-detail-title,
#property-detail-panel .property-section-title,
#property-detail-panel .property-detail-summary .field dd {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

#property-detail-panel .property-link {
  background: linear-gradient(180deg, #2a78ef, #1760e0) !important;
  border: 1px solid #1f6ce7 !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 10px 20px rgba(31, 108, 231, 0.3) !important;
}

/* Strong typography override for detail panel content nodes */
#property-detail-title {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
}

#property-detail-subtitle,
#property-detail-description,
#property-detail-panel .property-detail-close,
#property-detail-panel .property-tag-chip,
#property-detail-panel .property-chip,
#property-detail-panel .property-link {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

#property-detail-panel .property-section-title,
#property-detail-panel .property-detail-summary .field dt {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.11em !important;
}

#property-detail-panel .property-detail-summary .field dd {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  font-weight: 800 !important;
}

/* Detail panel typography override */
#property-detail-panel,
#property-detail-panel *:not(.material-symbols-outlined) {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
}

/* Responsive hardening pass (preserve visual order, improve fit on small screens) */
@media (max-width: 1280px) {
  .app-shell > .sidebar {
    width: 106px !important;
    min-width: 106px !important;
  }

  .map-hover-panel {
    transform: scale(0.82) !important;
    transform-origin: top left !important;
  }

  .property-detail-panel {
    width: min(430px, calc(100vw - 22px)) !important;
  }

  .home-auth-dock {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 1024px) {
  .app-shell > .sidebar {
    width: 96px !important;
    min-width: 96px !important;
  }

  .app-shell > .sidebar .rail-btn {
    height: 48px !important;
  }

  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    width: 76px !important;
  }

  .map-hover-panel {
    width: min(94vw, 760px) !important;
    height: min(78vh, 560px) !important;
    max-height: min(78vh, 560px) !important;
    top: 8px !important;
    left: 8px !important;
    transform: scale(0.78) !important;
  }

  .property-detail-panel {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-height: calc(100vh - 104px) !important;
    max-height: calc(100dvh - 104px) !important;
  }

  .property-detail-body {
    max-height: calc(100vh - 180px) !important;
    max-height: calc(100dvh - 180px) !important;
  }

  .search-sheet,
  .market-filters-sheet {
    width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
  }

  #settings-sheet.settings-sheet {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 104px) !important;
    max-height: calc(100dvh - 104px) !important;
  }
}

@media (max-width: 860px) {
  .map-hover-panel {
    width: calc(100vw - 12px) !important;
    height: min(82vh, 620px) !important;
    max-height: min(82vh, 620px) !important;
    top: 6px !important;
    left: 6px !important;
    transform: none !important;
  }

  .mega-overview {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .property-detail-panel {
    max-height: calc(100vh - 96px) !important;
    max-height: calc(100dvh - 96px) !important;
  }

  .property-detail-summary {
    grid-template-columns: 1fr !important;
  }

  .home-auth-dock {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: calc(100vw - 14px) !important;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 0 !important;
  }

  .app-shell > .sidebar {
    width: 88px !important;
    min-width: 88px !important;
  }

  .app-shell > .sidebar .brand-title,
  .app-shell > .sidebar .brand-subtitle {
    display: none !important;
  }

  .app-shell > .sidebar .rail-btn {
    height: 44px !important;
  }

  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    width: 66px !important;
  }

  .property-detail-panel {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    max-height: calc(100vh - 90px) !important;
    max-height: calc(100dvh - 90px) !important;
  }

  .property-detail-body {
    max-height: calc(100vh - 170px) !important;
    max-height: calc(100dvh - 170px) !important;
    padding: 0 10px 12px !important;
  }

  .property-detail-title {
    font-size: clamp(1.5rem, 5.8vw, 1.9rem) !important;
  }

  .legend {
    left: 6px !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: calc(100vw - 104px) !important;
    overflow: hidden !important;
  }

  .search-sheet,
  .market-filters-sheet,
  #settings-sheet.settings-sheet {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    bottom: auto !important;
    width: auto !important;
    max-height: calc(100vh - 88px) !important;
    max-height: calc(100dvh - 88px) !important;
  }
}



/* FINAL-ABSOLUTE: left sidebar redesign lock */
@media (min-width: 761px) {
  .app-shell {
    padding: 10px !important;
    gap: 10px !important;
    background: #eef1f6 !important;
  }

  .app-shell > .sidebar,
  .app-shell > .sidebar.collapsed {
    width: 318px !important;
    min-width: 318px !important;
    border-radius: 34px !important;
    border: 1px solid #e4e9f2 !important;
    background: linear-gradient(180deg, #ffffff, #f7f9fd) !important;
    box-shadow: 0 18px 38px rgba(31, 47, 76, 0.12) !important;
    overflow: hidden !important;
  }

  .app-shell > .sidebar .sidebar-panel { display: none !important; }

  .app-shell > .sidebar > .sidebar-rail {
    width: 100% !important;
    padding: 28px 24px 20px !important;
    gap: 18px !important;
    align-items: stretch !important;
    border-right: 0 !important;
  }

  .app-shell > .sidebar .editorial-brand {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas: "mark title" "mark subtitle" !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: center !important;
    padding: 2px 0 8px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .app-shell > .sidebar .brand-mark {
    grid-area: mark !important;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-shell > .sidebar .brand-mark-logo {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    filter: none !important;
  }

  .app-shell > .sidebar .brand-title {
    grid-area: title !important;
    margin: 0 !important;
    font-size: 2.95rem !important;
    line-height: 0.92 !important;
    letter-spacing: -0.03em !important;
    color: #070a10 !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  .app-shell > .sidebar .brand-subtitle {
    grid-area: subtitle !important;
    margin-top: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.015em !important;
    text-transform: uppercase !important;
    color: #1f6fff !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  .app-shell > .sidebar .sidebar-toggle-btn,
  .app-shell > .sidebar #sidebar-toggle { display: none !important; }

  .app-shell > .sidebar .rail-btn,
  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    width: 100% !important;
    height: 88px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
  }

  .app-shell > .sidebar a.rail-btn { text-decoration: none !important; }

  .app-shell > .sidebar .rail-btn .nav-icon {
    font-size: 2.1rem !important;
    color: #697ba2 !important;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24 !important;
  }

  .app-shell > .sidebar .rail-btn .nav-label {
    font-size: 1.86rem !important;
    line-height: 1 !important;
    color: #6678a1 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    display: inline !important;
  }

  .app-shell > .sidebar .rail-btn-active { background: #edf2ff !important; }

  .app-shell > .sidebar .rail-btn-active .nav-icon,
  .app-shell > .sidebar .rail-btn-active .nav-label {
    color: #1f6fff !important;
    font-weight: 700 !important;
  }

  .app-shell > .sidebar .rail-tooltip-card,
  .app-shell > .sidebar .rail-btn[data-tooltip]::after,
  .app-shell > .sidebar .sidebar-avatar[data-tooltip]::after { display: none !important; }

  .app-shell > .sidebar .rail-spacer {
    flex: 1 1 auto !important;
    min-height: 26px !important;
    margin: 8px 0 2px !important;
    width: 100% !important;
    border-top: 1px solid #e6ebf4 !important;
  }

  .app-shell > .sidebar .sidebar-avatar {
    margin-top: 0 !important;
    width: 100% !important;
    min-height: 70px !important;
    border-radius: 18px !important;
    border: 1px solid #e3e8f2 !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-image {
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta {
    display: grid !important;
    gap: 1px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta strong {
    font-size: 0.88rem !important;
    line-height: 1.12 !important;
    color: #22385c !important;
    font-weight: 700 !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta span {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
    color: #6f86ab !important;
    font-weight: 600 !important;
  }

  .map-stage {
    border-radius: 28px !important;
    overflow: hidden !important;
    border: 1px solid #e1e7f0 !important;
  }
}

/* Final narrow sidebar request: width 2cm, keep logo + button labels */
@media (min-width: 761px) {
  .app-shell > .sidebar,
  .app-shell > .sidebar.collapsed {
    width: 2cm !important;
    min-width: 2cm !important;
    border-radius: 14px !important;
  }

  .app-shell > .sidebar > .sidebar-rail {
    padding: 8px 4px 8px !important;
    gap: 8px !important;
  }

  .app-shell > .sidebar .editorial-brand {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 !important;
  }

  .app-shell > .sidebar .brand-mark,
  .app-shell > .sidebar .brand-mark-logo {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }

  .app-shell > .sidebar .brand-title,
  .app-shell > .sidebar .brand-subtitle,
  .app-shell > .sidebar .rail-btn .nav-label {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    margin: 0 !important;
  }

  .app-shell > .sidebar .brand-title {
    font-size: 0.28rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    color: #0a1324 !important;
  }

  .app-shell > .sidebar .brand-subtitle {
    font-size: 0.18rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    color: #1f6fff !important;
  }

  .app-shell > .sidebar .rail-btn,
  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    width: 100% !important;
    height: 53px !important;
    min-height: 53px !important;
    border-radius: 10px !important;
    padding: 4px 1px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    flex-direction: column !important;
  }

  .app-shell > .sidebar .rail-btn .nav-icon {
    font-size: 0.9rem !important;
    line-height: 1 !important;
  }

  .app-shell > .sidebar .rail-btn .nav-label {
    font-size: 0.25rem !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #4f6289 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  .app-shell > .sidebar .rail-map-btn {
    margin-top: 1cm !important;
  }

  .app-shell > .sidebar #search-sheet-toggle {
    margin-top: 0 !important;
  }

  .app-shell > .sidebar .rail-spacer {
    margin: 6px 0 0 !important;
    min-height: 10px !important;
  }

  .app-shell > .sidebar .sidebar-avatar {
    width: 100% !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    padding: 4px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .app-shell > .sidebar .sidebar-avatar-image {
    width: 30px !important;
    height: 30px !important;
  }

  .app-shell > .sidebar .sidebar-avatar-meta {
    display: none !important;
  }
}

/* Final tweak: +15% button size and logo lockup like reference */
@media (min-width: 761px) {
  .app-shell > .sidebar .editorial-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 2px 0 0 !important;
  }

  .app-shell > .sidebar .brand-mark,
  .app-shell > .sidebar .brand-mark-logo {
    width: 24px !important;
    height: 24px !important;
  }

  .app-shell > .sidebar .brand-title {
    font-size: 0.56rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #0a1324 !important;
    text-align: center !important;
  }

  .app-shell > .sidebar .brand-subtitle {
    font-size: 0.24rem !important;
    line-height: 1.02 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #1f6fff !important;
    text-align: center !important;
  }

  .app-shell > .sidebar .rail-btn,
  .app-shell > .sidebar .rail-btn-wide,
  .app-shell > .sidebar #search-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #metrics-sheet-toggle.rail-btn-wide,
  .app-shell > .sidebar #settings-sheet-toggle.rail-btn-wide {
    height: 61px !important;
    min-height: 61px !important;
  }

.app-shell > .sidebar .rail-btn .nav-icon {
  font-size: 1.09rem !important;
}

  .app-shell > .sidebar .rail-btn .nav-label {
    font-size: 0.29rem !important;
    line-height: 1.06 !important;
  }
}

/* User tweak: sidebar rail buttons +10% size/scale */
@media (max-width: 760px) {
  .app-shell > .sidebar .rail-btn .nav-icon {
    font-size: 1.04rem !important;
  }

  .app-shell > .sidebar .rail-btn .nav-label {
    font-size: 0.275rem !important;
  }
}

@media (min-width: 761px) {
  .app-shell > .sidebar .rail-btn .nav-icon {
    font-size: 1.2rem !important;
  }

  .app-shell > .sidebar .rail-btn .nav-label {
    font-size: 0.32rem !important;
  }
}

/* Keep market filter rail button label visible below the icon */
.app-shell > .sidebar #search-sheet-toggle {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.app-shell > .sidebar #search-sheet-toggle .nav-label {
  display: block !important;
  font-size: 0.64rem !important;
  line-height: 1.05 !important;
  color: #4f6289 !important;
  text-align: center !important;
}

/* Keep all rail button labels at the same readable size */
.app-shell > .sidebar .rail-btn .nav-label {
  font-size: 0.64rem !important;
  line-height: 1.05 !important;
  text-align: center !important;
}
/* Property detail modal: pixel pass */
#property-detail-panel.property-detail-panel {
  top: 22px !important;
  right: 20px !important;
  width: min(520px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 44px) !important;
  max-height: calc(100dvh - 44px) !important;
  border-radius: 22px !important;
  border: 1px solid #e7eaf0 !important;
  background: #ffffff !important;
  box-shadow: 0 28px 72px rgba(15, 30, 55, 0.18) !important;
}

#property-detail-panel .property-detail-header {
  padding: 16px 18px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#property-detail-panel .detail-kicker {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  color: #1f5ef4 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

#property-detail-panel .detail-kicker .material-symbols-outlined {
  font-size: 24px !important;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24 !important;
}

#property-detail-panel .property-detail-close {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  border: none !important;
  background: #f2f4f8 !important;
  color: #26335f !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

#property-detail-panel .property-detail-close .material-symbols-outlined {
  font-size: 22px !important;
}

#property-detail-panel .property-detail-body {
  padding: 10px 16px 16px !important;
  max-height: calc(100vh - 104px) !important;
  max-height: calc(100dvh - 104px) !important;
}

#property-detail-panel .property-detail-hero {
  height: 210px !important;
  border-radius: 16px !important;
  background: linear-gradient(140deg, #64758a, #8a99ad) !important;
  box-shadow: none !important;
}

#property-detail-panel .property-detail-image {
  object-fit: cover !important;
}

#property-detail-panel .property-detail-thumbs {
  display: flex !important;
  gap: 10px !important;
  margin: 10px 0 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 6px !important;
  scrollbar-width: thin !important;
}

#property-detail-panel .property-detail-thumbs.hidden {
  display: none !important;
}

#property-detail-panel .property-detail-thumb {
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 58px !important;
  border: 1px solid rgba(176, 194, 224, 0.72) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #e8edf5 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 8px 18px -14px rgba(15, 35, 72, 0.55) !important;
}

#property-detail-panel .property-detail-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#property-detail-panel .property-detail-badges {
  top: 10px !important;
  left: 10px !important;
  gap: 8px !important;
}

#property-detail-panel .property-badge {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-badge-sale {
  background: linear-gradient(90deg, #0dc3a0, #18a998) !important;
}

#property-detail-panel .property-badge-rent {
  background: linear-gradient(90deg, #00a7bd, #1788b0) !important;
}

#property-detail-panel .property-badge-featured {
  background: linear-gradient(90deg, #ffc331, #f7a917) !important;
  color: #ffffff !important;
}

#property-detail-panel .property-detail-gallery-badge {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  border: 2px solid rgba(176, 194, 224, 0.35) !important;
  background: rgba(7, 21, 45, 0.72) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

#property-detail-panel .property-detail-gallery-badge .material-symbols-outlined {
  font-size: 20px !important;
}

#property-detail-panel .property-detail-title {
  margin: 14px 0 6px !important;
  color: #10265d !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-detail-location {
  margin: 0 !important;
  color: #5f739a !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

#property-detail-panel .property-detail-tags {
  margin: 10px 0 12px !important;
  gap: 8px !important;
}

#property-detail-panel .property-tag-chip {
  min-height: 32px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 28px !important;
  border: 1px solid #e0e6f1 !important;
  background: #f2f5fa !important;
  color: #324a74 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

#property-detail-panel .property-tag-chip .material-symbols-outlined {
  font-size: 16px !important;
  line-height: 1 !important;
  color: #1f5ef4 !important;
}

#property-detail-panel .property-section-title {
  margin: 12px 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #1a58f1 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-section-title .material-symbols-outlined {
  font-size: 18px !important;
}

#property-detail-panel .property-detail-summary {
  gap: 8px !important;
}

#property-detail-panel .property-detail-summary .field {
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid #e6eaf2 !important;
  background: #ffffff !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
}

#property-detail-panel .property-detail-summary .field-icon-wrap {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: #f0f4ff !important;
  display: grid !important;
  place-items: center !important;
}

#property-detail-panel .property-detail-summary .field-icon {
  color: #1f5ef4 !important;
  font-size: 20px !important;
}

#property-detail-panel .property-detail-summary .field-content dt {
  margin: 0 !important;
  color: #6177a2 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

#property-detail-panel .property-detail-summary .field-content dd {
  margin: 6px 0 0 !important;
  color: #10265d !important;
  font-size: 13px !important;
  line-height: 1.16 !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-detail-description {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #2f4266 !important;
  max-height: none !important;
}

#property-detail-panel .property-detail-links {
  margin-top: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr 56px 56px !important;
  gap: 10px !important;
}

#property-detail-panel .property-link {
  height: 46px !important;
  border-radius: 12px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  background: linear-gradient(90deg, #0f5bff, #0a49f0) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 16px 30px rgba(11, 75, 240, 0.32) !important;
}

#property-detail-panel .property-link .material-symbols-outlined {
  font-size: 16px !important;
}

#property-detail-panel .property-mini-btn {
  width: 56px !important;
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e7f1 !important;
  background: #ffffff !important;
  color: #1e58f0 !important;
  display: grid !important;
  place-items: center !important;
}

#property-detail-panel .property-mini-btn .material-symbols-outlined {
  font-size: 20px !important;
}

#property-detail-panel .property-share-menu {
  margin-top: 10px !important;
  border: 1px solid #e2e7f1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 26px rgba(17, 37, 64, 0.15) !important;
  padding: 8px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#property-detail-panel .property-share-menu.hidden {
  display: none !important;
}

#property-detail-panel .property-share-item {
  min-height: 34px !important;
  border-radius: 9px !important;
  border: 1px solid #e7edf8 !important;
  background: #f8fbff !important;
  color: #1f58bf !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-share-item:hover {
  background: #eef4ff !important;
}

#property-detail-panel .property-debug,
#property-detail-panel .property-detail-extra {
  display: none !important;
}

#property-detail-panel .property-chip-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

#property-detail-panel .property-chip {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #e0e6f1 !important;
  background: #f2f5fa !important;
  color: #324a74 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 1200px) {
  #property-detail-panel.property-detail-panel {
    width: min(520px, calc(100vw - 28px)) !important;
  }

  #property-detail-panel .property-detail-title {
    font-size: 16px !important;
  }

  #property-detail-panel .property-detail-summary .field-content dd {
    font-size: 13px !important;
  }
}
/* Hover panel pixel pass v2 (Santa Monica style) */
.map-hover-panel {
  width: min(980px, calc(100vw - 24px)) !important;
  height: min(430px, calc(100vh - 24px)) !important;
  height: min(430px, calc(100dvh - 24px)) !important;
  max-height: min(430px, calc(100vh - 24px)) !important;
  max-height: min(430px, calc(100dvh - 24px)) !important;
  top: 8px !important;
  left: 8px !important;
  transform: scale(0.9) !important;
  transform-origin: top left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#map-hover-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
}

#map-hover-panel > .hover-card {
  background-clip: padding-box !important;
}

.hover-card {
  border-radius: 18px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mega-overview {
  grid-template-columns: 40% 60% !important;
  gap: 12px !important;
  padding: 0 !important;
}

.mega-overview-info,
.mega-overview-listings {
  border-radius: 16px !important;
  border: 1px solid #e3eaf4 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(20, 41, 69, 0.12) !important;
}

.mega-overview-info {
  padding: 18px !important;
}

.zone-tag {
  color: #2b70dc !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
}

.mega-overview-info h3 {
  font-size: clamp(1.85rem, 2.2vw, 2.7rem) !important;
  line-height: 0.98 !important;
  color: #142a53 !important;
}

#hover-zone-meta {
  color: #607495 !important;
  font-size: 1.02rem !important;
}

#hover-zone-stats {
  margin: 12px 0 !important;
  color: #6f7f95 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.zone-metrics {
  gap: 10px !important;
}

.zone-metrics div {
  border: 1px solid #e5ebf5 !important;
  border-radius: 12px !important;
  background: #f9fbff !important;
  padding: 10px 12px !important;
}

.zone-metrics dt {
  color: #7e91af !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.08em !important;
}

.zone-metrics dd {
  color: #19335f !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.zone-analysis-btn {
  height: 42px !important;
  border-radius: 11px !important;
  border: 1px solid #1f68e7 !important;
  background: linear-gradient(180deg, #2a7bf2, #1a62df) !important;
  color: #ffffff !important;
  font-size: 0.93rem !important;
  font-weight: 700 !important;
}

.mega-overview-listings {
  padding: 14px !important;
}

.mini-title-top {
  color: #7d8ea8 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.09em !important;
}

.mini-title-main {
  color: #1f335a !important;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
}

.filter-link {
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid #d5e1f3 !important;
  background: #f6f9ff !important;
  color: #2a6fda !important;
  font-size: 0.84rem !important;
  padding: 0 12px !important;
}

.listing-list-rich {
  padding-right: 3px !important;
}

.listing-list li {
  margin: 0 0 10px !important;
}

.listing-item-btn {
  grid-template-columns: 116px minmax(0, 1fr) 26px !important;
  min-height: 100px !important;
  padding: 10px 12px !important;
  column-gap: 12px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e9f5 !important;
  background: #ffffff !important;
}

.listing-item-btn:hover {
  border-color: #ccd9ee !important;
  box-shadow: 0 8px 18px rgba(34, 70, 113, 0.11) !important;
}

.listing-thumb {
  width: 116px !important;
  height: 78px !important;
  border-radius: 12px !important;
  border: 1px solid #d8e2ef !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #9aabbd, #8fa2b5) !important;
}

.listing-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.listing-head h4 {
  color: #1a3156 !important;
  font-size: 1.04rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

.listing-meta {
  color: #2a6fda !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.03em !important;
}

.listing-price {
  color: #1b2d4e !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.listing-submeta {
  color: #7287a8 !important;
  font-size: 0.76rem !important;
}

.listing-arrow {
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid #d9e3f2 !important;
  color: #8da0bb !important;
  font-size: 1.06rem !important;
}

.zone-metrics dd {
  font-size: 1.8rem !important;
}

@media (max-width: 980px) {
  .map-hover-panel {
    width: min(95vw, 720px) !important;
    height: min(84vh, 700px) !important;
    max-height: min(84vh, 700px) !important;
  }

  .mega-overview {
    grid-template-columns: 1fr !important;
  }

  .listing-item-btn {
    grid-template-columns: 86px minmax(0, 1fr) 22px !important;
    min-height: 86px !important;
  }

  .listing-thumb {
    width: 86px !important;
    height: 62px !important;
  }
}

/* Final size lock: identical + compact in guest and logged states */
.home-auth-dock.is-authenticated,
.home-auth-dock:not(.is-authenticated) {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(620px, calc(100vw - 24px)) !important;
  min-height: 56px !important;
  height: auto !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.5fr) !important;
  gap: 7px !important;
  padding: 6px 8px !important;
  border-radius: 18px !important;
}

.home-auth-dock.is-authenticated {
  width: min(500px, calc(100vw - 128px)) !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
}

.home-auth-dock.is-authenticated .home-auth-locate,
.home-auth-dock:not(.is-authenticated) .home-auth-locate {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 10px !important;
}

.home-auth-dock.is-authenticated .home-auth-btn,
.home-auth-dock:not(.is-authenticated) .home-auth-btn {
  min-height: 36px !important;
  height: auto !important;
  border-radius: 10px !important;
  font-size: 0.8rem !important;
  padding: 0 10px !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-btn-register {
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.08 !important;
  text-align: center !important;
}

.home-auth-dock:not(.is-authenticated) .home-auth-btn-login {
  min-width: 112px !important;
}

@media (max-width: 760px) {
  .home-auth-dock.is-authenticated,
  .home-auth-dock:not(.is-authenticated) {
    width: calc(100vw - 24px) !important;
    min-height: 52px !important;
    height: auto !important;
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 6px 7px !important;
    border-radius: 16px !important;
  }

  .home-auth-dock.is-authenticated {
    width: calc(100vw - 24px) !important;
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .home-auth-dock.is-authenticated .home-auth-locate,
  .home-auth-dock:not(.is-authenticated) .home-auth-locate {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 9px !important;
  }

  .home-auth-dock.is-authenticated .home-auth-btn,
  .home-auth-dock:not(.is-authenticated) .home-auth-btn {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    font-size: 0.74rem !important;
    padding: 0 6px !important;
  }

  .home-auth-dock:not(.is-authenticated) .home-auth-btn-register {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.06 !important;
  }
}

/* Guest lock for zone listing cards */
.listing-item-btn {
  position: relative;
  overflow: hidden;
}

.listing-item-btn.is-locked .listing-head,
.listing-item-btn.is-locked .listing-meta,
.listing-item-btn.is-locked .listing-price,
.listing-item-btn.is-locked .listing-submeta,
.listing-item-btn.is-locked .listing-thumb,
.listing-item-btn.is-locked .listing-arrow {
  filter: blur(2px);
  opacity: 0.55;
}

.listing-lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.98));
  color: #4d5f78;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(167, 186, 214, 0.5);
}

.listing-lock-icon {
  font-size: 1rem !important;
  color: #2d6fda;
}

/* Compact spacing in zone property list (-50% padding/margins) */
.mega-overview-listings .listing-list-rich > li,
.listing-list-rich > li,
.listing-list li {
  margin: 0 0 5px !important;
  padding: 0 !important;
}

.listing-item-btn {
  padding: 2px 3px !important;
  row-gap: 1px !important;
}

.search-history-widget {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 250px;
  z-index: 944;
  pointer-events: auto;
}

.search-history-toggle {
  width: 250px;
  height: 50px;
  border: 1px solid rgba(179, 214, 255, 0.72);
  border-radius: 14px;
  background: linear-gradient(180deg, #1f7bff, #0f58d9);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(14, 74, 180, 0.35);
}

.search-history-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f58d9;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 8px;
}

.search-history-dropdown {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid #d8e6ff;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(17, 37, 64, 0.2);
  padding: 10px;
  max-height: min(420px, calc(100vh - 90px));
  max-height: min(420px, calc(100dvh - 90px));
  overflow: auto;
}

.search-history-status {
  margin: 0 0 8px;
  color: #476188;
  font-size: 0.78rem;
  font-weight: 700;
}

.search-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.search-history-item-btn {
  width: 100%;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: #f7fbff;
  color: #112746;
  text-align: left;
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  cursor: pointer;
}

.search-history-item-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.search-history-item-btn strong {
  font-size: 0.75rem;
  line-height: 1.25;
}

.search-history-item-btn span {
  font-size: 0.76rem;
  line-height: 1.26;
  color: #2f4b73;
}

.search-history-item-btn small {
  font-size: 0.72rem;
  line-height: 1.24;
  color: #5f7697;
}

.search-history-empty {
  margin: 0;
  color: #5f7697;
  font-size: 0.78rem;
  text-align: center;
  padding: 12px 6px;
}

.home-auth-dock .home-auth-history-slot {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

.home-auth-dock .search-history-toggle {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  padding: 0 8px !important;
  font-size: 0.8rem !important;
  box-shadow: none !important;
}

.home-auth-dock .search-history-count {
  min-width: 22px !important;
  height: 22px !important;
  font-size: 0.72rem !important;
}

.home-auth-dock .search-history-dropdown {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  margin-top: 0 !important;
  max-height: min(360px, calc(100vh - 110px)) !important;
  max-height: min(360px, calc(100dvh - 110px)) !important;
}

@media (max-width: 760px) {
  .home-auth-dock .search-history-toggle {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 9px !important;
    font-size: 0.74rem !important;
    padding: 0 6px !important;
  }

  .home-auth-dock .search-history-count {
    min-width: 20px !important;
    height: 20px !important;
    font-size: 0.68rem !important;
  }
}

/* Snapshot preview panel (desktop) */
.snapshot-preview-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(950px, calc(100vw - 116px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  z-index: 945;
  pointer-events: auto;
}

.snapshot-preview-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d7dbe1;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.18);
}

.snapshot-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.snapshot-preview-kicker {
  margin: 0;
  color: #6b7280;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.snapshot-preview-header h3 {
  margin: 2px 0 0;
  font-size: 1.06rem;
  color: #111827;
}

.snapshot-preview-meta {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.snapshot-preview-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
}

.snapshot-preview-status {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e1e4e8;
  background: #f4f5f7;
  color: #4b5563;
  font-size: 0.82rem;
}

.snapshot-preview-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.snapshot-preview-list > li {
  min-width: 0;
}

.snapshot-preview-list .listing-item-btn {
  height: 100%;
  border-color: #e1e4e8 !important;
  background: #ffffff !important;
}

.snapshot-preview-list .listing-item-btn:hover {
  border-color: #9ca3af !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1) !important;
}

.snapshot-preview-list .listing-head h4 {
  color: #111827 !important;
}

.snapshot-preview-list .listing-price {
  color: #1f6fff !important;
}

.snapshot-preview-list .listing-meta,
.snapshot-preview-list .listing-submeta {
  color: #6b7280 !important;
}

.snapshot-preview-list .listing-arrow {
  border-color: #d1d5db !important;
  color: #111827 !important;
}

.snapshot-preview-footer {
  display: flex;
  justify-content: flex-end;
}

.snapshot-preview-view-more {
  min-width: 150px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid #000000;
  background: linear-gradient(180deg, #1f2937, #000000);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.snapshot-preview-view-more:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.manual-upload-sheet {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  z-index: 860;
  pointer-events: auto;
}

.manual-upload-card {
  border: 1px solid #d7e2f3;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(18, 47, 88, 0.16);
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

.manual-upload-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.manual-upload-kicker {
  margin: 0;
  color: #5c779f;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.manual-upload-header h3 {
  margin: 4px 0 0;
  color: #173764;
  font-size: 1.15rem;
}

.manual-upload-status {
  margin: 6px 0 0;
  color: #5a7192;
  font-size: 0.82rem;
}

.manual-upload-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d2ddf0;
  background: #f5f8ff;
  color: #2a588d;
}

.manual-upload-tabs {
  display: flex;
  gap: 8px;
}

.manual-upload-tab {
  flex: 1;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d5dff0;
  background: #f8fbff;
  color: #32577f;
  font-size: 0.82rem;
  font-weight: 700;
}

.manual-upload-tab.active {
  border-color: #1f66df;
  background: #1f66df;
  color: #fff;
}

.manual-upload-form {
  display: grid;
  gap: 8px;
}

.manual-upload-form label {
  display: grid;
  gap: 5px;
  font-size: 0.77rem;
  color: #2a4f7a;
  font-weight: 700;
}

.manual-upload-form input,
.manual-upload-form select,
.manual-upload-form textarea {
  border: 1px solid #d6e0ee;
  background: #f9fbff;
  border-radius: 9px;
  min-height: 34px;
  padding: 7px 10px;
  color: #173764;
  font-size: 0.84rem;
}

.manual-upload-form textarea {
  min-height: 76px;
  resize: vertical;
}

.manual-upload-grid2 {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-pin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-pin-btn,
.manual-submit-btn,
#manual-refresh-history {
  height: 34px;
  border-radius: 9px;
  border: 1px solid #c9d8ef;
  background: #f4f8ff;
  color: #27568d;
  font-weight: 700;
  font-size: 0.8rem;
}

.manual-submit-btn {
  border-color: #1f66df;
  background: linear-gradient(180deg, #2a73eb, #1f66df);
  color: #fff;
}

#manual-pin-meta {
  color: #576e90;
  font-size: 0.78rem;
}

.manual-upload-help {
  margin: 0;
  color: #5d7598;
  font-size: 0.78rem;
}

.manual-upload-history {
  border-top: 1px solid #e8eef8;
  padding-top: 8px;
  display: grid;
  gap: 8px;
}

.manual-upload-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.manual-upload-history h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1b406d;
}

#manual-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  max-height: 180px;
  overflow: auto;
}

.manual-history-item {
  border: 1px solid #dbe6f5;
  border-radius: 9px;
  background: #f8fbff;
  padding: 8px;
}

.manual-history-item strong {
  color: #1a3d67;
  font-size: 0.81rem;
}

.manual-history-item span,
.manual-history-item small {
  display: block;
  color: #5e7698;
  font-size: 0.74rem;
}

.manual-history-empty {
  color: #657e9e;
  font-size: 0.8rem;
}

.poi-marker-icon {
  background: transparent !important;
  border: none !important;
}

.poi-pin {
  position: relative;
  display: block;
  width: 18px;
  height: 24px;
  pointer-events: none;
}

.poi-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.poi-glyph {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  font-size: 9px !important;
  font-variation-settings: "FILL" 1, "wght" 560, "GRAD" 0, "opsz" 20;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.24);
}

/* Mobile consistency lock: keep Home controls readable and aligned with repo design */
@media (max-width: 860px) {
  .home-auth-dock,
  .home-auth-dock.is-authenticated,
  .home-auth-dock:not(.is-authenticated) {
    position: absolute !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    transform-origin: center center !important;
    z-index: 1001 !important;
    width: min(520px, calc(100vw - 104px)) !important;
    max-width: calc(100vw - 104px) !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 6px 7px !important;
    border-radius: 16px !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .home-auth-dock:not(.is-authenticated) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-auth-dock.is-authenticated {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-auth-dock .home-auth-locate {
    display: none !important;
  }

  .home-auth-dock .home-auth-btn {
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .home-auth-dock .home-auth-btn .home-auth-icon {
    display: none !important;
  }

  .home-auth-dock .home-auth-history-slot {
    width: 100% !important;
  }

  .home-auth-dock .search-history-toggle {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    padding: 0 8px !important;
    font-size: 0.74rem !important;
  }

  .home-auth-dock .search-history-dropdown {
    bottom: calc(100% + 8px) !important;
    max-height: min(300px, calc(100vh - 140px)) !important;
    max-height: min(300px, calc(100dvh - 140px)) !important;
  }

  .snapshot-preview-panel,
  .manual-upload-sheet {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: auto !important;
    max-height: calc(100vh - 92px) !important;
    max-height: calc(100dvh - 92px) !important;
  }

  .snapshot-preview-card,
  .manual-upload-card {
    max-height: calc(100vh - 92px) !important;
    max-height: calc(100dvh - 92px) !important;
  }

  .snapshot-preview-list {
    grid-template-columns: 1fr !important;
  }

  .manual-upload-grid2 {
    grid-template-columns: 1fr !important;
  }
}

body.search-sheet-open .home-auth-dock {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.search-sheet-open .home-auth-dock .search-history-dropdown {
  display: none !important;
}

/* Desktop parity: hover guest panel (3001 -> 3000) */
#map-hover-panel .guest-sector-panel {
  display: none;
}

#map-hover-panel.guest-sector-panel-active {
  width: min(1280px, calc(100vw - 32px)) !important;
  height: auto !important;
  max-height: calc(100vh - 16px) !important;
  max-height: calc(100dvh - 16px) !important;
  top: 4px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

#map-hover-panel.guest-sector-panel-active .hover-card {
  padding: 16px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(233, 240, 248, 0.76) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(122, 170, 255, 0.2), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(116, 215, 255, 0.18), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(169, 201, 255, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(245, 249, 255, 0.84), rgba(233, 242, 255, 0.72) 42%, rgba(248, 251, 255, 0.88) 100%) !important;
  box-shadow: 0 22px 60px rgba(18, 44, 78, 0.16) !important;
  backdrop-filter: blur(24px) saturate(1.05) !important;
  overflow: visible !important;
  isolation: isolate !important;
}

#map-hover-panel.guest-sector-panel-active .hover-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 38%, transparent 56%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 260'%3E%3Crect width='1600' height='260' fill='rgba(245,250,255,0)'/%3E%3Cg opacity='0.9'%3E%3Cpath d='M34 58c86 18 154 14 240-8 92-24 147-20 236 14 92 35 182 34 279 2 82-27 150-22 230 10 86 34 170 30 274-14 92-40 168-42 273-8' fill='none' stroke='%23c8d8ee' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M18 88c88 20 170 21 246-4 93-31 173-28 263 8 85 34 165 38 261 12 86-23 173-21 258 10 82 30 162 28 248-3 92-33 180-36 288-9' fill='none' stroke='%23dbe7f7' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M0 42c104 26 191 28 296 0 90-24 172-21 266 11 91 31 180 30 273-3 78-27 153-24 244 8 96 33 181 34 269 4 83-29 161-27 252-7' fill='none' stroke='%23e9f1fb' stroke-width='14' stroke-linecap='round'/%3E%3C/g%3E%3Cg opacity='0.9'%3E%3Cpath d='M138 24c38 8 65 22 78 44-43 13-81 13-120 0 8-18 20-32 42-44Z' fill='%23cfeecf'/%3E%3Cpath d='M1246 20c49 6 82 20 101 46-54 16-103 17-149 0 10-20 20-33 48-46Z' fill='%23d7f3cf'/%3E%3Cpath d='M1458 36c32 6 55 18 68 36-36 13-67 14-100 0 8-16 16-27 32-36Z' fill='%23d9f1d7'/%3E%3Cpath d='M694 10c30 8 56 20 70 38-35 14-72 15-110 3 8-16 18-28 40-41Z' fill='%23d8efcc'/%3E%3C/g%3E%3C/svg%3E") top center/cover no-repeat !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#map-hover-panel.guest-sector-panel-active .hover-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 12px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-panel {
  display: block !important;
}

#map-hover-panel.guest-sector-panel-active .mega-overview.hidden {
  display: none !important;
}

.guest-sector-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  padding: 0;
}

.guest-sector-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 12%, rgba(120, 162, 255, 0.12), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(108, 215, 255, 0.12), transparent 22%),
    radial-gradient(circle at 72% 88%, rgba(181, 202, 255, 0.1), transparent 20%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.guest-sector-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 14px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.guest-sector-summary-card,
.guest-featured-card,
.guest-quality-card,
.guest-sector-footer-bar {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(229, 237, 246, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.84));
  box-shadow: 0 14px 34px rgba(18, 44, 78, 0.09);
  backdrop-filter: blur(18px) saturate(1.02);
}

.guest-sector-summary-card {
  padding: 16px 18px 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(72, 133, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(124, 179, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.88));
}

.guest-sector-summary-glow {
  position: absolute;
  inset: -30% auto auto 52%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(82, 146, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.guest-sector-kicker,
.guest-featured-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2c67d7;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.guest-sector-kicker .material-symbols-outlined,
.guest-featured-kicker .material-symbols-outlined {
  font-size: 1rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.guest-sector-name {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #162b53;
  font-size: clamp(1.9rem, 2.45vw, 2.85rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 11ch;
}

.guest-sector-location {
  position: relative;
  z-index: 1;
  margin: 8px 0 10px;
  color: #6c7f9f;
  font-size: 0.86rem;
  line-height: 1.3;
  font-weight: 600;
}

.guest-sector-kpi-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guest-sector-kpi-card {
  min-height: 76px;
  padding: 9px 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(225, 234, 243, 0.92);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  align-content: start;
  gap: 5px;
}

.guest-sector-kpi-icon {
  font-size: 1rem;
  line-height: 1;
}

.guest-sector-kpi-card small {
  color: #7f92af;
  font-size: 0.6rem;
  line-height: 1.15;
  font-weight: 700;
}

.guest-sector-kpi-card strong {
  color: #173155;
  font-size: 1.04rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.guest-sector-kpi-card-sale .guest-sector-kpi-icon,
.guest-sector-kpi-card-sale strong {
  color: #2563eb;
}

.guest-sector-kpi-card-rent .guest-sector-kpi-icon,
.guest-sector-kpi-card-rent strong {
  color: #0f766e;
}

.guest-sector-kpi-card-commercial .guest-sector-kpi-icon,
.guest-sector-kpi-card-commercial strong {
  color: #d97706;
}

.guest-sector-kpi-card-residential .guest-sector-kpi-icon,
.guest-sector-kpi-card-residential strong {
  color: #4f46e5;
}

.guest-sector-kpi-card-gold {
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(243, 223, 193, 0.95);
}

.guest-sector-kpi-card-gold .guest-sector-kpi-icon,
.guest-sector-kpi-card-gold strong {
  color: #d97706;
}

.guest-sector-kpi-card-purple {
  background: linear-gradient(180deg, rgba(252, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(234, 219, 255, 0.95);
}

.guest-sector-kpi-card-purple .guest-sector-kpi-icon,
.guest-sector-kpi-card-purple strong {
  color: #7c3aed;
}

.guest-sector-kpi-card-blue {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(216, 229, 255, 0.95);
}

.guest-sector-kpi-card-blue .guest-sector-kpi-icon,
.guest-sector-kpi-card-blue strong {
  color: #2563eb;
}

.guest-sector-kpi-card-teal {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(191, 236, 227, 0.95);
}

.guest-sector-kpi-card-teal .guest-sector-kpi-icon,
.guest-sector-kpi-card-teal strong {
  color: #0f766e;
}

.guest-sector-metrics-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.guest-sector-metric-box {
  min-height: 66px;
  padding: 9px 10px 8px;
  border-radius: 13px;
  border: 1px solid rgba(225, 234, 243, 0.92);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  align-content: start;
  gap: 4px;
}

.guest-sector-metric-box .material-symbols-outlined {
  font-size: 1rem;
  color: #7a90b3;
}

.guest-sector-metric-box:nth-child(1) .material-symbols-outlined {
  color: #4f7ff6;
}

.guest-sector-metric-box:nth-child(2) .material-symbols-outlined {
  color: #6b7df8;
}

.guest-sector-metric-box:nth-child(3) .material-symbols-outlined {
  color: #8190aa;
}

.guest-sector-metric-box:nth-child(4) .material-symbols-outlined {
  color: #2563eb;
}

.guest-sector-metric-box small {
  color: #7f92af;
  font-size: 0.6rem;
  line-height: 1.1;
  font-weight: 700;
}

.guest-sector-metric-box strong {
  color: #173155;
  font-size: 0.84rem;
  line-height: 1.15;
  font-weight: 800;
}

.guest-sector-metric-box-strong strong {
  color: #205fd0;
}

.guest-sector-stat-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guest-sector-stat-pill {
  min-height: 72px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(235, 239, 247, 0.92);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  align-content: start;
  gap: 6px;
}

.guest-sector-stat-icon {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.guest-sector-stat-pill small {
  color: #8494ad;
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
}

.guest-sector-stat-pill strong {
  color: #173155;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.guest-sector-stat-pill-purple strong {
  color: #7c3aed;
}

.guest-sector-stat-pill-purple .guest-sector-stat-icon {
  color: #8b5cf6;
}

.guest-sector-stat-pill-gold strong {
  color: #d97706;
}

.guest-sector-stat-pill-gold .guest-sector-stat-icon {
  color: #f59e0b;
}

.guest-sector-stat-pill-blue strong {
  color: #2563eb;
}

.guest-sector-stat-pill-blue .guest-sector-stat-icon {
  color: #3b82f6;
}

.guest-featured-card {
  padding: 14px 16px 16px;
  background:
    radial-gradient(circle at 88% 14%, rgba(82, 146, 255, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
}

.guest-featured-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.guest-featured-favorite {
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f2;
  border-radius: 999px;
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  color: #8ea0bb;
  box-shadow: 0 8px 18px rgba(18, 44, 78, 0.08);
}

.guest-featured-favorite .material-symbols-outlined {
  font-size: 1.05rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.guest-featured-body {
  display: grid;
  grid-template-columns: 50% minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.guest-featured-media {
  position: relative;
  min-height: 224px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eef5ff);
  box-shadow: inset 0 0 0 1px rgba(206, 223, 245, 0.95);
}

.guest-featured-image,
.guest-featured-image-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.guest-featured-image {
  object-fit: cover;
}

.guest-featured-image-fallback {
  display: grid;
  place-items: center;
  color: #2563eb;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(135deg, #dbeafe, #edf5ff);
}

.guest-featured-image-fallback .material-symbols-outlined {
  font-size: 2.8rem;
}

.guest-featured-count-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 17, 32, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.guest-featured-copy {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 10px 2px 2px 0;
}

.guest-featured-copy h4 {
  margin: 0;
  color: #1a3156;
  font-size: 1.48rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.guest-featured-meta {
  margin: 0;
  color: #2a6fda;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.guest-featured-price {
  margin: 0;
  color: #19335f;
  font-size: 1.85rem;
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.guest-featured-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.guest-featured-fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6f83a0;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 700;
}

.guest-featured-fact .material-symbols-outlined {
  font-size: 1rem;
  color: #7f95b6;
}

.guest-featured-cta,
.guest-sector-footer-cta {
  text-decoration: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.guest-featured-cta {
  align-self: end;
  margin-top: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2b79ef, #1b62e0);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.26);
}

.guest-featured-cta .material-symbols-outlined,
.guest-sector-footer-cta .material-symbols-outlined {
  font-size: 1rem;
}

.guest-quality-card {
  padding: 14px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
  position: relative;
  z-index: 1;
}

.guest-quality-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.guest-quality-header-score {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.guest-quality-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #205fd0;
}

.guest-quality-title .material-symbols-outlined {
  font-size: 1.16rem;
}

.guest-quality-title strong {
  color: #1c3359;
  font-size: 0.86rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.guest-quality-header p {
  margin: 0;
  color: #7d8fa8;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 600;
}

.guest-quality-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: stretch;
}

.guest-quality-score-card,
.guest-quality-note-card {
  border-radius: 20px;
  border: 1px solid #e6edf7;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.guest-quality-score-card {
  padding: 12px 12px 10px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
}

.guest-quality-score-ring {
  --score-angle: calc(var(--score, 80) * 3.6deg);
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #ffffff 77%, transparent 78% 100%),
    conic-gradient(#16a34a var(--score-angle), #e6edf6 0);
}

.guest-quality-score-ring span {
  display: block;
  margin-top: 8px;
  color: #163154;
  font-size: 1.9rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 800;
  text-align: center;
}

.guest-quality-score-ring small {
  display: block;
  margin-top: 2px;
  color: #7f92ab;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}

.guest-quality-score-card strong {
  color: #16a34a;
  font-size: 1.02rem;
  line-height: 1;
  font-weight: 800;
}

.guest-quality-score-card p,
.guest-quality-note-card p {
  margin: 0;
  color: #6e83a0;
  font-size: 0.81rem;
  line-height: 1.45;
  font-weight: 600;
}

.guest-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guest-quality-metric {
  border-radius: 13px;
  border: 1px solid #e7eef7;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  padding: 9px 10px 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.guest-quality-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef5ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.guest-quality-metric-icon .material-symbols-outlined {
  font-size: 0.92rem;
}

.guest-quality-metric:nth-child(1) .guest-quality-metric-icon {
  background: #ecf3ff;
  color: #3b82f6;
}

.guest-quality-metric:nth-child(2) .guest-quality-metric-icon {
  background: #fff7e8;
  color: #d4a017;
}

.guest-quality-metric:nth-child(3) .guest-quality-metric-icon {
  background: #fff0ef;
  color: #ef4444;
}

.guest-quality-metric:nth-child(4) .guest-quality-metric-icon {
  background: #f5efff;
  color: #8b5cf6;
}

.guest-quality-metric:nth-child(5) .guest-quality-metric-icon {
  background: #ecfbf2;
  color: #16a34a;
}

.guest-quality-metric:nth-child(6) .guest-quality-metric-icon {
  background: #eef4ff;
  color: #4f46e5;
}

.guest-quality-metric:nth-child(7) .guest-quality-metric-icon {
  background: #fff7ec;
  color: #f59e0b;
}

.guest-quality-metric:nth-child(8) .guest-quality-metric-icon {
  background: #ecfbf2;
  color: #10b981;
}

.guest-quality-metric-copy {
  min-width: 0;
}

.guest-quality-metric-copy strong {
  display: block;
  margin-bottom: 2px;
  color: #173154;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 800;
}

.guest-quality-metric-copy small {
  display: block;
  margin-bottom: 4px;
  color: #8ca0ba;
  font-size: 0.58rem;
  line-height: 1.2;
  font-weight: 700;
}

.guest-quality-metric-copy p {
  margin: 0;
  color: #173154;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 800;
}

.guest-quality-metric-copy p span {
  color: #16a34a;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  text-transform: uppercase;
}

.guest-quality-note-card {
  padding: 12px 12px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
}

.guest-quality-note-card .material-symbols-outlined {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef5ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}

.guest-quality-report-btn {
  min-height: 34px;
  border: 1px solid #d9e6f7;
  border-radius: 10px;
  background: #f4f8ff;
  color: #245dbd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.guest-quality-report-btn:hover {
  background: #eaf2ff;
}

.guest-quality-report-btn .material-symbols-outlined {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
}

/* Auth pass: match forgot/reset/login visual language in the map sector panel */
#map-hover-panel.guest-sector-panel-active,
#map-hover-panel.guest-sector-panel-active *:not(.material-symbols-outlined) {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

#map-hover-panel.guest-sector-panel-active .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap !important;
  direction: ltr !important;
  -webkit-font-smoothing: antialiased !important;
}

#map-hover-panel.guest-sector-panel-active {
  width: min(1240px, calc(100vw - 36px)) !important;
  top: 10px !important;
}

#map-hover-panel.guest-sector-panel-active .hover-card {
  padding: 20px !important;
  border-radius: 20px !important;
  border: 1px solid #dbe2ee !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(20, 40, 80, 0.12) !important;
  backdrop-filter: none !important;
}

#map-hover-panel.guest-sector-panel-active .hover-card::before,
#map-hover-panel.guest-sector-panel-active .hover-card::after,
#map-hover-panel.guest-sector-panel-active .guest-sector-shell::before {
  content: none !important;
  display: none !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-shell {
  gap: 14px;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-summary-card,
#map-hover-panel.guest-sector-panel-active .guest-featured-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-card,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar {
  border-radius: 20px !important;
  border: 1px solid #dbe2ee !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(20, 40, 80, 0.06) !important;
  backdrop-filter: none !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-summary-card {
  padding: 18px 18px 16px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-card {
  padding: 16px !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar {
  padding: 14px 16px !important;
  background: linear-gradient(180deg, #ffffff, #f9fbff) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kicker,
#map-hover-panel.guest-sector-panel-active .guest-featured-kicker,
#map-hover-panel.guest-sector-panel-active .guest-quality-title {
  color: #1f6fff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-name,
#map-hover-panel.guest-sector-panel-active .guest-featured-copy h4,
#map-hover-panel.guest-sector-panel-active .guest-quality-title strong {
  color: #0d1b3d !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-name {
  letter-spacing: -0.035em !important;
  font-size: clamp(1.9rem, 2.35vw, 2.7rem) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-location,
#map-hover-panel.guest-sector-panel-active .guest-quality-header p,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card p,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-card p,
#map-hover-panel.guest-sector-panel-active .guest-featured-fact,
#map-hover-panel.guest-sector-panel-active .guest-featured-meta,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card small,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar small {
  color: #6b7b99 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric {
  border: 1px solid #d8dfeb !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric {
  border-radius: 14px !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-score-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card {
  border-radius: 16px !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box small,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill small,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy small {
  color: #8b99b2 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-header-score strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-ring span,
#map-hover-panel.guest-sector-panel-active .guest-featured-price,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar strong {
  color: #0d1b3d !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-icon {
  color: #1f6fff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-header-score span,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-card strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy p span {
  color: #1f6fff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-score-ring {
  background:
    radial-gradient(closest-side, #ffffff 77%, transparent 78% 100%),
    conic-gradient(#1f6fff var(--score-angle), #e6edf7 0) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-metric-icon,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card .material-symbols-outlined {
  background: #eef5ff !important;
  color: #1f6fff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-media {
  border-radius: 16px !important;
  background: #eff2f6 !important;
  box-shadow: inset 0 0 0 1px #dbe2ee !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-count-badge {
  background: rgba(13, 27, 61, 0.78) !important;
  font-weight: 700 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-panel-close-btn,
#map-hover-panel.guest-sector-panel-active .guest-featured-favorite {
  border: 1px solid #d8dfeb !important;
  background: #f6f8fc !important;
  color: #6b7b99 !important;
  box-shadow: none !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-cta,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-cta,
#map-hover-panel.guest-sector-panel-active .guest-quality-report-btn {
  border-radius: 14px !important;
  font-weight: 700 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-cta {
  background: linear-gradient(95deg, #1f6fff, #1a63ea) !important;
  box-shadow: 0 10px 20px rgba(27, 104, 238, 0.3) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-report-btn,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-cta {
  border: 1px solid #d8dfeb !important;
  background: #ffffff !important;
  color: #1f6fff !important;
  box-shadow: none !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-report-btn:hover,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-cta:hover {
  background: #eef5ff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-gold {
  background: linear-gradient(180deg, #fff9f1, #ffffff) !important;
  border-color: #f3dfc1 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-gold small {
  color: #b48648 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-gold strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-gold .guest-sector-kpi-icon {
  color: #d97706 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-purple {
  background: linear-gradient(180deg, #fcf8ff, #ffffff) !important;
  border-color: #eadbff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-purple strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-purple .guest-sector-kpi-icon {
  color: #7c3aed !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-blue {
  background: linear-gradient(180deg, #f7faff, #ffffff) !important;
  border-color: #d8e5ff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-blue strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-blue .guest-sector-kpi-icon {
  color: #2563eb !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-teal {
  background: linear-gradient(180deg, #f0fdfa, #ffffff) !important;
  border-color: #bfede3 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-teal strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-teal .guest-sector-kpi-icon {
  color: #0f766e !important;
}

.zone-quality-report-panel {
  position: fixed;
  inset: 0;
  z-index: 2200;
  pointer-events: auto;
}

.zone-quality-report-panel.hidden {
  display: none;
}

.zone-quality-report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 43, 0.28);
  backdrop-filter: blur(4px);
}

.zone-quality-report-sheet {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 36px));
  border-radius: 22px;
  border: 1px solid rgba(220, 231, 246, 0.95);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 44, 78, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.zone-quality-report-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid #edf2f8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zone-quality-report-header p {
  margin: 0 0 5px;
  color: #5f7fac;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.zone-quality-report-header h3 {
  margin: 0;
  color: #173154;
  font-size: 1.18rem;
  line-height: 1.1;
  font-weight: 900;
}

.zone-quality-report-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #54749d;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.zone-quality-report-close .material-symbols-outlined {
  font-size: 1rem;
}

.zone-quality-report-body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.zone-quality-report-status {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #607894;
}

.zone-quality-report-status .material-symbols-outlined {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef5ff;
  color: #245dbd;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.zone-quality-report-status strong {
  color: #173154;
  font-size: 0.96rem;
  font-weight: 900;
}

.zone-quality-report-status p {
  max-width: 310px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.zone-quality-report-content {
  display: grid;
  gap: 12px;
}

.zone-quality-report-summary,
.zone-quality-report-pois,
.zone-quality-report-area {
  border: 1px solid #e5edf7;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.zone-quality-report-summary h4,
.zone-quality-report-pois h4,
.zone-quality-report-area h4 {
  margin: 0;
  color: #173154;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 900;
}

.zone-quality-report-summary p,
.zone-quality-report-pois p,
.zone-quality-report-area p {
  margin: 6px 0 0;
  color: #637b98;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
}

.zone-quality-report-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zone-quality-report-stats article {
  min-height: 58px;
  border-radius: 12px;
  background: #f5f9ff;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px;
}

.zone-quality-report-stats small {
  color: #7f94af;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.zone-quality-report-stats strong {
  color: #1f5ebe;
  font-size: 1rem;
  line-height: 1;
  font-weight: 900;
}

.zone-quality-report-warning,
.zone-quality-report-empty {
  margin-top: 10px;
  border-radius: 11px;
  background: #fff8e6;
  color: #8a6100;
  padding: 9px 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 800;
}

.zone-quality-poi-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.zone-quality-poi-chip {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #dce8f7;
  background: #f4f8ff;
  color: #315f9f;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}

.zone-quality-poi-chip strong,
.zone-quality-poi-chip small {
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 800;
}

.zone-quality-report-area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zone-quality-report-area-head span {
  color: #1f5ebe;
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 900;
}

.zone-quality-source-card {
  margin-top: 10px;
  border-top: 1px solid #edf3fa;
  padding-top: 10px;
  display: grid;
  gap: 5px;
}

.zone-quality-source-card strong {
  color: #173154;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 900;
}

.zone-quality-source-card small {
  color: #7b90aa;
  font-size: 0.66rem;
  line-height: 1.2;
  font-weight: 700;
}

.zone-quality-source-card p {
  margin: 0;
  color: #617993;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
}

.zone-quality-source-card a {
  justify-self: start;
  color: #1f5ebe;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
}

.zone-quality-report-footer {
  color: #7d91aa;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.66rem;
  line-height: 1.3;
  font-weight: 700;
}

.guest-sector-footer-bar {
  padding: 9px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(228, 236, 246, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 255, 0.82));
  box-shadow: 0 8px 18px rgba(18, 44, 78, 0.06);
  backdrop-filter: blur(18px) saturate(1.04);
}

.guest-sector-footer-bar article {
  min-height: 42px;
  padding-right: 10px;
  border-right: 1px solid rgba(236, 242, 248, 0.96);
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-sector-footer-bar article .material-symbols-outlined {
  font-size: 0.96rem;
  color: #5d7fb1;
  flex: 0 0 auto;
}

.guest-sector-footer-bar article:nth-child(1) .material-symbols-outlined {
  color: #3b82f6;
}

.guest-sector-footer-bar article:nth-child(2) .material-symbols-outlined {
  color: #2563eb;
}

.guest-sector-footer-bar article:nth-child(3) .material-symbols-outlined {
  color: #4f46e5;
}

.guest-sector-footer-bar article:nth-child(4) .material-symbols-outlined {
  color: #64748b;
}

.guest-sector-footer-bar article div {
  min-width: 0;
}

.guest-sector-footer-bar article small {
  display: block;
  margin-bottom: 3px;
  color: #8b9db5;
  font-size: 0.58rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.guest-sector-footer-bar article strong {
  color: #173154;
  font-size: 0.85rem;
  line-height: 1.1;
  font-weight: 800;
}

.guest-sector-footer-bar article:last-of-type {
  border-right: 0;
}

.guest-sector-footer-cta {
  min-width: 190px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d8e5f6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 255, 0.9));
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.05);
}

.auth-sector-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.auth-sector-shell :not(.material-symbols-outlined) {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

.auth-sector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-sector-head-copy {
  min-width: 0;
}

.auth-sector-kicker {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7a8fb2;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-sector-kicker .material-symbols-outlined {
  font-size: 1rem;
  color: #4c86f6;
}

.auth-sector-title {
  margin: 0;
  color: #16305a;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.auth-sector-head-actions {
  position: relative;
  flex: 0 0 auto;
}

.auth-sector-filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(221, 231, 246, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #2f6ede;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
  cursor: pointer;
}

.auth-sector-filter-btn .material-symbols-outlined {
  font-size: 0.98rem;
}

.auth-sector-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 270px;
  padding: 8px;
  border: 1px solid rgba(220, 230, 243, 0.98);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(17, 45, 80, 0.14);
  display: grid;
  gap: 4px;
  z-index: 5;
}

.auth-sector-filter-menu.hidden {
  display: none;
}

.auth-sector-filter-option {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #38557f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.auth-sector-filter-option.is-active {
  background: #edf4ff;
  color: #1f63de;
}

.auth-sector-filter-check {
  color: #1f63de;
  font-weight: 800;
}

.auth-sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
  min-height: 0;
  max-height: calc(100vh - 255px);
  max-height: calc(100dvh - 255px);
  scrollbar-gutter: stable;
}

.auth-sector-card {
  border: 1px solid #e3ebf7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  box-shadow: 0 12px 24px rgba(15, 34, 57, 0.06);
  cursor: pointer;
  text-align: left;
}

.auth-sector-card-main {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 142px;
}

.auth-sector-card-media {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #d9e7fb, #eef5ff);
  box-shadow: inset 0 0 0 1px rgba(211, 225, 244, 0.96);
}

.auth-sector-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-sector-card-image-fallback {
  display: grid;
  place-items: center;
}

.auth-sector-card-image-fallback .material-symbols-outlined {
  font-size: 1.6rem;
  color: #4a7fe5;
}

.auth-sector-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.auth-sector-card-copy h4 {
  margin: 0;
  color: #17305b;
  font-size: 0.96rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.auth-sector-card-meta {
  margin: 0;
  color: #2f6ede;
  font-size: 0.64rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-sector-card-price {
  margin: 0;
  color: #17305b;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.auth-sector-card-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  position: relative;
  padding-right: 28px;
}

.auth-sector-card-arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #dbe5f4;
  color: #8aa0bf;
  display: grid;
  place-items: center;
  font-size: 1rem;
  position: absolute;
  top: 2px;
  right: 0;
}

.auth-sector-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.auth-sector-card-metric {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid #edf3fb;
  background: #fbfdff;
  padding: 5px 5px 4px;
  display: grid;
  align-content: start;
  gap: 1px;
}

.auth-sector-card-metric .material-symbols-outlined {
  font-size: 0.78rem;
  color: #4a7fe5;
}

.auth-sector-card-metric small {
  color: #8ea0bb;
  font-size: 0.4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.auth-sector-card-metric strong {
  color: #17305b;
  font-size: 0.64rem;
  line-height: 1.1;
  font-weight: 800;
}

.auth-sector-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(224, 233, 246, 0.98);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 10px 24px rgba(17, 45, 80, 0.05);
}

.auth-sector-token-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.auth-sector-token-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #edf4ff;
  color: #2c6ce1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1rem;
}

.auth-sector-token-card strong {
  display: block;
  color: #2b62d2;
  font-size: 0.84rem;
  line-height: 1.15;
  font-weight: 800;
}

.auth-sector-token-card p {
  margin: 2px 0 0;
  color: #7085a4;
  font-size: 0.69rem;
  line-height: 1.3;
  font-weight: 600;
}

.auth-sector-footer-btn {
  min-width: 214px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2b79ef, #1c63e1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  cursor: pointer;
}

.auth-sector-footer-btn .material-symbols-outlined {
  font-size: 0.96rem;
}

.auth-sector-empty {
  border: 1px dashed #d9e5f5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 22px;
  color: #6d819f;
}

.auth-sector-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #17305b;
  font-size: 1rem;
}

.auth-sector-empty p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .guest-sector-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .guest-sector-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-featured-body {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .guest-quality-body {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .guest-quality-note-card {
    grid-column: 1 / -1;
  }

  .guest-sector-footer-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-sector-footer-cta {
    grid-column: 1 / -1;
  }

  .auth-sector-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-sector-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-sector-footer-btn {
    width: 100%;
  }
}

/* paneles-mobile-separado (quirurgico mobile-only) */
.zone-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guest-panel-close-btn {
  display: none !important;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7f9e;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.guest-panel-close-btn .material-symbols-outlined {
  font-size: 0.92rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

#map-hover-panel:not(.hidden) .guest-panel-close-btn {
  display: inline-flex !important;
  position: relative;
  z-index: 5;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 12px;
  border-color: rgba(188, 205, 230, 0.86);
  background: rgba(255, 255, 255, 0.94);
  color: #18365d;
  box-shadow: 0 8px 20px rgba(17, 42, 78, 0.12);
}

#map-hover-panel:not(.hidden) .guest-panel-close-btn:hover {
  border-color: rgba(34, 109, 218, 0.38);
  color: #0f5ec4;
  transform: translateY(-1px);
}

#map-hover-panel:not(.hidden) .zone-header-row .guest-panel-close-btn,
#map-hover-panel.guest-sector-panel-active .guest-sector-summary-head .guest-panel-close-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 980px) {
  #property-detail-panel.property-detail-panel {
    position: fixed !important;
    z-index: 1201 !important;
    inset: 8px 8px calc(68px + env(safe-area-inset-bottom, 0px)) 8px !important;
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 84px) !important;
    max-height: calc(100dvh - 84px) !important;
    border-radius: 20px !important;
  }

  #property-detail-panel .property-detail-body {
    max-height: calc(100vh - 148px) !important;
    max-height: calc(100dvh - 148px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #map-hover-panel.map-hover-panel.guest-sector-panel-active {
    position: fixed !important;
    z-index: 1100 !important;
    inset: auto 8px calc(68px + env(safe-area-inset-bottom, 0px)) 8px !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100vh - 84px) !important;
    max-height: calc(100dvh - 84px) !important;
    transform: none !important;
    border-radius: 20px !important;
  }

  #map-hover-panel.guest-sector-panel-active > .hover-card {
    padding: 10px !important;
    border-radius: 20px !important;
    max-height: calc(100vh - 84px) !important;
    max-height: calc(100dvh - 84px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f6f9ff !important;
    box-shadow: 0 16px 34px rgba(12, 36, 73, 0.16) !important;
  }

  #map-hover-panel.guest-sector-panel-active .mega-overview {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #map-hover-panel.guest-sector-panel-active .mega-overview-info,
  #map-hover-panel.guest-sector-panel-active .mega-overview-listings {
    border-radius: 12px !important;
    border: 1px solid #e0e9f7 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  #map-hover-panel.guest-sector-panel-active .zone-header-row {
    margin-bottom: 2px !important;
  }

  #map-hover-panel.guest-sector-panel-active .zone-tag {
    margin: 0 !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.09em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-panel-close-btn {
    display: inline-flex !important;
  }

  #map-hover-panel.guest-sector-panel-active .listing-item-btn {
    min-height: 86px !important;
    grid-template-columns: 86px minmax(0, 1fr) 22px !important;
  }

  #map-hover-panel.guest-sector-panel-active .listing-thumb {
    width: 86px !important;
    height: 62px !important;
  }

  #map-hover-panel:not(.hidden) ~ .home-auth-dock,
  #property-detail-panel:not(.hidden) ~ .home-auth-dock {
    display: none !important;
  }
}

/* recover-mobile-true: lote mobile adicional solo para Home */
@media (max-width: 980px) {
  #map-hover-panel.guest-sector-panel-active .guest-sector-shell {
    display: grid !important;
    gap: 10px !important;
    background: transparent !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-summary-card,
  #map-hover-panel.guest-sector-panel-active .guest-featured-card,
  #map-hover-panel.guest-sector-panel-active .guest-quality-card,
  #map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar {
    border-radius: 12px !important;
    border: 1px solid #e0e9f7 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-summary-card {
    padding: 10px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-summary-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
  }

  #map-hover-panel.guest-sector-panel-active .auth-sector-head-actions .guest-panel-close-btn {
    margin-right: 2px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kicker {
    margin: 0 0 4px !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.09em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-name {
    margin: 0 !important;
    font-size: 1.82rem !important;
    line-height: 0.95 !important;
    letter-spacing: -0.05em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-location {
    margin: 2px 0 8px !important;
    font-size: 0.62rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card {
    min-height: 58px !important;
    padding: 8px 7px 7px !important;
    border-radius: 10px !important;
    border: 1px solid #e6edf8 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card small {
    font-size: 0.44rem !important;
    letter-spacing: 0.03em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card strong {
    font-size: 0.7rem !important;
    line-height: 1.05 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-icon {
    font-size: 0.86rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-card {
    padding: 10px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-topbar {
    margin-bottom: 8px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-kicker {
    font-size: 0.55rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-body {
    display: grid !important;
    grid-template-columns: 146px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: stretch !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-media {
    height: 100% !important;
    min-height: 134px !important;
    border-radius: 10px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-copy {
    gap: 6px !important;
    padding: 2px 0 0 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-copy h4 {
    font-size: 0.88rem !important;
    line-height: 1.18 !important;
    letter-spacing: -0.01em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-meta {
    font-size: 0.5rem !important;
    letter-spacing: 0.08em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-price {
    font-size: 1.35rem !important;
    line-height: 0.95 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-fact {
    font-size: 0.58rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-cta {
    min-height: 30px !important;
    border-radius: 9px !important;
    font-size: 0.64rem !important;
    padding: 0 10px !important;
    margin-top: 2px !important;
    justify-self: start !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-card {
    padding: 8px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-header {
    margin-bottom: 6px !important;
    gap: 7px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-title strong {
    font-size: 0.52rem !important;
    letter-spacing: 0.08em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-header p,
  #map-hover-panel.guest-sector-panel-active .guest-quality-score-card {
    display: none !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-header-score {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 7px !important;
    white-space: nowrap !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-header-score strong {
    color: #1a2f52 !important;
    font-size: 0.64rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-header-score strong small {
    font-size: 0.46rem !important;
    color: #6f84a0 !important;
    margin-left: 1px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-header-score span {
    color: #16a34a !important;
    font-size: 0.5rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    align-items: stretch !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-grid-item {
    border-radius: 8px !important;
    padding: 6px 5px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-grid-item strong {
    font-size: 0.58rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-grid-item small {
    font-size: 0.39rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric {
    height: 72px !important;
    min-height: 72px !important;
    border-radius: 8px !important;
    padding: 6px 5px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy {
    min-width: 0 !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-icon {
    width: 18px !important;
    height: 18px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-icon .material-symbols-outlined {
    font-size: 0.72rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy strong {
    font-size: 0.52rem !important;
    line-height: 1.14 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy small {
    margin-bottom: 2px !important;
    line-height: 1 !important;
    font-size: 0.4rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy p {
    margin-top: 0 !important;
    font-size: 0.48rem !important;
    line-height: 1.08 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy p span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 72px !important;
    max-width: 84px !important;
    padding: 2px 8px !important;
    margin-left: -12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.03em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-report-btn {
    min-height: 26px !important;
    border-radius: 8px !important;
    gap: 5px !important;
    padding: 0 8px !important;
    font-size: 0.5rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-report-btn .material-symbols-outlined {
    font-size: 0.68rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-grid .guest-quality-metric.is-collapsed {
    display: none !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-grid.is-expanded .guest-quality-metric.is-collapsed {
    display: grid !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-quality-more-btn {
    grid-column: 1 / -1 !important;
    height: 28px !important;
    margin-top: 2px !important;
    border: 1px solid #d9e5f7 !important;
    border-radius: 8px !important;
    background: #f7faff !important;
    color: #2d69d1 !important;
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
    font-size: 0.56rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar article {
    border-radius: 9px !important;
    padding: 6px !important;
    min-height: 48px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar small {
    font-size: 0.42rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar strong {
    font-size: 0.62rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .auth-sector-card-metric small {
    display: none !important;
  }

  #map-hover-panel.guest-sector-panel-active .auth-sector-card-metric {
    min-height: 30px !important;
    align-content: center !important;
    gap: 2px !important;
    padding: 4px 4px !important;
  }

  #map-hover-panel:not(.hidden) ~ .mobile-bottom-nav,
  #property-detail-panel:not(.hidden) ~ .mobile-bottom-nav {
    display: none !important;
  }

  .zone-quality-report-sheet {
    inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 20px !important;
  }

  .zone-quality-report-header {
    padding: 14px 14px 11px !important;
  }

  .zone-quality-report-body {
    padding: 13px 14px 16px !important;
  }

  .zone-quality-report-stats {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

@media (max-width: 520px) {
  #map-hover-panel.map-hover-panel.guest-sector-panel-active {
    inset: auto 6px calc(66px + env(safe-area-inset-bottom, 0px)) 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
  }
}

.mobile-only {
  display: none !important;
}

/* Final mobile home alignment from recover-mobile-true/paneles-mobile-separado */
@media (max-width: 760px) {
  .mobile-only {
    display: flex !important;
  }

  .sidebar,
  .sidebar.collapsed,
  .app-shell > .sidebar,
  .app-shell > .sidebar.collapsed {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .app-shell {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .map-stage {
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }

  .home-auth-dock {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    transform: scale(0.72) !important;
    transform-origin: top right !important;
    z-index: 1001 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    min-height: auto !important;
    height: auto !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 16px rgba(9, 19, 43, 0.15) !important;
    overflow: visible !important;
  }

  .home-auth-dock.is-authenticated,
  .home-auth-dock:not(.is-authenticated) {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    transform: scale(0.72) !important;
    transform-origin: top right !important;
    width: auto !important;
    max-width: none !important;
    min-height: auto !important;
    height: auto !important;
    display: inline-flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 16px rgba(9, 19, 43, 0.15) !important;
  }

  .home-auth-dock .home-auth-history-slot,
  .home-auth-dock .search-history-widget {
    display: none !important;
  }

  .search-history-widget.is-open {
    display: block !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 12px)) !important;
    top: auto !important;
    width: auto !important;
    z-index: 100000 !important;
  }

  .search-history-widget.is-open .search-history-toggle {
    display: none !important;
  }

  .search-history-widget.is-open .search-history-dropdown {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    max-height: min(52vh, 420px) !important;
  }

  .home-auth-dock .home-auth-locate,
  .home-auth-dock .home-auth-btn {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 11px !important;
    font-size: 0.72rem !important;
    position: static !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .home-auth-dock .home-auth-locate {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border: 1px solid #d9e5f7 !important;
    background: #ffffff !important;
  }

  .home-auth-dock .home-auth-locate-icon {
    color: #5f6f98 !important;
    font-size: 0.98rem !important;
    line-height: 1 !important;
    font-variation-settings: "FILL" 0, "wght" 650, "GRAD" 0, "opsz" 20 !important;
  }

  .home-auth-dock .home-auth-btn-login,
  .home-auth-dock .home-auth-btn-register,
  .home-auth-dock .home-auth-badge {
    min-width: 102px !important;
    padding: 0 12px !important;
    box-shadow: none !important;
  }

  .home-auth-dock .home-auth-btn-register,
  .home-auth-dock .home-auth-badge {
    background: linear-gradient(135deg, #1f79f1 0%, #0f62e7 100%) !important;
    color: #ffffff !important;
  }

  .mobile-bottom-nav.mobile-only {
    position: fixed !important;
    bottom: env(safe-area-inset-bottom, 12px) !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-around !important;
    height: 64px !important;
    padding-top: 8px !important;
    border-radius: 32px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    pointer-events: auto !important;
  }

  .mobile-bottom-nav .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    color: #5f7192 !important;
    text-decoration: none !important;
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
  }

  .mobile-bottom-nav .nav-item.active {
    color: #1f6fff !important;
  }

  .mobile-bottom-nav .nav-item .material-symbols-outlined {
    font-size: 1.3rem !important;
    line-height: 1 !important;
  }

  #map-hover-panel:not(.hidden) ~ .home-auth-dock,
  #property-detail-panel:not(.hidden) ~ .home-auth-dock,
  #map-hover-panel:not(.hidden) ~ .mobile-bottom-nav,
  #property-detail-panel:not(.hidden) ~ .mobile-bottom-nav {
    display: none !important;
  }
}

/* Surgical sync: mobile market filters from recover-mobile-true */
@media (max-width: 980px) {
  #search-sheet.market-filters-sheet {
    inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    height: auto !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.26) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(20px) scale(0.98) !important;
    transform-origin: bottom center !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s !important;
  }

  #search-sheet.market-filters-sheet.open {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 22px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    margin: 0 !important;
  }

  #search-sheet.market-filters-sheet .market-header-left {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #search-sheet.market-filters-sheet .market-header-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
    font-size: 1rem !important;
  }

  #search-sheet.market-filters-sheet h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 2rem !important;
    line-height: 0.92 !important;
    letter-spacing: -0.06em !important;
    font-weight: 900 !important;
  }

  #search-sheet.market-filters-sheet .sheet-subtitle {
    margin: 5px 0 0 !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: transparent !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-close .material-symbols-outlined {
    font-size: 1.16rem !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-layout {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 84px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 4px 22px 18px !important;
    background: #ffffff !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile {
    padding: 0 0 20px !important;
    margin: 0 0 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile:last-child {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  #search-sheet.market-filters-sheet .filter-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  #search-sheet.market-filters-sheet .filter-section-title,
  #search-sheet.market-filters-sheet .search-modal-label {
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  #search-sheet.market-filters-sheet .search-modal-label {
    display: block !important;
    margin-bottom: 10px !important;
  }

  #search-sheet.market-filters-sheet .mobile-more-link {
    border: 0 !important;
    background: transparent !important;
    color: #2563eb !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 4px !important;
    border-radius: 16px !important;
    background: #f1f5f9 !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill {
    min-height: 43px !important;
    border-radius: 13px !important;
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill {
    min-width: 0 !important;
    min-height: 74px !important;
    border-radius: 16px !important;
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 8px 5px !important;
    text-align: center !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child {
    display: block !important;
    max-width: 100% !important;
    font-size: 0.56rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    overflow-wrap: anywhere !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill .material-symbols-outlined {
    font-size: 1.12rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill.active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #2563eb !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill-all {
    grid-column: 1 / -1 !important;
    min-height: 42px !important;
    flex-direction: row !important;
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-expandable-option {
    display: none !important;
  }

  #search-sheet.market-filters-sheet #property-type-pills.expanded .mobile-expandable-option {
    display: flex !important;
  }

  #search-sheet.market-filters-sheet .mobile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group {
    display: block !important;
    min-width: 0 !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .segmented-pills,
  #search-sheet.market-filters-sheet .mobile-parking-pills {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    background: transparent !important;
    padding: 0 !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .pill,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill {
    min-width: 0 !important;
    min-height: 38px !important;
    border-radius: 13px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 0 5px !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .pill.active,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill.active {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18) !important;
  }

  #search-sheet.market-filters-sheet .mobile-range-card {
    --range-start: 18%;
    --range-end: 82%;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .range-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 9px !important;
    margin-bottom: 13px !important;
  }

  #search-sheet.market-filters-sheet .range-head strong {
    color: #1e293b !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  #search-sheet.market-filters-sheet .range-head-muted {
    color: #94a3b8 !important;
    font-weight: 500 !important;
  }

  #search-sheet.market-filters-sheet .mobile-range-active-text {
    color: #2563eb !important;
    font-size: 0.71rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-align: right !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track {
    position: relative !important;
    height: 4px !important;
    margin-bottom: 18px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    overflow: visible !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-line {
    position: absolute !important;
    top: 0 !important;
    left: var(--range-start) !important;
    right: calc(100% - var(--range-end)) !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: #2563eb !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot {
    position: absolute !important;
    top: 50% !important;
    width: 19px !important;
    height: 19px !important;
    border: 2px solid #2563eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14) !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-left {
    left: var(--range-start) !important;
    transform: translate(-50%, -50%) !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-right {
    left: var(--range-end) !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    min-width: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap span {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 0.53rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-separator {
    color: #94a3b8 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
  }

  #search-sheet.market-filters-sheet .amenities-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill {
    min-height: 36px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 11px !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill.active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 800 !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill .material-symbols-outlined {
    font-size: 0.86rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid:not(.expanded) .amenity-pill:nth-child(n + 5) {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-footer {
    position: relative !important;
    bottom: auto !important;
    z-index: auto !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 10px 22px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 14px !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-stats {
    display: flex !important;
    align-items: baseline !important;
    gap: 7px !important;
    margin-bottom: 9px !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-stats strong {
    color: #2563eb !important;
    font-size: 1.42rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-stats span {
    color: #94a3b8 !important;
    font-size: 0.54rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-actions {
    display: flex !important;
    gap: 9px !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset,
  #search-sheet.market-filters-sheet .mobile-btn-apply {
    min-width: 0 !important;
    min-height: 46px !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset {
    flex: 0 0 58px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #64748b !important;
    padding: 0 !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset span:last-child {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-apply {
    flex: 1 1 auto !important;
    border: 0 !important;
    background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18) !important;
    padding: 0 16px !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset .material-symbols-outlined,
  #search-sheet.market-filters-sheet .mobile-btn-apply .material-symbols-outlined {
    font-size: 0.86rem !important;
  }
}

@media (max-width: 520px) {
  #search-sheet.market-filters-sheet {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    inset: auto 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px !important;
    border-radius: 26px !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header,
  #search-sheet.market-filters-sheet .market-sheet-main,
  #search-sheet.market-filters-sheet .mobile-filters-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid {
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill {
    min-height: 68px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child {
    font-size: 0.52rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-stats-grid {
    gap: 12px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    padding: 11px 11px !important;
  }
}

@media (max-width: 980px) {
  body.search-sheet-open .home-auth-dock,
  body.search-sheet-open .mobile-bottom-nav {
    display: none !important;
  }
}

/* Final auth-dock tightening: authenticated state only shows logout + history without leftover space. */
.home-auth-dock.is-authenticated {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  grid-template-columns: none !important;
}

.home-auth-dock.is-authenticated .home-auth-locate,
.home-auth-dock.is-authenticated .home-auth-btn,
.home-auth-dock.is-authenticated .home-auth-history-slot,
.home-auth-dock.is-authenticated .search-history-widget,
.home-auth-dock.is-authenticated .search-history-toggle {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}

.home-auth-dock.is-authenticated .home-auth-btn-login {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.home-auth-dock.is-authenticated .home-auth-history-slot,
.home-auth-dock.is-authenticated .search-history-widget {
  max-width: none !important;
}

.home-auth-dock.is-authenticated .search-history-toggle {
  min-width: 118px !important;
  padding: 0 14px !important;
}

@media (max-width: 760px) {
  .home-auth-dock.is-authenticated {
    max-width: calc(100vw - 124px) !important;
  }

  .home-auth-dock.is-authenticated .search-history-toggle {
    min-width: 104px !important;
    padding: 0 12px !important;
  }
}

/* Map search page: dashboard sidebar + full map canvas. */
body.map-search-page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #f5f7fd;
}

body.map-search-page .app-shell {
  display: grid !important;
  grid-template-columns: var(--manager-sidebar-width, 318px) minmax(0, 1fr) !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f5f7fd !important;
  transition: grid-template-columns 180ms ease !important;
}

body.map-search-page #sidebar.map-manager-sidebar,
body.map-search-page #sidebar.map-manager-sidebar.collapsed {
  position: relative !important;
  inset: auto !important;
  z-index: 30 !important;
  width: var(--manager-sidebar-width, 318px) !important;
  min-width: var(--manager-sidebar-width, 318px) !important;
  max-width: var(--manager-sidebar-width, 318px) !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  transition: transform 180ms ease, opacity 180ms ease !important;
}

body.map-search-page .map-manager-sidebar .map-sidebar-hidden-control {
  display: none !important;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-nav {
  width: 100%;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link {
  width: 100%;
  font-family: inherit;
  text-align: left;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link.hidden {
  display: none !important;
}

body.map-search-page .map-sidebar-card-primary p,
body.map-search-page .map-sidebar-status-card p {
  margin-bottom: 0;
}

body.map-search-page .map-sidebar-status-card {
  display: grid;
  gap: 10px;
}

body.map-search-page .map-sidebar-stats {
  display: grid;
  gap: 10px;
}

body.map-search-page .map-sidebar-stats article {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 30, 58, 0.08);
}

body.map-search-page .map-sidebar-stats article:first-child {
  padding-top: 0;
}

body.map-search-page .map-sidebar-stats article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.map-search-page .map-sidebar-stats strong {
  color: #0c1830;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.map-search-page .map-sidebar-stats span {
  color: #5a6885;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.map-search-page .map-sidebar-footer {
  margin-top: auto;
}

body.map-search-page .map-sidebar-footer .sidebar-avatar {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
}

body.map-search-page .map-sidebar-footer .sidebar-avatar-image {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

body.map-search-page .map-sidebar-footer .sidebar-avatar-meta {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.map-search-page .map-sidebar-footer .sidebar-avatar-meta strong,
body.map-search-page .map-sidebar-footer .sidebar-avatar-meta span {
  color: currentColor;
}

body.map-search-page .map-sidebar-footer .sidebar-avatar-meta strong {
  font-size: 0.8rem;
  line-height: 1.1;
}

body.map-search-page .map-sidebar-footer .sidebar-avatar-meta span {
  font-size: 0.68rem;
  opacity: 0.72;
}

body.map-search-page .map-stage {
  position: relative !important;
  inset: auto !important;
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #eef2f8 !important;
}

body.map-search-page #map {
  width: 100% !important;
  height: 100% !important;
}

body.map-search-page .leaflet-left,
body.map-search-page .legend {
  left: 10px !important;
}

body.map-search-page .leaflet-top {
  top: 12px !important;
}

body.map-search-page .leaflet-right {
  right: 12px !important;
}

body.map-search-page .map-stage .bottom-ui {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

body.map-search-page .map-stage .mode-pill {
  left: 18px !important;
}

@media (max-width: 860px) {
  body.map-search-page {
    overflow: hidden;
  }

  body.map-search-page .app-shell {
    display: block !important;
  }

  body.map-search-page #sidebar.map-manager-sidebar,
  body.map-search-page #sidebar.map-manager-sidebar.collapsed {
    position: fixed !important;
    left: 12px !important;
    top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: min(186px, calc(100vw - 96px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 8px !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 42px rgba(12, 24, 48, 0.16) !important;
  }

  body.map-search-page .map-manager-sidebar .manager-sidebar-card,
  body.map-search-page .map-sidebar-footer {
    display: none !important;
  }

  body.map-search-page .map-stage {
    grid-column: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
}

/* Map sidebar minimal controls: Inicio, filtros, perfil y salir. */
body.map-search-page #sidebar.map-manager-sidebar,
body.map-search-page #sidebar.map-manager-sidebar.collapsed {
  overflow: hidden !important;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-nav {
  flex: 1 1 auto;
  align-content: start;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link {
  min-height: 52px;
  border-radius: 12px;
}

body.map-search-page #search-sheet-toggle.manager-sidebar-link {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 66px !important;
  border-radius: 12px !important;
  padding: 0 18px !important;
  gap: 14px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  animation: none !important;
}

body.map-search-page #search-sheet-toggle.manager-sidebar-link > span:last-child {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link-danger {
  margin-top: auto;
  background: var(--manager-sidebar-accent-bg, #000000);
  color: var(--manager-sidebar-accent-text, #ffffff);
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link-danger:hover,
body.map-search-page .map-manager-sidebar .manager-sidebar-link-danger:focus-visible {
  background: var(--manager-sidebar-accent-bg-hover, #151515);
  color: var(--manager-sidebar-accent-text, #ffffff);
}

body.map-search-page .map-sidebar-hooks,
body.map-search-page .map-hidden-hook,
body.map-search-page .map-sidebar-avatar-hook,
body.map-search-page .map-manager-sidebar .manager-sidebar-card,
body.map-search-page .map-sidebar-footer {
  display: none !important;
}

body.map-search-page .home-auth-dock {
  display: none !important;
}

body.map-search-page .mobile-bottom-nav {
  display: none !important;
}

/* Map sidebar footer must use the same dashboard buttons. */
body.map-search-page .map-sidebar-footer {
  display: grid !important;
  margin-top: auto !important;
  padding: 0 14px 18px !important;
  gap: 12px !important;
}

body.map-search-page .map-sidebar-footer .map-sidebar-avatar-hook,
body.map-search-page .map-sidebar-hooks,
body.map-search-page .map-hidden-hook {
  display: none !important;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link-danger {
  margin-top: 0;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link:hover,
body.map-search-page .map-manager-sidebar .manager-sidebar-link:focus-visible {
  background: var(--manager-sidebar-idle-bg, transparent) !important;
  color: var(--manager-sidebar-idle-text, #23324e) !important;
  transform: translateY(-1px);
}

body.map-search-page .map-manager-sidebar .manager-sidebar-link.is-active:hover,
body.map-search-page .map-manager-sidebar .manager-sidebar-link.is-active:focus-visible {
  background: var(--manager-sidebar-accent-bg-hover, #151515) !important;
  color: var(--manager-sidebar-accent-text, #ffffff) !important;
}

body.map-search-page.map-sidebar-collapsed .app-shell {
  grid-template-columns: 0 minmax(0, 1fr) !important;
}

body.map-search-page.map-sidebar-collapsed #sidebar.map-manager-sidebar,
body.map-search-page.map-sidebar-collapsed #sidebar.map-manager-sidebar.collapsed {
  transform: translateY(calc(-100% - 12px)) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.map-search-page .map-stage-floating-actions {
  position: absolute;
  top: var(--map-toggle-top, 12px);
  left: 10px;
  right: auto;
  z-index: 620;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

body.map-search-page .map-sidebar-floating-btn {
  width: auto;
  min-width: 112px;
  height: 1.4cm;
  min-height: 1.4cm;
  padding: 0 11px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.98);
  color: #12203a;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
}

body.map-search-page .map-sidebar-floating-btn .material-symbols-outlined {
  font-size: 21px;
  line-height: 1;
}

body.map-search-page #map-sidebar-toggle-label {
  white-space: nowrap;
}

body.map-search-page .map-sidebar-floating-btn:hover,
body.map-search-page .map-sidebar-floating-btn:focus-visible {
  background: #ffffff;
  color: #0f172a;
}

/* El zoom se desplaza a la esquina superior derecha y libera su posicion para
   el control de contraer/abrir el panel. */
body.map-search-page .leaflet-left {
  left: auto !important;
  right: 12px !important;
}

/* El ranking sigue calculandose para analitica, pero no se imprime sobre
   cada punto del mapa. */
body.map-search-page .leaflet-marker-icon .zone-quality-rank,
body.map-search-page .leaflet-tooltip .zone-quality-rank {
  display: none !important;
}

/* La capa OSM/POI auxiliar (salud, policia, colegios, bancos, etc.) queda
   pausada: no debe verse ni capturar eventos aunque exista cache viejo. */
body.map-search-page .poi-marker-icon,
body.map-search-page .poi-marker-icon *,
body.map-search-page .leaflet-pane.poi-pane,
body.map-search-page .leaflet-poi-pane {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The map keeps only Inicio and Buscador. It must not inherit the full-height
   administrative sidebar or its account controls. */
body.map-search-page #sidebar.map-manager-sidebar,
body.map-search-page #sidebar.map-manager-sidebar.collapsed {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
  padding-bottom: 50px !important;
}

body.map-search-page .map-manager-sidebar .manager-sidebar-nav {
  flex: 0 0 auto !important;
}

body.map-search-page .map-manager-sidebar .map-sidebar-footer {
  display: none !important;
}

/* El panel del mapa no reserva una columna vacia: queda sobre el canvas para
   que el mapa siga visible debajo de los controles y aproveche toda la vista. */
@media (min-width: 861px) {
  body.map-search-page .app-shell {
    display: block !important;
    position: relative !important;
  }

  body.map-search-page #sidebar.map-manager-sidebar,
  body.map-search-page #sidebar.map-manager-sidebar.collapsed {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 630 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 12px 0 28px rgba(25, 40, 68, 0.08) !important;
    backdrop-filter: blur(8px);
  }

  body.map-search-page .map-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    grid-column: auto !important;
    width: 100vw !important;
  }

  body.map-search-page:not(.map-sidebar-collapsed) .leaflet-left,
  body.map-search-page:not(.map-sidebar-collapsed) .legend {
    left: auto !important;
    right: 12px !important;
  }

  body.map-search-page:not(.map-sidebar-collapsed) .map-stage-floating-actions {
    left: calc(var(--manager-sidebar-width, 318px) + 10px) !important;
    right: auto !important;
  }
}

@media (max-width: 860px) {
  body.map-search-page .map-stage-floating-actions {
    top: 194px;
    left: 12px;
    right: auto;
  }

  body.map-search-page .map-manager-sidebar .manager-sidebar-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  body.map-search-page .map-manager-sidebar .manager-sidebar-link,
  body.map-search-page #search-sheet-toggle.manager-sidebar-link {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 11px !important;
    border-radius: 11px !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    text-align: left !important;
  }

  body.map-search-page .map-manager-sidebar .manager-sidebar-link .material-symbols-outlined,
  body.map-search-page #search-sheet-toggle.manager-sidebar-link .material-symbols-outlined {
    font-size: 20px !important;
  }

  body.map-search-page .map-sidebar-floating-btn {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  body.map-search-page .map-sidebar-floating-btn .material-symbols-outlined {
    font-size: 22px;
  }

  body.map-search-page #map-sidebar-toggle-label {
    display: none !important;
  }

  body.map-search-page.map-sidebar-collapsed .map-stage-floating-actions {
    top: 12px !important;
  }
}

/* Keep the market sheet compact and aligned on desktop without changing its data controls. */
@media (min-width: 981px) {
  #search-sheet.market-filters-sheet {
    width: min(1120px, calc(100vw - 360px)) !important;
    max-height: calc(100vh - 36px) !important;
    max-height: calc(100dvh - 36px) !important;
    padding: 14px 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header {
    margin-bottom: 10px !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header h3 {
    font-size: 2rem !important;
    line-height: 1 !important;
  }

  #search-sheet.market-filters-sheet .sheet-subtitle {
    margin-top: 3px !important;
    font-size: 0.82rem !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-main {
    min-width: 0 !important;
    min-height: 0 !important;
    padding-right: 6px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-summary {
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile {
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #e7edf5 !important;
    background: transparent !important;
  }

  #search-sheet.market-filters-sheet .filter-section-heading {
    margin-bottom: 7px !important;
  }

  #search-sheet.market-filters-sheet .filter-section-title,
  #search-sheet.market-filters-sheet .search-modal-label {
    font-size: 0.78rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills,
  #search-sheet.market-filters-sheet .mobile-property-grid,
  #search-sheet.market-filters-sheet .mobile-pill-group .segmented-pills,
  #search-sheet.market-filters-sheet .mobile-parking-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill,
  #search-sheet.market-filters-sheet .mobile-property-pill,
  #search-sheet.market-filters-sheet .mobile-pill-group .pill,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill {
    width: auto !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #51657f !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    gap: 5px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill.active,
  #search-sheet.market-filters-sheet .mobile-property-pill.active,
  #search-sheet.market-filters-sheet .mobile-pill-group .pill.active,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill.active {
    border-color: #1d66e3 !important;
    background: #1d66e3 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill-all {
    grid-column: auto !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child {
    font-size: inherit !important;
    overflow-wrap: normal !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill .material-symbols-outlined {
    font-size: 0.84rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-expandable-option {
    display: inline-flex !important;
  }

  #search-sheet.market-filters-sheet .mobile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-separator {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
    font-size: 0.78rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-size: 0.7rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid:not(.expanded) .amenity-pill:nth-child(n + 5) {
    display: inline-flex !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-footer {
    display: none !important;
  }
}

@media (min-width: 1181px) {
  #search-sheet.market-filters-sheet .market-sheet-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 292px !important;
    gap: 12px !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    align-content: start !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de operación"],
  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Habitaciones"],
  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Baños"],
  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Rango de precio"] {
    grid-column: 1 !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"],
  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"],
  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Superficie"] {
    grid-column: 2 !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Zona de ciudad"],
  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    grid-column: 1 / -1 !important;
  }
}

/* Market filters use the same visual tokens as the administrative dashboards. */
#search-sheet.market-filters-sheet {
  --market-bg: rgba(255, 255, 255, 0.985);
  --market-border: rgba(15, 17, 20, 0.08);
  --market-border-strong: rgba(15, 17, 20, 0.12);
  --market-text: #12151c;
  --market-text-soft: #6f7785;
  --market-primary: var(--manager-black, var(--brand-primary-1, #1f1d1d));
  --market-primary-dark: var(--manager-black, var(--brand-primary-2, #111111));
  --market-primary-rgb: 31, 29, 29;
  --market-shadow: 0 28px 70px rgba(7, 11, 18, 0.16);
  --market-shadow-soft: 0 12px 26px rgba(7, 11, 18, 0.06);
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--market-text);
  border-color: var(--market-border);
  background: var(--market-bg);
  box-shadow: var(--market-shadow);
  backdrop-filter: blur(16px);
}

#search-sheet.market-filters-sheet :is(button, input, select, textarea) {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
}

#search-sheet.market-filters-sheet .market-header-icon {
  border: 1px solid var(--market-border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
  color: var(--market-primary);
  box-shadow: var(--market-shadow-soft);
}

#search-sheet.market-filters-sheet .search-sheet-header h3,
#search-sheet.market-filters-sheet .market-sheet-summary h4 {
  font-family: "Manrope", sans-serif;
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .sheet-subtitle,
#search-sheet.market-filters-sheet .market-summary-list small,
#search-sheet.market-filters-sheet .range-meta em,
#search-sheet.market-filters-sheet .market-multiselect-help,
#search-sheet.market-filters-sheet .market-results-card small {
  color: var(--market-text-soft);
}

#search-sheet.market-filters-sheet .search-sheet-close {
  color: var(--market-text-soft);
  border-color: transparent;
  background: transparent;
}

#search-sheet.market-filters-sheet .search-sheet-close:hover,
#search-sheet.market-filters-sheet .search-sheet-close:focus-visible {
  color: var(--market-text);
  border-color: var(--market-border-strong);
  background: var(--market-border);
}

#search-sheet.market-filters-sheet .search-modal-grid label,
#search-sheet.market-filters-sheet .range-card,
#search-sheet.market-filters-sheet .filter-section-mobile,
#search-sheet.market-filters-sheet .market-sheet-summary {
  border-color: var(--market-border);
  background: #ffffff;
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .search-modal-grid label,
#search-sheet.market-filters-sheet .search-modal-label,
#search-sheet.market-filters-sheet .range-head strong {
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .segmented-pills .pill,
#search-sheet.market-filters-sheet .amenity-pill,
#search-sheet.market-filters-sheet .market-multiselect-toggle {
  border-color: var(--market-border-strong);
  background: #ffffff;
  color: var(--market-text);
  border-radius: 999px;
}

#search-sheet.market-filters-sheet .segmented-pills .pill:hover,
#search-sheet.market-filters-sheet .amenity-pill:hover,
#search-sheet.market-filters-sheet .market-multiselect-toggle:hover {
  border-color: var(--market-primary);
  background: var(--market-bg);
}

#search-sheet.market-filters-sheet .segmented-pills .pill.active,
#search-sheet.market-filters-sheet .amenity-pill.active,
#search-sheet.market-filters-sheet #property-type-pills .pill.active {
  border-color: var(--market-primary) !important;
  background: var(--market-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(var(--market-primary-rgb), 0.2) !important;
}

#search-sheet.market-filters-sheet :is(input, select),
#search-sheet.market-filters-sheet .range-inputs input {
  border-color: var(--market-border-strong);
  background: #ffffff;
  color: var(--market-text);
}

#search-sheet.market-filters-sheet :is(input, select):focus,
#search-sheet.market-filters-sheet .market-multiselect-toggle:focus-visible {
  border-color: var(--market-primary);
  outline: 3px solid rgba(var(--market-primary-rgb), 0.14);
}

#search-sheet.market-filters-sheet .range-line {
  background: #d8dde5;
}

#search-sheet.market-filters-sheet .range-fill {
  background: var(--market-primary);
  color: var(--market-primary);
}

#search-sheet.market-filters-sheet .range-head span,
#search-sheet.market-filters-sheet .mobile-range-active-text {
  background: transparent;
  color: var(--market-primary);
}

#search-sheet.market-filters-sheet .range-slider::-webkit-slider-thumb,
#search-sheet.market-filters-sheet .range-slider::-moz-range-thumb {
  border-color: var(--market-primary);
  box-shadow: 0 2px 10px rgba(var(--market-primary-rgb), 0.2);
}

#search-sheet.market-filters-sheet .market-multiselect-menu {
  border-color: var(--market-border);
  background: #ffffff;
  box-shadow: var(--market-shadow);
}

#search-sheet.market-filters-sheet .market-multiselect-option {
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .market-multiselect-option:hover {
  background: var(--market-bg);
}

#search-sheet.market-filters-sheet .market-multiselect-option input {
  accent-color: var(--market-primary);
}

#search-sheet.market-filters-sheet .market-summary-list li {
  border-top-color: var(--market-border);
}

#search-sheet.market-filters-sheet .market-summary-list .material-symbols-outlined {
  background: #ffffff;
  border: 1px solid var(--market-border);
  color: var(--market-primary);
}

#search-sheet.market-filters-sheet .market-summary-list strong,
#search-sheet.market-filters-sheet .market-summary-list button {
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .market-summary-list button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--market-border);
  background: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

#search-sheet.market-filters-sheet .market-results-card {
  border-color: var(--market-border);
  background: linear-gradient(180deg, #fbfbfc 0%, #f2f4f8 100%);
}

#search-sheet.market-filters-sheet .market-results-card .material-symbols-outlined {
  background: #ffffff;
  color: var(--market-primary);
}

#search-sheet.market-filters-sheet .market-results-card strong {
  color: var(--market-primary);
}

#search-sheet.market-filters-sheet .market-results-card p {
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .market-access-note,
#search-sheet.market-filters-sheet .market-auth-gate {
  border-color: var(--market-border-strong);
  background: var(--market-bg);
  color: var(--market-text-soft);
}

#search-sheet.market-filters-sheet .market-auth-gate .material-symbols-outlined {
  color: var(--market-primary);
}

#search-sheet.market-filters-sheet .market-auth-gate h4,
#search-sheet.market-filters-sheet .market-auth-gate p {
  color: var(--market-text);
}

#search-sheet.market-filters-sheet .market-auth-gate-btn-register {
  border-color: var(--market-border-strong);
  background: rgba(var(--market-primary-rgb), 0.08);
  color: var(--market-primary-dark);
}

#search-sheet.market-filters-sheet .market-auth-gate-btn:focus-visible,
#search-sheet.market-filters-sheet .market-summary-actions :is(button, a):focus-visible {
  outline: 3px solid rgba(var(--market-primary-rgb), 0.2);
  outline-offset: 2px;
}

#search-sheet.market-filters-sheet .market-summary-actions .apply-results-btn {
  border-color: var(--market-primary);
  background: var(--market-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(var(--market-primary-rgb), 0.2);
}

#search-sheet.market-filters-sheet .market-summary-actions .search-reset-btn {
  border-color: var(--market-border-strong);
  background: #ffffff;
  color: var(--market-primary-dark);
}

#search-sheet.market-filters-sheet .market-summary-actions :is(.apply-results-btn, .search-reset-btn):hover {
  border-color: var(--market-primary-dark);
}

@media (min-width: 1181px) {
  #search-sheet.market-filters-sheet {
    width: min(1210px, calc(100vw - 116px));
    max-height: min(90vh, 1080px);
    border-radius: 30px;
    padding: 20px 22px 22px;
  }

  #search-sheet.market-filters-sheet .search-sheet-header {
    margin-bottom: 18px;
  }

  #search-sheet.market-filters-sheet .search-sheet-header h3 {
    font-size: 2.45rem;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  #search-sheet.market-filters-sheet .sheet-subtitle {
    margin-top: 7px;
    font-size: 0.96rem;
  }

  #search-sheet.market-filters-sheet .market-sheet-layout {
    grid-template-columns: minmax(0, 1fr) 318px !important;
    gap: 18px !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-main {
    column-gap: 16px !important;
    row-gap: 16px !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile {
    margin: 0 !important;
    padding: 18px 18px 16px !important;
    border: 1px solid var(--market-border) !important;
    border-radius: 26px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(10, 14, 22, 0.04) !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-summary {
    padding: 18px 18px 16px !important;
    border: 1px solid var(--market-border) !important;
    border-radius: 26px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(10, 14, 22, 0.04) !important;
    position: sticky;
    top: 0;
  }

  #search-sheet.market-filters-sheet .filter-section-heading {
    margin-bottom: 14px !important;
  }

  #search-sheet.market-filters-sheet .filter-section-title,
  #search-sheet.market-filters-sheet .search-modal-label,
  #search-sheet.market-filters-sheet .range-head strong {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #11151b !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills,
  #search-sheet.market-filters-sheet .mobile-pill-group .segmented-pills,
  #search-sheet.market-filters-sheet .mobile-parking-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill,
  #search-sheet.market-filters-sheet .mobile-pill-group .pill,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill,
  #search-sheet.market-filters-sheet .amenity-pill {
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 1px solid var(--market-border-strong) !important;
    background: #ffffff !important;
    color: #1a1f28 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill.active,
  #search-sheet.market-filters-sheet .mobile-pill-group .pill.active,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill.active,
  #search-sheet.market-filters-sheet .amenity-pill.active {
    background: linear-gradient(180deg, #1b1c20 0%, #101114 100%) !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 20px rgba(17, 17, 17, 0.16) !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill,
  #search-sheet.market-filters-sheet .mobile-property-pill-all {
    min-width: 124px !important;
    min-height: 46px !important;
    width: auto !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 16px !important;
    border-radius: 18px !important;
    border: 1px solid var(--market-border-strong) !important;
    background: #ffffff !important;
    color: #1a1f28 !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill.active,
  #search-sheet.market-filters-sheet .mobile-property-pill-all.active {
    background: #ffffff !important;
    border-color: #111111 !important;
    color: #111111 !important;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04) !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill .material-symbols-outlined {
    font-size: 1rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-stats-grid {
    gap: 16px !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track {
    height: 6px !important;
    margin: 18px 8px 18px !important;
    background: #dde2ea !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-line {
    background: linear-gradient(90deg, #232427 0%, #111214 100%) !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #111111 !important;
    box-shadow: 0 10px 18px rgba(17, 17, 17, 0.14) !important;
  }

  #search-sheet.market-filters-sheet .mobile-range-active-text {
    color: #111111 !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    gap: 12px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    border: 1px solid var(--market-border-strong) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    padding: 12px 14px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap span {
    color: #8a90a0 !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.12em !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
    color: #12151c !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
  }

  #search-sheet.market-filters-sheet .market-multiselect-toggle,
  #search-sheet.market-filters-sheet :is(input, select) {
    min-height: 48px !important;
    border-radius: 16px !important;
    border: 1px solid var(--market-border-strong) !important;
    background: #ffffff !important;
    color: #12151c !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .market-summary-list li {
    grid-template-columns: 36px minmax(0, 1fr) 28px !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }

  #search-sheet.market-filters-sheet .market-summary-list .material-symbols-outlined {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  #search-sheet.market-filters-sheet .market-summary-list strong {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
  }

  #search-sheet.market-filters-sheet .market-results-card {
    margin-top: 18px !important;
    padding: 16px 14px !important;
    border-radius: 22px !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  #search-sheet.market-filters-sheet .market-results-card .material-symbols-outlined {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.7rem !important;
  }

  #search-sheet.market-filters-sheet .market-results-card strong {
    color: #111111 !important;
    font-size: 2.1rem !important;
    line-height: 1 !important;
  }

  #search-sheet.market-filters-sheet .market-summary-actions {
    display: grid !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }

  #search-sheet.market-filters-sheet .market-summary-actions .apply-results-btn,
  #search-sheet.market-filters-sheet .market-summary-actions .search-reset-btn {
    min-height: 54px !important;
    border-radius: 18px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }
}

/* Map market filters: final UX pass, aligned with the sidebar and admin cards. */
body.map-search-page #search-sheet.market-filters-sheet {
  isolation: isolate !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(15, 17, 20, 0.1) !important;
  background: rgba(255, 255, 255, 0.985) !important;
  box-shadow: 0 28px 70px rgba(7, 11, 18, 0.16) !important;
}

body.map-search-page #search-sheet.market-filters-sheet.open {
  transform: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header {
  flex: 0 0 auto !important;
  gap: 14px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main,
body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 17, 20, 0.34) rgba(15, 17, 20, 0.06);
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main::-webkit-scrollbar,
body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary::-webkit-scrollbar {
  width: 8px;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main::-webkit-scrollbar-thumb,
body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 17, 20, 0.28);
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary,
body.map-search-page #search-sheet.market-filters-sheet .range-card {
  border: 1px solid rgba(15, 17, 20, 0.1) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(10, 14, 22, 0.045) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .segmented-pills .pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all,
body.map-search-page #search-sheet.market-filters-sheet .amenity-pill,
body.map-search-page #search-sheet.market-filters-sheet .market-multiselect-toggle {
  border: 1px solid rgba(15, 17, 20, 0.14) !important;
  background: #ffffff !important;
  color: #151820 !important;
  box-shadow: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .segmented-pills .pill.active,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill.active,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all.active,
body.map-search-page #search-sheet.market-filters-sheet .amenity-pill.active {
  border-color: #111111 !important;
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 20px rgba(17, 17, 17, 0.16) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill.active .material-symbols-outlined,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all.active .material-symbols-outlined,
body.map-search-page #search-sheet.market-filters-sheet .amenity-pill.active .material-symbols-outlined {
  color: #ffffff !important;
}

body.map-search-page #search-sheet.market-filters-sheet :is(input, select),
body.map-search-page #search-sheet.market-filters-sheet .range-inputs input,
body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
  border-color: rgba(15, 17, 20, 0.14) !important;
  background: #ffffff !important;
  color: #151820 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-line,
body.map-search-page #search-sheet.market-filters-sheet .range-fill {
  background: #111111 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-dot,
body.map-search-page #search-sheet.market-filters-sheet .range-slider::-webkit-slider-thumb,
body.map-search-page #search-sheet.market-filters-sheet .range-slider::-moz-range-thumb {
  border-color: #111111 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-results-card {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
  border: 1px solid rgba(15, 17, 20, 0.08) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions .apply-results-btn {
  border-color: #111111 !important;
  background: #111111 !important;
  color: #ffffff !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions .search-reset-btn {
  border-color: rgba(15, 17, 20, 0.16) !important;
  background: #ffffff !important;
  color: #111111 !important;
}

@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet {
    top: 24px !important;
    right: 24px !important;
    bottom: 24px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 28px !important;
    padding: 18px 20px 20px !important;
  }

  body.map-search-page:not(.map-sidebar-collapsed) #search-sheet.market-filters-sheet {
    left: calc(var(--manager-sidebar-width, 318px) + 22px) !important;
  }

  body.map-search-page.map-sidebar-collapsed #search-sheet.market-filters-sheet {
    left: 24px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 318px) !important;
    gap: 16px !important;
  }
}

@media (max-width: 860px) {
  body.map-search-page #search-sheet.market-filters-sheet {
    inset: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 22px !important;
    padding: 12px !important;
  }

  body.map-search-page.search-sheet-open #sidebar.map-manager-sidebar {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-12px) !important;
  }
}

/* Market Command Panel v2: compact premium filter surface. */
body.map-search-page #search-sheet.market-filters-sheet {
  --market-panel-bg: #fbfbf8;
  --market-card-bg: #ffffff;
  --market-ink: #101114;
  --market-muted: #697386;
  --market-hairline: rgba(16, 17, 20, 0.1);
  --market-hairline-strong: rgba(16, 17, 20, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(17, 17, 17, 0.055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 248, 245, 0.985)) !important;
  border-color: rgba(16, 17, 20, 0.12) !important;
  color: var(--market-ink) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header {
  align-items: center !important;
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(16, 17, 20, 0.08) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-header-left {
  gap: 12px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-header-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 24px rgba(17, 17, 17, 0.16) !important;
  font-size: 1.35rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header h3 {
  margin: 0 !important;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  color: var(--market-ink) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .sheet-subtitle {
  margin-top: 3px !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  color: var(--market-muted) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  color: #30343c !important;
}

body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close:hover,
body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close:focus-visible {
  background: rgba(16, 17, 20, 0.06) !important;
  border-color: rgba(16, 17, 20, 0.12) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(16, 17, 20, 0.1) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--market-ink) !important;
  text-align: left !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate .material-symbols-outlined {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-row: 1 / 3 !important;
  border-radius: 12px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate h4 {
  grid-column: 2 !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.15 !important;
  color: var(--market-ink) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate p {
  grid-column: 2 !important;
  margin: 2px 0 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.25 !important;
  color: var(--market-muted) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-actions {
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
  margin: 0 !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-btn {
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  white-space: nowrap !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-btn-login {
  background: #111111 !important;
  color: #ffffff !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-btn-register {
  background: #ffffff !important;
  border-color: rgba(16, 17, 20, 0.14) !important;
  color: #111111 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary,
body.map-search-page #search-sheet.market-filters-sheet .range-card {
  border-radius: 20px !important;
  border-color: var(--market-hairline) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 22px rgba(12, 16, 24, 0.04) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile {
  min-height: 0 !important;
  padding: 13px 14px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-heading {
  margin-bottom: 9px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-title,
body.map-search-page #search-sheet.market-filters-sheet .search-modal-label,
body.map-search-page #search-sheet.market-filters-sheet .range-head strong {
  font-size: 0.78rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.015em !important;
  color: var(--market-ink) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .segmented-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-operation-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-pill-group .segmented-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-parking-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-grid,
body.map-search-page #search-sheet.market-filters-sheet .amenity-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-amenity-grid {
  gap: 7px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .segmented-pills .pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-pill-group .pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-parking-pills .pill,
body.map-search-page #search-sheet.market-filters-sheet .amenity-pill {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all {
  min-width: 104px !important;
  min-height: 36px !important;
  padding: 0 11px !important;
  border-radius: 13px !important;
  gap: 7px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill .material-symbols-outlined,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all .material-symbols-outlined,
body.map-search-page #search-sheet.market-filters-sheet .amenity-pill .material-symbols-outlined {
  font-size: 0.98rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all > span:last-child {
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-card {
  padding: 0 !important;
  box-shadow: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-head {
  margin-bottom: 8px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-head span,
body.map-search-page #search-sheet.market-filters-sheet .mobile-range-active-text {
  background: transparent !important;
  color: #111111 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track {
  height: 4px !important;
  margin: 13px 8px 14px !important;
  background: #dcdfe5 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-dot {
  width: 16px !important;
  height: 16px !important;
  background: #ffffff !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-inputs {
  gap: 8px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap,
body.map-search-page #search-sheet.market-filters-sheet :is(input, select),
body.map-search-page #search-sheet.market-filters-sheet .market-multiselect-toggle {
  min-height: 38px !important;
  border-radius: 12px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
  padding: 8px 10px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap span,
body.map-search-page #search-sheet.market-filters-sheet .range-meta em,
body.map-search-page #search-sheet.market-filters-sheet .market-multiselect-help {
  font-size: 0.62rem !important;
  color: var(--market-muted) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
  padding: 14px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary h4 {
  font-size: 1rem !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-list li {
  grid-template-columns: 30px minmax(0, 1fr) 24px !important;
  gap: 9px !important;
  padding: 9px 0 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-list .material-symbols-outlined {
  width: 30px !important;
  height: 30px !important;
  background: #f5f6f7 !important;
  font-size: 0.9rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-list small {
  font-size: 0.64rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-list strong {
  font-size: 0.82rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-results-card {
  margin-top: 12px !important;
  padding: 13px !important;
  border-radius: 18px !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-results-card .material-symbols-outlined {
  width: 44px !important;
  height: 44px !important;
  font-size: 1.35rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-results-card strong {
  font-size: 1.7rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-results-card p {
  font-size: 0.72rem !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions {
  gap: 9px !important;
  margin-top: 12px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions .apply-results-btn,
body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions .search-reset-btn {
  min-height: 44px !important;
  border-radius: 14px !important;
  font-size: 0.82rem !important;
}

@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet {
    padding: 16px !important;
    border-radius: 26px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    grid-template-columns: minmax(0, 1fr) minmax(274px, 300px) !important;
    gap: 14px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    gap: 10px !important;
    padding-right: 4px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile {
    grid-column: span 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de operación"] {
    grid-column: span 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"] {
    grid-column: span 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Zona de ciudad"] {
    grid-column: span 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    grid-column: span 1 !important;
  }
}

@media (min-width: 1500px) {
  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile {
    grid-column: span 4 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de operación"] {
    grid-column: span 3 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"] {
    grid-column: span 9 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Zona de ciudad"],
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    grid-column: span 6 !important;
  }
}

@media (max-width: 1040px) and (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    grid-template-columns: minmax(0, 1fr) 260px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label] {
    grid-column: span 1 !important;
  }
}

@media (max-width: 860px) {
  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate .material-symbols-outlined,
  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate h4,
  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate p,
  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-actions {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate .material-symbols-outlined {
    grid-column: 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate h4,
  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate p {
    grid-column: 2 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-actions {
    justify-content: stretch !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-btn {
    flex: 1 1 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    display: block !important;
    overflow-y: auto !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    display: grid !important;
    gap: 9px !important;
    grid-auto-rows: max-content !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
    margin-top: 10px !important;
    position: static !important;
  }
}

/* Market controls polish: restore proper range UI and prevent cramped controls. */
body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
  grid-auto-flow: row !important;
  grid-auto-rows: max-content !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile {
  height: auto !important;
  overflow: visible !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"] {
  min-height: 82px !important;
  height: auto !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"],
body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
  align-self: start !important;
  min-height: 158px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-pill-group {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-pill-group .segmented-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-parking-pills {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(32px, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-pill-group .pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-parking-pills .pill {
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-parking-pills {
  max-width: 210px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  justify-content: flex-start !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all {
  grid-column: 1 / -1 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child,
body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all > span:last-child {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.map-search-page #search-sheet.market-filters-sheet .amenity-pills,
body.map-search-page #search-sheet.market-filters-sheet .mobile-amenity-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .amenity-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-range-section {
  min-height: 142px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-range-card {
  display: block !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track {
  display: block !important;
  position: relative !important;
  height: 5px !important;
  margin: 16px 9px 18px !important;
  border-radius: 999px !important;
  background: #dfe3ea !important;
  overflow: visible !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-line {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: var(--range-start, 18%) !important;
  right: calc(100% - var(--range-end, 82%)) !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #111111 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-dot {
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  width: 17px !important;
  height: 17px !important;
  border: 2px solid #111111 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.16) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-left {
  left: var(--range-start, 18%) !important;
  transform: translate(-50%, -50%) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-right {
  left: var(--range-end, 82%) !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-inputs {
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-separator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9aa3b2 !important;
  font-weight: 800 !important;
}

/* Property point detail: match the Panorama del sector visual language. */
#property-detail-panel.property-detail-panel {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif !important;
  width: min(520px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 36px) !important;
  max-height: calc(100dvh - 36px) !important;
  border: 1px solid #dbe2ee !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 54px rgba(18, 44, 78, 0.16) !important;
  overflow: hidden !important;
}

#property-detail-panel .property-detail-header {
  padding: 16px 18px 10px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

#property-detail-panel .detail-kicker {
  gap: 8px !important;
  color: #1f6fff !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 900 !important;
}

#property-detail-panel .detail-kicker .material-symbols-outlined {
  font-size: 18px !important;
  color: #1f6fff !important;
}

#property-detail-panel .property-detail-close {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #d8dfeb !important;
  border-radius: 999px !important;
  background: #f6f8fc !important;
  color: #6b7b99 !important;
}

#property-detail-panel .property-detail-close:hover,
#property-detail-panel .property-detail-close:focus-visible {
  border-color: #b9c8df !important;
  background: #eef5ff !important;
  color: #1f6fff !important;
}

#property-detail-panel .property-detail-body {
  padding: 10px 18px 18px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

#property-detail-panel .property-detail-hero {
  height: 210px !important;
  border: 1px solid #dbe2ee !important;
  border-radius: 16px !important;
  background: #eff2f6 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

#property-detail-panel .property-detail-title {
  margin: 16px 0 5px !important;
  color: #0d1b3d !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  font-weight: 900 !important;
}

#property-detail-panel .property-detail-location {
  color: #6b7b99 !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-detail-tags {
  gap: 7px !important;
  margin: 12px 0 16px !important;
}

#property-detail-panel .property-tag-chip,
#property-detail-panel .property-chip {
  border: 1px solid #d8dfeb !important;
  background: #f6f8fc !important;
  color: #536987 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

#property-detail-panel .property-tag-chip .material-symbols-outlined,
#property-detail-panel .property-chip .material-symbols-outlined {
  color: #1f6fff !important;
}

#property-detail-panel .property-section-title {
  margin: 17px 0 9px !important;
  color: #0d1b3d !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.08em !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

#property-detail-panel .property-section-title .material-symbols-outlined {
  color: #1f6fff !important;
}

#property-detail-panel .property-detail-summary {
  gap: 8px !important;
}

#property-detail-panel .property-detail-summary .field {
  min-height: 64px !important;
  border: 1px solid #d8dfeb !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#property-detail-panel .property-detail-summary .field-icon-wrap {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  background: #eef5ff !important;
}

#property-detail-panel .property-detail-summary .field-icon,
#property-detail-panel .property-detail-summary .field-content dt {
  color: #6b7b99 !important;
}

#property-detail-panel .property-detail-summary .field-content dd {
  color: #0d1b3d !important;
  font-weight: 800 !important;
}

#property-detail-panel .property-detail-description {
  color: #536987 !important;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
}

#property-detail-panel .property-detail-links {
  gap: 8px !important;
  margin-top: 16px !important;
}

#property-detail-panel .property-link {
  border-radius: 14px !important;
  background: linear-gradient(95deg, #1f6fff, #1a63ea) !important;
  box-shadow: 0 10px 20px rgba(27, 104, 238, 0.24) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
}

#property-detail-panel .property-mini-btn {
  border: 1px solid #d8dfeb !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #1f6fff !important;
}

#property-detail-panel .property-mini-btn:hover,
#property-detail-panel .property-mini-btn:focus-visible {
  border-color: #b9c8df !important;
  background: #eef5ff !important;
}

@media (max-width: 640px) {
  #property-detail-panel.property-detail-panel {
    top: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: calc(100vw - 24px) !important;
    max-height: none !important;
  }

  #property-detail-panel .property-detail-hero {
    height: 180px !important;
  }

  #property-detail-panel .property-detail-summary .field {
    min-height: 58px !important;
  }
}

/* Sector quality popup: align to the platform's black-first administrative look. */
#map-hover-panel.guest-sector-panel-active .guest-sector-summary-card,
#map-hover-panel.guest-sector-panel-active .guest-featured-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-card,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar {
  border: 1px solid rgba(18, 18, 18, 0.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%) !important;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-summary-card,
#map-hover-panel.guest-sector-panel-active .guest-featured-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-card {
  position: relative;
  overflow: hidden;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-summary-card::after,
#map-hover-panel.guest-sector-panel-active .guest-featured-card::after,
#map-hover-panel.guest-sector-panel-active .guest-quality-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0f0f10 0%, #2a2a2d 100%);
  opacity: 0.9;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kicker,
#map-hover-panel.guest-sector-panel-active .guest-featured-kicker,
#map-hover-panel.guest-sector-panel-active .guest-quality-title,
#map-hover-panel.guest-sector-panel-active .guest-quality-header-score span,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-card strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy p span,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-icon,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-icon,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card .material-symbols-outlined {
  color: #161618 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kicker,
#map-hover-panel.guest-sector-panel-active .guest-featured-kicker,
#map-hover-panel.guest-sector-panel-active .guest-quality-title {
  letter-spacing: 0.14em !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-name,
#map-hover-panel.guest-sector-panel-active .guest-featured-copy h4,
#map-hover-panel.guest-sector-panel-active .guest-quality-title strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box strong,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-header-score strong,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-ring span,
#map-hover-panel.guest-sector-panel-active .guest-featured-price,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar strong {
  color: #101114 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-location,
#map-hover-panel.guest-sector-panel-active .guest-quality-header p,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card p,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-card p,
#map-hover-panel.guest-sector-panel-active .guest-featured-fact,
#map-hover-panel.guest-sector-panel-active .guest-featured-meta,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card small,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-bar small,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box small,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill small,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric-copy small {
  color: #666b76 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill,
#map-hover-panel.guest-sector-panel-active .guest-quality-score-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric {
  border: 1px solid rgba(18, 18, 18, 0.09) !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 8px 20px rgba(15, 15, 16, 0.04) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card:hover,
#map-hover-panel.guest-sector-panel-active .guest-sector-metric-box:hover,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-pill:hover,
#map-hover-panel.guest-sector-panel-active .guest-quality-metric:hover {
  border-color: rgba(18, 18, 18, 0.18) !important;
  transform: translateY(-1px);
}

#map-hover-panel.guest-sector-panel-active .guest-quality-score-ring {
  background:
    radial-gradient(closest-side, #ffffff 77%, transparent 78% 100%),
    conic-gradient(#111111 var(--score-angle), #e7e9ee 0) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-quality-metric-icon,
#map-hover-panel.guest-sector-panel-active .guest-quality-note-card .material-symbols-outlined,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-icon,
#map-hover-panel.guest-sector-panel-active .guest-sector-stat-icon {
  background: rgba(17, 17, 17, 0.06) !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  color: #101114 !important;
}

#map-hover-panel.guest-sector-panel-active .guest-panel-close-btn,
#map-hover-panel.guest-sector-panel-active .guest-featured-favorite,
#map-hover-panel.guest-sector-panel-active .guest-quality-report-btn,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-cta {
  border: 1px solid rgba(18, 18, 18, 0.12) !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
}

#map-hover-panel.guest-sector-panel-active .guest-panel-close-btn:hover,
#map-hover-panel.guest-sector-panel-active .guest-featured-favorite:hover,
#map-hover-panel.guest-sector-panel-active .guest-quality-report-btn:hover,
#map-hover-panel.guest-sector-panel-active .guest-sector-footer-cta:hover {
  background: #f5f5f6 !important;
  border-color: rgba(18, 18, 18, 0.18) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-cta,
#map-hover-panel.guest-sector-panel-active .guest-quality-more-btn {
  background: linear-gradient(180deg, #17181a 0%, #0f1012 100%) !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  box-shadow: 0 12px 24px rgba(10, 10, 10, 0.2) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-cta:hover,
#map-hover-panel.guest-sector-panel-active .guest-quality-more-btn:hover {
  background: linear-gradient(180deg, #212225 0%, #141518 100%) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-media {
  background: linear-gradient(180deg, #f1f2f4 0%, #e7eaee 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.08) !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-image,
#map-hover-panel.guest-sector-panel-active .guest-featured-image-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-image {
  object-fit: cover !important;
  object-position: center center !important;
}

#map-hover-panel.guest-sector-panel-active .guest-featured-count-badge {
  background: rgba(12, 12, 12, 0.84) !important;
  color: #ffffff !important;
}

#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-gold,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-purple,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-blue,
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card-teal {
  background: #ffffff !important;
  border-color: rgba(18, 18, 18, 0.09) !important;
}

/* Market filters sheet: ccec052 compact design, black accent port. */
#search-sheet.market-filters-sheet .hidden {
  display: none !important;
}

#search-sheet.market-filters-sheet .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  -webkit-font-smoothing: antialiased !important;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24 !important;
}

  #search-sheet.market-filters-sheet {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(442px, calc(100vw - 16px)) !important;
    max-width: min(442px, calc(100vw - 16px)) !important;
    height: min(82vh, 820px) !important;
    max-height: min(82vh, 820px) !important;
    margin: 0 !important;
    border-radius: 28px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    background: #ffffff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.17) !important;
    overflow: hidden !important;
  }

  #search-sheet.market-filters-sheet .desktop-only,
  #search-sheet.market-filters-sheet .market-sheet-summary {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-only {
    display: block !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header {
    padding: 26px 22px 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    border-bottom: 0 !important;
    background: #ffffff !important;
  }

  #search-sheet.market-filters-sheet .market-header-left,
  #search-sheet.market-filters-sheet .mobile-filter-title-block {
    display: block !important;
  }

  #search-sheet.market-filters-sheet .market-header-icon {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 1.58rem !important;
    line-height: 1.02 !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header h3 .mobile-market-copy {
    display: inline !important;
  }

  #search-sheet.market-filters-sheet .sheet-subtitle {
    margin: 5px 0 0 !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: transparent !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-close .material-symbols-outlined {
    font-size: 1.16rem !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-layout {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 84px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #search-sheet.market-filters-sheet .market-sheet-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 4px 22px 18px !important;
    background: #ffffff !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile {
    padding: 0 0 20px !important;
    margin: 0 0 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile:last-child {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  #search-sheet.market-filters-sheet .filter-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  #search-sheet.market-filters-sheet .filter-section-title,
  #search-sheet.market-filters-sheet .search-modal-label {
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  #search-sheet.market-filters-sheet .search-modal-label {
    display: block !important;
    margin-bottom: 10px !important;
  }

  #search-sheet.market-filters-sheet .mobile-more-link {
    border: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 4px !important;
    border-radius: 16px !important;
    background: #f1f5f9 !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill {
    min-height: 43px !important;
    border-radius: 13px !important;
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
  }

  #search-sheet.market-filters-sheet .mobile-operation-pills .pill.active {
    background: #111827 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20) !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill {
    min-width: 0 !important;
    min-height: 74px !important;
    border-radius: 16px !important;
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 8px 5px !important;
    text-align: center !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child {
    display: block !important;
    max-width: 100% !important;
    font-size: 0.56rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    overflow-wrap: anywhere !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill .material-symbols-outlined {
    font-size: 1.12rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill.active {
    border-color: #111827 !important;
    background: #f8fafc !important;
    color: #111827 !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill-all {
    grid-column: 1 / -1 !important;
    min-height: 42px !important;
    flex-direction: row !important;
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-expandable-option {
    display: none !important;
  }

  #search-sheet.market-filters-sheet #property-type-pills.expanded .mobile-expandable-option {
    display: flex !important;
  }

  #search-sheet.market-filters-sheet .mobile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group {
    display: block !important;
    min-width: 0 !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .segmented-pills,
  #search-sheet.market-filters-sheet .mobile-parking-pills {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    background: transparent !important;
    padding: 0 !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .pill,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill {
    min-width: 0 !important;
    min-height: 38px !important;
    border-radius: 13px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 0 5px !important;
  }

  #search-sheet.market-filters-sheet .mobile-pill-group .pill.active,
  #search-sheet.market-filters-sheet .mobile-parking-pills .pill.active {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16) !important;
  }

  #search-sheet.market-filters-sheet .mobile-range-card {
    --range-start: 18%;
    --range-end: 82%;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .range-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 9px !important;
    margin-bottom: 13px !important;
  }

  #search-sheet.market-filters-sheet .range-head strong {
    color: #1e293b !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  #search-sheet.market-filters-sheet .range-head-muted {
    color: #94a3b8 !important;
    font-weight: 500 !important;
  }

  #search-sheet.market-filters-sheet .mobile-range-active-text {
    color: #111827 !important;
    font-size: 0.71rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-align: right !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track {
    position: relative !important;
    height: 4px !important;
    margin-bottom: 18px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    overflow: visible !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-line {
    position: absolute !important;
    top: 0 !important;
    left: var(--range-start) !important;
    right: calc(100% - var(--range-end)) !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: #111827 !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot {
    position: absolute !important;
    top: 50% !important;
    width: 19px !important;
    height: 19px !important;
    border: 2px solid #111827 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-left {
    left: var(--range-start) !important;
    transform: translate(-50%, -50%) !important;
  }

  #search-sheet.market-filters-sheet .mobile-blue-track .range-dot-right {
    left: var(--range-end) !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    min-width: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap span {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 0.53rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-separator {
    color: #94a3b8 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
  }

  #search-sheet.market-filters-sheet .amenities-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill {
    min-height: 36px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 11px !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill.active {
    border-color: #111827 !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-weight: 800 !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid .amenity-pill .material-symbols-outlined {
    font-size: 0.86rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-amenity-grid:not(.expanded) .amenity-pill:nth-child(n + 5) {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-footer {
    position: relative !important;
    bottom: auto !important;
    z-index: auto !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 10px 22px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 14px !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-stats {
    display: flex !important;
    align-items: baseline !important;
    gap: 7px !important;
    margin-bottom: 9px !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-stats strong {
    color: #111827 !important;
    font-size: 1.42rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-stats span {
    color: #94a3b8 !important;
    font-size: 0.54rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  #search-sheet.market-filters-sheet .mobile-filters-actions {
    display: flex !important;
    gap: 9px !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset,
  #search-sheet.market-filters-sheet .mobile-btn-apply {
    min-width: 0 !important;
    min-height: 46px !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset {
    flex: 0 0 58px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #64748b !important;
    padding: 0 !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset span:last-child {
    display: none !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-apply {
    flex: 1 1 auto !important;
    border: 0 !important;
    background: linear-gradient(180deg, #111827, #000000) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16) !important;
    padding: 0 16px !important;
  }

  #search-sheet.market-filters-sheet .mobile-btn-reset .material-symbols-outlined,
  #search-sheet.market-filters-sheet .mobile-btn-apply .material-symbols-outlined {
    font-size: 0.86rem !important;
  }

@media (max-width: 520px) {
  #search-sheet.market-filters-sheet {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    inset: auto 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px !important;
    border-radius: 26px !important;
  }

  #search-sheet.market-filters-sheet .search-sheet-header,
  #search-sheet.market-filters-sheet .market-sheet-main,
  #search-sheet.market-filters-sheet .mobile-filters-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-grid {
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill {
    min-height: 68px !important;
  }

  #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child {
    font-size: 0.52rem !important;
  }

  #search-sheet.market-filters-sheet .mobile-stats-grid {
    gap: 12px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    gap: 7px !important;
  }

  #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    padding: 11px 11px !important;
  }
}
body.map-search-page #search-sheet.market-filters-sheet.open {
  transform: translate(-50%, -50%) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only .market-sheet-layout {
  opacity: 1 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate {
  margin: 0 22px 14px !important;
  border-radius: 18px !important;
  border: 1px solid #eef2f7 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate span {
  background: #111827 !important;
  color: #ffffff !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-btn-login {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #111827 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate-btn-register {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e2e8f0 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
  display: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-btn-apply {
  background: linear-gradient(180deg, #171717, #000000) !important;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-btn-reset {
  color: #111827 !important;
}

@media (max-width: 640px) {
  body.map-search-page #search-sheet.market-filters-sheet {
    left: 6px !important;
    top: auto !important;
    right: 6px !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    transform: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet.open {
    transform: none !important;
  }
}
/* Final desktop guard: keep ccec052 compact sheet on every map viewport. */
body.map-search-page #search-sheet.market-filters-sheet {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(442px, calc(100vw - 36px)) !important;
  max-width: min(442px, calc(100vw - 36px)) !important;
  height: min(82vh, 820px) !important;
  max-height: min(82vh, 820px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 28px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.17) !important;
  overflow: hidden !important;
  transform: translate(-50%, -50%) !important;
}

body.map-search-page #search-sheet.market-filters-sheet.open {
  transform: translate(-50%, -50%) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100% - 84px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 4px 22px 18px !important;
  background: #ffffff !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
body.map-search-page #search-sheet.market-filters-sheet .search-modal-section {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 0 20px !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
  display: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-filters-footer {
  display: block !important;
}

@media (max-width: 860px) {
  body.map-search-page #search-sheet.market-filters-sheet {
    left: 50% !important;
  }
}

@media (max-width: 640px) {
  body.map-search-page #search-sheet.market-filters-sheet {
    left: 6px !important;
    top: auto !important;
    right: 6px !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    transform: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet.open {
    transform: none !important;
  }
}
/* Auth/locked state must keep the same compact visual contract. */
body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only,
body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked,
body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only.open,
body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked.open {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(442px, calc(100vw - 36px)) !important;
  max-width: min(442px, calc(100vw - 36px)) !important;
  height: min(82vh, 820px) !important;
  max-height: min(82vh, 820px) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) !important;
  overflow: hidden !important;
}

@media (max-width: 860px) {
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only.open,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked.open {
    left: 50% !important;
  }
}

@media (max-width: 640px) {
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only.open,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked.open {
    left: 6px !important;
    top: auto !important;
    right: 6px !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    transform: none !important;
  }
}

/* Desktop final pass: keep the compact filter visually aligned after legacy map rules. */
body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header.mobile-filter-header {
  padding: 26px 22px 12px !important;
  margin: 0 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px 12px !important;
  margin: 0 22px 14px !important;
  width: auto !important;
  padding: 14px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) > .material-symbols-outlined {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 42px !important;
  height: 42px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) h4,
body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) p {
  grid-column: 2 !important;
  margin: 0 !important;
  text-align: left !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) h4 {
  grid-row: 1 !important;
  font-size: 0.88rem !important;
  line-height: 1.12 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) p {
  grid-row: 2 !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) .market-auth-gate-actions {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) .market-auth-gate-btn {
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 0.72rem !important;
  border-radius: 999px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
  padding: 4px 22px 18px !important;
}

@media (max-width: 640px) {
  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header.mobile-filter-header {
    padding: 22px 16px 10px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) {
    margin: 0 16px 12px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    padding: 4px 16px 16px !important;
  }
}

/* Desktop market filter: wide white command panel, black DataPrex accent. */
@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet,
  body.map-search-page #search-sheet.market-filters-sheet.open,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only.open,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked.open {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(1050px, calc(100vw - 110px)) !important;
    max-width: min(1050px, calc(100vw - 110px)) !important;
    height: min(82vh, 760px) !important;
    max-height: min(82vh, 760px) !important;
    padding: 28px !important;
    border-radius: 26px !important;
    border: 1px solid rgba(215, 225, 239, 0.96) !important;
    background: rgba(255, 255, 255, 0.985) !important;
    box-shadow: 0 30px 80px rgba(17, 31, 54, 0.22) !important;
    transform: translate(-50%, -50%) !important;
    overflow: hidden !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header.mobile-filter-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 18px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header.mobile-filter-header .market-header-left {
    display: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-header-left {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-header-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    border: 1px solid #dde7f5 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fbfdff, #f3f7fc) !important;
    color: #101828 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(20, 42, 70, 0.08) !important;
    font-size: 1.55rem !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(1.55rem, 2.25vw, 2.05rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .sheet-subtitle {
    margin: 8px 0 0 !important;
    color: #71809a !important;
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close {
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #17233a !important;
    box-shadow: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close:hover,
  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close:focus-visible {
    background: #f2f6fc !important;
    color: #020617 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(292px, 320px) !important;
    gap: 18px !important;
    height: calc(100% - 48px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: max-content !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 0 2px 2px 0 !important;
    overflow: auto !important;
    background: transparent !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
  body.map-search-page #search-sheet.market-filters-sheet .search-modal-section {
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #dde7f5 !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 12px 28px rgba(30, 55, 92, 0.055) !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"],
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    grid-column: 1 / -1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    align-self: start !important;
    min-height: 0 !important;
    padding: 20px 14px 16px !important;
    border: 1px solid #dde7f5 !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 28px rgba(30, 55, 92, 0.055) !important;
    overflow: hidden !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary h4 {
    margin: 0 4px 16px !important;
    color: #111827 !important;
    font-size: 1.28rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .segmented-pills,
  body.map-search-page #search-sheet.market-filters-sheet .round-pills,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-parking-pills,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-operation-pills,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-grid,
  body.map-search-page #search-sheet.market-filters-sheet .amenity-pills,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-amenity-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .pill,
  body.map-search-page #search-sheet.market-filters-sheet .amenity-pill,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all {
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border: 1px solid #cfe0f6 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #24334d !important;
    box-shadow: 0 7px 16px rgba(21, 48, 86, 0.045) !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    font-weight: 760 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .pill.active,
  body.map-search-page #search-sheet.market-filters-sheet .amenity-pill.active,
  body.map-search-page #search-sheet.market-filters-sheet #property-type-pills .pill.active {
    border-color: #111827 !important;
    background: linear-gradient(180deg, #1f2937, #000000) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill {
    flex-direction: row !important;
    gap: 8px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill > span:last-child,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-pill-all > span:last-child {
    font-size: 0.8rem !important;
    line-height: 1 !important;
    font-weight: 760 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-card {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-line,
  body.map-search-page #search-sheet.market-filters-sheet .range-fill {
    background: #111827 !important;
    color: #111827 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-head span,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-range-active-text {
    background: transparent !important;
    color: #111827 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-blue-track .range-dot,
  body.map-search-page #search-sheet.market-filters-sheet .range-slider::-webkit-slider-thumb,
  body.map-search-page #search-sheet.market-filters-sheet .range-slider::-moz-range-thumb {
    border-color: #111827 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-summary-list li {
    border-bottom: 1px solid #e5edf7 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-summary-list .material-symbols-outlined {
    background: #f1f5f9 !important;
    color: #111827 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-results-card {
    background: linear-gradient(135deg, #f3f4f6, #ffffff) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-results-card strong,
  body.map-search-page #search-sheet.market-filters-sheet .market-results-card .material-symbols-outlined {
    color: #111827 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .apply-results-btn,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-btn-apply {
    background: linear-gradient(180deg, #1f2937, #000000) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-reset-btn,
  body.map-search-page #search-sheet.market-filters-sheet .mobile-btn-reset {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #111827 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-auth-gate:not(.hidden) {
    grid-column: 1 / -1 !important;
    margin: 0 0 14px !important;
  }
}

/* Desktop filter order: operation + zone, then bedrooms + baths + parking. */
@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    grid-template-columns: minmax(210px, 1.24fr) repeat(2, minmax(120px, 0.62fr)) !important;
    grid-template-areas:
      "operation zone zone"
      "rooms baths parking"
      "property property property"
      "price area area"
      "amenities amenities amenities" !important;
    overflow-x: hidden !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Tipo de operaci"] {
    order: 1 !important;
    grid-column: span 1 !important;
    grid-area: operation !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Tipo de operaci"] .mobile-operation-pills {
    flex-wrap: nowrap !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Zona de ciudad"] {
    order: 2 !important;
    grid-column: span 2 !important;
    grid-area: zone !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"] {
    order: 5 !important;
    grid-area: parking !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Habitaciones"] {
    order: 3 !important;
    grid-area: rooms !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Ba"] {
    order: 4 !important;
    grid-area: baths !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-heading,
  body.map-search-page #search-sheet.market-filters-sheet .amenities-header {
    margin-bottom: 8px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-title,
  body.map-search-page #search-sheet.market-filters-sheet .search-modal-label {
    margin-bottom: 7px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"] .mobile-parking-pills,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Habitaciones"] .round-pills,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Ba"] .round-pills {
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"] .mobile-parking-pills .pill,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Habitaciones"] .round-pills .pill,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Ba"] .round-pills .pill {
    min-height: 31px !important;
    padding: 0 6px !important;
    font-size: 0.7rem !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-property-type-block {
    order: 5 !important;
    grid-column: 1 / -1 !important;
    grid-area: property !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Rango de precio"] {
    order: 6 !important;
    grid-column: span 1 !important;
    grid-area: price !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Superficie"] {
    order: 7 !important;
    grid-column: span 1 !important;
    grid-area: area !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    order: 8 !important;
    grid-column: 1 / -1 !important;
    grid-area: amenities !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-amenity-grid:not(.expanded) .amenity-pill:nth-child(n + 5),
  body.map-search-page #search-sheet.market-filters-sheet .mobile-property-grid:not(.expanded) .mobile-expandable-option {
    display: inline-flex !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] .mobile-more-link,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"] .mobile-more-link {
    display: none !important;
  }
}

/* Market filter final visibility: amenidades always visible. */
body.map-search-page #search-sheet.market-filters-sheet .mobile-amenity-grid:not(.expanded) .amenity-pill:nth-child(n + 5) {
  display: inline-flex !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] .mobile-more-link {
  display: none !important;
}

/* Market filter desktop: actions live only in the right summary panel. */
@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet .mobile-filters-footer {
    display: none !important;
  }
}

/* Desktop market filter density: external close control and more usable content. */
@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet,
  body.map-search-page #search-sheet.market-filters-sheet.open,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-auth-only.open,
  body.map-search-page #search-sheet.market-filters-sheet.market-filters-locked.open {
    padding: 16px !important;
    border-color: rgba(203, 213, 225, 0.72) !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header.mobile-filter-header {
    position: absolute !important;
    inset: 0 !important;
    z-index: 12 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-header.mobile-filter-header .sheet-actions {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    width: 40px !important;
    height: 40px !important;
    pointer-events: auto !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(203, 213, 225, 0.9) !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close:hover,
  body.map-search-page #search-sheet.market-filters-sheet .search-sheet-close:focus-visible {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    height: 100% !important;
    gap: 12px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    gap: 8px !important;
    padding: 0 3px 0 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
  body.map-search-page #search-sheet.market-filters-sheet .search-modal-section {
    padding: 6px 10px !important;
    border-color: rgba(203, 213, 225, 0.68) !important;
    border-radius: 12px !important;
    box-shadow: 0 7px 18px rgba(30, 41, 59, 0.04) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
    padding: 14px 12px 12px !important;
    border-color: rgba(203, 213, 225, 0.68) !important;
    border-radius: 12px !important;
    box-shadow: 0 7px 18px rgba(30, 41, 59, 0.04) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary h4 {
    margin-bottom: 10px !important;
  }
}
/* Compact sector summary after removing the quality and viewport sections. */
@media (min-width: 981px) {
  #map-hover-panel.guest-sector-panel-active {
    width: min(600px, calc(100vw - 32px)) !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card {
    min-height: 62px !important;
    padding: 7px !important;
    gap: 3px !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card small {
    font-size: 0.5rem !important;
    line-height: 1.08 !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card strong {
    font-size: 0.86rem !important;
  }

  #map-hover-panel.guest-sector-panel-active .guest-featured-media {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
  }
}

@media (max-width: 980px) {
  #map-hover-panel.guest-sector-panel-active .guest-featured-media {
    height: 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
  }
}

/* ============================================================================
   MAPA MOVIL: header arriba + navegacion sticky "tipo app" abajo.
   Reemplaza el popover flotante arriba-izquierda por una barra inferior fija
   con solo Inicio + Buscador, y saca el logo como header superior. Va al final
   del archivo para ganar por orden de fuente a las reglas moviles previas.
   ============================================================================ */
@media (max-width: 860px) {
  /* --- Header superior: MISMA UX que login/dashboards (.manager-mobile-topbar):
     marca centrada, 46px, blanco translucido + blur + borde inferior. --- */
  body.map-search-page .map-mobile-topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 85 !important;
    display: grid !important;
    grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr) !important;
    align-items: center !important;
    min-height: calc(46px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(5px + env(safe-area-inset-top, 0px)) 14px 5px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.55) !important;
  }
  body.map-search-page .map-mobile-topbar-brand {
    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: #0b1528 !important;
    text-decoration: none !important;
    font-size: 1.01rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  body.map-search-page .map-mobile-topbar-logo {
    width: 18px !important;
    height: 23px !important;
    object-fit: contain !important;
  }

  /* La marca/tarjetas internas del sidebar se ocultan: el header ya trae logo. */
  body.map-search-page .map-manager-sidebar .manager-brand-block,
  body.map-search-page .map-manager-sidebar .manager-sidebar-card,
  body.map-search-page .map-manager-sidebar .map-sidebar-footer {
    display: none !important;
  }

  /* --- Sidebar -> tab-bar inferior fija, identica a la de logueado
     (.manager-sidebar @media 820px): translucida 0.97, blur 12, borde superior. --- */
  body.map-search-page #sidebar.map-manager-sidebar,
  body.map-search-page #sidebar.map-manager-sidebar.collapsed {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-top: 1px solid var(--manager-border, #e5e9f0) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 -8px 26px -14px rgba(16, 32, 64, 0.32) !important;
    z-index: 60 !important;
    transform: none !important;
    overflow: visible !important;
  }

  /* La barra queda SIEMPRE visible: se neutraliza el colapso del popover. */
  body.map-search-page.map-sidebar-collapsed #sidebar.map-manager-sidebar,
  body.map-search-page.map-sidebar-collapsed #sidebar.map-manager-sidebar.collapsed {
    transform: none !important;
    display: flex !important;
    inset: auto 0 0 0 !important;
    top: auto !important;
  }

  /* Nav ocupa la barra; Inicio + Buscador como dos tabs iguales.
     padding:0 anula el padding-top:26px heredado que dejaba un hueco blanco
     sobre los botones (footer se veia grueso). */
  body.map-search-page .map-manager-sidebar .manager-sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Cada link = tab, con los mismos valores del menu logueado. */
  body.map-search-page .map-manager-sidebar .manager-sidebar-link,
  body.map-search-page #search-sheet-toggle.manager-sidebar-link {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 8px 2px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--manager-sidebar-idle-text, #23324e) !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    min-height: 0 !important;
    width: auto !important;
  }
  body.map-search-page .map-manager-sidebar .manager-sidebar-link .material-symbols-outlined,
  body.map-search-page #search-sheet-toggle.manager-sidebar-link .material-symbols-outlined {
    font-size: 1.42rem !important;
  }
  body.map-search-page .map-manager-sidebar .manager-sidebar-link.is-active,
  body.map-search-page #search-sheet-toggle.manager-sidebar-link.is-active {
    background: var(--manager-sidebar-accent-bg, #000000) !important;
    color: var(--manager-sidebar-accent-text, #ffffff) !important;
  }

  /* El toggle "^" flotante ya no hace falta con la barra fija. */
  body.map-search-page .map-stage-floating-actions {
    display: none !important;
  }

  /* Controles del mapa (zoom) por debajo del header. El zoom vive en el
     contenedor .leaflet-top.leaflet-LEFT (aunque se pinte a la derecha), asi
     que se baja .leaflet-top completo, no solo .leaflet-right. */
  body.map-search-page .leaflet-top {
    top: calc(52px + env(safe-area-inset-top, 0px)) !important;
  }

  /* Con el buscador abierto, header y barra se ocultan tras el sheet. */
  body.map-search-page.search-sheet-open .map-mobile-topbar,
  body.map-search-page.search-sheet-open #sidebar.map-manager-sidebar {
    display: none !important;
  }

  /* --- RESULTS: results.html tambien lleva .map-search-page pero es una LISTA
     que DEBE hacer scroll. El mapa fuerza overflow:hidden en body/html (shell
     fijo) y eso mata el scroll de la lista; aqui se restaura y el contenido
     despeja la tab-bar inferior fija. --- */
  body.map-search-page.results-page {
    /* body = contenedor de scroll de altura fija (no depende de :has ni de que
       el documento scrollee): la lista scrollea DENTRO del body y la tab-bar
       fija queda sobre el viewport. */
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.map-search-page.results-page .app-shell,
  body.map-search-page.results-page .results-app-shell {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  body.map-search-page.results-page .results-stage {
    /* results-stage hereda .map-stage (height:100dvh + overflow:hidden) que
       clipa la lista; en results debe crecer con el contenido y hacer scroll. */
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* html tambien debe permitir scroll en results (el mapa lo pone en hidden). */
@media (max-width: 860px) {
  html:has(body.results-page) {
    overflow-y: auto !important;
    height: auto !important;
  }
}

/* El header movil del mapa no existe en escritorio. */
@media (min-width: 861px) {
  body.map-search-page .map-mobile-topbar {
    display: none !important;
  }
}

/* Desktop market filter final guard: keep the restored filter usable and unclipped. */
@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet,
  body.map-search-page #search-sheet.market-filters-sheet.open {
    left: calc(var(--manager-sidebar-width, 318px) + 24px) !important;
    right: 24px !important;
    top: 50% !important;
    bottom: auto !important;
    width: auto !important;
    height: min(86vh, 780px) !important;
    max-height: min(86vh, 780px) !important;
    transform: translateY(-50%) !important;
    padding: 18px !important;
    overflow: visible !important;
  }

  body.map-search-page.map-sidebar-collapsed #search-sheet.market-filters-sheet,
  body.map-search-page.map-sidebar-collapsed #search-sheet.market-filters-sheet.open {
    left: 24px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    display: grid !important;
    grid-template-columns: minmax(640px, 1fr) minmax(300px, 320px) !important;
    gap: 16px !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.5fr) minmax(190px, 0.75fr) minmax(190px, 0.75fr) !important;
    grid-template-areas:
      "operation zone zone"
      "rooms baths parking"
      "property property property"
      "price area area"
      "amenities amenities amenities" !important;
    gap: 10px !important;
    align-content: start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 6px 4px 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Tipo de operaci"] {
    grid-area: operation !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Zona de ciudad"] {
    grid-area: zone !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Habitaciones"] {
    grid-area: rooms !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Ba"] {
    grid-area: baths !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"] {
    grid-area: parking !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Tipo de inmueble"] {
    grid-area: property !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Rango de precio"] {
    grid-area: price !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Superficie"] {
    grid-area: area !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Amenidades"] {
    grid-area: amenities !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile,
  body.map-search-page #search-sheet.market-filters-sheet .search-modal-section {
    padding: 10px 12px !important;
    min-height: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section {
    min-height: 180px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-track {
    margin: 32px 8px 18px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-inputs {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap {
    min-width: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
    min-width: 0 !important;
    overflow-y: auto !important;
  }
}

/* Desktop market filter width fix: prevent the summary column from overflowing. */
@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet,
  body.map-search-page #search-sheet.market-filters-sheet.open {
    left: calc(var(--manager-sidebar-width, 318px) + 14px) !important;
    right: 14px !important;
  }

  body.map-search-page.map-sidebar-collapsed #search-sheet.market-filters-sheet,
  body.map-search-page.map-sidebar-collapsed #search-sheet.market-filters-sheet.open {
    left: 14px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 270px) !important;
    gap: 12px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main,
  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-summary {
    min-width: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main {
    grid-template-columns: minmax(190px, 1.5fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions .apply-results-btn,
  body.map-search-page #search-sheet.market-filters-sheet .market-summary-actions .search-reset-btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-input-wrap input {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.78rem !important;
  }

  /* Desktop market filter alignment: visual centering only. */
  body.map-search-page #search-sheet.market-filters-sheet .mobile-operation-pills .pill,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Habitaciones"] .round-pills .pill,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label^="Ba"] .round-pills .pill,
  body.map-search-page #search-sheet.market-filters-sheet .filter-section-mobile[aria-label="Estacionamientos"] .mobile-parking-pills .pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-summary-list li {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 28px !important;
    align-items: center !important;
    column-gap: 10px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-summary-list .material-symbols-outlined,
  body.map-search-page #search-sheet.market-filters-sheet .market-summary-list button,
  body.map-search-page #search-sheet.market-filters-sheet .market-results-card .material-symbols-outlined {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-summary-list li > div {
    display: flex !important;
    min-height: 34px !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-results-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 14px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .market-results-card > div {
    min-width: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .apply-results-btn,
  body.map-search-page #search-sheet.market-filters-sheet .search-reset-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    line-height: 1 !important;
  }

  /* Desktop/mobile range guard: keep active line visible and labels inside. */
  body.map-search-page #search-sheet.market-filters-sheet .range-track {
    --range-accent: #2a73e9;
    --range-bubble-edge: 44px;
    height: 34px !important;
    margin: 18px 18px 20px !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-line,
  body.map-search-page #search-sheet.market-filters-sheet .range-fill {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    height: 4px !important;
    border-radius: 999px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-line {
    left: 0 !important;
    right: 0 !important;
    background: #dbe4f0 !important;
    z-index: 1 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-fill {
    background: var(--range-accent) !important;
    min-width: 4px !important;
    z-index: 2 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-slider {
    z-index: 3 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-slider::-webkit-slider-thumb {
    border-color: var(--range-accent) !important;
    box-shadow: 0 0 0 3px #ffffff, 0 4px 12px rgba(42, 115, 233, 0.28) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-slider::-moz-range-thumb {
    border-color: var(--range-accent) !important;
    box-shadow: 0 0 0 3px #ffffff, 0 4px 12px rgba(42, 115, 233, 0.28) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-bubble {
    max-width: min(112px, calc(100% - 8px)) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 4 !important;
  }
}

/* Market range final guard: same blue track and safe labels on every viewport. */
body.map-search-page #search-sheet.market-filters-sheet .range-track {
  --range-accent: #2a73e9;
  --range-bubble-edge: 48px;
  height: 34px !important;
  margin: 18px 18px 20px !important;
  overflow: visible !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-line,
body.map-search-page #search-sheet.market-filters-sheet .range-fill {
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  height: 4px !important;
  border-radius: 999px !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-line {
  left: 0 !important;
  right: 0 !important;
  background: #dbe4f0 !important;
  z-index: 1 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-fill {
  background: var(--range-accent) !important;
  min-width: 4px !important;
  z-index: 2 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  height: 34px !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-slider::-webkit-slider-runnable-track {
  height: 4px !important;
  border: 0 !important;
  background: transparent !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-slider::-moz-range-track {
  height: 4px !important;
  border: 0 !important;
  background: transparent !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  pointer-events: auto !important;
  margin-top: -8px !important;
  border-color: var(--range-accent) !important;
  box-shadow: 0 0 0 3px #ffffff, 0 4px 12px rgba(42, 115, 233, 0.28) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-slider::-moz-range-thumb {
  pointer-events: auto !important;
  transform: translateY(-1px) !important;
  border-color: var(--range-accent) !important;
  box-shadow: 0 0 0 3px #ffffff, 0 4px 12px rgba(42, 115, 233, 0.28) !important;
}

body.map-search-page #search-sheet.market-filters-sheet .range-bubble {
  max-width: min(112px, calc(100% - 8px)) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  z-index: 4 !important;
}

body.map-search-page #search-sheet.market-filters-sheet .mobile-fancy-inputs {
  width: 100% !important;
  margin-inline: auto !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-input-wrap {
  width: 88% !important;
  justify-self: center !important;
  padding-block: 6px !important;
}

body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-input-wrap input {
  height: 34px !important;
  min-height: 34px !important;
}

@media (max-width: 860px) {
  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section {
    min-height: 214px !important;
    padding: 18px 12px 16px !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-range-card {
    display: grid !important;
    grid-template-rows: auto 64px auto !important;
    row-gap: 8px !important;
    min-height: 178px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-head {
    align-items: center !important;
    margin: 0 !important;
    min-height: 18px !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-head strong {
    line-height: 1.2 !important;
    overflow: visible !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-track {
    align-self: end !important;
    margin: 0 10px 4px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-inputs {
    align-self: end !important;
    margin-top: 8px !important;
  }
}

@media (min-width: 861px) {
  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-input-wrap {
    padding-inline: 7px !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-input-wrap input {
    font-size: 0.7rem !important;
    letter-spacing: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-track::before,
  body.map-search-page #search-sheet.market-filters-sheet .range-track::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid var(--range-accent) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px #ffffff, 0 3px 9px rgba(42, 115, 233, 0.24) !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    z-index: 5 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-track::before {
    left: var(--range-min-pct, 0%) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-track::after {
    left: var(--range-max-pct, 100%) !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-slider::-webkit-slider-thumb {
    opacity: 0 !important;
  }

  body.map-search-page #search-sheet.market-filters-sheet .range-slider::-moz-range-thumb {
    opacity: 0 !important;
  }
}

/* ============================================================================
   POPUP DEL PUNTO DEL MAPA — pasada de diseño para que combine con el estilo
   plano/limpio de la plataforma: se quita el fondo ilustrado de colinas, el
   glass y los gradientes; contenedor y tarjetas blancos, KPI y chips sobrios,
   CTA en azul de plataforma. Va al final para ganar por orden de fuente.
   ============================================================================ */
#map-hover-panel.guest-sector-panel-active .hover-card{
  background:#fff!important;border:1px solid #e6ecf4!important;border-radius:20px!important;
  box-shadow:0 24px 60px -24px rgba(15,33,66,.30),0 2px 6px rgba(15,33,66,.05)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:14px!important;}
#map-hover-panel.guest-sector-panel-active .hover-card::before,
#map-hover-panel.guest-sector-panel-active .hover-card::after{content:none!important;display:none!important;background:none!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-shell::before{content:none!important;display:none!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-summary-glow{display:none!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-summary-card,
#map-hover-panel.guest-sector-panel-active .guest-featured-card{
  background:#fff!important;border:1px solid #e8edf4!important;border-radius:16px!important;box-shadow:none!important;padding:16px!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-grid{gap:10px!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card{
  background:#f6f8fc!important;border:1px solid #eef2f8!important;border-radius:12px!important;
  padding:11px 12px!important;gap:6px!important;min-height:0!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-icon{
  background:transparent!important;color:#5b6b85!important;font-size:1.1rem!important;
  width:auto!important;height:auto!important;padding:0!important;box-shadow:none!important;justify-self:start!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card small{
  font-size:.64rem!important;letter-spacing:.05em!important;color:#8794a7!important;font-weight:700!important;text-transform:uppercase!important;}
#map-hover-panel.guest-sector-panel-active .guest-sector-kpi-card strong{
  font-size:1.15rem!important;color:#0f2140!important;font-weight:800!important;line-height:1.05!important;}
#map-hover-panel.guest-sector-panel-active .guest-featured-facts{gap:8px!important;}
#map-hover-panel.guest-sector-panel-active .guest-featured-fact{
  background:#f6f8fc!important;border:1px solid #eef2f8!important;border-radius:9px!important;
  padding:5px 10px!important;color:#33425c!important;font-weight:700!important;font-size:.82rem!important;gap:5px!important;}
#map-hover-panel.guest-sector-panel-active .guest-featured-fact .material-symbols-outlined{font-size:1rem!important;color:#5b6b85!important;}
#map-hover-panel.guest-sector-panel-active .guest-featured-cta{
  background:#0f6bff!important;border:0!important;border-radius:11px!important;color:#fff!important;font-weight:700!important;box-shadow:0 6px 16px -6px rgba(15,107,255,.5)!important;}
#map-hover-panel.guest-sector-panel-active .guest-featured-price{color:#0f2140!important;}
#map-hover-panel.guest-sector-panel-active .guest-featured-favorite,
#map-hover-panel.guest-sector-panel-active .guest-panel-close-btn{
  background:#f2f5fa!important;border:1px solid #e6ecf4!important;color:#5b6b85!important;}

/* Final mobile map search range lock: keep title, bubbles, slider and fields separated. */
@media (max-width: 860px) {
  html body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main > .filter-range-section[aria-label="Rango de precio"],
  html body.map-search-page #search-sheet.market-filters-sheet .market-sheet-main > .filter-range-section[aria-label="Superficie"] {
    display: block !important;
    min-height: 251px !important;
    height: auto !important;
    padding: 22px 12px 33px !important;
    overflow: visible !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-range-card {
    display: grid !important;
    grid-template-rows: auto 82px auto !important;
    row-gap: 8px !important;
    min-height: 194px !important;
    height: auto !important;
    overflow: visible !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-head {
    position: relative !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding-left: 10px !important;
    overflow: visible !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-head strong {
    display: block !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-track {
    align-self: end !important;
    height: 34px !important;
    margin: 0 10px 8px !important;
    overflow: visible !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .range-bubble {
    bottom: calc(100% + 8px) !important;
    z-index: 5 !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-inputs {
    align-self: end !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    width: calc(100% - 20px) !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-input-wrap {
    position: relative !important;
    z-index: 7 !important;
    min-height: 0 !important;
    background: #ffffff !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    gap: 3px !important;
  }

  html body.map-search-page #search-sheet.market-filters-sheet .filter-range-section .mobile-fancy-input-wrap input {
    height: 26px !important;
    min-height: 26px !important;
    line-height: 1.1 !important;
  }
}
