#mapPage {
    height: 100%;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

#map * {
    z-index: auto;
}


/* ------- Navigator ------- */

.navigator {
    display: flex;
    position: absolute;
    right: 4.0rem;
    max-width: fit-content;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.2rem;
}

.navigator.top {
    top: 4.0rem;
}

.navigator.bottom {
    bottom: 4.0rem;
}

.navigator .item {
    width: 4.5rem;
    height: 4.5rem;
    box-shadow:
        0px 0.32rem 0.64rem 0px #00000008, 
        0px 1.2rem 1.2rem 0px #00000008;

}

#zoomIn {
    background-image: url('/public/images/map/icon-plus.svg');
}

#zoomOut {
    background-image: url('/public/images/map/icon-minus.svg');
}

#myLocation {
    background-image: url('/public/images/map/icon-my-position.svg');
}


/* ------- Info Window ------- */
.infoWindow {
    position: absolute;
    max-width: 39.3rem;
    width: 39.3rem;
    height: fit-content;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    box-shadow: 0px 1.4rem 3.1rem 0px #0000000F,
    0px 5.7rem 5.7rem 0px #0000000D,
    0px 12.9rem 7.7rem 0px #00000008,
    0px 22.9rem 9.1rem 0px #00000003,
    0px 35.7rem 9.9rem 0px #00000000;
}

.infoWindow .inner {
    padding: 2.0rem;
    background-color: var(--clr-white);
    border-radius: 0.4rem;
}

.infoWindow .row  {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.4rem;
}

.infoWindow .row.first {
    margin-bottom: 2.0rem;
}

.infoWindow .row.second {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
}

.infoWindow .row.third {
    display: none;
    margin-top: 1.4rem;
    width: 100%;
}

.infoWindow .info {
    text-align: left;
}

.infoWindow .info .name {
    margin-bottom: 0.8rem;
    font-family: 'Roboto Medium', sans-serif;
    font-size: 1.8rem;
}

.infoWindow .info .bold {
    font-family: 'Roboto Medium', sans-serif;
    font-size: 1.4rem;
}

.infoWindow .info .address,
.infoWindow .info .phone,
.infoWindow .info .email, 
.infoWindow .info .email a {
    color: #868686;
    font-family: 'Roboto Light', sans-serif;
    font-size: 1.4rem;
}

.infoWindow .info .address {
    margin-bottom: 1.2rem;
}

.infoWindow .closeButton {
    height: 5.0rem;
    width: 5.0rem;
    background-image: url('/public/images/map/icon-close.svg?v=1');
    cursor: pointer;
}

.infoWindow .button {
    display: flex;
    padding: 2.0rem;
    width: 100%;
    color: var(--clr-black);
    background-color: #F8F3ED;
    border: none;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}

.infoWindow .button.contact .icon {
    display: block;
    height: 1.4rem;
    width: 1.4rem;
    background-image: url('/public/images/map/icon-contact.svg?v=1');
}

.infoWindow .button.navigate .icon,
.infoWindow .button.navigateMobile .icon {
    display: block;
    height: 1.4rem;
    width: 1.4rem;
    background-image: url('/public/images/map/icon-location.svg?v=1');
}


#routeInfo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 3.1rem 4.0rem 2.0rem 2.0rem;
    font-family: 'Roboto Medium', sans-serif;
    font-size: 1.6rem;
    line-height: 2.2rem;
    background-color: var(--clr-white);
    border-radius: 0.4rem;
    text-align: left;
    text-wrap: nowrap;
    box-shadow: 0px 1.4rem 3.1rem 0px #0000000F,
    0px 5.7rem 5.7rem 0px #0000000D,
    0px 12.9rem 7.7rem 0px #00000008,
    0px 22.9rem 9.1rem 0px #00000003,
    0px 35.7rem 9.9rem 0px #00000000;
}

#routeInfo .closeButton {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    height: 1.4rem;
    width: 1.4rem;
    background-image: url('/public/images/map/icon-cross.svg?v=1');
    cursor: pointer;
}



/* ----------------- Tablet 720px ----------------- */
@media only screen and ((max-width: 1000px) or (orientation: portrait)) {
    #mapPage {
        height: calc(100% - 7.5rem);
    }

    #map {
        height: 100%;
    }

    #mapPage .searchControls {
        position: absolute;
        top: 0;
        right: 0;
    }

    #mapPage .searchControls .open,
    #mapPage .searchControls .close {
        top: 4.6rem;
        right: 3.0rem;
        height: 5.2rem;
        width: 5.2rem;
        background-color: #C32032;
        background-size: 1.5rem;
        border-radius: 0.7rem;
    }

    #mapPage .searchControls .open {
        display: block;
        background-image: url("/public/images/map/icon-zoom.svg");
    }

    #mapPage .searchControls.active .open {
        display: none;
    }

    #mapPage .searchControls.active .close {
        display: block;
        background-image: url("/public/images/map/icon-close.svg");
    }

    #mapPage .searchControls .close {
       display: none;
    }

    #navigator {
        left: 3rem;
        bottom: 3rem;
    }


    /* ------- Navigator ------- */

    .navigator {
        left: 2.3rem;
        gap: 1.0rem;
    }
    
    .navigator.top {
        top: auto;
        bottom: calc(2.3rem + 9.0rem + 2rem);
    }
    
    .navigator.bottom {
        bottom: 2.3rem;
    }
    
    .navigator .item {
        width: 4.5rem;
        height: 4.5rem;
    }


    /* ------- Info Window ------- */

    .infoWindow .row.third.active {
        display: flex;
    }
    
}


/* ----------------- Mobile 360px ----------------- */
@media only screen and (max-width: 500px) {
    .infoWindow {
        width: 100%;
        box-shadow: none;
    }
    
    .infoWindow .inner {
        border-radius: 0;
    }

    .infoWindow .row.second {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .infoWindow .button {
        display: flex;
        min-width: auto;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
}