.navbar {
    /* Dropdown design */

    & .navbar-user-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        color: #333;
        border-radius: 50%;
        transition: color .15s ease, background-color .15s ease;

        &:hover {
            color: #ff8c00;
            background-color: rgba(255, 140, 0, .08);
        }

        svg {
            width: 1.55rem;
            height: 1.55rem;
        }
    }

    & .navbar-brand {
        flex-shrink: 0;

        > a:first-child {
            flex: 0 0 auto;
            line-height: 0;
        }

        img {
            width: 3.25rem;
            max-width: none;
            height: auto;
            display: block;
        }

        .dropdown {
            margin-top: 5px;
        }
        .title-site {
            padding-left: .5rem !important;
            text-transform: uppercase;
            font-size: 1.2rem;
            font-weight: 600;
            
        }
    }

    @media (max-width: 991.98px) {
        > .container {
            position: relative;
            flex-wrap: wrap;
            justify-content: center;
        }

        .navbar-brand {
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
            margin: .35rem 0 .7rem !important;
            row-gap: .2rem;
        }

        .navbar-brand > a:first-child {
            flex: 1 0 100%;
            display: flex;
            justify-content: center;
        }

        .navbar-brand img {
            width: 5.5rem;
        }

        .navbar-brand .title-site {
            padding-left: 0 !important;
        }

        .navbar-toggler {
            position: absolute;
            top: .65rem;
            right: 3.35rem;
            z-index: 2;
        }

        .navbar-user {
            position: absolute;
            top: .55rem;
            right: .75rem;
            z-index: 2;
        }
    }

    .navbar-collapse {
        flex-grow: 1;
        min-width: 0;
    }

    .navbar-main {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar-search {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: flex-end;
        margin-left: .75rem;
        margin-right: .75rem;
    }

    .navbar-search .global-search {
        width: 100%;
        max-width: 26rem;
        transition: max-width .4s ease;
    }

    .navbar-announce {
        flex: 0 0 auto;
        width: max-content;
        max-width: 18rem;
        margin-left: .75rem;
        overflow: visible;
        border-radius: 50rem;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
        transition: max-width .45s ease, margin-left .45s ease, transform .3s ease, box-shadow .3s ease;
    }

    .navbar-announce:hover {
        transform: scale(1.1);
    }

    .navbar-announce > a {
        display: inline-flex;
        white-space: nowrap;
        box-shadow: none !important;
        transition: transform .45s ease, opacity .3s ease;
    }

    .navbar-announce-short {
        display: none;
    }

    .navbar-announce.is-compact .navbar-announce-full {
        display: none;
    }

    .navbar-announce.is-compact .navbar-announce-short {
        display: inline;
    }

    .navbar-announce > a:hover {
        transform: none;
    }

    .navbar-main:has(.global-search:hover) .navbar-announce,
    .navbar-main:has(.global-search:focus-within) .navbar-announce {
        max-width: 0;
        margin-left: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        pointer-events: none;
    }

    .navbar-main:has(.global-search:hover) .navbar-announce > a,
    .navbar-main:has(.global-search:focus-within) .navbar-announce > a {
        transform: translateX(110%);
        opacity: 0;
    }

    .navbar-main:has(.global-search:hover) .global-search,
    .navbar-main:has(.global-search:focus-within) .global-search {
        max-width: none;
    }

    .navbar-user {
        flex: 0 0 auto;
        margin-left: .75rem;
    }

    @media (prefers-reduced-motion: reduce) {
        .navbar-announce,
        .navbar-search .global-search {
            transition: none;
        }
    }

    & .dropdown-menu {
        /* background-color: #2d89ff;
        border: none; */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    & .dropdown-menu[data-bs-popper]{
        margin-top:10px;
    }
    
    & .dropdown-item:hover {
        background: linear-gradient(45deg, #ff9800, #ff5722);
        color: #fff;
    }

    & .button-menu {
        margin: 5px;
    }

    & .search-city, & .text-distance {
        width: 200px;
    }

    & .search-distance {
        text-align:center;

        & .text-distance {
            color:white;
            font-size: 0.8rem;
        }

        & input[type="range"]::-webkit-slider-thumb {
            background-color: #f49f00 !important;
        }
        
        & input[type="range"]::-moz-range-thumb {
            background-color: #f49f00 !important;
        }
        
        & input[type="range"]::-ms-thumb {
            background-color: #f49f00 !important;
        }

        & .form-range {
            margin: 0 5%;
            width: 90%;

            
        }
    }

    /* & .localisation {
        width: 360px;
    
        & .input-city {
            position: relative;
        
            & .cities:not(:empty) {
                display: flex;
                flex-direction: column;
                position: absolute;
                background-color: white;
                border-radius: 4px;
                width: 100%;
                max-height: 300px;
                overflow-y: auto;
                gap: 0.2rem;
            }
        }
    } */

    .ts-control, .ts-dropdown {
        line-height: 1.3;
    }
}
