/* Styles spécifiques pour la popup cluster */
.maplibregl-popup.cluster-container .maplibregl-popup-content {
    width: 100% !important;
    height: auto !important;
    min-height: min-content !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}


/* Structure de base du cluster popup */
.cluster-popup {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Header fixe */
.cluster-popup .popup-header {
    flex-shrink: 0;
    background-color: #3498db;
    padding: 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.cluster-popup .popup-header h3 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Contenu scrollable */
.cluster-popup .popup-content {
    flex: 1;
    overflow-y: auto;
    background: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.cluster-popup .species-list {
    padding: 8px;
}

/* Style des items - retour au minimaliste */
.cluster-popup .species-count {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.cluster-popup .species-count:last-child {
    margin-bottom: 0;
}

.cluster-popup .species-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.cluster-popup .species-name {
    flex-grow: 1;
    font-size: 14px;
    color: #4a5568;
}

.cluster-popup .species-stats {
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
    text-align: left;
    margin-left: auto;
    padding-left: 8px;
}

.cluster-popup .occupied-count {
    color: #e6a700;
    cursor: help;
}

.cluster-popup .occupation-star {
    color: #ffd700;
}