.afena_annuaire {
    width: 100%;
    display: flex;
    gap: 20px;
}

.afena_annuaire_left {
    width: 55%;
}

.afena_annuaire_right {
    width: 45%;
}

.afena_annuaire_map_wrapper {
    position: sticky;
    top: 20px;
    height: 600px;
    background-color: #E0E0E0;
}

.afena_annuaire_map {
    height: 100%;
    transition: opacity 0.2s;
}

.afena_annuaire_map_wrapper.afena_annuaire_loading .afena_annuaire_map {
    opacity: 0.4;
}

.afena_annuaire_map_wrapper.afena_annuaire_loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #E0E0E0;
    border-top-color: var( --e-global-color-accent );
    border-radius: 50%;
    animation: afena_annuaire_spin 0.8s linear infinite;
}

.afena_annuaire_map .gm-style .gm-style-iw-c {
    padding: 12px 16px;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.afena_annuaire_map .gm-style .gm-style-iw-d {
    overflow: hidden;
}

.afena_annuaire_infowindow_title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000CF;
}

.afena_annuaire_infowindow_item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.afena_annuaire_infowindow_structure {
    font-size: 12px;
    line-height: 1.3;
    color: var( --e-global-color-secondary );
    opacity: 0.8;
}

.afena_annuaire_infowindow_profession,
.afena_annuaire_infowindow_address {
    font-size: 13px;
    line-height: 1.3;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_infowindow_recours {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.afena_annuaire_infowindow_recours_item {
    padding: 2px 8px;
    font-size: 12px;
    color: var( --e-global-color-secondary );
    background-color: #e9e9ed;
    border-radius: 100px;
}

.afena_annuaire_infowindow_link {
    margin-top: 5px;
    font-size: 13px;
    color: #000000CF;
    text-decoration: underline;
}

.afena_annuaire_infowindow_link:hover {
    color: var( --e-global-color-accent );
}

.afena_annuaire_infowindow {
    max-height: 240px;
    overflow-y: auto;
}

.afena_annuaire_infowindow_heading {
    margin-bottom: 8px;
    font-size: 13px;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_infowindow_item + .afena_annuaire_infowindow_item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9e9ed;
}

.afena_annuaire_select,
.afena_annuaire_input {
	color: var( --e-global-color-secondary );
	border-style: none;
	border-radius: 3px 3px 3px 3px;
	padding: 10px 15px;
}

.afena_annuaire_filters_row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.afena_annuaire_select {
    appearance: none;
    padding-right: 30px;
    background-color: #e9e9ed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.afena_annuaire_multiselect {
    position: relative;
    width: 50%;
}

.afena_annuaire_multiselect_toggle {
    width: 100%;
    overflow: hidden;
    font: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.afena_annuaire_multiselect_active {
    color: #000000CF;
}

.afena_annuaire_multiselect_panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 300px;
    margin-top: 4px;
    padding: 5px 0;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.afena_annuaire_multiselect_panel[hidden] {
    display: none;
}

.afena_annuaire_multiselect_option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 15px;
    font-size: 14px;
    color: var( --e-global-color-secondary );
    cursor: pointer;
}

.afena_annuaire_multiselect_option:hover {
    background-color: #e9e9ed;
}

.afena_annuaire_multiselect_option input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var( --e-global-color-accent );
    cursor: pointer;
}

.afena_annuaire_filters_row select[name="rayon"] {
    width: 30%;
}

.afena_annuaire_filters_row select[name="rayon"][hidden] {
    display: none;
}

.afena_annuaire_localisation {
    position: relative;
    flex: 1;
}

.afena_annuaire_filters_row input[name="localisation"] {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-right: 35px;
    background-color: #e9e9ed;
}

.afena_annuaire_clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1l-8 8' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.afena_annuaire_clear:hover {
    background-color: #d8d8dc;
}

.afena_annuaire_clear[hidden] {
    display: none;
}

.afena_annuaire_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 280px;
    margin: 4px 0 0;
    padding: 5px 0;
    overflow-y: auto;
    list-style: none;
    background-color: #ffffff;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.afena_annuaire_suggestions[hidden] {
    display: none;
}

.afena_annuaire_suggestions_item,
.afena_annuaire_suggestions_empty {
    padding: 8px 15px;
    font-size: 14px;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_suggestions_item {
    cursor: pointer;
}

.afena_annuaire_suggestions_active {
    background-color: #e9e9ed;
}

.afena_annuaire_filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.afena_annuaire_results {
    margin-top: 20px;
}

.afena_annuaire_results_legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_legend_item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.afena_annuaire_legend_item::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: var( --afena_famille_color );
}

.afena_annuaire_results_list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.afena_annuaire_results_list > *,
.afena_annuaire_results_pagination {
    transition: opacity 0.2s;
}

.afena_annuaire_loading {
    pointer-events: none;
}

.afena_annuaire_loading .afena_annuaire_results_list > *,
.afena_annuaire_loading .afena_annuaire_results_pagination {
    opacity: 0.4;
}

.afena_annuaire_loading .afena_annuaire_results_list::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #E0E0E0;
    border-top-color: var( --e-global-color-accent );
    border-radius: 50%;
    animation: afena_annuaire_spin 0.8s linear infinite;
}

@keyframes afena_annuaire_spin {
    to {
        transform: rotate(360deg);
    }
}

.afena_annuaire_results_empty {
    grid-column: 1 / -1;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_results_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_pagination_item {
    padding: 5px 8px;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.afena_annuaire_pagination_item:hover {
    color: var( --e-global-color-accent );
}

.afena_annuaire_pagination_prev,
.afena_annuaire_pagination_next {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.afena_annuaire_pagination_prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M7 1L2 6l5 5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
}

.afena_annuaire_pagination_next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
}

.afena_annuaire_pagination_current {
    padding: 5px 8px;
    font-weight: 600;
}

.afena_annuaire_single {
    background-color: #E0E0E0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    text-align: center;
    border-left: 6px solid var( --afena_famille_color, transparent );
}

.afena_annuaire_single_title {
    color: #000000CF;
    font-size: 21px;
    line-height: 1.1;
}

.afena_annuaire_single_profession {
    font-size: 14px;
    text-transform: uppercase;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_single_address {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var( --e-global-color-secondary );
}

.afena_annuaire_single_address_icon {
    flex-shrink: 0;
    width: 11px;
    height: 15px;
    fill: var( --afena_famille_color );
}

.afena_annuaire_single_address_btn {
    align-self: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var( --afena_famille_color, var( --e-global-color-accent ) );
    color: var( --e-global-color-376f796 );
    padding: 10px 30px 10px 30px;
    border-radius: 100px 100px 100px 100px;
    flex-direction: row;
    margin-top: auto;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.2s;
}

.afena_annuaire_single a.afena_annuaire_single_address_btn:hover,
.afena_annuaire_single a.afena_annuaire_single_address_btn:focus-visible {
    color: var( --e-global-color-376f796 );
    background-color: var( --afena_famille_color, var( --e-global-color-accent ) );
    text-decoration: none;
    outline-color: var( --afena_famille_color, var( --e-global-color-accent ) );
}

@media (max-width: 1024px) {
    .afena_annuaire {
        flex-direction: column;
        gap: 30px;
    }

    .afena_annuaire_left,
    .afena_annuaire_right {
        width: 100%;
    }

    .afena_annuaire_map_wrapper {
        position: relative;
        top: auto;
        height: 450px;
    }
}

@media (max-width: 767px) {
    .afena_annuaire_filters,
    .afena_annuaire_filters_row {
        gap: 10px;
    }

    .afena_annuaire_filters_row {
        flex-wrap: wrap;
    }

    .afena_annuaire_select,
    .afena_annuaire_input {
        font-size: 16px;
    }

    .afena_annuaire_multiselect,
    .afena_annuaire_localisation {
        flex: 1 1 100%;
        width: 100%;
    }

    .afena_annuaire_filters_row input[name="localisation"] {
        height: auto;
    }

    .afena_annuaire_filters_row select[name="rayon"] {
        flex: 1;
        width: auto;
    }

    .afena_annuaire_results_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .afena_annuaire_single {
        padding: 20px 15px;
        gap: 12px;
    }

    .afena_annuaire_single_title {
        font-size: 18px;
    }

    .afena_annuaire_pagination_item,
    .afena_annuaire_pagination_current {
        padding: 8px 10px;
    }

    .afena_annuaire_pagination_prev,
    .afena_annuaire_pagination_next {
        width: 36px;
        height: 36px;
    }

    .afena_annuaire_map_wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .afena_annuaire_results_list {
        grid-template-columns: 1fr;
    }
}