body {
    background-color: #ffffff;
}

#map {
    text-align: left;
    height: calc(100vh - 200px);
    min-height: 440px;
}

@media (max-width: 767px) {
    #map {
        min-height: 250px;
    }

    .mapPopupImage {
        display: none;
    }
}

#main {
    padding: 0;
}

.search_parkrun_logo {
    height: 30px;
    width: 30px;
}

div.parkrun_search_result {
    padding-left: 40px;
    height: 40px;
    background-size: 30px;
    background-repeat: no-repeat;
    background-position-y: center;
}

div.parkrun_search_result_series1 {
    background-image: url(https://images.parkrun.com/website/general/parkrun_tree_logo.svg);
}

div.parkrun_search_result_series2 {
    background-image: url(https://images.parkrun.com/website/general/junior_parkrun_tree_logo.svg);
}

div.suggestions-wrapper>ul {
    padding: 0px !important;
}

div.parkrun_filter {
    margin: 5px;
    font-weight: bold;
    line-height: 40px;
    cursor: pointer;
}

div.greyedFilter {
    opacity: 0.4;
}

/* Popups (adjustments to emulate Leaflet.js) */
@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mapPopupTitle {
  padding-right: 25px;
}

.mapboxgl-popup {
    animation: fadein 0.5s;
}

.mapboxgl-popup-content {
/*    width: 300px;*/
    /*min-height: 150px;*/
    border-radius: 12px;
    padding: 13px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    /*min-width: 300px;*/
}

.mapboxgl-popup-close-button {
    font-size: 26px;
    font-family: Tahoma, Verdana, sans-serif;
    color: #c3c3c3;
    font-weight: bold;
}

.mapboxgl-popup-close-button:hover {
    color: #999;
    background-color: white;
    border-top-right-radius: 12px;
}

body .mapboxgl-map {
    line-height: 1.4;
}

.mapboxgl-ctrl-scale,
.parkrun_filter {
  -webkit-touch-callout: none; 
    -webkit-user-select: none; 
     -khtml-user-select: none; 
       -moz-user-select: none; 
        -ms-user-select: none; 
            user-select: none; 
}

.mapboxgl-ctrl-scale:hover {
    cursor: pointer; 
}