/* Estilos para el mapa lateral y modal */

.mapa-lateral-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.mapa-lateral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.mapa-lateral-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.expand-map-button {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.expand-map-button:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.mapa-lateral {
    height: 250px;
    width: 100%;
}

.mapa-lateral-info {
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #eee;
}

/* Estilos para el modal del mapa */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow: auto;
}

.map-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.close-map-modal {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-map-modal:hover {
    background-color: rgba(0,0,0,0.1);
}

.map-modal-container {
    height: 70vh;
    width: 100%;
}

/* Clase para el body cuando el modal está activo */
body.modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .mapa-lateral {
        height: 200px;
    }
    
    .map-modal-content {
        width: 95%;
    }
    
    .map-modal-container {
        height: 60vh;
    }
}