/* ── Map Marker Styles (Screen) ──
   Moved from mapa.js IIFE to static CSS to survive Blazor Enhanced Navigation
   after language changes (forceLoad: true).
   Screen uses purple (#7B2D8E) and blue (#2563EB) accent colors.
*/

/* Marker animations (only ~150 DOM markers use these) */
@keyframes markerPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
@keyframes markerGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 14px rgba(255,255,255,0.4); }
}

/* Marker base */
.custom-marker { background: transparent !important; border: none !important; }
.mp-marker { border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s ease; position: relative; animation: markerGlow 3s ease-in-out infinite; }
.mp-marker:hover { transform: scale(1.3) !important; z-index: 1000 !important; }
.mp-marker-dot { width: 5px; height: 5px; background: white; border-radius: 50%; box-shadow: 0 0 4px rgba(255,255,255,0.8); position: relative; z-index: 2; }
.mp-marker-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid; animation: markerPulse 2.5s ease-out infinite; pointer-events: none; }

/* Leaflet popup overrides */
.mp-leaflet-popup .leaflet-popup-content-wrapper { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04); overflow: hidden; padding: 0; }
.mp-leaflet-popup .leaflet-popup-content { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; }
.mp-leaflet-popup .leaflet-popup-tip { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); border-top: none; border-left: none; }
.mp-leaflet-popup .leaflet-popup-close-button { color: rgba(255,255,255,0.5) !important; font-size: 20px !important; right: 8px !important; top: 6px !important; width: 24px !important; height: 24px !important; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10; }
.mp-leaflet-popup .leaflet-popup-close-button:hover { color: #ff3d71 !important; }

/* Status popup (Ficha Solicitada) */
.mp-leaflet-status .leaflet-popup-content-wrapper { background: linear-gradient(135deg, #1a1a2e, #1e2a3a); border-color: rgba(123,45,142,0.3); }
.mp-status-popup { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.mp-status-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, rgba(123,45,142,0.2), rgba(37,99,235,0.1)); display: flex; align-items: center; justify-content: center; color: #7B2D8E; flex-shrink: 0; }
.mp-status-popup span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }

/* Popup card content */
.mp-popup-header-title { padding: 10px 14px; font-size: 13px; font-weight: 700; color: #7B2D8E; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(123,45,142,0.05); }
.mp-popup { overflow: hidden; }
.mp-popup-img { position: relative; overflow: hidden; max-height: 200px; background: #111; }
.mp-popup-img img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.mp-popup-img:hover img { transform: scale(1.05); }
.mp-popup-body { padding: 12px 14px; }
.mp-popup-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.95); margin-bottom: 4px; }
.mp-popup-tag { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.mp-popup-dir { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 8px; line-height: 1.3; }
.mp-popup-action { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #2563EB; padding: 5px 10px; background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.15); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.mp-popup-action:hover { background: rgba(37,99,235,0.15); }

/* Scroll hint toast (bottom-left corner) */
.mapa-scroll-overlay { position: absolute; bottom: 12px; left: 12px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.mapa-scroll-overlay.visible { opacity: 1; }
.mapa-scroll-overlay span { color: white; font-size: 12px; font-weight: 500; padding: 6px 14px; background: rgba(0,0,0,0.75); border-radius: 6px; white-space: nowrap; }
