/**
 * Estilos para el plugin Rutas Mapas QR
 */

/* Contenedor principal del mapa */
.rutas-mapas-container {
    margin: 20px 0;
    position: relative;
}

/* Elemento del mapa */
.rutas-mapa {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.rutas-mapa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f5f5f5;
}

.rutas-mapa-loading p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.rutas-mapa-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border: 3px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: rutas-mapa-spin 0.8s linear infinite;
}

@keyframes rutas-mapa-spin {
    to { transform: rotate(360deg); }
}

/* Mensajes de error */
.rutas-mapas-error,
.rutas-mapa-error {
    background: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

.rutas-mapas-error strong,
.rutas-mapa-error strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* InfoWindow personalizada */
.ruta-info,
.punto-info {
    max-width: 300px;
    padding: 10px;
}

.ruta-info h3,
.punto-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.ruta-info p,
.punto-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
    .rutas-mapa {
        height: 400px !important;
    }
}

/* Controles del mapa de Google Maps */
.gm-style .gm-style-iw-c {
    border-radius: 8px !important;
    padding: 12px !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 480px) {
    .rutas-mapa {
        height: 350px !important;
    }

    .ruta-info,
    .punto-info {
        max-width: 250px;
    }
}
