/* Section "b-map" */
.b-map {
    position: relative;
}

.b-map__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 15px;
}

/* Google-map */
#g-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e5e3df;
    overflow: hidden;
}

/* https://developers.google.com/maps/documentation/javascript/examples/overlay-popup */
/* JavaScript will position this div at the bottom of the popup tip. */
.g-map__popup-container {
    width: 330px;
    height: 0;
    position: absolute;
    transform: translateX(-50%);
    cursor: auto;
}

.g-map__popup-anchor {
    width: 100%;
    position: absolute;
    bottom: 80px;
    left: 0;
}

.g-map__popup {
    display: none;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 6px 20px 0 rgba(0, 95, 137, .2);
    cursor: default;
}

.g-map__popup.js-active {
    display: block;
}

.g-map__popup:before {
    content: '';
    display: block;
    width: 46px;
    height: 46px;
    position: absolute;
    left: calc(50% - 23px);
    bottom: -10px;
    background-color: #fff;
    box-shadow: 0 6px 20px 0 rgba(0, 95, 137, .2);
    transform: rotate(45deg);
    border-radius: 2px 0;
}

.g-map__popup-btn-close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    cursor: pointer;
}

.g-map__popup-btn-close:hover {
    opacity: .7;
}

.g-map__popup-btn-close img {
    width: 12px;
}

.g-map__popup-inner {
    display: block;
    width: 100%;
    height: 100%;
    padding: 32px;
    position: relative;
    z-index: 1;
    background-color: #fff;
    border-radius: 10px;
}

.g-map__popup-title {
    margin: 0 0 12px;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
    color: #008ec4;
    text-transform: uppercase;
}

.g-map__popup-address {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-size: 17px;
    line-height: 22px;
    font-weight: 300;
}


.b-map__container > .b24-form {
    display: flex;
}

.b24-form-wrapper.b24-form-border-bottom {
    z-index: 1;
}

@media only screen and (max-width: 1199px) {
    .b-map__container {
        padding: 44px 24px 48px;
    }

    #g-map {
        position: relative;
        top: auto;
        left: auto;
        height: 480px;
    }

    .g-map__popup-title {
        margin-bottom: 16px;
    }

    .g-map__popup-address {
        font-size: 16px;
        line-height: 20px;
    }

    .b-map__container > .b24-form {
        justify-content: center;
    }

}

@media only screen and (max-width: 1023px) {
    .b-map__container {
        padding: 33px 24px 40px;
    }

    #g-map {
        height: 460px;
    }

    .g-map__popup-title {
        font-size: 20px;
        line-height: 24px;
    }

    .g-map__popup-address {
        font-size: 15px;
        line-height: 19px;
    }
}

@media only screen and (max-width: 767px) {
    .b-map__container {
        padding: 30px 16px 32px;
    }

    .g-map__popup-container {
        width: 300px;
    }

    .g-map__popup-inner {
        padding: 24px;
    }

    .g-map__popup-title {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 6px;
        text-transform: uppercase;
    }

    .g-map__popup-address {
        font-size: 14px;
        line-height: 17px;
    }
}