/* ===== ESTILOS PARA EL MAPA PERSONALIZADO ===== */
/* Contenedor principal - mantiene tus estilos */
.mapa-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;

    /* AÑADIDO: Necesario para el overlay */
    overflow: hidden;

    /* AÑADIDO: Para que el overlay no se desborde */
}

/* Iframe - mantiene tus estilos y añade los nuevos */
.mapa-fullwidth iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
    pointer-events: none;

    /* AÑADIDO: Desactiva la interacción por defecto */
    transition: border 0.3s ease, filter 0.3s ease;

    /* AÑADIDO: Transición suave */
}

/* ===== NUEVOS ESTILOS PARA EL OVERLAY ===== */
/* Overlay que cubre el mapa */
.mapa-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;

    /* Permite que los clics pasen al contenedor */
    z-index: 10;
    text-align: center;
    transition: opacity 0.3s ease;
    user-select: none;

    /* Evita que se seleccione el texto */
}

/* Mensaje del overlay */
.mapa-mensaje {
    font-size: 16px;
    color: #333;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

/* ===== ESTADOS DEL MAPA ===== */
/* Mapa activado (con interacción) */
.mapa-fullwidth.activo iframe {
    pointer-events: auto;

    /* Se activa la interacción */
}

/* Feedback visual cuando está activo (borde verde) */
.mapa-fullwidth.activado iframe {
    border: 3px solid #4CAF50 !important;
}

/* Overlay oculto */
.mapa-overlay.oculto {
    opacity: 0;
    pointer-events: none;
}

/* ===== RESPONSIVE - Mantiene tus media queries ===== */
@media (max-width: 600px) {
    .mapa-fullwidth iframe {
        height: 350px;
    }

    .mapa-mensaje {
        font-size: 14px;
    }

    .mapa-overlay {
        padding: 12px 20px;
    }
}

/* Extra: para móviles muy pequeños */
@media (max-width: 400px) {
    .mapa-fullwidth iframe {
        height: 280px;
    }

    .mapa-mensaje {
        font-size: 12px;
    }

    .mapa-overlay {
        padding: 10px 15px;
        max-width: 90%;
    }
}