/* =====================================================================
   css/atlas.css — menú «Mapa» y botón «Ver todo» del módulo js/atlas.js (kit atlas-municipio).
   Usa las variables del tema (--g3-*, --vl-*): cambian con el municipio, aquí no hay colores de marca.
   ===================================================================== */

.floating-pill-todo.floating-pill[hidden] { display: none; }
.floating-pill-base[aria-expanded="true"] { background: var(--g3-marca, #0a6355); color: #fff; }

.atlas-menu {
    position: fixed; z-index: 40; top: calc(var(--vl-barra-h, 56px) + 64px); left: calc(var(--vl-panel-w, 348px) + 12px);
    width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - var(--vl-barra-h, 56px) - 84px); overflow-y: auto;
    padding: 14px 14px 16px; border-radius: var(--g3-radio-hoja, 22px); background: var(--g3-superficie, #fff); color: var(--g3-texto, #14231a);
    box-shadow: 0 12px 40px rgba(var(--g3-sombra-rgb, 6,61,51), .32); border: 1px solid var(--g3-linea, #dcebe7);
}
.atlas-menu[hidden] { display: none; }
.atlas-menu-cab { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.atlas-menu-cab b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.atlas-menu-x { position: relative; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--g3-tinte, #e2f2ee); color: var(--g3-marca, #0a6355); display: grid; place-items: center; cursor: pointer; }
.atlas-menu-x::before { content: ""; position: absolute; inset: -4px; }
.atlas-menu-x svg { width: 16px; height: 16px; }
.atlas-etq { margin: 12px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-texto-suave, #5b6b60); }
.atlas-estilos { display: grid; gap: 6px; }
.atlas-estilo {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border: 2px solid transparent; border-radius: 14px;
    background: var(--g3-campo, #f6faf9); text-align: left; cursor: pointer; color: inherit; font: inherit;
}
.atlas-estilo:hover { background: var(--g3-tinte, #e2f2ee); }
.atlas-estilo[aria-pressed="true"] { border-color: var(--g3-marca, #0a6355); background: var(--g3-tinte, #e2f2ee); }
.atlas-estilo i { flex: none; width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.atlas-estilo b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.atlas-estilo small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.25; color: var(--g3-texto-suave, #5b6b60); }
.atlas-fila { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 8px 6px; border-radius: 12px; cursor: pointer; }
.atlas-fila:hover { background: var(--g3-campo, #f6faf9); }
.atlas-fila input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--g3-marca, #0a6355); }
.atlas-fila-txt b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.atlas-fila-txt small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.3; color: var(--g3-texto-suave, #5b6b60); }
.atlas-todo {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: var(--g3-radio-boton, 14px);
    background: var(--g3-marca, #0a6355); color: #fff; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.atlas-todo:hover { background: var(--g3-marca-oscura, #042a23); }
.atlas-todo svg { width: 18px; height: 18px; }
.atlas-menu :focus-visible, .floating-pill-todo:focus-visible { outline: 3px solid var(--g3-foco, #E2211C); outline-offset: 2px; }

@media (max-width: 900px) {
    .atlas-menu { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) { .atlas-menu { transition: none; } }

/* «Ver ficha» en la cabecera del visor 360 (js/visor.js: ponEnlacesFicha). La cabecera no recibe toques: la caja de enlaces sí. */
.aereo-visor-cab .aereo-ficha-enlaces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; pointer-events: auto; }
.aereo-visor-cab .aereo-ficha-enlaces:empty { display: none; }
.aereo-ficha-enlace {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--g3-radio-pildora, 99px);
    background: var(--g3-marca, #0a6355); color: #fff; font: 700 13px/1.2 var(--g3-fuente-texto, system-ui, sans-serif); text-decoration: none;
}
.aereo-ficha-enlace:hover { background: var(--g3-marca-oscura, #042a23); }
.aereo-ficha-enlace:focus-visible { outline: 3px solid var(--g3-foco, #E2211C); outline-offset: 2px; }
@media (max-height: 480px) { .aereo-visor-cab .aereo-ficha-enlaces { display: none; } }
