/**
 * Page Map - Explorador Global Styles
 * Estilos para la página de mapa interactivo en pantalla completa
 */

/* ==============================================
   MAPA FULLSCREEN
   ============================================== */
.map-fullscreen {
    padding: 0 !important;
    margin: 0 !important;
    background: #0a0f1c;
}

.map-fullscreen .map-header {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-fullscreen .map-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Lora', Georgia, serif;
}

.map-fullscreen .map-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.map-fullscreen .map-container {
    padding: 0;
    position: relative;
}

.map-fullscreen #geopolitical-map-full {
    height: calc(100vh - 180px);
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

/* ==============================================
   PERSONALIZACIÓN DE LEAFLET PARA ESTA PÁGINA
   ============================================== */
.map-fullscreen .leaflet-container {
    background: #1a1f2e;
}

.map-fullscreen .leaflet-tile-pane {
    filter: brightness(0.9) contrast(1.1);
}

/* Marcadores personalizados */
.map-fullscreen .custom-region-marker div {
    transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    cursor: pointer;
}

.map-fullscreen .custom-region-marker:hover div {
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px rgba(191, 155, 92, 0.8));
}

/* Popup personalizado */
.map-fullscreen .leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
    overflow: hidden;
}

.map-fullscreen .leaflet-popup-content {
    margin: 0 !important;
    min-width: 240px;
}

.map-fullscreen .leaflet-popup-content .btn {
    font-size: 0.85rem;
    padding: 6px 16px;
}

/* Controles de zoom mejorados */
.map-fullscreen .leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    border-radius: 12px !important;
    margin: 6px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    transition: all 0.2s ease;
    font-weight: bold;
}

.map-fullscreen .leaflet-control-zoom a:hover {
    background: #bf9b5c !important;
    color: white !important;
}

/* Escala */
.map-fullscreen .leaflet-control-scale {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 0.8rem;
    bottom: 20px;
    left: 20px;
}

/* Tooltip personalizado */
.map-fullscreen .leaflet-tooltip.custom-tooltip {
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    letter-spacing: 0.3px;
}

.map-fullscreen .leaflet-tooltip.custom-tooltip:before {
    border-top-color: rgba(10, 15, 28, 0.92);
}

/* Animación de entrada para los marcadores */
@keyframes markerPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.map-fullscreen .custom-region-marker div {
    animation: markerPop 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

/* Leyenda del mapa */
.map-fullscreen .map-legend {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Inter', sans-serif;
    min-width: 160px;
}

.map-fullscreen .map-legend h6 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a0f1c;
    border-bottom: 2px solid #bf9b5c;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.map-fullscreen .map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.map-fullscreen .map-legend .legend-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.map-fullscreen .map-legend .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.map-fullscreen .map-legend .legend-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 992px) {
    .map-fullscreen .map-header {
        padding: 2rem 0;
    }
    
    .map-fullscreen .map-header h1 {
        font-size: 2rem;
    }
    
    .map-fullscreen #geopolitical-map-full {
        height: calc(100vh - 160px);
    }
}

@media (max-width: 768px) {
    .map-fullscreen .map-header h1 {
        font-size: 1.5rem;
    }
    
    .map-fullscreen .map-header p {
        font-size: 0.9rem;
    }
    
    .map-fullscreen #geopolitical-map-full {
        height: calc(100vh - 140px);
    }
    
    .map-fullscreen .map-legend {
        padding: 10px 12px;
        min-width: 130px;
    }
    
    .map-fullscreen .map-legend .legend-item span {
        font-size: 0.7rem;
    }
}