.consultants-map {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: hidden;
    height: 100vh;
}

.consultants-map .map-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 35%;
    max-width: 380px;
    min-width: 320px;
    height: 100%;
    background: linear-gradient(60deg, #428DCB 26.46%, #54BFD0 82.29%);
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.2);
}

.consultants-map .map-sidebar button.map-sidebar-toggle {
    display: none;
}

@media screen and (max-width: 1023px) {
    .consultants-map .map-sidebar {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        transform: translateX(100%) translateX(-40px);
        transition: transform 200ms ease-in-out;
    }

    .consultants-map .map-canvas {
        margin-right: 40px;
    }

    .consultants-map .map-sidebar button.map-sidebar-toggle {
        position: absolute;
        display: block;
        right: 100%;
        top: 50%;
        width: 2rem;
        height: 3rem;
        margin-top: -1.5rem;
        text-align: center;
        border: 0 solid;
        background: #428dcb;
        color: #fff;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
        outline: none;
    }

    .consultants-map .map-sidebar button.map-sidebar-toggle:after {
        content: '';
        position: absolute;
        display: block;
        left: 50%;
        top: 50%;
        max-width: 100%;
        transform: translate(-50%, -50%);
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' fill='white' viewBox='0 0 36.5 66.8'%3E%3Cpath d='m0 33.4 33.4 33.4 3.1-3.1L6.3 33.4 36.5 3.1 33.4 0 0 33.4z'/%3E%3C/svg%3E") no-repeat center center;
        width: .5rem;
        height: 1rem;
        background-size: 100%;
    }

    .consultants-map .map-sidebar.is-active {
        transform: translateX(0);
    }

    .consultants-map .map-sidebar.is-active button.map-sidebar-toggle:after {
        transform: translate(-50%, -50%) rotate(180deg);
    }

}


@media screen and (max-width: 567px) {
    .consultants-map .map-sidebar {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        transform: translateY(100%) translateY(-40px);
        transition: transform 200ms ease-in-out;
    }

    .consultants-map .map-canvas {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .consultants-map .map-sidebar button.map-sidebar-toggle {
        position: absolute;
        display: block;
        right: auto;
        left: 50%;
        top: auto;
        bottom: 100%;
        width: 3rem;
        height: 2rem;
        margin-left: -1.5rem;
        margin-top: 0;
        background: #52b9cf;
        border-radius: 0;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        z-index: 4;
    }

    .consultants-map .map-sidebar button.map-sidebar-toggle:after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .consultants-map .map-sidebar.is-active {
        transform: translateY(0);
    }

    .consultants-map .map-sidebar.is-active button.map-sidebar-toggle:after {
        transform: translate(-50%, -50%) rotate(270deg);
    }

}


.consultants-map .map-sidebar.is-loading {
    pointer-events: none;
}

.consultants-map .map-sidebar.is-loading > * {
    opacity: .2;
}

.consultants-map .map-sidebar.is-loading:after {
    position: absolute;
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loadingSpinner 1.2s linear infinite;
}

@keyframes loadingSpinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.consultants-map .map-sidebar .map-search {
    flex: 0 0 auto;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

.consultants-map .map-sidebar .map-search .field {
    position: relative;
    width: 100%;
    margin: 0 0 .25rem;
}

.consultants-map .map-sidebar .map-search .field:last-child {
    margin-bottom: 0;
}

.consultants-map .map-sidebar .map-search .field input {
    width: 100%;
    padding: .75rem 1rem .75rem 3rem;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, .8);
    color: #495057;
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, .1);
    box-sizing: border-box;
    outline: none;
}

.consultants-map .map-sidebar .map-search .field input:focus,
.consultants-map .map-sidebar .map-search .field input:active {
    background: #fff;
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, .1), 0 0 0 2px #ec8225;
}

.consultants-map .map-sidebar .map-search .field i.icon {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    padding: .75rem;
    width: auto;
    height: auto;
    pointer-events: none;
}

.consultants-map .map-sidebar .map-search .field i.icon svg {
    height: 100%;
    width: auto;
    fill: #ec8225;
}

.consultants-map .map-sidebar .map-result-count {
    flex: 0 0 auto;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 1rem 1rem .5rem;
}

.consultants-map .map-sidebar .map-results {
    flex: 1 1 auto;
    padding: .5rem 1rem 1rem 1rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.consultants-map .map-sidebar .map-results .map-results-item {
    flex: 0 0 auto;
    padding: .75rem;
    display: block;
    text-decoration: none;
    color: #888;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 .75rem;
}

.consultants-map .map-sidebar .map-results .map-results-item:last-child {
    margin-bottom: 0;
}

.consultants-map .map-sidebar .map-results .map-results-item.is-highlighted {
    animation: highlightSearchResultItem 200ms ease-in-out 0ms 1 normal forwards;
    box-shadow: 0 0 0 4px #ec8225;
}

@keyframes highlightSearchResultItem {
    0% {
        transform: scale(1)
    }
    50% {
        transform: scale(1.1)
    }
    100% {
        transform: scale(1)
    }
}

.consultants-map .map-sidebar .map-results .map-results-item a.consultant-image {
    float: right;
    margin: 0 0 1rem 1rem;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #ec8225;
}

@media screen and (max-width: 1023px) {
    .consultants-map .map-sidebar .map-results .map-results-item a.consultant-image {
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 439px) {
    .consultants-map .map-sidebar .map-results .map-results-item a.consultant-image {
        width: 64px;
        height: 64px;
    }
}

.consultants-map .map-sidebar .map-results .map-results-item a.consultant-image img {
    display: block;
    width: 100%;
    height: auto;
}

.consultants-map .map-sidebar .map-results .map-results-item p.consultant-name {
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 .5rem;
    color: #333;
}

.consultants-map .map-sidebar .map-results .map-results-item p.consultant-contact {
    margin: 1rem 0 0;
    line-height: 1.2;
}

.consultants-map .map-sidebar .map-results .map-results-item a {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.consultants-map .map-sidebar .map-results .map-results-item a.consultant-button {
    margin: 1rem 0 0;
    display: inline-block;
    padding: .75rem 1rem;
    line-height: 1.5;
    background: #ec8225;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
}

.consultants-map .map-sidebar .map-results .map-results-item a.consultant-button:hover {
    background: #c76e20;
    color: #fff;
}


.consultants-map .map-canvas {
    flex: 1 1 auto;
    height: 100%;
}

.gm-style .gm-style-iw-c[role="dialog"] {
    background: linear-gradient(60deg, #428DCB 26.46%, #54BFD0 82.29%);
}

.gm-style .gm-style-iw-c[role="dialog"] > button {
    margin: 10px 10px 0 0 !important;
}

.gm-style .gm-style-iw-c[role="dialog"] > button > span {
    background: #fff !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-track,
.gm-style .gm-style-iw-d::-webkit-scrollbar-track-piece,
.gm-style .gm-style-iw-c .gm-style-iw-d::-webkit-scrollbar-thumb,
.gm-style .gm-style-iw-c .gm-style-iw-d::-webkit-scrollbar-corner {
    background: transparent;
}

.gm-style .gm-style-iw-tc::after {
    background: #4696cc;
}

.consultant-info-window {
    width: 320px;
    max-width: 90vw;
    color: #fff;
    padding: 8px;
}

.consultant-info-window p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
}

.consultant-info-window a.consultant-image {
    float: right;
    margin: 0 0 1rem 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, .5);
}

.consultant-info-window a.consultant-image img {
    display: block;
    width: 100%;
    height: auto;
}

.consultant-info-window p.consultant-name {
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 .5rem;
}

.consultant-info-window p.consultant-contact {
    margin: 1rem 0 0;
}

.consultant-info-window a {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.consultant-info-window a.consultant-button {
    margin: 1.5rem 0 0;
    display: inline-block;
    padding: .75rem 1rem;
    line-height: 1.5;
    background: #ec8225;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
}

.consultant-info-window a.consultant-button:hover {
    background: #c76e20;
    color: #fff;
}


@media screen and (max-width: 1279px) {
    .consultant-info-window p {
        font-size: 13px;
    }

    .consultant-info-window p.consultant-name {
        font-size: 15px;
    }
}


@media screen and (max-width: 1023px) {
    .consultant-info-window {
        padding: 4px;
        max-width: 90vw;
        width: auto;
    }

    .consultant-info-window p {
        font-size: 12px;
    }

    .consultant-info-window p.consultant-name {
        font-size: 14px;
    }

    .consultant-info-window a.consultant-button {
        font-size: 11px;
        margin: 1rem 0 0;
    }

}


@media screen and (max-width: 567px) {
    .consultant-info-window a.consultant-image {
        margin: 0 0 .5rem .5rem;
        width: 50px;
        height: 50px;
    }
}
