/* Mapa con Leaflet (mapa.js) */
.vista-osm { position: relative; margin-top: var(--hueco); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: var(--mapa-fondo, #0a0a0a); }
.osm { position: absolute; inset: 0; background: var(--mapa-fondo, #0a0a0a); display: grid; place-items: center; color: var(--texto-3); }
.osm .leaflet-tooltip { font: 500 13px var(--sans); }
.osm .leaflet-control-attribution { font-size: 10px; background: rgb(0 0 0 / .55); color: #bbb; }
.osm .leaflet-control-attribution a { color: #ddd; }
:root[data-tema=claro] .osm .leaflet-control-attribution { background: rgb(255 255 255 / .7); color: #555; }
.osm-mandos { position: absolute; top: 10px; right: 10px; z-index: 1000; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.osm-mandos select { font: inherit; font-size: 13px; color: var(--texto); background: var(--superficie); border: 1px solid var(--control); border-radius: 999px; padding: 6px 10px; }
.osm-leyenda { position: absolute; left: 10px; bottom: 22px; z-index: 1000; display: flex; align-items: center; gap: 4px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 10px; padding: 6px 10px; font-size: 11px; color: var(--texto-2); }
.osm-leyenda i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.osm-leyenda small { margin-right: 6px; }
.osm-leyenda .osm-grad { width: 90px; background: linear-gradient(90deg, #c8322a, #9a9a9a, #2f5bd0); }
.osm-panel { position: absolute; z-index: 1001; top: 54px; right: 10px; bottom: 22px; width: 320px; display: flex; flex-direction: column; gap: 10px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; box-shadow: 0 8px 30px rgb(0 0 0 / .35); }
.osm-panel[hidden] { display: none; }
.osm-cab { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.osm-cab h2 { margin: 0; font-size: 18px; }
.osm-cab p { margin: 2px 0 0; font-size: 13px; color: var(--texto-2); }
.osm-cab .cerrar { position: static; }
.osm-lista { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.osm-lista button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px; color: var(--texto); font: inherit; cursor: pointer; }
.osm-lista button:hover { background: var(--superficie-2); }
.osm-lista img, .osm-sig { flex: 0 0 48px; height: 32px; object-fit: contain; background: var(--elevado); border-radius: 4px; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--texto-3); }
.osm-lista b { display: block; font-size: 13px; font-weight: 500; }
.osm-lista small { color: var(--texto-3); font-size: 12px; }
.osm-mas { font-size: 12px; color: var(--texto-3); padding: 6px; }
/* móvil: pantalla completa entre la cabecera y la barra de navegación; el panel sube desde abajo */
@media (max-width: 760px) {
  .en-mapa .vista-osm { position: fixed; left: 0; right: 0; top: var(--osm-top, 56px); bottom: var(--osm-bottom, 0); height: auto !important; margin: 0; border: 0; border-radius: 0; z-index: 40; }
  .osm-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 55%; border-radius: var(--radio) var(--radio) 0 0; }
  .osm-leyenda { bottom: 18px; }
}
