#map {
    width: 100%;
    height: 65vh;
}

h2.map-heading {
    margin-bottom: .1rem;
}

.map-update-info {
    text-align:right;
    font-size: 0.75rem;
    margin-right: -15px;
}

#instructions {
    position: absolute;
    display: none;
    border: 1px solid #ccc;
    margin: 20px;
    height: 38px;
    top: 20px;
    bottom: 20%;
    background-color: #121212cc;
    font-family: sans-serif;
    font-size: 12px;
    transition: height 0.3s ease-in-out;
}
.mapbox-wrapper {
    margin-left: -1.5rem;
    margin-right: 0.5rem;
    padding: 0;
}

.mapboxgl-popup-close-button {
    background-color: #121212;
    color: #fff;
}
.mapboxgl-popup-close-button:hover {
    background-color: #008ec9;
    color: #fff;
}

.infobox {
    border: 1px solid #dee2e6 !important;
    display:flex;
    height: 40px;
    margin: 1rem 0rem;
}

.traffic-icon {
    width: 39px;
    height: 38px;
    background-color: #dee2e6;
    padding: 9px 9px;
    line-height: 1;
    font-size: 20px;
}

.weather-icon {
    width: 100%;
    height: 38px;
    line-height: 1;
    overflow: hidden;
    font-size: 0.9em;
    padding: 4px;
}

.weather-icon img {
    height: 100%;
}

#mapbuttons .btn:not(.button-disabled):hover {
    background-color: #008ec9;
}

#mapbuttons .button-disabled {
    color: #ccc;
    cursor: not-allowed;
}

#mapbuttons button i, .gps-button i {
    margin-right: 0.5rem;
}

#mapbox-container .mapboxgl-popup-content .popup-button {
    background-color: #008ec9;
    color: #fff;
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

@media screen and (min-width: 1200px) {
    #waypoints {
        height: 65vh;
    }
    #waypointlist {
        height: 58vh;
    }
    .dummy-image{
        height:160px;
    }    

}

@media screen and (min-width: 1000px) and (max-width: 1199px) {
    #waypoints {
        height: 400px;
    }
    #waypointlist {
        height: 335px;
        column-count: 3;
    }
    .dummy-image{
        height:100px;
    }    
}
@media screen and (min-width: 450px) and (max-width: 1000px) {
    #waypoints {
        height: 400px;
    }
    #waypointlist {
        height: 335px;
        column-count: 2;
    }
    .dummy-image{
        height:100px;
    }    
}

#waypointcontainer {
    position: relative;
    height: 100%;
}

#waypointlist {
    position: relative;
    overflow-y: scroll;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}



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

    #waypointcontainer {
        padding-left: 0px!important;
        padding-right: 0px!important;
    }

    .result-box-headline {
        margin: 0 0 1rem 0!important;
    }

    #waypoints {
        height: auto;
    }
    #waypointlist {
        height: auto;
        column-count: 1;
        position: static;
        overflow-y: auto;
        mask-image: unset!important;
    }

    #waypointlist .border {
        border-left: none!important;
        border-right: none!important;
        border-bottom: none!important;
    }

    #waypointlist.px-1 {
        padding-left: 0px!important;
        padding-right: 0px!important;
    }
    
    .dummy-image{
        height:100px;
    }    
}



[draggable] {
    user-select: none;
}
.drag-item {
    background-color: #ffffff;
    transition: 0.25s;
    position: relative;
    break-inside: avoid;
}

.drag-item .mask {
    position: absolute;
    height: 100%;
    width: 100%;
}

.drag-item .delete {
    position: absolute;
    right: 0px;
    width: 24px;
    height: 24px;
    color: #fff;
    background-color: #121212;
    padding: 4px 5px;
    line-height: 1;
}

.drag-item .delete:hover {
    background-color: #008ec9;
    cursor: pointer;
}

.drag-item .expand {
    position: absolute;
    right: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
    background-color: #121212;
    padding: 4px 5px;
    line-height: 1;
}

.drag-item .expand:hover {
    background-color: #008ec9;
    cursor: pointer;
}

[data-toggle="collapse"] .fa:before {
    content: "\f151";
}

[data-toggle="collapse"].collapsed .fa:before {
    content: "\f150";
}

[data-toggle="collapse"].collapsed ~ .wp-title {
    padding-top: 2rem !important;
}

.drag-item .wp-title {
    transition: 0.2s;
}

.drag-item a.more {
    position: absolute;
    left: 24px;
    width: 24px;
    height: 24px;
    background-color: #121212;
    padding: 3px 8px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}
.drag-item .fly {
    position: absolute;
    left: 0px;
    width: 24px;
    height: 24px;
    background-color: #121212;
    padding: 3px 4px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}
.drag-item .fly:hover {
    background-color: #008ec9;
    cursor: pointer;
}

.drag-item a.more:hover {
    background-color: #008ec9;
    color: #fff;
    cursor: pointer;
}

.drag-item .mask:hover {
    cursor: move;
}
.drag-start {
    opacity: 0.3;
}
.drag-enter {
    opacity: 0.5;
    transform: scale(0.9);
}

.dummy-image {
    background: url('/libs/mapbox/images/dummy-track.jpg') no-repeat center center;
    background-size: cover;
    background-color: #ddd;
    width:100%;
    display:block;
    margin-bottom:0.5rem;
}

.dummy-waypoint .fly,
.dummy-waypoint a.more,
.dummy-waypoint .delete,
.dummy-waypoint .expand,
.dummy-waypoint .fly:hover,
.dummy-waypoint a.more:hover,
.dummy-waypoint .delete:hover,
.dummy-waypoint .expand:hover  {
   background-color: #bbb;
   cursor:default
}


@media (min-width: 1200px) {
    #searchPasstrackInputContainerMobile {
        display: none;
    }
    #searchPasstrackInputContainerDesktop {
        display: flex;
    }
}

@media (max-width: 1199px) {
    #searchPasstrackInputContainerMobile {
        display: flex;
        margin-left: 0.95rem;
    }
    #searchPasstrackInputContainerDesktop {
        display: none;
    }
}

.searchPasstrackInput {
    background-color: #ddd;
    border: #121212 1px solid;
}

#searchresults {
    visibility: hidden;
    position: absolute;
    background-color: #ddd !important;
    /*top:55px;*/
    bottom: 0px;
    min-width: 53.3%;
    padding: 1rem 0 0.5rem 0;
    z-index: 9;
    border: #121212 1px solid;
    max-width: calc(100% - 1rem);
    /*box-shadow: 3px 3px 5px #ddd;*/
}
#searchresults button.close {
    position: absolute;
    right: 3px;
    top: -5px;
    border: none;
    color: #121212;
    font-size: 1.5rem;
    cursor: pointer;
    /*text-shadow: #121212 0px 0px 3px;*/
    opacity: 1;
}
#searchresultlist {
    color: #fff;
    line-height: 1.5;
}

.search-result-item .no-image,
.drag-item .no-image {
    background-color: #efefef;
    height: 24px;
}

#searchresultlist .search-result-item a.passtrack-title {
    color: #121212;
    text-decoration: none;
    height: 24px;
    padding: 3px 50px 3px 5px;
    display: inline-block;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item {
    padding:0;
    margin: 3px 0px;
    display: flex;
}

.search-result-item:hover .passtrack-title {
    background-color: #008ec9;
}

.search-result-item:hover a.passtrack-title {
    color: #fff !important;
    cursor: pointer;
}

.search-result-item a.more {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #bbb;
    padding: 3px 9px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    vertical-align: 0px;
    margin-right: 3px;
}

.search-result-item span.more {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 3px;
}

.search-result-item:hover a.more {
    background-color: #121212;
    color: #fff;
    cursor: pointer;
}
.search-result-item a.more:hover {
    background-color: #008ec9;
    color: #fff;
    cursor: pointer;
}

.search-result-item a.fly {
    /*  position: absolute;
      left: 15px;*/
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #bbb;
    padding: 3px 5px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    vertical-align: 0px;
    margin-right: 3px;
}
.search-result-item:hover a.fly {
    background-color: #121212;
    color: #fff;
    cursor: pointer;
}
.search-result-item a.fly:hover {
    background-color: #008ec9;
    color: #fff;
    cursor: pointer;
}
.result-box-headline {
    font-size: 1rem;
    font-weight: normal;
    background-color: #121212;
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 0 -1rem 1rem -1rem;
    /* text-transform: uppercase;*/
    text-align: center;
}

#waypoints img,
#searchresults img {
    margin-bottom: 0.5rem;
}

#instruction {
    @media screen and (min-width: 576px) {
        column-count: 2;
        column-gap: 20px;
    }

    padding: 20px 0px 50px 0px;
}




.colgap {
    padding-right: 0px !important;
}

.mapbox-directions-steps {
    margin-left: -20px;
    top: 38px;
}

.mapbox-directions-route-summary {
    position: absolute;
    z-index: 1;
    width: 100%;
    background-color: #121212;
    color: #fff;
    padding: 5px 10px;
    font-size: 15px;
    line-height: 28px;
    left: 0;
}

#chevron-link {
    color:#fff;
    float: right;
}

.mapbox-directions-instructions {
    height: 100%;
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

.mapbox-directions-instructions-wrapper {
    overflow-y: scroll;
    display:none;
}

.description-list {
    margin-left: -1.2rem;
}

.toggleHotelVisibility {
    border: 0px solid transparent;
    border-left: 10px solid #6b5b46;

    @media screen and (max-width: 575px) {
        background-color: #6b5b46 !important;
    }
}

.toggleCitiesVisibility {
    border: 0px solid transparent;
    border-left: 10px solid #999999;

    @media screen and (max-width: 575px) {
        background-color: #999999 !important;
    }
}

.toggleSightsVisibility {
    border: 0px solid transparent;
    border-left: 10px solid #2d7e05;

    @media screen and (max-width: 575px) {
        background-color: #2d7e05 !important;
    }
}

.toggleGravelpasstracksVisibility {
    border: 0px solid transparent;
    border-left: 10px solid #e53517;

    @media screen and (max-width: 575px) {
        background-color: #e53517 !important;
    }
}

#logo-alpen-marathon {
    position: absolute;
    right: 10px;
    background: url('/libs/mapbox/images/logo-alpen-marathon-300.png') no-repeat center center;
    background-size: contain;
    transition: transform 0.2s ease-in-out;
    cursor: default;
    bottom: 35px;
}

#logo-alpen-marathon:hover {
    transform: scale(1.05);
    cursor: pointer;
}

#statistics-container {
    position: absolute;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s linear, visibility 0.5s linear;
    bottom: 35px;
}

#statistics-container.hidden {
    opacity: 0;
    visibility: hidden;
}

#statistics-alpen-marathon {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color:rgba(255,255,255,0.7);
    width: calc(100% - 40px) ;
    vertical-align: middle;
    mask-size: auto;
    mask-repeat: no-repeat;
    mask-origin: border-box;
    mask-clip: border-box;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.statistics-slide-in {
    transform: translateX(0);
    opacity: 1;
}

.statistics-slide-out {
    transform: translateX(100%);
    opacity: 1;
}

#passtracksscount, #sightscount, #hotelscount {
    color:#008ec9;
    font-weight: bold;
}

.statistics-info {
    line-height: 1.25;
}

.statistics-item {
    display: inline-block;
    white-space: nowrap;
}

@media screen and (min-width: 1680px) {
    #passtracksscount, #sightscount, #hotelscount {
        font-size: 5rem; 
    }
    .statistics-item {
        margin-right: 2rem;
    }
    .statistics-info {
        padding: 0.5rem 0;
    }
    #logo-alpen-marathon {
        width: 150px;
        height: 150px;
    }
    #statistics-container {
        right: 100px;
        width: calc(100% - 100px) ;
        height: 150px;
    }
    #statistics-alpen-marathon {
        height: 150px;
        mask-image: radial-gradient(circle at right center, transparent 75px, black 75px);
        -webkit-mask-image: radial-gradient(circle at right center, transparent 75px, black 75px);
        padding: 1rem 80px 1rem 1rem;
    }
}
@media screen and (min-width: 1440px) and (max-width: 1679px) {
    #passtracksscount, #sightscount, #hotelscount {
        font-size: 3.5rem;
    }
    .statistics-item {
        margin-right: 1.5rem;
    }
    .statistics-info {
        padding: 1.25rem 0;
    }
    #logo-alpen-marathon {
        width: 150px;
        height: 150px;
    }
    #statistics-container {
        right: 100px;
        width: calc(100% - 100px) ;
        height: 150px;
    }
    #statistics-alpen-marathon {
        height: 150px;
        mask-image: radial-gradient(circle at right center, transparent 75px, black 75px);
        -webkit-mask-image: radial-gradient(circle at right center, transparent 75px, black 75px);
        padding: 1rem 80px 1rem 1rem;
    }
}
@media screen and (min-width: 768px) and (max-width: 1439px) {
    #passtracksscount, #sightscount, #hotelscount {
        font-size: 2.4rem;
    } 
    .statistics-item {
        margin-right: 1rem;
    } 
    .statistics-info {
        padding: 0.75rem 0;
    }
    .map-heading {
        font-size: 1.25rem!important;
    }
    .map-heading.mt-5 {
        margin-top: 1.85rem!important;
    }
    .map-update-info {
        font-size: 0.65rem;
    }
    #logo-alpen-marathon {
        width: 80px;
        height: 80px;
    }
    #statistics-container {
        right: 60px;
        width: calc(100% - 60px) ;
        height: 80px;
    }
    #statistics-alpen-marathon {
        height: 80px;
        mask-image: radial-gradient(circle at right center, transparent 40px, black 40px);
        -webkit-mask-image: radial-gradient(circle at right center, transparent 40px, black 40px);
        padding: 0.5rem 45px 0.5rem 0.5rem;
    }
}
@media screen and (max-width: 767px) {
    #passtracksscount, #sightscount, #hotelscount {
        font-size: 1.25rem; 
    } 
    .statistics-item {
        margin-right: 0.75rem;
    } 
    .statistics-info {
        padding: 0.75rem 0.25rem;
    }
    .map-heading {
        font-size: 0.75rem!important;
    }
    .map-heading.mt-5 {
        margin-top: 1.85rem!important;
    }
    .map-update-info {
        font-size: 0.5rem;
    }
    #logo-alpen-marathon {
        width: 50px;
        height: 50px;
    }
    #statistics-container {
        right: 40px;
        width: calc(100% - 40px) ;
        height: 50px;
    }
    #statistics-alpen-marathon {
        height: 50px;
        mask-image: radial-gradient(circle at right center, transparent 25px, black 25px);
        -webkit-mask-image: radial-gradient(circle at right center, transparent 25px, black 25px);
        padding: 0.2rem 30px 0.2rem 0.2rem;
    }
}
