@charset "UTF-8";
/**
 * bn-map-hub.css — Estilos del widget Mapa Interactivo (BajoNalon_Mapa_Widget)
 *
 * Port directo del mockup mapa.html, con tres adaptaciones sistemáticas:
 *  1. IDs del mockup (#sidebar, #main-map, etc.) → clases `.bn-*` para soporte
 *     multi-instancia (varios widgets en la misma página).
 *  2. Hex literales de marca → tokens del Kit de Elementor (var(--e-global-color-*))
 *     y neutrales del tema (var(--bn-color-*)) cuando aplica.
 *  3. Spacing / radii / sombras / transiciones repetidas → tokens del tema.
 *
 * Selectores que NO se prefijan: .leaflet-* (clases nativas de Leaflet) y body.*
 * (estados globales como body.bn-marker-sheet-open). Los demás se prefijan con
 * `.bn-` para no contaminar otros widgets ni el tema.
 *
 * Dependencia: tokens.css (mismo enqueue chain) + leaflet.css.
 */

/* ─── Reset suave del contenedor del widget ───────────────────────── */
.bn-map-hub {
    position: relative; /* anclaje para skip-link y otros position:absolute */
    box-sizing: border-box;
    font-family: var(--e-global-typography-secondary-font-family);
    color: var(--bn-color-surface-dark);
}
.bn-map-hub *, .bn-map-hub *::before, .bn-map-hub *::after { box-sizing: inherit; }
.bn-map-hub .hidden { display: none !important; }
.bn-map-hub h2, .bn-map-hub h3, .bn-map-hub h4 { margin: 0; }
.bn-map-hub button { font-family: inherit; }

/* ─── Sidebar: header, búsqueda, filtros, acciones, lista, empty ───── */
.bn-map-hub .bn-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--bn-space-lg) 20px var(--bn-space-md);
    gap: var(--bn-space-sm);
}
.bn-map-hub .bn-sidebar-title {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 18px; font-weight: 600;
    color: var(--bn-color-surface-dark);
    line-height: 1.2;
}
.bn-map-hub .bn-result-count {
    background: var(--e-global-color-primary);
    color: white;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--bn-radius-pill);
    white-space: nowrap;
}
.bn-map-hub .bn-sidebar-search {
    position: relative;
    margin: 0 20px var(--bn-space-md);
}
.bn-map-hub .bn-sidebar-search > i[data-lucide] {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--bn-color-text-soft);
    pointer-events: none;
}
.bn-map-hub .bn-search-input {
    width: 90%;
    padding: 10px 36px 10px 38px;
    border-radius: var(--bn-radius-pill);
    background: #f9fafb;
    border: 1px solid transparent;
    font-size: 13px;
    color: var(--bn-color-surface-dark);
    transition: background var(--bn-dur-fast), border-color var(--bn-dur-fast);
    font-family: inherit;
}
.bn-map-hub .bn-search-input::placeholder { color: var(--bn-color-text-soft); }
.bn-map-hub .bn-search-input:focus {
    outline: none;
    background: white;
    border-color: var(--bn-color-surface-dark);
}
.bn-map-hub .bn-search-clear {
    position: absolute;
    right: 8px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bn-color-border-soft);
    color: var(--bn-color-text-muted);
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--bn-dur-fast), color var(--bn-dur-fast);
}
.bn-map-hub .bn-search-clear:hover {
    background: var(--e-global-color-primary);
    color: white;
}
.bn-map-hub .bn-sidebar-filters {
    padding: 0 20px var(--bn-space-md);
    display: flex; flex-direction: column; gap: var(--bn-space-md);
}
.bn-map-hub .bn-filter-group { display: flex; flex-direction: column; }
.bn-map-hub .bn-filter-group [class^="bn-chip-list-"] {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.bn-map-hub .bn-sidebar-actions {
    display: flex; align-items: center; gap: 6px;
    padding: 0 20px var(--bn-space-md);
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: var(--bn-space-md);
}
.bn-map-hub .bn-locate-me {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 14px;
    border-radius: var(--bn-radius-pill);
    background: var(--bn-color-surface-dark);
    color: white;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    border: none; cursor: pointer;
    transition: background var(--bn-dur-fast);
}
.bn-map-hub .bn-locate-me:hover { background: var(--e-global-color-primary); }
.bn-map-hub .bn-locate-me.is-active { background: var(--e-global-color-primary); }
.bn-map-hub .bn-locate-me i { width: 14px; height: 14px; }
.bn-map-hub .bn-reset-mapa {
    width: 36px; height: 36px;
    border-radius: var(--bn-radius-pill);
    background: white;
    border: 1px solid var(--bn-color-border-soft);
    color: var(--bn-color-text-muted);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--bn-dur-fast);
}
.bn-map-hub .bn-reset-mapa:hover {
    background: var(--bn-color-surface-dark);
    color: white;
    border-color: var(--bn-color-surface-dark);
}
.bn-map-hub .bn-reset-mapa i { width: 14px; height: 14px; }

/* Place-list y items */
.bn-map-hub .bn-place-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: var(--bn-space-md);
}
.bn-map-hub .place-item {
    position: relative;
    width: 100%;
    display: flex; align-items: center; gap: var(--bn-space-sm);
    padding: var(--bn-space-sm) 20px;
    border: none;
    border-bottom: 1px solid #f9fafb;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.bn-map-hub .place-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.bn-map-hub .place-name {
    display: block;
    font-weight: 600; font-size: 13px;
    color: var(--bn-color-surface-dark);
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bn-map-hub .place-cat {
    font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 2px;
}
.bn-map-hub .place-meta {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: 4px;
}
.bn-map-hub .place-tail {
    display: inline-flex; align-items: center; gap: 6px;
    flex-shrink: 0;
    color: #d1d5db;
}
.bn-map-hub .place-tail i { width: 14px; height: 14px; }
.bn-map-hub .bn-place-dist {
    font-size: 11px;
    color: var(--e-global-color-primary);
    font-weight: 700;
    white-space: nowrap;
}
.bn-map-hub .concejo-badge i { width: 10px; height: 10px; }

/* Empty state */
.bn-map-hub .bn-empty-state {
    padding: var(--bn-space-xl) 20px;
    text-align: center;
}
.bn-map-hub .bn-empty-state i {
    width: 36px; height: 36px;
    color: #d1d5db;
    margin-bottom: var(--bn-space-sm);
}
.bn-map-hub .bn-empty-state p {
    margin: 0;
    font-size: 13px;
    color: var(--bn-color-text-muted);
    font-weight: 600;
}
.bn-map-hub .bn-empty-state p.hint {
    margin-top: 4px;
    font-size: 11px;
    color: var(--bn-color-text-soft);
    font-weight: 400;
}
.bn-map-hub .bn-empty-reset {
    margin-top: var(--bn-space-md);
    background: none; border: none;
    color: var(--e-global-color-primary);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    cursor: pointer;
    text-decoration: underline;
}

/* ─── Leaflet popup (desktop) ─────────────────────────────────────── */
.bn-map-hub .leaflet-popup-content-wrapper {
    border-radius: var(--bn-radius-md);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.12);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    padding: 0;
}
.bn-map-hub .leaflet-popup-content {
    margin: 0;
    font-family: var(--e-global-typography-secondary-font-family);
    color: var(--bn-color-surface-dark);
    font-size: 13px;
    width: 240px !important;
}
.bn-map-hub .leaflet-popup-content .pop-image {
    width: 100%; height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    position: relative;
}
.bn-map-hub .leaflet-popup-content .pop-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%);
}
.bn-map-hub .leaflet-popup-content .pop-image .pop-cat-overlay {
    position: absolute; bottom: 8px; left: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: var(--bn-radius-pill);
    font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.bn-map-hub .leaflet-popup-content .pop-image .pop-cat-overlay svg { width: 10px; height: 10px; }
.bn-map-hub .leaflet-popup-content .pop-body { padding: var(--bn-space-sm) var(--bn-space-md); }
.bn-map-hub .leaflet-popup-content .pop-name {
    font-weight: 700; font-size: 15px; line-height: 1.25;
    margin-bottom: 4px;
    color: var(--bn-color-surface-dark);
}
.bn-map-hub .leaflet-popup-content .pop-loc {
    font-size: 11px; color: var(--bn-color-text-muted);
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 10px;
}
.bn-map-hub .leaflet-popup-content .pop-actions {
    display: flex; gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.bn-map-hub .leaflet-popup-content .pop-actions a {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--e-global-color-primary);
    transition: color var(--bn-dur-fast);
}
.bn-map-hub .leaflet-popup-content .pop-actions a:hover { color: var(--e-global-color-accent); }
.bn-map-hub .leaflet-popup-content .pop-actions a.secondary { color: var(--bn-color-surface-dark); }
.bn-map-hub .leaflet-popup-content .pop-actions a.secondary:hover { color: var(--e-global-color-primary); }
.bn-map-hub .leaflet-container a.leaflet-popup-close-button {
    color: var(--bn-color-text-soft);
    right: 6px; top: 6px;
    font-size: 18px;
}
.bn-map-hub .leaflet-container a.leaflet-popup-close-button:hover { color: var(--e-global-color-primary); }

/* ─── Tooltip al hover ──────────────────────────────────────────── */
.bn-map-hub .custom-tooltip {
    background: rgba(0, 34, 46, 0.95) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: var(--e-global-typography-secondary-font-family) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    white-space: nowrap;
}
.bn-map-hub .custom-tooltip::before { border-top-color: rgba(0, 34, 46, 0.95) !important; }

/* ─── Marcador pin (SVG) ──────────────────────────────────────── */
.bn-map-hub .pin-marker {
    transition: transform var(--bn-dur-base) var(--bn-ease-bounce), filter var(--bn-dur-base);
    transform-origin: bottom center;
}
.bn-map-hub .pin-marker:hover,
.bn-map-hub .pin-marker.is-hover {
    transform: scale(1.18) translateY(-3px);
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
}
.bn-map-hub .pin-marker.is-active {
    transform: scale(1.3) translateY(-4px);
    filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--e-global-color-primary) 50%, transparent));
    z-index: 700; /* < navbar (1000) */
}
/* Halo pulsante alrededor del pin activo */
.bn-map-hub .pin-marker.is-active::after {
    content: ''; position: absolute;
    left: 50%; bottom: -6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--e-global-color-primary) 40%, transparent);
    transform: translateX(-50%);
    animation: bn-pin-halo 1.6s ease-out infinite;
    pointer-events: none;
}
@keyframes bn-pin-halo {
    0%   { transform: translateX(-50%) scale(0.6); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(2.4); opacity: 0; }
}

/* ─── Marcadores de waypoint (rutas) ──────────────────────────── */
.bn-map-hub .wp-marker {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bn-color-surface-mid);
    border: 3px solid white;
    color: white;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--e-global-typography-primary-font-family);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 59, 79, 0.45);
    transition: transform 0.2s;
}
.bn-map-hub .wp-marker:hover { transform: scale(1.15); }
.bn-map-hub .wp-marker.is-start {
    background: #16a34a;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.45);
}
.bn-map-hub .wp-marker.is-end {
    background: #DC2626;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.45);
}
.bn-map-hub .wp-marker.is-start::after,
.bn-map-hub .wp-marker.is-end::after {
    content: attr(data-label);
    position: absolute;
    top: -22px; left: 50%; transform: translateX(-50%);
    background: inherit;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ─── User marker pulse ───────────────────────────────────────── */
.bn-map-hub .user-marker {
    position: relative;
    width: 18px; height: 18px;
    background: var(--e-global-color-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--e-global-color-primary) 45%, transparent), 0 2px 6px rgba(0,0,0,0.25);
    animation: bn-pulse-user-core 2s ease-out infinite;
}
.bn-map-hub .user-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--e-global-color-primary) 50%, transparent);
    animation: bn-pulse-user-ring 2s ease-out infinite;
    pointer-events: none;
}
@keyframes bn-pulse-user-core {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--e-global-color-primary) 50%, transparent), 0 2px 6px rgba(0,0,0,0.25); }
    70%  { box-shadow: 0 0 0 16px color-mix(in srgb, var(--e-global-color-primary) 0%, transparent), 0 2px 6px rgba(0,0,0,0.25); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--e-global-color-primary) 0%, transparent), 0 2px 6px rgba(0,0,0,0.25); }
}
@keyframes bn-pulse-user-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ─── Ruta: polyline + waypoints ──────────────────────────────── */
.bn-map-hub .leaflet-overlay-pane svg path.route-polyline {
    stroke: var(--bn-color-surface-mid);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 10, 6;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0, 59, 79, 0.35));
    animation: bn-route-dash 30s linear infinite;
}
@keyframes bn-route-dash { to { stroke-dashoffset: -200; } }

.bn-map-hub .waypoint-marker {
    background: white;
    border: 3px solid var(--bn-color-surface-mid);
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    color: var(--bn-color-surface-mid);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
.bn-map-hub .waypoint-marker.start {
    background: var(--e-global-color-primary);
    color: white;
    border-color: var(--e-global-color-primary);
}
.bn-map-hub .waypoint-marker.end {
    background: var(--bn-color-surface-mid);
    color: white;
    border-color: var(--bn-color-surface-mid);
}

/* Meta de la ruta dentro del popup */
.bn-map-hub .leaflet-popup-content .route-meta {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: var(--bn-space-xs) 0 var(--bn-space-sm);
}
.bn-map-hub .leaflet-popup-content .route-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f3f4f6;
    color: var(--bn-color-surface-dark);
    padding: 4px 9px;
    border-radius: var(--bn-radius-pill);
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.bn-map-hub .leaflet-popup-content .route-meta-item.diff {
    background: var(--bn-color-surface-mid);
    color: white;
}
.bn-map-hub .leaflet-popup-content .route-meta-item svg { width: 10px; height: 10px; }
.bn-map-hub .leaflet-popup-content .pop-actions button {
    background: none; border: none; padding: 0;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--bn-color-text-muted);
    cursor: pointer;
    font-family: var(--e-global-typography-secondary-font-family);
    transition: color var(--bn-dur-fast);
}
.bn-map-hub .leaflet-popup-content .pop-actions button:hover { color: var(--e-global-color-primary); }

/* ─── Cluster ───────────────────────────────────────────────── */
.bn-map-hub .custom-cluster-icon { background: none !important; border: none !important; }
.bn-map-hub .cluster-bubble {
    background: color-mix(in srgb, var(--e-global-color-primary) 92%, transparent);
    border: 3px solid white;
    color: white;
    font-weight: 700;
    font-family: var(--e-global-typography-primary-font-family);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--e-global-color-primary) 35%, transparent);
    transition: transform 0.2s;
}
.bn-map-hub .cluster-bubble:hover { transform: scale(1.1); }
.bn-map-hub .cluster-bubble.s-small  { width: 36px; height: 36px; font-size: 13px; }
.bn-map-hub .cluster-bubble.s-medium { width: 44px; height: 44px; font-size: 14px; }
.bn-map-hub .cluster-bubble.s-large  { width: 52px; height: 52px; font-size: 16px; }

/* ─── Sidebar custom scrollbar ────────────────────────────────── */
.bn-map-hub .bn-map-sidebar::-webkit-scrollbar,
.bn-map-hub .sidebar-scroll::-webkit-scrollbar { width: 6px; }
.bn-map-hub .bn-map-sidebar::-webkit-scrollbar-track,
.bn-map-hub .sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.bn-map-hub .bn-map-sidebar::-webkit-scrollbar-thumb,
.bn-map-hub .sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--bn-color-border-soft);
    border-radius: 3px;
}
.bn-map-hub .bn-map-sidebar::-webkit-scrollbar-thumb:hover,
.bn-map-hub .sidebar-scroll::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
.bn-map-hub .bn-map-sidebar { scrollbar-width: thin; scrollbar-color: var(--bn-color-border-soft) transparent; }

/* ─── Chips de filtro ─────────────────────────────────────────── */
.bn-map-hub .chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px;
    border-radius: var(--bn-radius-pill);
    border: 1px solid var(--bn-color-border-soft);
    background: white;
    color: var(--bn-color-text-strong);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.bn-map-hub .chip:hover {
    border-color: var(--bn-color-surface-dark);
    color: var(--bn-color-surface-dark);
}
.bn-map-hub .chip.is-active {
    background: var(--bn-color-surface-dark);
    color: white;
    border-color: var(--bn-color-surface-dark);
}
.bn-map-hub .chip:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}
.bn-map-hub .chip-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--bn-color-text-soft);
    margin-bottom: var(--bn-space-xs);
}

/* ─── Item del listado ────────────────────────────────────────── */
.bn-map-hub .place-item { transition: background-color var(--bn-dur-fast); }
.bn-map-hub .place-item:hover { background: #f9fafb; }
.bn-map-hub .place-item.is-active { background: #FDEDE3; }
.bn-map-hub .place-item.is-active::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    background: var(--e-global-color-primary);
    border-radius: 2px;
}
.bn-map-hub .place-item:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: -2px;
    background: #f9fafb;
}

/* ─── Thumbnail con badge de categoría ───────────────────────── */
.bn-map-hub .place-thumb { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.bn-map-hub .place-thumb .thumb-fallback {
    width: 100%; height: 100%;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.bn-map-hub .place-thumb .thumb-fallback svg { width: 22px; height: 22px; opacity: 0.9; }
.bn-map-hub .place-thumb img {
    width: 100%; height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}
.bn-map-hub .place-thumb .cat-badge {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.bn-map-hub .place-thumb .cat-badge svg { width: 11px; height: 11px; }

/* Badge inline del concejo (pill gris pequeño) */
.bn-map-hub .concejo-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600;
    color: var(--bn-color-text-muted);
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: var(--bn-radius-pill);
}

/* ─── Botón icono pequeño (toolbar mapa) ──────────────────────── */
.bn-map-hub .map-mini-btn {
    background: white; color: var(--bn-color-surface-dark);
    width: 36px; height: 36px;
    border-radius: var(--bn-radius-pill);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all var(--bn-dur-fast);
}
.bn-map-hub .map-mini-btn:hover { background: var(--bn-color-surface-dark); color: white; }
.bn-map-hub .map-mini-btn.is-active {
    background: var(--e-global-color-primary);
    color: white;
    border-color: var(--e-global-color-primary);
}
.bn-map-hub .map-mini-btn:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}

/* ─── Layer pill: trigger con icono "capas" + panel desplegable ── */
.bn-map-hub .bn-layer-pill {
    display: flex; flex-direction: column;
    align-items: center;
    gap: 6px;
}
.bn-map-hub .bn-layer-pill .layer-toggle-btn { position: relative; }
/* Crossfade entre icono "capas" y "x" */
.bn-map-hub .bn-layer-pill .layer-icon-collapsed,
.bn-map-hub .bn-layer-pill .layer-icon-expanded {
    transition: opacity 0.18s ease, transform 0.25s ease;
}
.bn-map-hub .bn-layer-pill .layer-icon-expanded {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    opacity: 0;
}
.bn-map-hub .bn-layer-pill:not(.is-collapsed) .layer-icon-collapsed {
    opacity: 0; transform: rotate(90deg);
}
.bn-map-hub .bn-layer-pill:not(.is-collapsed) .layer-icon-expanded {
    opacity: 1; transform: translate(-50%, -50%) rotate(0deg);
}
/* Panel de opciones — colapsado por defecto, slide-down al expandir */
.bn-map-hub .layer-options {
    display: flex; flex-direction: column; gap: 6px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.18s ease, transform 0.25s ease;
}
.bn-map-hub .bn-layer-pill:not(.is-collapsed) .layer-options {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}
.bn-map-hub .layer-options .map-mini-btn.is-active {
    background: var(--e-global-color-primary);
    color: white;
    border-color: var(--e-global-color-primary);
}
/* Toolbar apilado con el mismo ritmo visual que los zoom (6px) */
.bn-map-hub .bn-map-toolbar { flex-direction: column !important; gap: 6px !important; }

/* ─── Share pill: trigger + panel flotante a la izquierda del botón ── */
.bn-map-hub .bn-share-pill { position: relative; }
.bn-map-hub .bn-share-pill .layer-toggle-btn { position: relative; }
.bn-map-hub .bn-share-pill .layer-icon-collapsed,
.bn-map-hub .bn-share-pill .layer-icon-expanded {
    transition: opacity 0.18s ease, transform 0.25s ease;
}
.bn-map-hub .bn-share-pill .layer-icon-expanded {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    opacity: 0;
}
.bn-map-hub .bn-share-pill:not(.is-collapsed) .layer-icon-collapsed {
    opacity: 0; transform: rotate(90deg);
}
.bn-map-hub .bn-share-pill:not(.is-collapsed) .layer-icon-expanded {
    opacity: 1; transform: translate(-50%, -50%) rotate(0deg);
}

.bn-map-hub .share-panel {
    position: absolute;
    top: 0;
    right: calc(100% + 10px);
    width: 240px;
    background: white;
    border-radius: var(--bn-radius-md);
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    padding: 10px 8px;
    display: flex; flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateX(8px) scale(0.96);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.bn-map-hub .bn-share-pill:not(.is-collapsed) .share-panel {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}
.bn-map-hub .share-panel-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--bn-color-text-muted);
    padding: 6px 10px 8px;
}
.bn-map-hub .share-panel-divider {
    height: 1px; background: #f3f4f6;
    margin: 4px 6px;
}
.bn-map-hub .share-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    background: transparent;
    border: none; border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background var(--bn-dur-fast);
    font-family: inherit;
}
.bn-map-hub .share-row:hover { background: #f9fafb; }
.bn-map-hub .share-row:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: -2px;
}
.bn-map-hub .share-row-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: white;
    flex-shrink: 0;
}
.bn-map-hub .share-row-icon svg { width: 14px; height: 14px; }
.bn-map-hub .share-row-label {
    font-size: 13px; font-weight: 600;
    color: var(--bn-color-surface-dark);
}
/* En mobile el panel ocupa más ancho y se posiciona desde la derecha del viewport */
@media (max-width: 768px) {
    .bn-map-hub .share-panel {
        width: calc(100vw - 80px);
        max-width: 320px;
    }
}

/* ─── Focus visible global del widget — anillo naranja consistente para teclado ── */
.bn-map-hub :focus { outline: none; }
.bn-map-hub :focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
    border-radius: 6px;
}
.bn-map-hub button:focus-visible,
.bn-map-hub a:focus-visible,
.bn-map-hub input:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}
.bn-map-hub .leaflet-marker-icon:focus-visible {
    outline: 3px solid var(--e-global-color-primary);
    outline-offset: 2px;
    border-radius: 50%;
}

/* ─── Toast — posición que no choca con toggle Lista/Mapa ni marker-sheet ── */
.bn-map-hub .bn-map-toast {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 950; /* toast — máximo del map widget, debajo del navbar (1000) */
    background: var(--bn-color-surface-dark);
    color: white;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 10px var(--bn-space-md);
    border-radius: var(--bn-radius-pill);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    opacity: 0;
    pointer-events: none;
    display: flex; align-items: center; gap: 8px;
    transition: bottom 0.3s ease, opacity 0.3s ease;
}
.bn-map-hub .bn-map-toast.is-visible { opacity: 1; }
.bn-map-hub .bn-map-toast svg { width: 16px; height: 16px; color: var(--bn-color-yellow); }
@media (max-width: 768px) {
    .bn-map-hub .bn-map-toast { bottom: 80px; }
    body.bn-marker-sheet-open .bn-map-hub .bn-map-toast { bottom: 376px; }
    body.bn-marker-sheet-open:has(.bn-marker-sheet.is-expanded) .bn-map-hub .bn-map-toast { bottom: calc(75dvh + 16px); }
}

/* ─── Marker bottom sheet (solo mobile) ─────────────────────── */
.bn-map-hub .bn-marker-sheet {
    display: none;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: white;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 48px rgba(0,0,0,0.22), 0 -2px 6px rgba(0,0,0,0.08);
    z-index: 900; /* marker-sheet < toast (950) < navbar (1000) */
    transform: translateY(100%);
    opacity: 0;
    /* ease-out-expo: arranca rápido y amortigua suave al final */
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease-out;
    overflow: hidden;
    padding-top: 14px;
    will-change: transform, height;
}
.bn-map-hub .bn-marker-sheet.is-open {
    transform: translateY(0);
    opacity: 1;
}
.bn-map-hub .bn-marker-sheet.is-compact { height: 360px; }
.bn-map-hub .bn-marker-sheet.is-expanded { height: 75dvh; }
.bn-map-hub .bn-marker-sheet .marker-sheet-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease-out 0.12s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.bn-map-hub .bn-marker-sheet.is-open .marker-sheet-content {
    opacity: 1;
    transform: translateY(0);
}
/* Backdrop sutil bajo la sheet para dar foco (no bloquea el mapa) */
.bn-map-hub .marker-sheet-backdrop {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 40%);
    z-index: 899; /* backdrop < marker-sheet (900) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}
body.bn-marker-sheet-open .bn-map-hub .marker-sheet-backdrop { opacity: 1; }
@media (max-width: 768px) {
    .bn-map-hub .marker-sheet-backdrop { display: block; }
}
.bn-map-hub .marker-sheet-handle {
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 16px;
    padding: 0; border: none;
    background: transparent;
    cursor: grab;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
}
.bn-map-hub .marker-sheet-handle::after {
    content: '';
    width: 44px; height: 5px;
    border-radius: 3px;
    background: #cbd5e1;
    transition: background 0.2s, transform 0.4s var(--bn-ease-bounce);
}
.bn-map-hub .bn-marker-sheet.is-open .marker-sheet-handle::after {
    transform: scaleX(1.1);
}
.bn-map-hub .marker-sheet-handle:hover::after,
.bn-map-hub .marker-sheet-handle:active::after { background: #94a3b8; }
.bn-map-hub .marker-sheet-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: var(--bn-radius-pill);
    background: #f3f4f6;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--bn-color-surface-dark);
    z-index: 2;
}
.bn-map-hub .marker-sheet-close:hover { background: var(--bn-color-border-soft); }
.bn-map-hub .marker-sheet-content {
    height: 100%;
    overflow-y: hidden;
    padding: var(--bn-space-md) 20px 20px;
}
.bn-map-hub .bn-marker-sheet.is-expanded .marker-sheet-content { overflow-y: auto; }
.bn-map-hub .marker-sheet-thumb {
    width: 100%; height: 130px;
    border-radius: var(--bn-radius-md);
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
    position: relative;
}
.bn-map-hub .marker-sheet-cat {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--bn-radius-pill);
    background: white;
    position: absolute; top: 10px; left: 10px;
}
.bn-map-hub .marker-sheet-cat svg { width: 12px; height: 12px; }
.bn-map-hub .marker-sheet-name {
    font-family: var(--e-global-typography-text-font-family);
    font-size: 20px; font-weight: 700;
    color: var(--bn-color-surface-dark);
    line-height: 1.2;
    margin-bottom: 6px;
    padding-right: 32px;
}
.bn-map-hub .marker-sheet-loc {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--bn-color-text-muted);
    margin-bottom: 14px;
}
.bn-map-hub .marker-sheet-actions {
    display: flex; gap: 8px;
    padding-bottom: var(--bn-space-sm);
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 14px;
}
.bn-map-hub .marker-sheet-actions a,
.bn-map-hub .marker-sheet-actions button {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px var(--bn-space-sm);
    border-radius: 10px;
    background: var(--e-global-color-primary);
    color: white;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    border: none; cursor: pointer;
    text-decoration: none;
}
.bn-map-hub .marker-sheet-actions a.secondary,
.bn-map-hub .marker-sheet-actions button.secondary {
    background: #f3f4f6;
    color: var(--bn-color-surface-dark);
}
.bn-map-hub .marker-sheet-actions svg { width: 14px; height: 14px; }
.bn-map-hub .marker-sheet-extra {
    font-size: 13px; color: var(--bn-color-text-strong); line-height: 1.5;
}
.bn-map-hub .marker-sheet-extra .meta-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.bn-map-hub .marker-sheet-extra .meta-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    border-radius: var(--bn-radius-pill);
    background: #f3f4f6;
    color: var(--bn-color-surface-dark);
    font-size: 11px; font-weight: 600;
}
.bn-map-hub .marker-sheet-extra .meta-pill svg { width: 12px; height: 12px; }
@media (max-width: 768px) {
    .bn-map-hub .bn-marker-sheet { display: block; }
    /* En mobile suprimimos popups nativos de Leaflet — usamos bn-marker-sheet */
    .bn-map-hub .leaflet-popup-pane { display: none !important; }
}

/* ─── Toggle Lista/Mapa (solo mobile) ───────────────────────── */
.bn-map-hub .bn-mobile-view-toggle {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 900; /* toggle Lista/Mapa al mismo nivel que marker-sheet */
    background: white;
    border-radius: var(--bn-radius-pill);
    padding: 4px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 1px solid #f3f4f6;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-map-hub .bn-mobile-view-toggle button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px var(--bn-space-md);
    font-size: 13px; font-weight: 600;
    color: var(--bn-color-surface-dark);
    background: transparent;
    border: none;
    border-radius: var(--bn-radius-pill);
    cursor: pointer;
    transition: background var(--bn-dur-fast), color var(--bn-dur-fast);
}
.bn-map-hub .bn-mobile-view-toggle button.is-active {
    background: var(--e-global-color-primary);
    color: white;
}
.bn-map-hub .bn-mobile-view-toggle button:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}

/* ─── Chip "Buscar en esta zona" ─────────────────────────────── */
.bn-map-hub .bn-research-chip {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 850; /* research-chip — sobre cluster pero por debajo de sheets */
    background: white;
    color: var(--bn-color-surface-dark);
    font-size: 12px; font-weight: 600;
    padding: 8px 14px 8px 10px;
    border-radius: var(--bn-radius-pill);
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    border: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0; transform: translate(-50%, -8px); pointer-events: none;
}
.bn-map-hub .bn-research-chip.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.bn-map-hub .bn-research-chip:hover {
    background: var(--bn-color-surface-dark);
    color: white;
}
.bn-map-hub .bn-research-chip:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}

/* ─── Zoom control (Leaflet) al estilo map-mini-btn ─────────── */
.bn-map-hub .leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    display: flex; flex-direction: column; gap: 6px;
}
.bn-map-hub .leaflet-control-zoom a.leaflet-control-zoom-in,
.bn-map-hub .leaflet-control-zoom a.leaflet-control-zoom-out {
    background: white; color: var(--bn-color-surface-dark);
    width: 36px; height: 36px;
    border-radius: var(--bn-radius-pill) !important;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    font-size: 18px; font-weight: 600;
    line-height: 34px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--bn-dur-fast);
}
.bn-map-hub .leaflet-control-zoom a.leaflet-control-zoom-in:hover,
.bn-map-hub .leaflet-control-zoom a.leaflet-control-zoom-out:hover {
    background: var(--bn-color-surface-dark); color: white;
}
.bn-map-hub .leaflet-control-zoom a.leaflet-control-zoom-in:focus-visible,
.bn-map-hub .leaflet-control-zoom a.leaflet-control-zoom-out:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}
.bn-map-hub .leaflet-control-zoom a.leaflet-disabled {
    opacity: 0.4; pointer-events: none;
}
.bn-map-hub .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255,255,255,0.85) !important;
    border-radius: 6px 0 0 0;
    padding: 2px 6px !important;
}

/* ─── Layout principal: app-shell + map-card + sidebar + map area ── */
/* Altura: la pone el control responsivo de Elementor; fallback razonable. */
.bn-map-hub .bn-app-shell {
    position: relative;
    height: 80dvh;
    min-height: 500px;
    padding: var(--bn-space-md);
}
.bn-map-hub .bn-map-card {
    position: relative;
    height: 100%;
    display: flex;
    border-radius: 28px;
    border: 4px solid white;
    box-shadow: var(--bn-shadow-lg);
    overflow: hidden;
    background: white;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-map-hub .bn-map-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid #f3f4f6;
    display: flex; flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-map-hub .bn-map-area {
    flex: 1;
    height: 100%; /* defensivo: forzar full height aunque flex/align-items no estire */
    position: relative;
    background: #f3f4f6;
}
.bn-map-hub .bn-main-map {
    position: absolute;
    inset: 0;
    background: #f3f4f6;
}
.bn-map-hub .bn-map-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 850; /* toolbar (capas/share/fullscreen) — sobre Leaflet panes, debajo del navbar */
    display: flex;
    gap: 6px;
}

/* ─── Sidebar responsive (mobile = bottom-sheet) ────────────── */
/* Se activa cuando el viewport es estrecho (<=768px) O cuando el widget en sí
   está en una columna estrecha (la clase .bn-is-narrow la pone bn-map-hub.js). */
@media (max-width: 768px) {
    .bn-map-hub .bn-app-shell { padding: 0 !important; gap: 0 !important; }
    .bn-map-hub .bn-map-sidebar {
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.14) !important;
        position: absolute;
        top: auto;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        height: 50vh; height: 50dvh;
        max-height: 50dvh;
        border-right: none;
        z-index: 850;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(0); /* explícito: estado abierto */
    }
    .bn-map-hub .bn-map-card {
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    .bn-map-hub .bn-mobile-view-toggle { display: inline-flex; }
    .bn-map-hub .bn-map-sidebar.is-closed { transform: translateY(100%); }
    .bn-map-hub .bn-place-list { flex: 0 0 auto; overflow: visible; }
    body.bn-sidebar-open .bn-map-hub .bn-mobile-view-toggle { bottom: calc(50dvh + 12px); }
    body.bn-marker-sheet-open .bn-map-hub .bn-mobile-view-toggle { bottom: calc(360px + 12px); }
    body.bn-marker-sheet-open:has(.bn-marker-sheet.is-expanded) .bn-map-hub .bn-mobile-view-toggle { bottom: calc(75dvh + 12px); }
}
/* Misma regla pero por ancho del WIDGET (cuando el widget vive en una columna
   estrecha aunque el viewport sea ancho). Duplicado intencional: un selector
   compuesto :is(@media, .bn-is-narrow) no existe, así que escribimos las reglas
   con el prefijo .bn-is-narrow. */
.bn-map-hub.bn-is-narrow .bn-app-shell { padding: 0 !important; gap: 0 !important; }
.bn-map-hub.bn-is-narrow .bn-map-sidebar {
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.14) !important;
    position: absolute;
    top: auto;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    height: 50vh; height: 50dvh;
    max-height: 50dvh;
    border-right: none;
    z-index: 850;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(0); /* explícito: estado abierto */
}
.bn-map-hub.bn-is-narrow .bn-map-card {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.bn-map-hub.bn-is-narrow .bn-mobile-view-toggle { display: inline-flex; }
.bn-map-hub.bn-is-narrow .bn-map-sidebar.is-closed { transform: translateY(100%); }
.bn-map-hub.bn-is-narrow .bn-place-list { flex: 0 0 auto; overflow: visible; }
body.bn-sidebar-open .bn-map-hub.bn-is-narrow .bn-mobile-view-toggle { bottom: calc(50dvh + 12px); }
body.bn-marker-sheet-open .bn-map-hub.bn-is-narrow .bn-mobile-view-toggle { bottom: calc(360px + 12px); }
body.bn-marker-sheet-open:has(.bn-marker-sheet.is-expanded) .bn-map-hub.bn-is-narrow .bn-mobile-view-toggle { bottom: calc(75dvh + 12px); }

/* ─── Pantalla completa: el card del mapa ocupa todo el viewport ── */
.bn-map-hub .bn-map-card:fullscreen,
.bn-map-hub .bn-map-card:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #f3f4f6;
    animation: bn-fs-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bn-map-hub .bn-map-card:fullscreen .bn-main-map,
.bn-map-hub .bn-map-card:-webkit-full-screen .bn-main-map { border-radius: 0 !important; }
@keyframes bn-fs-enter {
    0% {
        transform: scale(0.96);
        opacity: 0.5;
        filter: blur(6px) brightness(1.05);
    }
    60% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}
.bn-map-hub .bn-map-card:fullscreen::before,
.bn-map-hub .bn-map-card:-webkit-full-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%);
    pointer-events: none;
    z-index: 950; /* sweep dentro del card en fullscreen — no compite con navbar */
    animation: bn-fs-sweep 0.7s ease-out 0.1s both;
}
@keyframes bn-fs-sweep {
    0%   { transform: translateX(-100%); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bn-map-hub *, .bn-map-hub *::before, .bn-map-hub *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .bn-map-hub .pin-marker:hover,
    .bn-map-hub .pin-marker.is-hover { transform: none !important; }
    .bn-map-hub .user-marker,
    .bn-map-hub .user-marker::before { animation: none !important; }
}

/* ─── Skip link (accesibilidad teclado) — sr-only hasta recibir focus ── */
.bn-map-hub .skip-link {
    position: absolute;
    top: 0; left: 0;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.bn-map-hub .skip-link:focus {
    width: auto; height: auto;
    margin: 0; padding: 8px var(--bn-space-md);
    clip: auto;
    background: var(--e-global-color-primary);
    color: white;
    font-weight: 600;
    z-index: 950; /* skip-link enfocado — debajo del navbar (1000) */
    border-radius: 0 0 6px 0;
    text-decoration: none;
}
