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

body .gm-style-iw-chr button {
    color: var(--gl-button-color) !important;
    position: absolute !important;
    right: -8px;
    top: -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 {
    background: var(--gl-button-color) !important;
    color: var(--gl-button-color) !important;
    opacity: 1 !important;
}

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

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

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

.gm-style-iw {
    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;
    margin: 0 !important;
    max-width: 100%;
    padding: 0 !important;
    width: 400px !important;
}

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

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

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

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

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

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

.location-search button {
    align-items: center;
    -webkit-appearance: none;
    background-color: var(--gl-button-bg);
    border: none;
    color: var(--gl-button-color);
    display: flex;
    justify-content: center;
    padding: 10px;
    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 {
    height: 30px;
    width: 30px;
}

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

.location-holder-left h3.location-title {
    background-color: var(--gl-button-bg);
    color: var(--gl-button-color);
    font-size: 1.2em;
    line-height: 1em;
    margin: 0;
    padding: 15px;
}

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

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

.pac-container * {
    color: #000;
    font-size: 16px;
}

.pac-item {
    padding: 5px;
}

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

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

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

.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-hover);
    color: var(--gl-button-color-hover);
}

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

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

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

.location-holder-left {
    border-left: 1px solid #e2e2e2;
    height: auto;
    overflow: scroll;
    position: static;
}

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

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

.entry .infowindow-content p {
    margin-bottom: 15px;
}

.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 {
        height: 400px;
        width: 100%;
    }

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

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

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

}

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

    .location-search {
        width: 100%;
    }

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

}


