.geojson-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    width: auto !important;
}

.geojson-popup {
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    width: 420px;
}

.geojson-popup h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.geojson-popup p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.geojson-popup p:last-child {
    margin-bottom: 0;
}

.geojson-popup strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Status Badges in Popup */
.geojson-popup .status-terminado {
    display: inline-block;
    padding: 2px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
}

.geojson-popup .status-en-alistamiento {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
}

.geojson-popup .status-en-ejecución {
    display: inline-block;
    padding: 2px 8px;
    background: #cce5ff;
    color: #004085;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
}

/* Leaflet Controls */
.leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.leaflet-control-zoom a {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.leaflet-control-zoom a:hover {
    background-color: #f4f4f4;
}

/* Custom Marker Styles */
.leaflet-marker-icon {
    border-radius: 50%;
}

/* Popup Close Button */
.leaflet-popup-close-button {
    color: #666 !important;
    font-size: 20px !important;
    padding: 4px 8px 0 0 !important;
}

.leaflet-popup-close-button:hover {
    color: #333 !important;
}

/* Responsive Map */
@media (max-width: 768px) {
    .geojson-popup h3 {
        font-size: 14px;
    }

    .geojson-popup p {
        font-size: 13px;
    }

    .leaflet-popup-content-wrapper {
        width: 250px !important;
    }
}

/* Loading State */
.geojson-map.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}