.map-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.map-picker h3 { font-size: 15px; }
.map-picker p, .map-tile-status { font-size: 13px; }
.map-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf2ec;
}
.map-surface {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 460px;
  background-color: #edf2ec;
  font: inherit;
}
.map-picker .map-surface { height: 240px; }
.map-picker .map-surface.leaflet-container { cursor: crosshair; }
.map-picker .leaflet-dragging .leaflet-grab,
.map-picker .leaflet-grab.leaflet-dragging { cursor: grabbing; }
.map-surface:focus-visible { outline-offset: -3px; }
.map-tile-status { padding: 7px 10px; color: var(--muted); }
.map-picker-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.map-picker-actions .button:disabled { cursor: default; }
.map-locality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #edf3ef;
}
.map-locality p { min-width: 0; overflow-wrap: anywhere; }

.map-color-committee { --map-color: #15634d; }
.map-color-reunion { --map-color: #245fa5; }
.map-color-ayuda { --map-color: #ad4a16; }
.map-color-acercamiento { --map-color: #6d46a4; }
.map-color-incorporacion { --map-color: #a33865; }
.map-color-otro { --map-color: #576664; }
.map-color-picker, .map-color-multiple { --map-color: #194c3e; }
.map-pin {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--map-color);
  box-shadow: 0 1px 5px #16292073;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.map-pin:empty::after { content: ''; width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; }
.map-pin.map-color-committee, .map-dot.map-color-committee { border-radius: 5px; }
.map-pin.map-color-committee::after { border-radius: 1px; }
.map-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--map-color); }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.map-legend li { display: flex; align-items: center; gap: 6px; }

.geo-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.geo-view-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.geo-view-bar > p { font-size: 13px; }
.module-toolbar .geo-view-bar, .module-toolbar .geo-filters { margin: 0; }
.geo-toggle { display: none; gap: 6px; }
.geo-toggle [aria-pressed="true"] { color: #fff; background: var(--green); }
.geo-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(210px, 1fr); align-items: start; gap: 12px; }
.geo-map-card { min-width: 0; padding: 8px; }
.geo-locality-status { padding: 2px 3px 8px; font-size: 13px; }
.geo-results { min-width: 0; }
.geo-results h2 { margin-bottom: 8px; font-size: 17px; }
.geo-results .muted { font-size: 13px; }
.geo-records, .geo-popup-list { display: grid; padding: 0; margin: 0; list-style: none; }
.geo-records li, .geo-popup-list li { display: flex; align-items: start; gap: 8px; min-width: 0; padding: 9px 0; }
.geo-records li + li, .geo-popup-list li + li { border-top: 1px solid var(--line); }
.geo-records .map-dot, .geo-popup-list .map-dot { margin-top: 4px; }
.geo-record-info { min-width: 0; }
.geo-records p, .geo-popup-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.geo-detail-button, .geo-focus-button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}
.geo-detail-button:hover, .geo-focus-button { text-decoration: underline; }
.geo-focus-button, .geo-no-point { display: block; width: fit-content; margin-top: 4px; font-size: 12px; }
.geo-no-point { color: var(--muted); }
.geo-popup-list li { min-width: min(150px, 35vw); }

@media (max-width: 920px) {
  .geo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-filters label:first-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .geo-toggle { display: flex; }
  .geo-layout { grid-template-columns: minmax(0, 1fr); }
  .geo-layout[data-mode="map"] .geo-results,
  .geo-layout[data-mode="list"] .geo-map-card { display: none; }
  .geo-map-card .map-surface { height: clamp(260px, 57svh, 420px); }
}

@media (max-width: 480px) {
  .geo-filters { grid-template-columns: minmax(0, 1fr); }
}
