html {
    --clr-black: #000000;
    --clr-grey: #9D9D9D;
    --clr-white: #ffffff;
    --clr-blue: #0E3FA7;
    --clr-blue-light: #3B6AC2;
    --clr-red: #E40428;
    --clr-yellow: #FFD334;

    font-family: 'Foco', sans-serif;
    color: var(--clr-white);
}


@media only screen and (min-width: 750px) {
    :root {
        font-size: 0.579vw;
    }
}


body {
    max-width: 100%;
}

#map {
    position: static;
    height: 100vh;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Undo the global reset inside Google Maps */
#map * {
    background-size: auto;
    background-repeat: initial;
}

/* Keyboard focus layer would otherwise cover the map and block interaction */
#map div[role="region"] {
    z-index: 0;
}


/* ----------------- Google InfoWindow (Leaflet popup look) ----------------- */
#map .gm-style .gm-style-iw-c {
    padding: 1px !important;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

#map .gm-style .gm-style-iw-d {
    margin: 13px 24px 13px 20px;
    overflow: auto !important;
}

#map .gm-style .gm-style-iw-chr {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

#map .gm-style .gm-style-iw-chr button {
    width: 24px !important;
    height: 24px !important;
}

#map .gm-style .gm-style-iw-chr button span {
    margin: 6px !important;
    width: 12px !important;
    height: 12px !important;
    background-color: #757575;
}

.popupInner {
    padding: 10px 5px 0 0;
    color: var(--clr-black);
    font-size: 1.4rem;
}

.popupInner .h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

#map .popupInner a {
    display: block;
    width: fit-content;
    margin-top: 1.2rem;
    padding: 0.6rem 2.2rem;
    color: var(--clr-white);
    font-size: 1.2rem;
    background-color: var(--clr-blue);
    border-radius: 2.0rem;
    text-transform: uppercase;
    text-align: center;
}

#showLocation {
    position: absolute;
    bottom: 104px;
    left: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

#showLocation .inner {
    height: 30px;
    width: 30px;
    background-color: var(--clr-white);
    background-image: url('/public/images/soutez/icons/icon-my-position.svg');
    background-size: 16px 16px;
    border-radius: 2px;
}


/* ----------------- Zoom controls (Leaflet look) ----------------- */
#zoomControls {
    position: absolute;
    bottom: 30px; /* Above the Google logo */
    left: 10px;
    background-color: var(--clr-white);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}

#zoomControls button {
    display: block;
    padding: 0;
    width: 30px;
    height: 30px;
    color: var(--clr-black);
    font-family: 'Lucida Console', Monaco, monospace;
    font-size: 22px;
    line-height: 30px;
    font-weight: bold;
    background-color: var(--clr-white);
    border-radius: 0;
    border: none;
    cursor: pointer;
}

#zoomControls .zoomIn {
    border-radius: 2px 2px 0 0;
    border-bottom: 1px solid #cccccc;
}

#zoomControls .zoomOut {
    border-radius: 0 0 2px 2px;
}

#zoomControls button:hover {
    background-color: #f4f4f4;
}

#zoomControls button.disabled {
    color: #bbbbbb;
    background-color: #f4f4f4;
    cursor: default;
}


.head {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 0;
    z-index: 550;
}

.head a {
    position: relative;
    display: block;
    margin: 0 auto;
    height: 7.8rem;
    width: 15.0rem;
}

.head .logo {
    position: absolute;   
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/images/soutez/birellogo.svg?v=1');
    background-position: top center;
}


#search {
    position: absolute;
    top: 1rem;
    right: 6.8rem;
    width: 37.0rem;
    color: #000000;
    font-size: 1.5rem;
    text-align: left;
}

#search .searchField {
    position: relative;
    z-index: 50;
}

#search .searchField .text {

}

#search .searchField input[type=text] {
    display: block;
    margin: 0 0 0 0;
    padding: 1.8rem 3.5rem 1.7rem 3.0rem;
    width: 84%;
    color: #000000;
    font-family: 'atrament-semibold', sans-serif;
    font-size: 1.5rem;
    text-align: left;
    background-color: var(--clr-white);
    border-radius: 0.7rem;
    border: none;
    box-shadow: 0 1.0rem 0.6rem #0000000d;
}

#search .searchField .zoom {
    position: absolute;
    top: 0;
    right: 0;
    height: 5.2rem;
    width: 5.2rem;
    background-color: #C32032;
    background-image: url("/public/images/soutez/icons/icon-zoom.svg");
    background-size: 1.5rem;
    border-radius: 0.7rem;
}

#search .results {
    display: none;
    position: relative;
    margin: 0.6rem 0 0 0;
    padding: 2.2rem 3.0rem 2.2rem 3.0rem;
    background-color: #ffffff;
    border-radius: 0.7rem;
    z-index: 20;
}

#search.active .results {
    display: block;
}

#search .results .item {
    padding: 1.0rem 0;
    display: flex;
    width: 100%;
    border-bottom: solid 0.1rem #0E2B5C33;
    gap: 4%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

#search .results .item:last-child {
    border: none;
}

#search .results .item .name {
    width: 48%;
}

#search .results .item .address {
    width: 48%;
    font-size: 1.3rem;
    font-family: arial;
    text-align: right;
}


/* ----------------- Mobile 390px ----------------- */
@media only screen and (max-width: 750px) {
    #search {
        display: none;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        font-size: 1.5rem;
        background-color: #ffffff94;
        backdrop-filter: blur(10px) brightness(0.9);
    }

    #search.active {
        display: block;
    }

    #search .searchCont {
        position: absolute;
        top: 20%;
        left: 50%;
        width: 90%;
        transform: translateX(-50%);
    }

    #search .searchField {
        position: relative;
    }

    #search .searchField .text {

    }

    #search .searchField input[type=text] {
        display: block;
        margin: 0 auto 0 auto;
        padding: 2.2rem 8.5rem 2.2rem 3.0rem;
        width: 90%;
        color: var(--cookie-main-clr);
        font-family: 'atrament-semibold', sans-serif;
        font-size: 1.5rem;
        text-align: left;
        background-color: var(--clr-white);
        border-radius: 0.7rem;
        border: none;
        box-shadow: 0 1rem 0.6rem #0000000d;
    }

    #search .searchField .zoom {
        display:none;
    }

    #search .results {
        display: none;
        position: relative;
        width: 90%;
        max-height: calc(100vh - 26.8rem);
        margin: 0.6rem auto 0 auto;
        padding: 2.2rem 3.0rem 2.2rem 3.0rem;
        background-color: #ffffff;
        border-radius: 0.7rem;
        overflow: hidden;
        overflow-y: scroll;
        z-index: 20;
    }

    #search.active .results {
        display: block;
    }

    #search .results .item {
        padding: 1.0rem 0;
        display: flex;
        width: 100%;
        border-bottom: solid 0.1rem #0E2B5C33;
        gap: 4%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #search .results .item:last-child {
        border: none;
    }

    #search .results .item .name {
        width: 48%;
    }

    #search .results .item .address {
        width: 48%;
        font-size: 15px;
        font-family: arial;
        text-align: right;
    }

   .searchControls {
        position: absolute;
        top: 0;
        right: 0;
    }

    .searchControls .open,
    .searchControls .close {
        top: 1.8rem;
        right: 3.0rem;
        height: 5.2rem;
        width: 5.2rem;
        background-color: #C32032;
        background-size: 1.5rem;
        border-radius: 0.7rem;
        opacity: 1;
    }

    .searchControls .open {
        display: block;
        background-image: url("/public/images/soutez/icons/icon-zoom.svg");
    }

    .searchControls.active .open {
        display: none;
    }

    .searchControls.active .close {
        display: block;
        background-image: url("/public/images/soutez/icons/icon-close.svg");
    }

    .searchControls .close {
       display: none;
    }
}