#map {
    height: 600px;
    width: 100%;
    border-radius: 0.5rem;
}

.legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.legend-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.legend-icon {
    width: 25px;
    height: 41px;
    margin-right: 10px;
}

.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
    padding: 0;
    min-width: 280px;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.custom-popup .leaflet-popup-tip {
    display: none;
}

.popup-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.popup-body {
    padding: 15px;
}

.popup-row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popup-label {
    font-size: 11px;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: block;
}

.popup-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
    display: block;
}

.popup-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-coordinates {
    font-size: 11px;
    color: #6c757d;
}

.leaflet-container a.leaflet-popup-close-button {
    color: white;
    top: 10px;
    right: 6px;
}