* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Navbar */
.navbar {
    background-color: #0d0d1a;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contenedor principal */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #0d0d1a;
    color: white;
    padding: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 900;
}

.sidebar h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4a6278;
}

.filter-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-category label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-category label:hover {
    background-color: #4a6278;
}

.filter-category input {
    margin-right: 0.75rem;
}

.filter-category .icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Mapa */
#map {
    flex: 1;
    height: calc(100vh - 60px);
    z-index: 1;
}

/* Estilos responsivos */
/* Estilos para el sidebar en móviles */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 80px;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        width: 280px; /* Mismo ancho que en desktop */
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    #map {
        margin-left: 0;
        width: 100%;
    }
    
    .navbar-toggle {
        display: flex;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    /* Overlay cuando el sidebar está abierto */
    .sidebar-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}


/* Estilos para los marcadores */
.custom-marker {
    background-color: #e74c3c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    border: 2px solid white;
}

.leaflet-popup-content {
    min-width: 200px;
}

.leaflet-popup-content h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.leaflet-popup-content p {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}
