/* Mapa de cobertura (public/js/mapa.js). Los trazos no escalan con el zoom; las etiquetas
   usan --k (unidades del SVG por píxel de pantalla) para medir siempre lo mismo. */
.cobertura { padding-block: 36px 0; }
.cobertura h2 { font-size: clamp(26px, 4vw, 40px); }
.cobertura > .muted { margin-top: 6px; }
#mapa-cobertura { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 860px) {
  #mapa-cobertura { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}

.mapa-marco { position: relative; background: var(--blanco); border: 1.5px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.mapa-svg { display: block; width: 100%; height: auto; max-height: 72vh; margin: 0 auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mapa-svg path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }

.m-otro { fill: #EFEBE6; stroke: #D3CABF; stroke-width: .8; cursor: pointer; transition: fill .15s; }
.m-otro:hover { fill: #E7E1DA; }
.m-contorno { fill: none; stroke: var(--cacao); stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .55; pointer-events: none; }

.m-cub { cursor: pointer; outline: none; }
.m-cub path { fill: var(--c); stroke: var(--blanco); stroke-width: 1.2; transition: fill-opacity .2s; }
.m-cub:hover path { fill-opacity: .85; }
.m-cub.otra path { fill-opacity: .4; }
.m-cub.otra:hover path { fill-opacity: .6; }

/* Municipio elegido o con foco: doble trazo (oscuro por fuera, blanco por dentro) para que se vea sobre cualquier color. */
.m-sel { pointer-events: none; }
.m-sel-a { fill: none; stroke: var(--espresso); stroke-width: 4; }
.m-sel-b { fill: none; stroke: var(--blanco); stroke-width: 1.5; }

.m-rotulos { pointer-events: none; }
.m-rotulos text { font-family: var(--f-texto); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke-linejoin: round;
  font-size: calc(13px * var(--k, 2.5)); stroke-width: calc(3.5px * var(--k, 2.5)); }
.m-rotulos text.oculto { display: none; }
.m-r-cub { font-weight: 700; fill: var(--espresso); stroke: var(--blanco); }
.m-r-ref { font-weight: 500; fill: var(--cacao); stroke: #EFEBE6; }
.m-depto { font-family: var(--f-texto) !important; font-weight: 500; fill: #9C9288; stroke: none !important; text-anchor: start !important;
  font-size: calc(15px * var(--k, 2.5)) !important; }

.mapa-encuadre { position: absolute; top: 10px; right: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--espresso);
  background: var(--blanco); color: var(--espresso); font-size: 14px; font-weight: 600; cursor: pointer; }
.mapa-encuadre:hover { background: var(--nude); }

.mapa-lado { display: grid; gap: 12px; align-content: start; }
.mapa-tarjeta { display: grid; gap: 10px; background: var(--blanco); border: 1.5px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; min-height: 64px; }
.mapa-lugar { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.mapa-lugar b { font-family: var(--f-titulo); font-weight: 400; font-size: 24px; }
.mapa-lugar.no { color: var(--cacao); }
.mapa-lugar.no b { color: var(--espresso); }
.mapa-pista { font-size: 14px; color: var(--cacao); }
.mapa-ir { justify-self: start; min-height: 44px; }
.punto { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c, #DDD5CC); align-self: center; box-shadow: inset 0 0 0 1px rgb(51 48 44 / .12); }

.mapa-sub { font-size: 20px; margin-top: 4px; }
.mapa-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mapa-zona { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 14px; background: var(--blanco); border: 1.5px solid var(--linea);
  border-radius: var(--radio); text-decoration: none; color: var(--espresso); }
.mapa-zona:hover, .mapa-zona.actual { border-color: var(--espresso); }
.mapa-zona .tx { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: 14px; color: var(--cacao); }
.mapa-zona b { color: var(--espresso); font-size: 16px; }
.mapa-zona .ir { font-weight: 600; }
.mapa-credito { font-size: 12px; color: var(--cacao); }

@media (prefers-reduced-motion: reduce) { .m-otro, .m-cub path { transition: none; } }
