:root {
  --map-shell-gap: 12px;
  --map-panel: #ffffff;
  --map-line: #dce8e3;
  --map-soft: #f6faf8;
  --map-ink: #102a38;
  --map-muted: #607575;
  --map-primary: #063047;
  --map-green: #006b57;
}

body.map-page {
  min-height: 100vh;
  background: #f6f1e8;
  color: var(--map-ink);
}

.map-topbar {
  background: #fff;
}

.map-topbar .w {
  min-height: 64px;
}

.map-header-title {
  margin-left: auto;
  color: #063047;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.map-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 10px auto 24px;
  display: grid;
  gap: var(--map-shell-gap);
}

.map-titlebar,
.map-toolbar,
.map-list-panel,
.map-canvas-panel {
  background: var(--map-panel);
  border: 1px solid var(--map-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(6, 48, 71, .04);
}

.map-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.map-titlebar .eyebrow {
  margin: 0 0 4px;
  color: #006b57;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-titlebar h1 {
  margin: 0;
  color: #063047;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 850;
}

.map-titlebar p {
  margin: 6px 0 0;
  color: var(--map-muted);
  font-size: 14px;
}

.map-toolbar {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.6fr);
  align-items: start;
  overflow: visible;
}

.map-search[hidden] {
  display: none !important;
}

body.map-scope-mine .map-toolbar {
  grid-template-columns: minmax(0, 1fr);
}

body.map-scope-mine .map-filterbar {
  padding-left: 8px;
}

.map-search {
  position: relative;
  min-width: 0;
  padding: 8px;
}

.map-catalog-notice {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #ead8a8;
  border-radius: 9px;
  background: #fff9e8;
  color: #684f16;
  font-size: 11px;
  line-height: 1.3;
}

.map-catalog-notice[hidden] {
  display: none !important;
}

.map-catalog-retry {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #d6bd78;
  border-radius: 7px;
  background: #fff;
  color: #684f16;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.map-catalog-retry:focus-visible {
  outline: 2px solid #8b722f;
  outline-offset: 2px;
}

.map-catalog-retry:disabled {
  cursor: wait;
  opacity: .65;
}

.map-search-label,
.map-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-search-field {
  position: relative;
  min-width: 0;
}

.map-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid #607575;
  border-radius: 999px;
  transform: translateY(-58%);
  pointer-events: none;
}

.map-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #607575;
  transform: rotate(45deg);
  transform-origin: left center;
}

.map-search-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--map-line);
  border-radius: 10px;
  outline: 0;
  background: var(--map-soft);
  color: #063047;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  text-overflow: ellipsis;
}

.map-search-input::placeholder {
  color: #718383;
  opacity: 1;
}

.map-search-input:focus {
  border-color: #78b9a9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 107, 87, .12);
}

.map-search-clear {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526b6b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.map-search-clear:hover,
.map-search-clear:focus-visible {
  background: #e8f2ee;
  color: #063047;
  outline: 0;
}

.map-search-clear[hidden],
.map-search-listbox[hidden] {
  display: none !important;
}

.map-search-listbox {
  position: absolute;
  top: calc(100% - 2px);
  left: 8px;
  right: 8px;
  z-index: 30;
  max-height: min(360px, calc(100dvh - 154px));
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--map-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(6, 48, 71, .18);
}

.map-search-group,
.map-search-section {
  display: grid;
  gap: 3px;
}

.map-search-group + .map-search-group,
.map-search-section + .map-search-section {
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px solid #edf3ef;
}

.map-search-group-title,
.map-search-group-label,
.map-search-section-title,
.map-search-group > h3,
.map-search-section > h3 {
  margin: 0;
  padding: 3px 8px;
  color: #607575;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.map-search-option,
.map-search-listbox [role="option"] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #102a38;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.map-search-option:hover,
.map-search-option:focus-visible,
.map-search-option.is-active,
.map-search-option[aria-selected="true"],
.map-search-listbox [role="option"]:hover,
.map-search-listbox [role="option"]:focus-visible,
.map-search-listbox [role="option"].is-active,
.map-search-listbox [role="option"][aria-selected="true"] {
  border-color: #cce1d8;
  outline: 0;
  background: #f2f9f6;
}

.map-search-option-copy,
.map-search-option-main,
.map-search-option-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.map-search-option strong,
.map-search-listbox [role="option"] strong {
  overflow: hidden;
  color: #063047;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-option small,
.map-search-listbox [role="option"] small {
  overflow: hidden;
  color: var(--map-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-option-kind,
.map-search-option-type,
.map-search-kind {
  flex: 0 0 auto;
  max-width: 34%;
  padding: 3px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef6f2;
  color: #246453;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-empty {
  margin: 0;
  padding: 12px 10px;
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.map-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 8px 8px 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.map-radius-help {
  flex: 1 0 100%;
  margin: 0;
  padding: 2px 8px 0;
  color: #7a4b20;
  font-size: 12px;
  font-weight: 750;
}

.map-chip {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--map-line);
  border-radius: 999px;
  background: var(--map-soft);
  color: #063047;
  font-size: 12px;
  font-weight: 750;
}

.map-chip span {
  color: var(--map-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-chip select {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #063047;
  font: inherit;
  outline: 0;
  text-overflow: ellipsis;
}

.map-chip-button {
  cursor: pointer;
}

.map-chip-button.is-active {
  background: #e7f7f1;
  border-color: #9fd4c5;
  color: #005f4e;
}

.map-layout {
  min-height: min(680px, calc(100vh - 178px));
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--map-shell-gap);
}

@media (min-width: 769px) {
  body.map-page {
    height: 100dvh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .map-shell {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    margin: 0 auto;
    padding-block: 8px;
    gap: 8px;
    overflow: hidden;
  }

  .map-titlebar {
    min-height: 0;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .map-titlebar .eyebrow,
  .map-titlebar p {
    display: none;
  }

  .map-titlebar h1 {
    font-size: 18px;
    line-height: 1.15;
  }

  .map-title-action {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .map-filterbar {
    padding: 8px;
  }

  .map-layout {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .map-list-panel,
  .map-canvas-panel,
  .map-canvas {
    height: 100%;
    min-height: 0;
  }

  .map-list {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.map-page .map-footer {
    display: block;
    margin: 0;
    padding: 6px 0;
    border-top: 1px solid var(--map-line);
    background: #fff;
  }

  body.map-page .map-footer .footer-inner {
    min-height: 0;
  }
}

.map-list-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--map-line);
}

.map-list-head strong {
  color: #063047;
  font-size: 14px;
}

.map-link-button {
  border: 0;
  background: transparent;
  color: #006b57;
  font-weight: 800;
  cursor: pointer;
}

.map-list {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 9px;
}

.map-list-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--map-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.map-list-card:hover,
.map-list-card.is-active {
  border-color: #9fd4c5;
  background: #f7fcfa;
}

.map-list-card strong {
  color: #063047;
  font-size: 14px;
}

.map-list-card p,
.map-detail-sheet p {
  margin: 0;
  color: var(--map-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.map-list-tags,
.map-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-mini-tag {
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef6f2;
  color: #246453;
  font-size: 11px;
  font-weight: 750;
}

.map-mini-tag.is-promo {
  background: #fff3e8;
  color: #aa4a2a;
}

.map-canvas-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.map-canvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.map-controls {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.map-north {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(6, 48, 71, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #063047;
  box-shadow: 0 2px 8px rgba(6, 48, 71, .14);
  cursor: pointer;
}

.map-attribution-control {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
}

.map-attribution-toggle {
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(6, 48, 71, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #44615e;
  box-shadow: 0 2px 8px rgba(6, 48, 71, .12);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.map-attribution-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 190px;
  padding: 7px 10px;
  border: 1px solid rgba(6, 48, 71, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #44615e;
  box-shadow: 0 2px 8px rgba(6, 48, 71, .12);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.map-attribution-control.is-open .map-attribution-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.map-north {
  color: #006b57;
  font-size: 14px;
  font-weight: 900;
}

.map-brand {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 5;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(6, 48, 71, .1);
  background: rgba(255,255,255,.9);
  color: #44615e;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(6, 48, 71, .09);
  white-space: nowrap;
}

.map-locate-floating {
  position: absolute;
  right: 14px;
  top: 62px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 48, 71, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #1A73E8;
  box-shadow: 0 4px 14px rgba(6, 48, 71, .16);
}

.map-locate-floating span {
  position: relative;
  width: 26px;
  height: 26px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, currentColor 0 3px, transparent 3.5px);
  font-size: 0;
}

.map-locate-floating span::before,
.map-locate-floating span::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.map-locate-floating span::before {
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 2px;
  transform: translateX(-50%);
}

.map-locate-floating span::after {
  top: 50%;
  left: -6px;
  right: -6px;
  height: 2px;
  transform: translateY(-50%);
}

.map-locate-floating:hover,
.map-locate-floating:focus-visible {
  background: #F7FAF8;
  border-color: rgba(0, 107, 87, .28);
}

.map-locate-floating[data-location-state="idle"] {
  border-color: rgba(26, 115, 232, .22);
  background: rgba(255,255,255,.96);
  color: #1A73E8;
}

.map-locate-floating[data-location-state="centered"],
.map-locate-floating[data-location-state="located"] {
  border-color: rgba(26, 115, 232, .34);
  background: #eaf2ff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .1), 0 4px 14px rgba(6, 48, 71, .16);
}

.map-locate-floating[data-location-state="displaced"],
.map-locate-floating[data-location-state="off-center"] {
  border-color: rgba(26, 115, 232, .28);
  background: rgba(255,255,255,.98);
}

.map-locate-floating[data-location-state="denied"],
.map-locate-floating[data-location-state="unavailable"],
.map-locate-floating[data-location-state="error"] {
  border-color: rgba(96, 117, 117, .22);
  background: rgba(255,255,255,.96);
  color: #607575;
}

.map-locate-floating.is-loading,
.map-locate-floating[data-location-state="requesting"],
.map-locate-floating[data-location-state="loading"],
.map-locate-floating[data-location-state="locating"] {
  cursor: wait;
}

.map-locate-floating.is-loading span,
.map-locate-floating[data-location-state="requesting"] span,
.map-locate-floating[data-location-state="loading"] span,
.map-locate-floating[data-location-state="locating"] span {
  opacity: .48;
}

.map-locate-floating.is-loading::after,
.map-locate-floating[data-location-state="requesting"]::after,
.map-locate-floating[data-location-state="loading"]::after,
.map-locate-floating[data-location-state="locating"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  box-sizing: border-box;
  border: 2px solid rgba(26, 115, 232, .2);
  border-top-color: #1A73E8;
  border-radius: 999px;
  animation: mapLocateSpin .75s linear infinite;
}

@keyframes mapLocateSpin {
  to { transform: rotate(360deg); }
}

.map-results-pill {
  display: none;
}

.map-toast {
  position: absolute;
  left: 50%;
  bottom: 66px;
  z-index: 7;
  width: min(340px, calc(100% - 96px));
  transform: translateX(-50%);
  border: 1px solid rgba(6, 48, 71, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #063047;
  padding: 9px 12px;
  box-shadow: 0 4px 16px rgba(6, 48, 71, .14);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.map-coverage-toggle {
  position: absolute;
  left: 12px;
  bottom: 50px;
  z-index: 7;
  max-width: min(330px, calc(100% - 92px));
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 107, 87, .2);
  border-radius: 999px;
  background: rgba(255,255,255,.97);
  color: #07584b;
  box-shadow: 0 4px 14px rgba(6, 48, 71, .14);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.map-coverage-toggle:hover,
.map-coverage-toggle:focus-visible {
  border-color: rgba(0, 107, 87, .36);
  outline: 0;
  background: #f4fbf8;
  box-shadow: 0 0 0 3px rgba(0, 107, 87, .1), 0 4px 14px rgba(6, 48, 71, .14);
}

.map-coverage-toggle[hidden] {
  display: none !important;
}

#map-coverage-toggle-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-coverage-toggle-icon {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  z-index: 4;
}

.map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--map-line);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  color: #063047;
  text-align: center;
  font-weight: 750;
}

.map-runtime-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  transform: translate(-50%, -50%);
  width: min(390px, calc(100% - 36px));
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--map-line);
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  color: #063047;
  box-shadow: 0 6px 20px rgba(6, 48, 71, .14);
  text-align: center;
  font-weight: 750;
}

.map-runtime-status[hidden] {
  display: none !important;
}

.map-runtime-status[data-state="error"] {
  border-color: rgba(154, 72, 46, .22);
}

.map-empty[data-state="loading"],
.map-empty[data-state="error"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.map-loading-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #c9dbd5;
  border-top-color: var(--map-green);
  border-radius: 999px;
  animation: mapLoadingSpin .8s linear infinite;
}

@keyframes mapLoadingSpin {
  to { transform: rotate(360deg); }
}

.map-retry {
  min-height: 36px;
}

.map-marker {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.map-marker::before {
  content: '';
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #063047;
  box-shadow: 0 4px 12px rgba(6, 48, 71, .28);
}

.map-marker::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.map-marker.is-promo {
  color: #fff7d7;
}

.map-marker.is-promo::before {
  background: #006b57;
}

.dc-map-pin-label {
  max-width: 190px;
  padding: 4px 8px;
  border: 1px solid rgba(6, 48, 71, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  color: #102a38;
  box-shadow: 0 2px 8px rgba(6, 48, 71, .12);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transition: opacity .12s ease, visibility .12s ease;
  visibility: hidden;
  white-space: nowrap;
}

.dc-map-pin-label.is-visible {
  opacity: 1;
  visibility: visible;
}

.map-marker.is-focus {
  color: #fff;
}

.map-marker.is-focus::before {
  background: #d86f32;
  box-shadow: 0 0 0 6px rgba(216, 111, 50, .18), 0 8px 18px rgba(216, 111, 50, .28);
}

.map-marker.is-search-match::before,
.map-marker.is-search-highlight::before,
.map-marker.is-highlighted::before {
  border-color: #fff;
  background: #d86f32;
  box-shadow: 0 0 0 7px rgba(216, 111, 50, .2), 0 8px 20px rgba(6, 48, 71, .3);
}

.map-marker.is-search-match::after,
.map-marker.is-search-highlight::after,
.map-marker.is-highlighted::after {
  width: 11px;
  height: 11px;
  background: #fff7d7;
}

.map-user-location-marker {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #1A73E8;
  box-shadow: 0 0 0 8px rgba(26, 115, 232, .18), 0 3px 12px rgba(6, 48, 71, .22);
}

.map-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 24, 28, .26);
}

.map-detail-sheet {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 81;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid var(--map-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(5, 27, 36, .22);
}

.map-detail-handle {
  display: none;
}

.map-detail-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f2f7f5;
  color: #063047;
  font-size: 20px;
  cursor: pointer;
}

.map-detail-sheet h2 {
  margin: 0 38px 8px 0;
  color: #063047;
  font-size: 20px;
}

.map-coverage-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(8, 24, 28, .32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.map-coverage-sheet {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 261;
  width: min(500px, calc(100% - 28px));
  max-height: min(72dvh, 620px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid var(--map-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(5, 27, 36, .28);
}

.map-coverage-backdrop[hidden],
.map-coverage-sheet[hidden] {
  display: none !important;
}

.map-coverage-handle {
  display: none;
}

.map-coverage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--map-line);
}

.map-coverage-head > div {
  min-width: 0;
}

.map-coverage-head h2 {
  margin: 0;
  color: #063047;
  font-size: 19px;
  line-height: 1.2;
}

.map-coverage-head p {
  margin: 6px 0 0;
  color: var(--map-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.map-coverage-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f2f7f5;
  color: #063047;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.map-coverage-close:hover,
.map-coverage-close:focus-visible {
  outline: 0;
  background: #e5f1ec;
}

.map-coverage-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.map-coverage-card,
.map-coverage-list > article,
.map-coverage-list > li {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--map-line);
  border-radius: 11px;
  background: #fff;
  list-style: none;
}

.map-coverage-card.is-active,
.map-coverage-card.is-highlighted,
.map-coverage-list > article.is-active,
.map-coverage-list > article.is-highlighted,
.map-coverage-list > li.is-active,
.map-coverage-list > li.is-highlighted {
  border-color: #9fd4c5;
  background: #f4fbf8;
  box-shadow: 0 0 0 3px rgba(0, 107, 87, .08);
}

.map-coverage-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.map-coverage-card h3,
.map-coverage-card strong,
.map-coverage-list > article h3,
.map-coverage-list > li h3 {
  margin: 0;
  color: #063047;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.map-coverage-card p,
.map-coverage-meta,
.map-coverage-zones,
.map-coverage-list > article p,
.map-coverage-list > li p {
  margin: 0;
  color: var(--map-muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-coverage-zones {
  color: #315e57;
  font-weight: 700;
}

.map-coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.map-coverage-actions .btn,
.map-coverage-action {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.map-coverage-empty,
.map-coverage-status {
  margin: 0;
  padding: 18px 12px;
  color: var(--map-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.map-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.map-detail-actions .btn {
  min-height: 38px;
}

.map-status {
  padding: 12px;
  border-radius: 10px;
  background: #f7fbf9;
  color: #3e5c58;
  font-size: 13px;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body.map-page {
    overflow: hidden;
  }

  .map-topbar .w {
    display: grid;
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .map-topbar .top-actions {
    display: none;
  }

  .map-header-title {
    display: none;
  }

  .map-shell {
    position: relative;
    width: 100%;
    height: calc(100dvh - 54px - var(--mobile-nav-height, 74px));
    margin: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .map-titlebar {
    display: none;
  }

  .map-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .map-search {
    padding: 0;
  }

  .map-search-field {
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(6, 48, 71, .13);
  }

  .map-search-input {
    height: 46px;
    border-color: rgba(6, 48, 71, .13);
    background: rgba(255,255,255,.97);
    font-size: 14px;
  }

  .map-search-clear {
    top: 7px;
  }

  .map-search-listbox {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(42dvh, 320px);
    border-radius: 11px;
  }

  .map-filterbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }

  .map-chip:last-of-type {
    grid-column: 1 / -1;
  }

  .map-radius-help {
    grid-column: 1 / -1;
    padding: 7px 10px;
    border: 1px solid rgba(122, 75, 32, .16);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 14px rgba(6, 48, 71, .11);
    text-align: center;
  }

  .map-chip {
    width: 100%;
    min-height: 44px;
    padding: 0 6px;
    justify-content: center;
    border-color: rgba(6, 48, 71, .13);
    background: rgba(255,255,255,.94);
    box-shadow: 0 4px 14px rgba(6, 48, 71, .11);
    font-size: 12px;
  }

  .map-chip span {
    display: none;
  }

  .map-layout {
    flex: 1;
    min-height: 0;
    display: block;
  }

  .map-canvas-panel {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .map-canvas {
    height: 100%;
    min-height: 0;
  }

  .map-controls {
    top: auto;
    right: 12px;
    bottom: 132px;
  }

  .map-north {
    width: 46px;
    height: 46px;
  }

  .maplibregl-ctrl-zoom-in,
  .maplibregl-ctrl-zoom-out {
    display: none !important;
  }

  .map-attribution-control {
    left: 10px;
    bottom: 10px;
  }

  .map-attribution-toggle {
    height: 24px;
    min-width: 42px;
    font-size: 9px;
  }

  .map-attribution-panel {
    min-width: 176px;
    font-size: 10px;
  }

  .map-brand {
    bottom: 10px;
  }

  .map-locate-floating {
    top: auto;
    right: 12px;
    bottom: 76px;
    width: 46px;
    height: 46px;
  }

  .map-locate-floating span {
    width: 28px;
    height: 28px;
  }

  .map-toast {
    bottom: 76px;
    width: min(300px, calc(100% - 88px));
  }

  .map-coverage-toggle {
    left: 10px;
    bottom: 46px;
    max-width: calc(100% - 82px);
    min-height: 40px;
    padding: 8px 11px;
  }

  .map-results-pill {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4e6566;
    box-shadow: none;
    font-size: 12px;
    font-weight: 850;
    max-width: 116px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-list-panel {
    display: none;
  }

  body.map-unavailable .map-layout {
    display: block;
    overflow: hidden;
  }

  body.map-unavailable .map-list-panel {
    display: flex;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  body.map-unavailable .map-canvas-panel {
    display: none;
  }

  .map-detail-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 80dvh;
    overflow-y: auto;
    transform: none;
    padding: 10px 16px 18px;
    border-radius: 18px 18px 0 0;
  }

  .map-detail-handle {
    display: block;
    width: 44px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 999px;
    background: #c8d8d4;
  }

  .map-detail-sheet h2 {
    font-size: 19px;
  }

  .map-coverage-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(72dvh, 560px);
    grid-template-rows: auto auto minmax(0, 1fr);
    transform: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 19px 19px 0 0;
  }

  .map-coverage-handle {
    display: block;
    width: 44px;
    height: 4px;
    margin: 9px auto 0;
    border-radius: 999px;
    background: #c8d8d4;
  }

  .map-coverage-head {
    padding: 11px 16px 13px;
  }

  .map-coverage-head h2 {
    font-size: 18px;
  }

  .map-coverage-list {
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .map-toolbar {
    left: 8px;
    right: 8px;
  }

  .map-chip {
    padding-inline: 4px;
    font-size: 11.5px;
  }

  .map-search-input {
    padding-right: 40px;
    padding-left: 38px;
    font-size: 13px;
  }

  .map-search-icon {
    left: 14px;
  }

  .map-coverage-toggle {
    left: 8px;
    max-width: calc(100% - 76px);
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-loading-spinner,
  .map-locate-floating::after {
    animation: none;
  }
}

@media (min-width: 769px) {
  body.map-page {
    min-height: 0;
  }

  .map-shell {
    margin-top: 0;
    gap: 10px;
  }

  .map-layout,
  .map-list-panel,
  .map-canvas-panel,
  .map-canvas {
    min-height: 0;
  }

  .map-canvas-panel,
  .map-canvas {
    height: 100%;
  }

  .map-filterbar {
    gap: 6px;
    padding: 8px 8px 8px 0;
    background: transparent;
    box-shadow: none;
  }

  .map-chip {
    min-height: 42px;
    border: 1px solid var(--map-line);
    border-radius: 9px;
    background: var(--map-soft);
  }

  .map-chip:focus-within {
    background: #eef6ef;
    border-color: #78b9a9;
    box-shadow: 0 0 0 3px rgba(0, 107, 87, .1);
  }
}
