h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 15px;
}

body {
    margin: 0;
    padding: 0
}

#map {
    top: 16px;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 168px);
    left: 0;
    z-index: 1
}

#locations-search-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ddd
}

.btn-clear {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;

    :active {
        outline: none;
    }

    :focus {
        outline: none;
    }
}

.btn-clear__icon {
    font-size: 24px;
    line-height: 1;
}

.btn-clear__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-gps {
    -webkit-box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
    background-color: #f1f1f1;
    border-radius: 5px;
    border: none;
    box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    left: 15px;
    margin: 2px;
    padding: 2px;
    top: 90px;
    width: 40px;
    z-index: 1001;

    i {
        width: 20px;
        height: auto;
    }
}



.btn-gps__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-home {
    top: 15px;
    position: absolute;
    z-index: 1001;
    border: none;
    background: none;
    left: 15px;
}

.btn-list {
    -webkit-box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
    background-color: #f1f1f1;
    border-radius: 5px;
    border: none;
    box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    left: 15px;
    margin: 2px;
    padding: 2px;
    top: 90px;
    width: 40px;
    z-index: 1001;

    i {
        width: 20px;
        height: auto;
    }
}

.btn-list__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-search {
    -webkit-box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
    background-color: #f1f1f1;
    border-radius: 5px;
    border-radius: 5px;
    border: none;
    box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    left: 15px;
    margin: 2px;
    padding: 2px;
    top: 90px;
    width: 40px;
    z-index: 1001;

    i {
        width: 20px;
        height: auto;
    }
}

.btn-search.active,
.btn-gps.active {
    background-color: #813274
}

.btn-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.button-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 35px;
    left: 25px;
}

.cluster-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #b1449f;
    border-radius: 50%;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

.geo-search {
    position: absolute;
    z-index: 3;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #636363;
}

.geo-search__result {
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
}

.geo-search__result+.geo-search__result {
    border-top: 1px solid #636363;
}

.geo-search__result--selected {
    background-color: #f0f0f0;
}

.header-bottom {
    display: none
}

.leaflet-control-attribution leaflet-control {
    background-color: RGB(255, 255, 255)
}


.leaflet-popup-content {
    margin: 20px;
}

.leaflet-popup-content-wrapper {
    border-radius: 5px;
}

.leaflet-touch .leaflet-bar a {
    width: 45px !important;
    height: 45px !important;
    padding-top: 7px
}

.locations {
    padding: 0;
    position: relative;
}

.locations-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto
}

.locations-result {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #c9c9c9;
    cursor: pointer;

    :hover {
        color: #b1449f;
    }
}

.locations-result__title {
    color: #b1449f;
}

.locations-result__content {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    font-size: 12px;
    line-height: 1.3;

    p {
        margin-top: 0;
        margin-bottom: 5px;

        :last-child {
            margin-bottom: 0;
        }
    }
}

.locations-result__distance {
    font-size: 12px;
    line-height: 1;
    margin-top: 5px;

    small {
        display: block;
        font-size: 10px;
    }
}

.locations-result__icon {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 40px;
    padding-right: 5px;
    text-align: center;

    img {
        width: 14px;
        height: auto;
    }
}

.locations-result__title {
    font-size: 16px;
    margin-bottom: 10px;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.locations-search {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    /* display: -webkit-box; */
    /* display: -ms-flexbox; */
    display: flex;
    /* -webkit-box-orient: vertical; */
    /* -webkit-box-direction: normal; */
    /* -ms-flex-direction: column; */
    flex-direction: column;
    position: absolute;
    z-index: 1;
    top: 40px;
    left: 35px;
    width: 400px;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    /* -webkit-box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3); */
    box-shadow: 2px 3px 5px 0px rgba(0, 0, 0, 0.3);
}


.locations-search__btn {
    position: relative;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 14px;
    background: none;
    border: 2px solid #636363;
    border-radius: none;
    cursor: pointer;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;

    img {
        width: 17px;
        height: auto;
        margin-right: 10px;
    }
}

.locations-search__btn:hover,
.locations-search__btn:active,
.locations-search__btn:focus,
.locations-search__input:focus {
    border-color: #b1449f;
}

.locations-search__head img,
.locations-search__head h2 {
    display: none;
}


.locations-search__head {
    padding-bottom: 20px;

}

.locations-search__input {
    display: block;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 40px;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #636363;
    border-radius: 0;
    outline: 1px solid #636363;
    outline-offset: 2px;
    -webkit-transition: 0.15s ease-in-out;
    transition: 0.15s ease-in-out;
}

.locations-search__input-container {
    margin-top: 10px;
    position: relative;
    margin-bottom: 10px;
}

.locations-search__label {
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.locations-search__location {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd
}

.locations-search__logo {
    display: inline;
    padding-right: 10px;
}

.locations-search__results {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    overflow: auto;
}

.locations-search__results::after {
    content: " ";
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 30px;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(rgba(255, 255, 255, 0)));
    background-image: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
    display: block;
}


.locations-search__spacer {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.locations-search__title {
    margin-bottom: 5px;
    font-size: 24px;
    display: inline-block;
    vertical-align: top;
    max-width: 280px;
}

.locations-search__zoom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20
}

.locations__map {
    height: calc(100vh - 168px);
}

.popup-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.popup-content__icon {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 30px;

    img {
        width: 14px;
        height: auto;
    }
}



.popup-content__inner {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    font-size: 12px;
    line-height: 1.3;

    p {
        margin-top: 0;
        margin-bottom: 5px;
    }

    p:last-child {
        margin-bottom: 0;
    }

}

.popup-content__links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-top: 10px;
    font-weight: 700;

    a {
        text-decoration: none;
    }
}

.popup-content__title {
    font-size: 16px;
    margin-bottom: 10px;
}

.popup-content__visit {
    color: #b1449f !important;
    font-size: 15px;
    margin-left: auto;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;

    :active {
        color: #813274 !important;
    }

    :focus {
        color: #813274 !important;
    }

    :hover {
        color: #813274 !important;
    }
}

.show-all {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto
}

@media (max-width: 991px) {
    .locations-search {
        left: 63px;
        width: calc(100% - 72px);
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: 0.3s ease;
        transition: 0.3s ease;
    }

    .locations-search--open {
        opacity: 1;
        visibility: visible;
        width: 60%;
        left: 84px;
    }

    .locations-search__results:after {
        bottom: 30px;
    }

    .locations-search__geolocation {
        display: none;
    }

    .locations-search__listAll {
        display: none;
    }

    .locations-search__spacer {
        display: none;
    }


}

@media (min-width: 768px) {
    .locations-result__content {
        font-size: 14px;
    }

    .popup-content__inner {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .btn-search {
        display: none;
    }

    .btn-gps {
        display: none;
    }

    .btn-list {
        display: none;
    }
}


.btn-active {
    background-color: #813274;
    color: #fff;
}