.gm-style-iw-ch {
    padding: 0 !important;
}

body .gm-style-iw-chr button {
    position: absolute !important;
    color: var(--gl-button-color) !important;
    top: -8px;
    right: -8px;
}

body .gm-style-iw-chr button {
    mask-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%20fill%3D%22currentColor%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E) !important;
}

.gm-ui-hover-effect {
    opacity: 1 !important;
}

.gm-ui-hover-effect > span {
    color: var(--gl-button-color) !important;
    background: var(--gl-button-color) !important;
    opacity: 1 !important;
}

.gm-style .gm-style-iw-d {
    overflow-y: auto !important;
}

.gm-style-iw-d {
    padding: 0 !important;
    margin: 0 !important;
}

.gm-style {
    font-family: inherit !important;
}

.gm-style-iw {
    width: 400px !important;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 0 !important;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    font-size: 16px !important;
}

.location-search-wrapper {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.location-search {
    width: 100%;
    border-bottom: 1px solid #999;
    align-items: flex-end;
    padding-bottom: 10px;
    display: flex;
    gap: 2em;
}

#locationSearch {
    flex: 1;
    line-height: 1;
}

#getLocation.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.2;
}

.location-search input {
    border: none;
    width: 100%;
    max-width: 800px;
    font-size: 1.2em;
    padding: 10px 5px 0 5px;
}

.location-search input:focus {
    outline: none;
}

.location-search button {
    color: var(--gl-button-color);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    border: none;
    background-color: var(--gl-button-bg);
    transition: 0.2s;
}

.location-search button:hover {
    background-color: var(--gl-button-bg-hover);
    color: var(--gl-button-color-hover);
    cursor: pointer;
}

.location-search button svg {
    width: 30px;
    height: 30px;
}

.location-holder-left {
    width: 30%;
    flex-direction: column;
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
}

.location-holder-left h3.location-title {
    color: #222;
    background-color: #d7d7d7;
    margin: 0;
    padding: 20px;
    line-height: 1em;
}

.location-data-container {
    padding: 20px;
}

body .find-location-container p {
    line-height: 1.4;
    margin-bottom: var(--cpt-location-data-spacing);
}

p.location-distance {
    font-weight: 700;
    font-style: italic;
}

.location-info-buttons {
    display: flex;
    margin-top: 20px;
    gap: 10px
}

.location-info-buttons .map-link {
    margin: 0;
    width: 100%;
    line-height: 1.3;
}

.location-holder-left a.open-info-window {
    text-decoration: none;
}

a.open-info-window:hover .location-title,
a.open-info-window.is-open .location-title {
    background: var(--gl-button-bg);
    color: var(--gl-button-color);
}

a.open-info-window.is-open + .location-info-holder {
    background: #F2F2F2;
}

.glacial-map-div {
    height: auto;
    flex: 1;
}

.find-location-container {
    display: flex;
    width: 100%;
    height: 55vh;
    position: static;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 0;
}

.location-holder-left {
    position: static;
    height: auto;
    overflow: scroll;
}

.glacial-map-div .infowindow h2 {
    background: var(--gl-button-bg);
    color: var(--gl-button-color);
    padding: 20px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.4em;
}

.infowindow-content {
    padding: 10px 20px;
}

.infowindow-content p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 991px) {

    .find-location-container {
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }

    .location-holder-left {
        width: 100%;
        height: 400px;
    }

    .map-div {
        width: 100%;
        height: 400px;
    }

    .glacial-map-div {
        height: 400px;
        flex: auto;
        width: 100%;
    }

    .location-info-buttons .ui-button {
        margin: 0;
        width: auto;
    }

}

@media screen and (max-width: 479px) {
    .search-locations-mock-up {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .location-search {
        width: 100%;
    }

    .gm-style-iw {
        width: 250px !important;
    }

}


