:root {
  --navy: #1a3a5c;
  --navy-deep: #0f2744;
  --navy-mid: #2a5080;
  --navy-light: #4a6fa5;
  --ivory-creme: #fffff0;
  --ivory-creme-soft: #fffff8;
  --duotone-mix: linear-gradient(
    145deg,
    rgba(255, 255, 240, 0.88) 0%,
    rgba(255, 255, 240, 0.55) 42%,
    rgba(26, 58, 92, 0.14) 100%
  );
  --ink: var(--navy-deep);
  --muted: rgba(15, 39, 68, 0.58);
  --ivory: var(--ivory-creme);
  --ivory-soft: var(--ivory-creme-soft);
  --ivory-deep: rgba(255, 255, 240, 0.78);
  --ivory-accent: var(--navy-mid);
  --ivory-dark: var(--navy);
  --glass-grey: rgba(255, 255, 240, 0.62);
  --glass-grey-hover: rgba(255, 255, 240, 0.78);
  --glass-grey-nav: rgba(255, 255, 240, 0.55);
  --glass-grey-border: rgba(26, 58, 92, 0.38);
  --glass-blur: blur(10px) saturate(140%);
  --glass-blur-dim: blur(8px) saturate(130%);
  --glass-blur-heavy: blur(8px) saturate(135%);
  --glass-blur-listing: blur(5px) saturate(120%);
  --glass-sheet: rgba(255, 255, 240, 0.06);
  --glass-sheet-dark: rgba(15, 39, 68, 0.08);
  --glass-sheet-listing: rgba(255, 255, 240, 0.04);
  --glass-solid: rgba(255, 255, 240, 0.12);
  --glass-solid-dark: rgba(15, 39, 68, 0.06);
  --glass-border: rgba(26, 58, 92, 0.42);
  --glass-border-soft: rgba(26, 58, 92, 0.28);
  --glass-line: rgba(26, 58, 92, 0.18);
  --line: rgba(26, 58, 92, 0.14);
  --warm: var(--navy-mid);
  --map-wash: #e8eef5;
  --shadow: 0 8px 24px rgba(15, 39, 68, 0.1);
  --nav-h: 4.1rem;
  --shell-bottom-accent-h: max(5px, 0.35rem);
  --nav-lift: calc(var(--nav-h) + var(--shell-bottom-accent-h) + env(safe-area-inset-bottom) + 0.65rem);
  --ivory-bar: var(--ivory-creme);
  --ivory-ring: rgba(255, 255, 240, 0.94);
  --ivory-glass: rgba(255, 255, 240, 0.52);
  --ivory-glass-strong: rgba(255, 255, 240, 0.68);
  --ivory-glass-slot: rgba(255, 255, 240, 0.38);
  --ivory-glass-slot-hover: rgba(255, 255, 240, 0.52);
  --ivory-glass-edge: rgba(26, 58, 92, 0.4);
  --ivory-glass-edge-soft: rgba(26, 58, 92, 0.26);
  --outline-soft: rgba(26, 58, 92, 0.14);
  --outline-strong: rgba(15, 39, 68, 0.52);
  --ivory-glass-blur: blur(5px) saturate(120%);
  --ivory-glass-blur-slot: blur(3px) saturate(115%);
  --nav-glass-blur: blur(5.06px) saturate(120%);
  --sheet-glass-blur: blur(6.61px) saturate(115%);
  --sheet-radius: 32px;
  --top-safe: max(0.75rem, env(safe-area-inset-top));
  --font: "Outfit", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --app-max-w: 720px;
  --listing-green: rgba(214, 236, 214, 0.94);
  --listing-green-border: rgba(108, 142, 108, 0.52);
  --text-base: 14px;
}

html {
  font-size: var(--text-base);
}

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

html,
body {
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--ink);
  background: #2c2c30;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - var(--app-max-w) / 2));
  width: min(100vw, var(--app-max-w));
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.45);
}

@media (min-width: 520px) {
  .app {
    top: 0.75rem;
    bottom: 0.75rem;
    border-radius: 22px;
  }
}

.map-stage {
  position: absolute;
  inset: 0;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.leaflet-container {
  font: inherit;
  background: var(--map-wash);
  width: 100% !important;
  height: 100% !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--muted) !important;
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
  padding: 0.15rem 0.35rem !important;
  border-radius: 4px;
  margin: 0 !important;
}

.leaflet-control-attribution a {
  color: var(--warm) !important;
}

/* OSM credit — tucked at bottom-left behind the nav bar */
.leaflet-bottom.leaflet-left {
  bottom: calc(env(safe-area-inset-bottom) + 0.2rem);
  left: 0.45rem;
  z-index: 2;
}

/* Zoom removed from Leaflet default — custom controls on map edges */

.map-filter-anchor {
  position: absolute;
  left: 0.85rem;
  bottom: calc(var(--nav-lift) + 0.15rem);
  z-index: 4500;
  pointer-events: none;
}

.map-map-controls {
  position: absolute;
  right: 0.85rem;
  bottom: calc(var(--nav-lift) + 0.15rem);
  z-index: 4500;
  pointer-events: none;
}

.map-controls-column {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.map-zoom-stack {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.14);
  background: var(--duotone-mix), rgba(255, 255, 240, 0.55);
}

.map-zoom-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-bottom: 1px solid rgba(26, 58, 92, 0.2);
  background: transparent;
  color: var(--navy-deep);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-zoom-btn:last-child {
  border-bottom: 0;
}

.map-zoom-btn:hover,
.map-zoom-btn:focus-visible {
  background: rgba(255, 255, 240, 0.72);
  outline: none;
}

.map-filter-btn {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--duotone-mix), rgba(255, 255, 240, 0.42);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.map-filter-btn:hover,
.map-filter-btn:focus-visible {
  background: rgba(255, 255, 240, 0.72);
  outline: 2px solid rgba(26, 58, 92, 0.28);
  outline-offset: 2px;
}

.map-filter-btn.active {
  border-color: var(--navy-deep);
  background: rgba(255, 255, 240, 0.82);
  box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.18);
}

.map-filter-btn.hidden {
  display: none;
}

.leaflet-control-zoom {
  border: 1.5px solid rgba(26, 58, 92, 0.38) !important;
  box-shadow: 0 4px 16px rgba(61, 56, 48, 0.18) !important;
  overflow: hidden;
  border-radius: 12px !important;
}

.leaflet-control-zoom a {
  background: var(--ivory-bar) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--ink) !important;
  border-bottom: 1px solid rgba(26, 58, 92, 0.22) !important;
  width: 2.15rem !important;
  height: 2.15rem !important;
  line-height: 2.15rem !important;
  font-size: 1.1rem !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0 !important;
}

.leaflet-control-zoom a:hover {
  background: var(--ivory-ring) !important;
  color: var(--ink) !important;
}

.map-topbar {
  position: absolute;
  top: var(--top-safe);
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  z-index: 5000;
  pointer-events: none;
}

/* NO backdrop-filter — Safari + Leaflet renders it as a solid frosted panel */
.logo-unit {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.78rem;
  background: var(--duotone-mix), rgba(255, 255, 240, 0.58) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  color: var(--navy-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.logo-unit {
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.logo-unit.icon-only {
  padding: 0.42rem;
  color: var(--muted);
  cursor: pointer;
}

.logo-unit.icon-only:hover,
.logo-unit.icon-only:focus-visible {
  background: var(--glass-grey-hover) !important;
  outline: 2px solid rgba(160, 160, 168, 0.45);
  outline-offset: 2px;
}

.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--ivory-creme) 0%, var(--navy-mid) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 240, 0.45);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 30% 34% 30%;
  border: 2px solid var(--ivory-creme);
  border-radius: 4px 4px 2px 2px;
  border-bottom-width: 3px;
}

.brand-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--navy-deep);
  text-shadow: none;
}

.logo-unit:hover,
.logo-unit:focus-visible {
  background: var(--glass-grey-hover) !important;
}

.bottom-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  pointer-events: none;
}

.bottom-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0.25rem;
  min-height: var(--nav-h);
  padding: 0.55rem 0.5rem calc(0.55rem + var(--shell-bottom-accent-h));
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom) + var(--shell-bottom-accent-h));
  background: transparent !important;
  backdrop-filter: var(--nav-glass-blur);
  -webkit-backdrop-filter: var(--nav-glass-blur);
  border-top: 2px solid var(--navy);
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  color: var(--navy-deep);
  pointer-events: none;
}

.nav-mode-slot,
.nav-item,
.nav-filter-btn {
  pointer-events: auto;
}

.bottom-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--shell-bottom-accent-h) + env(safe-area-inset-bottom));
  background: transparent;
  pointer-events: none;
}

.nav-mode-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-item--solo {
  width: 100%;
}

.nav-item {
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
  background: transparent !important;
  color: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.3rem 0.2rem;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  text-shadow: none;
}

.nav-item span {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--navy-deep);
  fill: currentColor;
  stroke: currentColor;
}

.nav-item.active span {
  font-weight: 600;
  color: var(--navy-deep);
}

.nav-item.active {
  color: var(--navy-deep);
  border-color: var(--navy);
  background: transparent !important;
  padding: 0.32rem 0.82rem;
  min-width: 4.35rem;
}

.nav-item.active svg {
  color: var(--navy-deep);
}

.nav-item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + var(--shell-bottom-accent-h) + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.28);
  z-index: 4000;
  pointer-events: auto;
}

.sheet-backdrop.hidden {
  display: none;
  pointer-events: none;
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(87vh, 782px);
  background: transparent;
  border: none;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: none;
  z-index: 5500;
  display: none;
  pointer-events: auto;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  animation: sheet-up 0.22s ease;
  color: var(--navy-deep);
  overflow: hidden;
}

.bottom-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(255, 255, 240, 0.04);
  backdrop-filter: var(--sheet-glass-blur);
  -webkit-backdrop-filter: var(--sheet-glass-blur);
  border: 2px solid var(--navy);
  border-bottom: 0;
  box-shadow: 0 -8px 28px rgba(15, 39, 68, 0.12);
}

.bottom-sheet > * {
  position: relative;
  z-index: 1;
}

.bottom-sheet.is-open {
  display: flex !important;
}

.glass-sheet {
  background: transparent;
}

.sheet-backdrop.map-visible {
  background: transparent;
  pointer-events: none;
}

.filter-sheet,
.settings-sheet {
  z-index: 5500;
}

.search-sheet {
  max-height: min(67vh, 598px);
  z-index: 5500;
}

.listing-sheet {
  max-height: min(57.5vh, 552px);
  height: min(57.5vh, 552px);
  z-index: 5500;
  font-size: var(--text-base);
  background: transparent !important;
  border: none !important;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: none !important;
  padding-bottom: 0;
  transition: transform 0.2s ease;
  color: var(--navy-deep);
  pointer-events: auto;
  overflow: hidden;
}

.listing-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(255, 255, 240, 0.04);
  backdrop-filter: var(--sheet-glass-blur);
  -webkit-backdrop-filter: var(--sheet-glass-blur);
  border: 2px solid var(--navy);
  border-bottom: 0;
  box-shadow: 0 -8px 28px rgba(15, 39, 68, 0.1);
}

.listing-sheet > * {
  position: relative;
  z-index: 1;
}

.listing-sheet .sheet-pull-handle::after {
  background: rgba(255, 255, 240, 0.85);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.listing-sheet .sheet-header h2 {
  font-size: var(--text-base);
  color: var(--ink);
}

.listing-sheet .listing-address,
.listing-sheet .listing-specs,
.listing-sheet .listing-listed,
.listing-sheet .listing-usp-text,
.listing-sheet .amenity-drop-head,
.listing-sheet .amenity-drop-body,
.listing-sheet .score-row {
  color: var(--ink) !important;
}

.listing-sheet .meta-section-label,
.listing-sheet .meta-col-label,
.listing-sheet .listing-listed,
.listing-sheet .amenity-drop-body,
.listing-sheet .listing-usp-label {
  color: var(--muted) !important;
}

.listing-sheet .neighborhood-score-table .score-val {
  color: var(--ink) !important;
}

.listing-sheet-body,
.sheet-body {
  background: transparent;
}

.listing-sheet-body {
  flex: 1;
  min-height: 0;
  padding-top: 0;
  overflow-y: auto;
  padding-bottom: 0.75rem;
  pointer-events: auto;
}

.listing-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.listing-usp-block {
  margin-bottom: 1.05rem;
}

.listing-usp-line {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-usp-label {
  display: inline;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.4rem;
}

.listing-usp-text {
  display: inline;
  margin: 0;
  font-size: var(--text-base);
  line-height: inherit;
  color: var(--ink);
}

.listing-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.listing-sheet .listing-meta-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.listing-meta-left {
  display: grid;
  gap: 0.35rem;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(61, 56, 48, 0.16);
}

.listing-details-acc {
  display: grid;
  gap: 0;
}

.detail-acc {
  border-bottom: 1px solid rgba(61, 56, 48, 0.12);
}

.detail-acc:last-child {
  border-bottom: 0;
}

.detail-acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-acc-head:hover,
.detail-acc-head[aria-expanded="true"] {
  color: var(--ivory-dark);
}

.detail-acc-label {
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
}

.detail-acc-preview {
  font-size: calc(var(--text-base) * 0.92);
  color: var(--muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-acc-chevron {
  font-size: 0.72rem;
  opacity: 0.65;
  transition: transform 0.15s ease;
}

.detail-acc-head[aria-expanded="true"] .detail-acc-chevron {
  transform: rotate(180deg);
}

.detail-acc-body {
  padding: 0 0 0.55rem;
}

.detail-acc-body.hidden {
  display: none;
}

.detail-acc-text {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--ink);
}

.detail-acc-area-split {
  display: grid;
  gap: 0.35rem;
}

.detail-acc-sub {
  display: inline-block;
  min-width: 3.6rem;
  margin-right: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-acc-subtle {
  color: var(--muted);
  font-size: 0.92em;
}

.detail-acc-amenities {
  padding-top: 0.15rem;
}

.detail-acc-amenities .amenity-drop:first-child {
  border-top: 0;
}

.listing-meta-right {
  display: grid;
  gap: 0.55rem;
  padding-left: 0.75rem;
}

.meta-section-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-col-label {
  display: block;
  margin-bottom: 0.3rem;
  margin-top: 0.25rem;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.listing-meta-panel {
  transition: opacity 0.15s ease;
  padding-bottom: 0.5rem;
}

.listing-meta-panel.is-updating {
  opacity: 0.72;
}

.neighborhood-score-table {
  display: grid;
  gap: 0.28rem;
}

.score-row--map {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.34rem 0.45rem;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.score-row--map:hover,
.score-row--map:focus-visible {
  background: rgba(255, 255, 240, 0.55);
  border-color: rgba(26, 58, 92, 0.28);
  outline: none;
}

.score-row--map.is-active {
  background: rgba(255, 255, 240, 0.72);
  border-color: var(--navy);
}

.score-row--map.is-loading,
.amenity-drop-head.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.score-row--map.is-active .score-val {
  color: rgba(48, 88, 48, 0.95);
}

.amenities-block {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.amenity-drop {
  border-bottom: 1px solid rgba(61, 56, 48, 0.12);
}

.amenity-drop:last-child {
  border-bottom: 0;
}

.amenity-drop-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
}

.amenity-drop-head:hover,
.amenity-drop-head[aria-expanded="true"] {
  color: var(--ivory-dark);
}

.amenity-drop-head.is-active,
.amenity-drop-head.is-active .amenity-drop-label {
  color: var(--ivory-dark);
  font-weight: 600;
}

.amenity-drop-label {
  flex: 1;
  text-align: left;
}

.amenity-drop-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.65;
  transition: transform 0.15s ease;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
}

.amenity-drop-chevron:hover {
  opacity: 1;
  background: rgba(61, 56, 48, 0.06);
}

.amenity-drop-head[aria-expanded="true"] .amenity-drop-chevron {
  transform: rotate(180deg);
}

.amenity-drop-body {
  padding: 0 0 0.45rem;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--muted);
}

.amenity-drop-body.hidden {
  display: none;
}

.listing-sheet .neighborhood-score-table .score-row {
  color: var(--ink);
  font-size: var(--text-base);
}

.listing-sheet .neighborhood-score-table .score-val {
  color: var(--ivory-dark);
  font-weight: 500;
}

.listing-selection-pin {
  background: transparent;
  border: none;
}

.listing-selection-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #faf6ee;
  border: 2.5px solid #f5ebe0;
  box-shadow:
    0 0 0 3px rgba(245, 235, 224, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.map-center-pin {
  position: absolute;
  left: 50%;
  top: calc(
    (
      100% - min(57.5vh, 552px) - var(--nav-h) - var(--shell-bottom-accent-h) -
        env(safe-area-inset-bottom)
    ) / 2
  );
  transform: translate(-50%, -50%);
  z-index: 450;
  pointer-events: none;
}

.map-center-pin.hidden {
  display: none;
}

.map-center-pin-dot {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #faf6ee;
  border: 3px solid #c45c26;
  box-shadow:
    0 0 0 4px rgba(196, 92, 38, 0.28),
    0 3px 12px rgba(0, 0, 0, 0.4);
}

.map-center-pin-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: #c45c26;
  border-radius: 1px;
}

.map-center-pin {
  width: 18px;
  height: 28px;
}

.listing-pin-marker {
  pointer-events: none;
}

.amenities-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.amenities-list li {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 0.65rem;
  position: relative;
}

.amenities-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ivory-bar);
}

.meta-empty {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.listing-sheet .score-blocks {
  margin-top: 0;
}

.listing-sheet .score-block {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.listing-sheet .score-block-head {
  color: rgba(255, 255, 255, 0.92);
}

.listing-sheet .score-val {
  color: var(--ivory-bar);
}

.listing-sheet .score-tag {
  border-color: rgba(245, 235, 224, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.listing-sheet .score-tag--on {
  background: rgba(245, 235, 224, 0.22);
  color: #fff;
  border-color: var(--ivory-bar);
}

.listing-nearby-strip {
  display: none;
}

.listing-rail-zone {
  margin-bottom: 0.35rem;
}

.listing-rail-expand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.15rem;
}

.listing-rail-expand.hidden {
  display: none;
}

.listing-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.listing-listed-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.05rem;
}

.listing-listed-by-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.listing-agent-name {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}

.listing-contact-btn {
  flex-shrink: 0;
  min-width: 7.5rem;
  margin: 0;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 0.62rem 1.55rem;
  background: var(--duotone-mix), rgba(255, 255, 240, 0.42);
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.55);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.listing-contact-btn:hover,
.listing-contact-btn:focus-visible {
  background: rgba(255, 255, 240, 0.78);
  outline: 2px solid rgba(26, 58, 92, 0.28);
  outline-offset: 2px;
}

.settings-version {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.settings-body .glass-select {
  border: 1px solid var(--outline-soft);
}

.glass-select {
  width: 100%;
  border: 1.5px solid rgba(26, 58, 92, 0.48);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  border-radius: 16px;
  padding: 0.72rem 0.85rem;
  outline: none;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.listing-gallery-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: rgba(0, 0, 0, 0.08);
}

.listing-gallery-photo img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.listing-gallery-empty {
  padding: 1.25rem;
  text-align: center;
  border-radius: 12px;
  background: var(--ivory-glass-slot);
  color: var(--muted);
  font-size: 0.85rem;
}

.listing-rail-edge {
  height: 0.45rem;
  touch-action: none;
}

.listing-image-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.15rem 0.1rem 0.25rem;
}

.listing-image-rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  flex: 0 0 6.75rem;
  width: 6.75rem;
  border: 2px solid rgba(61, 56, 48, 0.14);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  pointer-events: auto;
}

.rail-card--active {
  border-color: var(--ivory-dark);
  box-shadow: 0 0 0 2px rgba(154, 115, 64, 0.28);
}

.rail-card-price {
  margin: 0;
  padding: 0.35rem 0.4rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
}

.rail-card-photos {
  position: relative;
  height: 5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.rail-card-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.rail-card-track.is-dragging {
  cursor: grabbing;
}

.rail-card-track:active {
  cursor: grabbing;
}

.rail-card-track::-webkit-scrollbar {
  display: none;
}

.rail-card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.rail-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rail-card-slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.listing-meta-panel .listing-details {
  border-top: 0;
  padding-top: 0;
}

.listing-meta-panel .listing-address,
.listing-meta-panel .listing-specs {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.45;
}

.listing-meta-panel .listing-listed {
  color: var(--muted);
  font-size: var(--text-base);
}

.photo-lightbox {
  position: absolute;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.photo-lightbox.hidden {
  display: none;
}

.photo-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.photo-lightbox-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.score-blocks {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.score-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.score-block-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.score-block-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 0.5rem 0.45rem;
}

.score-block-tags.hidden {
  display: none;
}

.score-tag {
  border: 1px solid rgba(26, 58, 92, 0.35);
  background: var(--ivory-deep);
  color: var(--ivory-dark);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.score-tag--on {
  background: var(--ivory-dark);
  color: var(--ivory-soft);
  border-color: var(--ivory-dark);
}

.map-pill.tier1 {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.map-pill.country {
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.78rem;
}

.sheet-pull-handle {
  flex-shrink: 0;
  padding: 0.45rem 0 0.05rem;
  display: flex;
  justify-content: center;
}

.sheet-pull-handle::after {
  content: "";
  width: 2.4rem;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.35rem;
}

.sheet-header h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.sheet-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ivory-glass-edge-soft);
  border-radius: 999px;
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
}

.sheet-body {
  padding: 0.35rem 1rem 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-meta {
  margin: 0.55rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.search-geocode-hint {
  font-weight: 500;
  color: var(--muted);
}

.filter-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-hint {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(61, 56, 48, 0.62);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  background: rgba(232, 210, 176, 0.88);
  border-color: var(--ivory-dark);
  color: var(--ink);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 245, 0.85),
    0 0 0 1px rgba(26, 58, 92, 0.28);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.filter-action-btn {
  min-height: 2.65rem;
  padding: 0.55rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.62);
}

.filter-action-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.filter-action-btn--confirm {
  font-weight: 700;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.settings-block--half {
  margin-bottom: 0;
}

.range-track {
  background: rgba(61, 56, 48, 0.12);
}

.range-values {
  color: var(--ivory-dark);
}

.search-field input {
  width: 100%;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  border-radius: 16px;
  padding: 0.72rem 2.6rem 0.72rem 1rem;
  outline: none;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.search-field input::placeholder {
  color: rgba(61, 56, 48, 0.45);
}

.btn.primary {
  background: var(--ivory-bar);
  border-color: var(--ivory-bar);
  color: #1a1a1a;
  font-weight: 700;
}

.rental-item {
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rental-item .item-meta {
  color: var(--muted);
}

.rental-item .item-title {
  color: var(--ink);
}

.rental-item .item-price {
  color: var(--ivory-dark);
}

.rental-item:hover,
.rental-item.active {
  background: var(--ivory-glass-slot-hover);
  border-color: rgba(26, 58, 92, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 0 0 1px rgba(26, 58, 92, 0.2);
}

.listing-price {
  color: var(--ivory-bar) !important;
}

.listing-address,
.listing-specs,
.listing-note,
.nearby-rail-label,
.nearby-meta {
  color: rgba(255, 255, 255, 0.68) !important;
}

.listing-details {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.nearby-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.nearby-price {
  color: var(--ivory-bar) !important;
}

.profile-name {
  color: var(--ink);
}

.profile-email,
.profile-links li {
  color: var(--muted);
}

.profile-links {
  border-top-color: rgba(61, 56, 48, 0.12);
}

.profile-links li {
  border-bottom-color: rgba(61, 56, 48, 0.1);
}

.bottom-sheet.hidden {
  display: none !important;
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field input,
.glass-select,
.btn {
  font: inherit;
}

.search-field input:focus,
.glass-select:focus,
.chip:focus-within,
.btn:focus-visible,
.rental-item:focus-visible,
.nearby-card:focus-visible {
  outline: 2px solid var(--ivory-bar);
  outline-offset: 2px;
}

.search-locate {
  position: absolute;
  right: 0.35rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--ivory-glass-edge-soft);
  border-radius: 999px;
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-block {
  margin-bottom: 1rem;
}

.filter-block.hidden,
.rent-filter-block.hidden {
  display: none;
}

.rent-filter-block {
  display: grid;
  gap: 0.75rem;
}

.filter-sub-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.filter-date-input {
  margin-top: 0.35rem;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.beds-fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.beds-fieldset legend {
  padding: 0;
}

.range-slider {
  position: relative;
  height: 2rem;
  margin: 0.35rem 0 0.15rem;
}

.range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.18);
}

.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ivory-dark), var(--ivory-accent));
}

.range-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 0;
}

.range-thumb::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--ivory-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.range-thumb::-moz-range-thumb {
  pointer-events: auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--ivory-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.range-max {
  z-index: 2;
}

.range-values {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.listed-after-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.listed-after-date {
  flex: 0 0 48%;
  max-width: 48%;
  margin-top: 0;
  min-width: 0;
}

.listed-after-presets {
  flex: 1 1 auto;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.listed-after-presets .listed-after-preset {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 0.45rem 0.35rem;
  cursor: pointer;
  border: 1px solid var(--glass-border-soft);
  background: var(--ivory-glass-slot);
  color: var(--navy-deep);
}

.listed-after-presets .listed-after-preset.is-active {
  border-color: var(--navy);
  background: rgba(26, 58, 92, 0.12);
  color: var(--navy-deep);
  font-weight: 700;
}

.settings-locale-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 2px solid var(--navy);
  border-radius: 16px;
  background: var(--ivory-glass-slot);
}

.settings-locale-box .settings-block--half {
  margin-bottom: 0;
}

.settings-locale-box .glass-select {
  border-color: rgba(26, 58, 92, 0.28);
}

.listing-sheet-body {
  padding-top: 0;
}

.listing-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  min-height: 9.5rem;
}

.listing-gallery {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  min-height: 9.5rem;
}

.listing-gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.listing-hero {
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.listing-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.listing-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.listing-dots span.active {
  background: var(--ivory-bar);
}

.nearby-rail-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nearby-rail-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nearby-rail {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.nearby-rail::-webkit-scrollbar {
  display: none;
}

.nearby-card {
  flex: 0 0 5.5rem;
  border: 1px solid var(--glass-border-soft);
  background: var(--glass-solid);
  backdrop-filter: var(--glass-blur-dim);
  -webkit-backdrop-filter: var(--glass-blur-dim);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.nearby-card img,
.nearby-placeholder {
  width: 100%;
  height: 4rem;
  object-fit: cover;
  display: block;
}

.nearby-placeholder {
  background: linear-gradient(135deg, var(--ivory-deep), #ddd);
}

.nearby-price,
.nearby-meta {
  display: block;
  padding: 0.25rem 0.4rem 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.nearby-price {
  font-weight: 700;
  color: var(--warm);
}

.nearby-meta {
  color: var(--muted);
  padding-bottom: 0.35rem;
}

.nearby-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.listing-details {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.listing-price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--warm);
}

.listing-address,
.listing-specs,
.listing-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.rental-item {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.item-thumb {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-copy {
  flex: 1;
  min-width: 0;
}

.map-pill.city {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.map-pill.area {
  background: rgba(255, 255, 240, 0.92) !important;
  padding: 0.28rem 0.5rem;
  max-width: 9rem;
}

.map-pill.area .pill-line {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--navy-deep) !important;
}

.btn {
  border: 1px solid var(--line);
  background: var(--ivory-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn.primary {
  background: var(--ivory-dark);
  border-color: var(--ivory-dark);
  color: var(--ivory-soft);
}

.btn.full {
  width: 100%;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.search-section-label {
  margin: 0.15rem 0 0;
  padding: 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-recent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  border-radius: 14px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.search-recent:hover,
.search-recent:focus-visible {
  background: var(--ivory-glass-slot-hover);
  outline: 2px solid rgba(26, 58, 92, 0.28);
  outline-offset: 2px;
}

.search-recent-icon {
  opacity: 0.55;
  font-size: 0.9rem;
}

.search-recent-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.search-sheet .sheet-body {
  overflow-y: auto;
}

.search-place {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  border-radius: 16px;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.search-place:hover,
.search-place:focus-visible {
  background: var(--ivory-glass-slot-hover);
  outline: 2px solid rgba(26, 58, 92, 0.28);
  outline-offset: 2px;
}

.search-place-icon {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.72;
  color: var(--muted);
}

.search-place-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.search-place-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.search-place-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.rental-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--ivory-glass-edge-soft);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rental-item:hover,
.rental-item.active {
  background: var(--ivory-glass-slot-hover);
  border-color: rgba(26, 58, 92, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 0 0 1px rgba(26, 58, 92, 0.2);
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.item-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.item-price {
  margin: 0;
  font-weight: 700;
  color: var(--warm);
  white-space: nowrap;
  font-size: 0.88rem;
}

.item-meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ivory-dark);
  background: var(--ivory-deep);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.tag.new {
  background: #ebe3cf;
}

.profile-body {
  text-align: center;
}

.profile-avatar {
  width: 4rem;
  height: 4rem;
  margin: 0.25rem auto 0.75rem;
  border-radius: 999px;
  background: var(--ivory-glass-slot);
  border: 1px solid var(--ivory-glass-edge-soft);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--ivory-dark);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.profile-email {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.profile-links li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}

.settings-body {
  display: grid;
  gap: 0.15rem;
}

.settings-block {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--outline-soft);
  border-radius: 16px;
  background: var(--ivory-glass-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.settings-font-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.settings-range {
  flex: 1;
  accent-color: var(--ivory-bar);
}

.settings-font-val {
  min-width: 2.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ivory-bar);
  text-align: right;
}

.settings-links {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.75rem;
}

.settings-about-btn {
  width: 100%;
  border: 2px solid var(--outline-strong);
  border-radius: 16px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.settings-legal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.settings-legal-btn {
  border: 1px solid var(--outline-soft);
  border-radius: 16px;
  padding: 0.75rem 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--ivory-glass-slot);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.settings-about-btn:hover,
.settings-about-btn:focus-visible {
  background: var(--ivory-glass-slot-hover);
  outline: 2px solid var(--outline-strong);
  outline-offset: 2px;
}

.settings-legal-btn:hover,
.settings-legal-btn:focus-visible {
  background: var(--ivory-glass-slot-hover);
  outline: 2px solid var(--outline-soft);
  outline-offset: 2px;
}

.map-pill.poi-highlight {
  background: rgba(180, 228, 180, 0.96) !important;
  border: 1.5px solid rgba(72, 128, 72, 0.62) !important;
  color: rgba(28, 58, 28, 0.95) !important;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.24rem 0.38rem;
  max-width: 7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 10px rgba(72, 128, 72, 0.22);
}

.map-pill.poi-highlight.fallback {
  border-style: dashed !important;
  opacity: 0.88;
}

.map-marker {
  background: transparent !important;
  border: 0 !important;
}

.map-pill.listing {
  cursor: pointer;
  pointer-events: auto;
  background: var(--listing-green) !important;
  border-color: var(--listing-green-border) !important;
  color: var(--ink) !important;
  box-shadow: 0 4px 14px rgba(61, 90, 61, 0.18);
}

.map-pill.listing.active,
.map-pill.listing:hover {
  background: rgba(180, 210, 180, 0.98) !important;
  border-color: rgba(90, 122, 90, 0.65) !important;
  color: var(--ink) !important;
}

.map-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  background: var(--duotone-mix), rgba(255, 255, 240, 0.55) !important;
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.72rem;
  border: 2px solid var(--navy);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.1);
  white-space: nowrap;
  text-align: center;
  max-width: 9rem;
  line-height: 1.2;
}

.map-pill.zone,
.map-pill.area,
.map-pill.city,
.map-pill.tier1,
.map-pill.country {
  border: 2px solid var(--navy);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.1);
}

.map-pill.zone-dense {
  padding: 0.24rem 0.42rem;
  font-size: 0.54rem;
  border-radius: 8px;
  max-width: 8rem;
  gap: 0;
  background: rgba(255, 255, 240, 0.92) !important;
  border: 2.5px solid var(--navy-deep) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 240, 0.85), 0 2px 10px rgba(15, 39, 68, 0.14);
}

.map-pill.zone-dense .pill-line {
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-deep) !important;
  white-space: nowrap;
}

.map-pill.active.zone-dense .pill-line,
.map-pill:hover.zone-dense .pill-line {
  color: var(--navy-deep) !important;
}

.map-pill .pill-meta {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--navy);
}

.map-pill.zone {
  background: rgba(255, 255, 240, 0.72) !important;
}

.map-pill.active.zone-dense .pill-meta,
.map-pill:hover.zone-dense .pill-meta {
  color: var(--navy);
}

.map-pill .pill-zone {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy);
}

.map-pill .pill-avg,
.map-pill .pill-line--city {
  color: var(--navy-deep);
  font-weight: 800;
}

.map-pill.city {
  max-width: 10rem;
}

.map-pill .pill-line--city {
  font-size: 0.58rem;
  line-height: 1.15;
  white-space: nowrap;
}

.map-pill.active,
.map-pill:hover {
  background: rgba(255, 255, 240, 0.9) !important;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}

.map-pill.active .pill-zone,
.map-pill:hover .pill-zone {
  color: var(--navy-deep);
}

.leaflet-tooltip.score-tooltip {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  padding: 0;
  color: var(--ink);
}

.leaflet-tooltip.score-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.tip {
  padding: 0.55rem 0.65rem;
  min-width: 11rem;
}

.tip strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.tip-meta {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.score-grid {
  display: grid;
  gap: 0.2rem;
}

.score-grid.compact {
  margin-top: 0.35rem;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.score-val {
  font-weight: 500;
  color: var(--ivory-dark);
}

.detail-card {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: var(--nav-lift);
  max-width: 400px;
  padding: 0.85rem 0.95rem 0.95rem;
  border-radius: 16px;
  z-index: 500;
  background: var(--glass-sheet);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-soft);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.detail-card.hidden {
  display: none;
}

.detail-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--glass-solid);
  backdrop-filter: var(--glass-blur-dim);
  -webkit-backdrop-filter: var(--glass-blur-dim);
  cursor: pointer;
  font-size: 0.8rem;
}

.detail-card h2 {
  margin: 0;
  padding-right: 2rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.detail-card .price {
  margin: 0.2rem 0 0;
  color: var(--warm);
  font-weight: 700;
  font-size: 1rem;
}

.detail-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty {
  padding: 1rem;
  border-radius: 16px;
  background: var(--ivory-glass-slot);
  border: 1px solid var(--ivory-glass-edge-soft);
  backdrop-filter: var(--ivory-glass-blur-slot);
  -webkit-backdrop-filter: var(--ivory-glass-blur-slot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .bottom-sheet {
    left: 50%;
    right: auto;
    width: min(420px, 92vw);
    transform: translateX(-50%);
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  }

  .detail-card {
    left: 1rem;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1rem;
  }

  .nav-item span {
    font-size: 0.875rem;
  }

  .map-topbar {
    left: 0.65rem;
    right: 0.65rem;
  }

  .listing-image-rail {
    gap: 0.45rem;
  }
}
