.routeOverview {
    margin: 0.8em 0 2em 0;
}

.routeOverview__list {
    background-color: #f9f9f9;
}

@media screen and (min-width: 768px) {
    .routeOverview__list {
        position: relative;
        float: left;
        height: 80vh;
        width: 100%;
        max-width: 350px;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
    }
}

.routeOverview__routeList {
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.routeOverview__listMapContainer {
    position: relative;
}

/* List item */

.routeOverview__link {
    display: block;
    padding: 0.8em;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #dcdcdc;
}

.routeOverview__route:last-child .routeOverview__link {
    border-bottom: 0;
}

.routeOverview__link:hover {
    color: #000;
}

.routeOverview__routeInfo {
    float: right;
    width: calc(100% - 80px - 0.8em);
    margin-left: 0.8em;
}

.routeOverview__routeTitle {
    margin: 0;
    font-size: 1.1em;
}

.routeOverview__routeSubInfo {
    display: block;
    margin-bottom: 0;
    font-size: 0.8em;
    color: #4a4a4a;
}

.routeOverview__imageContainer {
    float: left;
    max-width: 80px;
}

.routeOverview__routeImage {
    display: block;
    border-radius: 3px;
    border: none;
}

/* Toggle routeList */

@media screen and (min-width: 768px) {
    .routeOverview__toggle {
        display: none;
    }
}

.routeOverview__toggle:hover {
    color: #fff;
}

.routeOverview__toggle:before {
    content: 'Toon kaart';
}

/* Map */

.routeOverview__map {
    position: absolute;
    left: -999em;
    height: 80vh;
    visibility: hidden;
}

@media screen and (min-width: 768px) {
    .routeOverview__map {
        position: static;
        float: left;
        left: auto;
        width: calc(100% - 350px);
        margin-left: 0;
        visibility: visible;
    }
}

.irias-map {
    width: 100%;
    height: 100%;
    background: none;
}

.ol-popup {
    position: absolute;
    bottom: 22px;
    left: -50px;
    min-width: 250px;
    padding: 15px 25px 15px 15px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: #fff;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #fff;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 0;
    right: 8px;
    display: none;
}

.ol-popup-closer:after {
    content: "\d7";
    font-size: 1.7em;
}

.ol-popup {
    display: none;
}

.routeTooltip--visible .ol-popup {
    display: block;
}

/* Behaviour when routeList is hidden */

.routeOverview__routeList--hidden .routeOverview__list {
    display: none;
}

.routeOverview__routeList--hidden .routeOverview__toggle {
    left: 0;
}

.routeOverview__routeList--hidden .routeOverview__toggle:before {
    content: 'Toon lijst';
}

.routeOverview__routeList--hidden .routeOverview__map {
    position: static;
    left: auto;
    visibility: visible;
}

/**
 *  Pop-up
 */
.routePopUp__routeTitle {
    margin: 0;
    font-size: 1.2em;
}

.routePopUp__routeSubInfo {
    display: block;
    margin-bottom: 0;
    font-size: 0.9em;
    color: #4a4a4a;
}

.routePopUp__routeLink {
    margin-top: 1em;
    text-decoration: none;
}
