.umm-map-wrapper {
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
}

.umm-map {
    width: 100%;
    min-height: 400px;
    z-index: 1;
}

/* Barre de recherche */
.umm-map-search {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.umm-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.umm-search-input:focus {
    border-color: #4a90d9;
}

/* Legende */
.umm-map-legend {
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* Popup des membres */
.umm-popup {
    min-width: 240px;
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.umm-popup-header {
    padding: 8px 0 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.umm-popup-header h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.umm-popup-header .umm-popup-location {
    font-size: 12px;
    color: #64748b;
}

.umm-popup-members {
    list-style: none;
    margin: 0;
    padding: 0;
}

.umm-popup-member {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.umm-popup-member:last-child {
    border-bottom: none;
}

.umm-member-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin: 0 0 4px;
}

.umm-member-details {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.umm-member-details a {
    color: #4a90d9;
    text-decoration: none;
}

.umm-member-details a:hover {
    text-decoration: underline;
}

.umm-reveal-email {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.umm-reveal-email:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #94a3b8;
}

.umm-email-revealed {
    color: #1e293b;
    font-weight: 500;
}

/* Compteur dans le cluster */
.marker-cluster-small {
    background-color: rgba(74, 144, 217, 0.2) !important;
}
.marker-cluster-small div {
    background-color: rgba(74, 144, 217, 0.7) !important;
    color: #fff !important;
    font-weight: 600;
}

.marker-cluster-medium {
    background-color: rgba(241, 196, 15, 0.2) !important;
}
.marker-cluster-medium div {
    background-color: rgba(241, 196, 15, 0.8) !important;
    color: #fff !important;
    font-weight: 600;
}

.marker-cluster-large {
    background-color: rgba(231, 76, 60, 0.2) !important;
}
.marker-cluster-large div {
    background-color: rgba(231, 76, 60, 0.7) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Scroll dans le popup si beaucoup de membres */
.umm-popup-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.umm-popup-scroll::-webkit-scrollbar {
    width: 4px;
}

.umm-popup-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Marqueur personnalise */
.umm-custom-marker {
    background: #4a90d9;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    width: 14px !important;
    height: 14px !important;
}

/* Multi-membres dans la meme ville */
.umm-multi-marker {
    background: #e67e22;
}

/* Responsive */
@media (max-width: 600px) {
    .umm-popup {
        min-width: 200px;
        max-width: 260px;
    }

    .umm-search-input {
        font-size: 16px; /* evite le zoom sur iOS */
    }
}
