/* maps
   ============================ */

.map {
    position: relative;
}
.map [aria-hidden="true"] {
    display: block !important;
}
.map-canvas {
    height: 100%;
    margin: 0;
    outline: none;
    padding: 0;
    width: 100%;
}
.map .location-details {
    bottom: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
    right: 30px;
}

/* map */
.g-map .map {
    height: 582px;
}

/* location details */
.g-map .location-details {
    bottom: 0;
    max-width: 400px;
    position: absolute;
    right: 107px;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    width: 100%;
}
.g-map .location-details.active {
    height: 100%;
}
.g-map .location-details .inner {
    color: #ffffff;
    height: 100%;
    padding: 46px 44px;
}
.g-map .location-details .inner .close {
    color: #ffffff;
    float: right;
    font-size: 2.1rem;
    position: relative;
}
.g-map .location-details .inner .close:focus {
    text-decoration: underline;
}
.g-map .location-details .inner header {
    padding-top: 92px;
}
.g-map .location-details .inner header h3 {
    color: #f78e1e;
    margin-bottom: 24px;
}
.g-map .location-details .inner header h3 > span {
    color: #ffffff;
    display: block;
    line-height: 4rem;
}
.g-map .location-details .inner ul {
    margin: 0;
    padding: 0;
}
.g-map .location-details .inner ul > li {
    font-size: 1.6rem;
    line-height: 2.4rem;
    padding: 7px 0 16px;
}
.g-map .location-details .inner ul > li > a {
    text-decoration: underline;
}
.g-map .location-details .inner ul > li > a:hover,
.g-map .location-details .inner ul > li > a:focus {
    color: #f78e1e;
    text-decoration: none;
}
.g-map .location-details .inner ul > li > a,
.g-map .location-details .inner ul > li > address {
    color: #ffffff;
    font-style: normal;
    padding: 0 0 0 44px;
    position: relative;
}
.g-map .location-details .inner ul > li > address {
    padding-right: 50px;
}
.g-map .location-details .inner ul > li > a::before,
.g-map .location-details .inner ul > li > address::before {
    background: url("../images/map-marker-light.png") no-repeat 0 0 transparent;
    background-size: 20px auto;
    content: "";
    display: block;
    height: 28px;
    left: 0;
    position: absolute;
    top: 5px;
    width: 29px;
}
.g-map .location-details .inner ul > li.phone > a::before,
.g-map .location-details .inner ul > li.email > a::before {
    display: none;
}
.g-map .location-details .inner ul > li.email .email-ico {
    left: 2px;
    top: 2px;
}
.g-map .location-details .inner ul > li.email .email-ico::before,
.g-map .location-details .inner ul > li.email .email-ico::after,
.g-map .location-details .inner ul > li.email .email-ico .envelope-inner::before,
.g-map .location-details .inner ul > li.email .email-ico .envelope-inner::after {
    background: #ffffff;
}
.g-map .location-details .inner ul > li.email .email-ico,
.g-map .location-details .inner ul > li.email .email-ico .letter {
    border-color: #ffffff;
}
.g-map .location-details .inner ul > li.fax > a::before {
    background-image: url("../images/fax-icon-light.png");
    background-size: 29px auto;
    height: 26px;
    top: 0;
}
.g-map .location-details .inner ul > li.phone svg {
    height: 26px;
    left: 0;
    top: -3px;
    width: 26px;
}
.g-map .location-details .inner ul > li.phone svg .receiver,
.g-map .location-details .inner ul > li.phone svg .signal {
    stroke: #ffffff;
}
.g-map .location-details .inner button.back-to-locations {
    float: none;
    margin-top: 64px;
    position: relative;
    text-align: left;
}
.g-map .location-details .inner button.back-to-locations > span {
    display: inline-block;
    height: 8px;
    margin-right: 15px;
    margin-top: -4px;
    position: relative;
    right: 0;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    vertical-align: middle;
    width: 14px;
}
.g-map .location-details .inner button.back-to-locations:focus > span {
    right: 5px;
}
.g-map .location-details .inner button.back-to-locations > span::before,
.g-map .location-details .inner button.back-to-locations > span::after {
    content: "";
    display: block;
}
.g-map .location-details .inner button.back-to-locations > span::before {
    border-right: 5px solid #ffffff;
    border-bottom: 5px solid transparent;
    border-top: 5px solid transparent;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    height: 0;
    margin-top: -1px;
    width: 0;
}
.g-map .location-details .inner button.back-to-locations > span::after {
    background: #ffffff;
    border-bottom: 1px solid #3f065b;
    border-top: 1px solid #3f065b;
    height: 2px;
    position: absolute;
    right: 0;
    top: 50%;
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 10px;
}

/* responsive
   ============================ */

@media screen and (max-width: 1024px) {

    /* location details */
    .g-map .location-details .inner header h3 {
        font-size: 2.8rem;
        line-height: 3.4rem;
    }
}

@media screen and (max-width: 880px) {

    /* location details */
    .g-map .location-details {
        max-width: 350px;
        right: 50px;
    }
}

@media screen and (max-width: 736px) {

    /* map */
    .g-map .map {
        height: auto;
    }

    .g-map .static-map {
        background: url("../images/map.png") no-repeat center top transparent;
        background-size: cover;
        border-bottom: 2px solid #f2f2f2;
        border-top: 2px solid #f2f2f2;
        height: auto;
        padding: 54px 21px 55px;
        width: 100%;
    }

    /* location details */
    .g-map .location-details {
        bottom: auto;
        clear: both;
        max-width: 100%;
        position: relative;
        right: auto;
        top: 0;
    }
    .g-map .location-details .inner {
        padding: 29px 20px 14px;
    }
    .g-map .location-details .inner header {
        padding-top: 0;
    }
    .g-map .location-details .inner header h3 {
        margin-bottom: 22px;
    }
    .g-map .location-details .inner header h3,
    .g-map .location-details .inner header h3 > span {
        font-size: 2.6rem;
        line-height: 3.2rem;
    }
    .g-map .location-details .inner ul > li {
        font-size: 1.4rem;
        line-height: 2.2rem;
        padding-bottom: 22px;
    }
    .g-map .location-details .inner ul > li > a:hover,
    .g-map .location-details .inner ul > li > a:focus {
        color: #ffffff;
        text-decoration: underline;
    }

    /* country selection */
    .g-map .country-select,
    .static-map {
        background: url("../images/map.png") no-repeat center top transparent;
        background-size: cover;
        height: auto;
        padding: 54px 21px 55px;
        width: 100%;
    }
}
