/**
 * Estilos para o módulo de mapa
 */

.isp-tools-map-container {
    position: relative;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.isp-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 500;
    color: #555;
    backdrop-filter: blur(2px);
}

.isp-map-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.probe-info {
    max-width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.probe-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}

.probe-info p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.4;
}

.probe-info strong {
    color: #333;
    font-weight: 600;
}

/* Estilos para marcadores customizados se necessário */
.custom-marker {
    background-color: #2271b1;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Estilos para cache info (se adicionado no futuro) */
.isp-map-cache-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    z-index: 400;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Performance optimizations */
.leaflet-container {
    will-change: transform;
}

.leaflet-marker-icon {
    will-change: transform;
}

/* Loading progress bar */
.isp-map-progress {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #666;
    backdrop-filter: blur(3px);
}

.isp-map-progress-bar {
    width: 200px;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.isp-map-progress-fill {
    height: 100%;
    background-color: #2271b1;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Optimized marker cluster styles */
.marker-cluster {
    will-change: transform;
}

/* Responsividade */
@media (max-width: 768px) {
    .isp-tools-map-container {
        margin: 15px 0;
    }
    
    .probe-info {
        max-width: 200px;
    }
    
    .probe-info h4 {
        font-size: 14px;
    }
    
    .probe-info p {
        font-size: 12px;
    }
}
