/* Estilos para Google Maps */
#mapa-ubicaciones {
    min-height: 600px !important;
    height: 600px !important;
    width: 100% !important;
    z-index: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Estilos para el contenedor del mapa */
.mapa-container {
    width: 100% !important;
    height: 600px !important;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
}

/* Asegurar que Google Maps tenga el tamaño correcto */
.gm-style {
    height: 600px !important;
    width: 100% !important;
}

/* Personalización de controles de Google Maps */
.gm-style-cc {
    display: none !important; /* Ocultar algunos elementos de copyright si es necesario */
}

/* Estilos para marcadores personalizados */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Estilos para ventanas de información */
.gm-style-iw {
    border-radius: 8px !important;
}

.gm-style-iw-d {
    padding: 8px !important;
}

/* Loading placeholder */
.mapa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #1976d2;
    font-family: 'Roboto', sans-serif;
}

.mapa-loading-content {
    text-align: center;
    opacity: 0.7;
}

.mapa-loading-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* Estilos para botones de control */
.mapa-controls {
    margin: 16px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.mapa-control-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mapa-control-primary {
    background-color: #1976d2;
    color: white;
}

.mapa-control-primary:hover {
    background-color: #1565c0;
}

.mapa-control-secondary {
    background-color: #757575;
    color: white;
}

.mapa-control-secondary:hover {
    background-color: #616161;
}

/* Responsive design */
@media (max-width: 768px) {
    #mapa-ubicaciones {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .gm-style {
        height: 400px !important;
    }
    
    .mapa-container {
        height: 400px !important;
    }
    
    .mapa-loading {
        height: 400px;
    }
}

/* Diagnóstico visual - solo para debug */
.mapa-debug {
    border: 2px solid red !important;
    background-color: yellow !important;
}

/* Asegurar que los elementos de Google Maps sean accesibles */
.gm-style button {
    outline: none;
}

.gm-style button:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Mejorar contraste de texto en ventanas de información */
.gm-style-iw-c {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gm-style-iw-tc {
    background-color: white;
}