/* Keep coverage controls outside the geographic canvas. */
body[data-route="mapa"] .map-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 12px 12px 24px;
}
body[data-route="mapa"] .map-search,
body[data-route="mapa"] .filter-chips-map,
body[data-route="mapa"] .municipal-tools,
body[data-route="mapa"] .map-legend {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
}
body[data-route="mapa"] .map-search .form-control {
  min-height: 44px;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: none;
}
body[data-route="mapa"] .filter-chips-map {
  flex-wrap: wrap;
  overflow: visible;
  gap: 6px;
  padding: 0;
}
body[data-route="mapa"] .filter-chips-map .chip {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: var(--gray-700);
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: none;
}
body[data-route="mapa"] .filter-chips-map .chip.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}
body[data-route="mapa"] .municipal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-route="mapa"] .municipal-tools .btn {
  flex: 0 1 auto;
  width: auto;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .8125rem;
  font-weight: 500;
  white-space: normal;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  color: var(--primary-700);
}
body[data-route="mapa"] .municipal-tools p {
  flex: 1 0 100%;
  max-width: none;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--gray-600);
}
body[data-route="mapa"] #leafletMap {
  height: clamp(480px, 68dvh, 760px);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
}
body[data-route="mapa"] .leaflet-top.leaflet-right { top: 0; }
body[data-route="mapa"] .leaflet-control-zoom a,
body[data-route="mapa"] .map-locate-btn { width: 44px; height: 44px; line-height: 44px; }
body[data-route="mapa"] .map-legend {
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: none;
  z-index: auto;
}
body[data-route="mapa"] .legend-title { font-size: .875rem; font-weight: 600; }
body[data-route="mapa"] .legend-stat .val { font-size: 1.125rem; font-weight: 700; }
body[data-route="mapa"] .legend-stat .lbl { font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
body[data-route="mapa"] .chip:focus-visible,
body[data-route="mapa"] .municipal-tools .btn:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }
@media (min-width: 768px) {
  body[data-route="mapa"] .map-full { padding: 16px 20px 24px; gap: 12px; }
  body[data-route="mapa"] #leafletMap { height: clamp(560px, 72dvh, 840px); }
  body[data-route="mapa"] .municipal-tools p { flex: 1 1 auto; }
}
body[data-route="mapa"].has-admin-sidebar .map-full { height: auto; min-height: 0; }
