.archive-annonce {
    margin-top: 0 !important;
    /* opacity: 0; */
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
    position: relative;

    &.is-admin {
        opacity: 1 !important;
    }

    #map {
        height: auto !important;

        @media(width < 1200px) {
            padding: 0 !important;
        }

        .facetwp-type-map {
            height: 100%;

            #facetwp-map {
                position: sticky !important;
                top: 81px;
                margin: 0;
                height: calc(100vh - 81px) !important;

                @media(width < 765px) {
                    height: 450px !important;
                }

                +div {
                    display: none;
                }
            }
        }

    }

    .archive-annonce__loop {
        padding-bottom: var(--wp--preset--spacing--large);

        @media(width < 1400px) {
            padding-bottom: 0;
        }

        .facetwp-type-pager {
            margin: 2em 0 0;
        }

        .facetwp-template {
            >.row {
                @media(width < 768px) {
                    --bs-gutter-y: 40px !important;
                }
            }
        }

    }

    .archive-annonce__loop_top {
        display: flex;
        padding: 24px 0;
        justify-content: space-between;
        min-height: 87px;

        @media(width < 1200px) {
            background-color: #fff;
            border-radius: 8px;
            padding: 12px;
            margin-top: 8px;
            margin-bottom: 8px;
            flex-flow: row-reverse;
        }

        @media(width < 768px) {
            position: fixed;
            top: 64px;
            z-index: 1;
            left: 0;
            right: 0;
            border-radius: 0;
        }

        div[class*="facetwp-facet-resultat"] {
            font-size: 1.5rem;
            color: #327177;

            span {
                font-size: 1.25rem;
            }

            @media(width < 1200px) {
                display: none;
            }
        }

        .filter_btn_mobile {
            position: relative;

            .counter {
                right: inherit;
                left: -8px;
                top: -5px;
            }

            @media(width >=1200px) {
                display: none;
            }
        }

        .views {
            display: flex;

            button {
                background-color: transparent;
                border: none;
                padding: 8px 16px;
                color: var(--wp--preset--color--primary-variable);
                border: solid 1px var(--wp--preset--color--primary-variable);
                font-size: .875rem;

                &:hover {
                    cursor: pointer;
                }

                svg {
                    @media(width >=1200px) {
                        display: none;
                    }
                }

                &.liste_btn {
                    border-radius: 50px 0 0 50px;
                    border-right: none;
                    padding-left: 24px;
                }

                &.carte_btn {
                    border-radius: 0 50px 50px 0;
                    border-left: none;
                    padding-right: 24px;
                }

                &.mixte_btn {
                    @media(width < 1200px) {
                        display: none;
                    }
                }

                &.active {
                    background-color: var(--wp--preset--color--primary-variable);
                    color: #fff;

                    @media(width < 1200px) {
                        display: none;
                    }
                }

                @media(width < 1200px) {
                    display: inline-flex;
                    align-items: center;
                    gap: 6px;
                    border: solid 1px #000 !important;
                    color: #000 !important;
                    height: 44px !important;
                    padding: 10px 12px !important;
                    font-weight: 600;
                    border-radius: 100px !important;
                }
            }
        }

    }

    .mobile_results {
        padding: 16px 0 24px;

        .facetwp-facet-resultat {
            font-size: 14px;
        }
    }

    .facetwp-type-mapbox {
        max-width: var(--wp--style--global--wide-size);
        margin: 0 auto !important;
        height: calc(100vh - 161px) !important;
        position: sticky;
        top: 161px;
        left: 0;
        border-radius: 10px;
        overflow: hidden;

        @media(width < 1200px) {
            border-radius: 0;
        }

        .fwp-mapbox-map {
            height: 100% !important;
        }
    }


}

.body-listing {
    main.wp-block-group {
        position: relative;
        z-index: 1;
    }
}