
/* Contenedor del mapa con estilo moderno */
.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-top: 1.5rem;
    background-color: #ffffff; /* Fondo blanco para mejor contraste */
}

/* Altura y ancho para el mapa */
#map {
    height: calc(60vh - 100px); /* Usa el 60% de la altura viewport menos espacio para header/footer */
    width: 100%;
    min-height: 300px; /* Altura mínima para pantallas pequeñas */
}


/* Estilo para título principal */
h1.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0a3d62;
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Estilo para el select filtro */
select#filtroCategoria {
    font-size: 1rem;
    border-radius: 2rem;
    padding: 0.6rem 1.25rem;
    border: 1.5px solid #0a3d62;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    width: 100%;
}

/* Efecto hover y foco para el select filtro */
select#filtroCategoria:hover,
select#filtroCategoria:focus {
    border-color: #063b83;
    box-shadow: 0 4px 12px rgba(6, 59, 131, 0.3);
    outline: none;
}

/* Estilo para el modal (fondo) */
.custom-modal-bg {
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

/* Ajuste para mejor visibilidad en pantallas móviles */
@media (max-width: 576px) {
    h1.page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    select#filtroCategoria {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        max-width: 100%;
    }

    #map {
        height: 350px;
    }
}

/* ============================== */
/* Estilos Generales del Mapa    */
/* ============================== */

/* Contenedor visual del mapa */
.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-top: 1.5rem;
    background-color: #ffffff;
}

/* Mapa */
#map {
    height: calc(60vh - 100px);
    width: 100%;
    min-height: 300px;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================== */
/* Título Principal               */
/* ============================== */
h1.page-title,
h1.text-center.fw-bold.text-primary {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0a3d62;
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: 0.05em;
}

/* ============================== */
/* Select de filtro               */
/* ============================== */
select#filtroCategoria {
    font-size: 1rem;
    border-radius: 2rem;
    padding: 0.6rem 1.25rem;
    border: 1.5px solid #0a3d62;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    width: 100%;
}

select#filtroCategoria:hover,
select#filtroCategoria:focus {
    border-color: #063b83;
    box-shadow: 0 4px 12px rgba(6, 59, 131, 0.3);
    outline: none;
}

/* ============================== */
/* Leyenda de Iconos             */
/* ============================== */
.legend-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease;
    padding: 0.3rem;
    border-radius: 0.5rem;
}

.legend-item img {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
}

.legend-item:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.legend-item.active {
    background-color: #dbeafe;
    border: 1px solid #60a5fa;
}

/* ============================== */
/* Modal                          */
/* ============================== */
.custom-modal-bg {
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

/* ============================== */
/* Responsive                    */
/* ============================== */
@media (max-width: 576px) {
    h1.page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    select#filtroCategoria {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        max-width: 100%;
    }

    #map {
        height: 350px;
    }
}
