/**
 * Map Cluster Styles
 * Purple theme cluster styling for Leaflet.markercluster
 * Simple design similar to Leaflet popup-content-wrapper
 */

/* Override default MarkerCluster styles */
.marker-cluster-custom {
    background: transparent !important;
    border: none !important;
}

/* Cluster container - simple purple theme like Leaflet popups */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large,
.marker-cluster-very-large {
    /* Simple background like leaflet-popup-content-wrapper */
    background-color: rgba(136, 106, 181, 0.8); /* --theme-primary */
    border: 2px solid rgba(136, 106, 181, 1);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Simple shadow like Leaflet popups */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
}

.marker-cluster-small:hover,
.marker-cluster-medium:hover,
.marker-cluster-large:hover,
.marker-cluster-very-large:hover {
    background-color: rgba(136, 106, 181, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Small clusters (1-10 markers) - size controlled by iconSize in JS */
.marker-cluster-small {
    font-size: 12px;
}

/* Medium clusters (11-50 markers) */
.marker-cluster-medium {
    font-size: 14px;
}

/* Large clusters (51-99 markers) */
.marker-cluster-large {
    font-size: 16px;
}

/* Very large clusters (100+ markers) - capped at maximum size */
.marker-cluster-very-large {
    font-size: 18px;
}

/* Cluster div styling - ensure proper centering */
.marker-cluster-custom div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: inherit;
    line-height: 1;
}

/* Ensure cluster containers fill their parent */
.marker-cluster-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marker-cluster-small {
        font-size: 11px;
    }
    
    .marker-cluster-medium {
        font-size: 13px;
    }
    
    .marker-cluster-large {
        font-size: 15px;
    }
    
    .marker-cluster-very-large {
        font-size: 17px;
    }
}

