
/* =====================================================
   EBO - CARTE INTERACTIVE DES CLUBS
===================================================== */

.ebo-clubs-map-wrapper {
    width: 100%;
    position: relative;
}


/* =====================================================
   CONTRÔLES
===================================================== */

.ebo-clubs-controls {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ebo-clubs-controls label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.ebo-clubs-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.ebo-clubs-search-input {
    position: relative;
}

.ebo-clubs-city-input,
.ebo-clubs-distance-select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--bleu-light);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.ebo-clubs-city-input:focus,
.ebo-clubs-distance-select:focus {
    outline: none;
    border-color: var(--bleu-clair);
    box-shadow: 0 0 0 2px rgba(40, 120, 181, 0.12);
}

.ebo-clubs-distance {
    width: 150px;
}


/* =====================================================
   AUTOCOMPLÉTION
===================================================== */

.ebo-clubs-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d8dce2;
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.ebo-clubs-suggestions.is-visible {
    display: block;
}

.ebo-clubs-suggestion {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.ebo-clubs-suggestion:last-child {
    border-bottom: 0;
}

.ebo-clubs-suggestion:hover,
.ebo-clubs-suggestion:focus {
    background: #f3f6f9;
}


/* =====================================================
   BOUTON RÉINITIALISER
===================================================== */

.ebo-clubs-reset {
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--bleu-clair);
    border-radius: 6px;
    background: #fff;
    color: var(--bleu-fonce);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ebo-clubs-reset:hover {
    background: var(--bleu-light);
    border: 1px solid var(--bleu-clair);
}


/* =====================================================
   NOMBRE DE RÉSULTATS
===================================================== */

.ebo-clubs-results {
    font-size: .9rem;
    padding: 6px 15px;
    border-radius: 3px;
    background: var(--bleu-light);
    margin: 12px 0;
}


/* =====================================================
   CARTE
===================================================== */

.ebo-clubs-map {
    width: 100%;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f4;
    z-index: 1;
}


/* =====================================================
   Clusters
===================================================== */

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(36, 86, 166, 0.25);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--bleu-clair);
    color: #fff;
    font-weight: 600;
}


/* =====================================================
   POPUP DES CLUBS
===================================================== */

.ebo-club-popup {
    min-width: 170px;
}

.ebo-club-popup strong {
    display: block;
    font-size: 15px;
    margin-bottom: 7px;
}

.ebo-club-popup p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
}

.ebo-club-popup-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bleu-clair);
    text-decoration: none;
}

.ebo-club-popup-link:hover {
    text-decoration: underline;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .ebo-clubs-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ebo-clubs-search {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .ebo-clubs-distance {
        width: 100%;
    }

    .ebo-clubs-reset {
        width: 100%;
    }

    .ebo-clubs-map {
        min-height: 350px;
    }

}
