/**
 * Estilos para Página de Mapas
 * SOS Ayahuasca
 */

.maps-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 600px;
    position: relative;
}

.maps-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.maps-sidebar-content {
    padding: 20px;
}

.maps-sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--verde-mata);
    margin-bottom: 20px;
}

.maps-filters .form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.maps-filters .form-check-label i {
    margin-right: 8px;
    font-size: 0.875rem;
}

.maps-search .form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.maps-legend h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--verde-mata);
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-item i {
    margin-right: 8px;
    font-size: 0.875rem;
}

.maps-stats {
    text-align: center;
    padding-top: 10px;
}

.maps-main {
    flex: 1;
    position: relative;
}

#map {
    border-radius: 0;
}

/* Popup Customizado */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
    min-width: 200px;
}

.map-popup-title {
    font-weight: 600;
    color: var(--verde-mata);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.map-popup-info {
    margin: 5px 0;
    font-size: 0.9rem;
}

.map-popup-info strong {
    color: #555;
    margin-right: 5px;
}

.map-popup-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.map-popup-type.banco {
    background-color: #d4edda;
    color: #155724;
}

.map-popup-type.semeador {
    background-color: #cfe2ff;
    color: #084298;
}

.map-popup-type.cultivador {
    background-color: #fff3cd;
    color: #856404;
}

/* Responsividade */
@media (max-width: 768px) {
    .maps-container {
        flex-direction: column;
        height: auto;
    }
    
    .maps-sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .maps-main {
        height: 500px;
    }
    
    #map {
        min-height: 500px;
    }
}

/* Loading State */
.maps-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

