/* =================================================================== */
/* ESTILOS PARA LA PÁGINA DE LOGIN                                     */
/* =================================================================== */
body.login-page {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.card-panel {
    padding: 24px;
}

/* =================================================================== */
/* ESTILOS PARA EL PANEL DE VISITAS                                    */
/* =================================================================== */
main.container {
    margin-top: 20px;
}

.collection-compact .collection-item.avatar {
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
}

.collection-compact .collection-item.avatar .title,
.collection-compact .collection-item.avatar p {
    font-size: 0.8rem;
    line-height: 1.1;
    padding-left: 10px;
}

.collection-compact .collection-item:not(.visitado) .title {
    color: #1B5E20; /* Verde oscuro */
    font-weight: 500;
}

.collection-compact .collection-item:not(.visitado) p {
    color: #0D47A1; /* Azul oscuro */
}

.collection-item.visitado {
    background-color: #fafafa;
    color: #757575;
}

.collection-item.avatar .circle {
    left: 15px;
}

/* =================================================================== */
/* ESTILOS PARA LOS MAPAS                                              */
/* =================================================================== */

/* Contenedor para el mapa en la página de Estadísticas */
.map-container {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}

/* Contenedor para los mapas de página completa (Obras y Visitas Admin) */
.map-wrapper {
    position: absolute;
    top: 56px; /* Altura del header en móvil */
    bottom: 0;
    left: 0;
    width: 100%;
}

@media (min-width: 601px) {
    .map-wrapper {
        top: 64px; /* Altura del header en escritorio */
    }
}

/* Mapa dentro del wrapper de página completa */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

/* Panel de detalles para el mapa de obras */
#obra-details-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#obra-details-panel.visible {
    transform: translateY(0);
}

#obra-close-btn {
    cursor: pointer;
}

/* --- Marcadores Personalizados --- */
.custom-div-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    width: 35px;
    height: 35px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    border: 2px solid white;
}

.marker-green { background-color: #4CAF50; }
.marker-orange { background-color: #FF9800; }
.marker-blue { background-color: #2196F3; }
.marker-red { background-color: #F44336; }
.marker-yellow { background-color: #FFC107; }
.marker-black { background-color: #212121; }
.marker-purple { background-color: #9c27b0; }
.marker-default { background-color: #673ab7; }

/* =================================================================== */
/* ESTILOS PARA LA NAVEGACIÓN Y OTROS COMPONENTES                      */
/* =================================================================== */
nav {
    background-color: #13a862 !important;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-wrapper #search-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nav-wrapper #search-form .input-field {
    margin: 0;
    height: 100%;
}

.nav-wrapper #search-form input[type=search] {
    height: 100%;
    margin: 0;
    padding-left: 45px !important;
    border-bottom: none;
    box-shadow: none !important;
}

.nav-wrapper.search-active .nav-content-normal,
.nav-wrapper.search-active .sidenav-trigger {
    display: none;
}