.rm2-routing-control-btn {
    background-color: transparent;
    color: var(--light-text-gray);
    border: none;
    border-radius: 5px;
    padding: 0.7em;
}

.rm2-routing-control-btn:hover {
    background-color: var(--light-bg-color-highlight);
    color: var(--text-black);
}

.rm2-routing-toolbar {
    display: inline-flex;
    width: 100%;
}

.rm2-routing-toolbar-content {
    width: 100%;
}

.rm2-routing-toolbar .rm2-routing-control-clear {
    color: var(--light-text-gray);
    align-self: center;
    cursor: pointer;
}

.rm2-routing-toolbar .rm2-routing-control-clear:hover {
    color: var(--black);
}

.rm2-routing-toolbar .rm2-routing-control-hide {
    color: var(--light-text-gray);
    align-self: center;
    cursor: pointer;
}

.rm2-routing-toolbar .rm2-routing-control-hide:hover {
    color: var(--black);
}

.rm2-routing-control-main-btn {
    padding: 0.5em;
}

.rm2-routing-control-panel {
    position: absolute;
    display: flex;
    flex-flow: column;
    min-width: 350px;
    pointer-events: all;
    top: .5em;
    left: .5em;
}

.rm2-routing-control-panel .panel-top {
    background-color: var(--light-bg-color);
    padding: 1em;
    border-radius: 7px;
    position: relative;
    z-index: 20;
}

.rm2-routing-control-panel .panel-top .panel-top-container {
    width: 100%;
    display: inline-flex;
}

.rm2-routing-control-panel .panel-top .panel-top-container .panel-top-inputs {
    width: 85%;
}

.rm2-routing-control-panel .panel-top .panel-top-container .panel-top-reverse-locations {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm2-routing-control-panel .panel-bottom {
    display: flex;
    flex-direction: column;
    flex-flow: column;
    overflow-y: auto;
    margin-top: -7px;
    padding-top: 5px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px !important;
    background-color: var(--light-bg-color);
}

.rm2-routing-control-action-bar-title {
    font-weight: 350;
}

.rm2-routing-search-input {
    width: 100%;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.rm2-routing-search-input-btn {
    background-color: white;
    border: 1px solid rgb(206, 212, 218);
    color: rgba(0, 0, 0, 0.3);
}

.rm2-routing-search-input-btn:hover {
    color: rgba(0, 0, 0, 1);
}

.rm2-routing-search-input-container .input-group-append {
    display: none;
}

.rm2-routing-search-input-container:hover .input-group-append {
    display: inline-block;
}

.rm2-routing-search-input-container:hover .rm2-routing-search-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-right: 0;
}

.rm2-routing-control-search-results {
    position: absolute;
    display: none;
    left: 0;
    right: 0;
    top: -7px;
    overflow-y: auto;
    padding-top: 6px;
    z-index: 10;
    background-color: var(--light-bg-color);
    /* -webkit-box-shadow: -5px 0px 14px -4px rgba(0,0,0,0.75);
    -moz-box-shadow: -5px 0px 14px -4px rgba(0,0,0,0.75);
    box-shadow: -5px 0px 14px -4px rgba(0,0,0,0.75); */
}

.rm2-routing-control-search-results.active {
    display: block;
}

.rm2-routing-control-search-results-item:first-child {
    border-top: none;
}

.rm2-routing-control-search-results-item:last-child {
    border-bottom: none;
}

.rm2-routing-control-search-results-item {
    border-left: none !important;
    border-right: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm2-routing-control-search-results-item-icon {
    margin-right: 20px;
}

.rm2-routing-control-search-results-container {
    position: relative;
}

.rm2-routing-transportation-modes-tabs {
    width: 100%;
}

.rm2-routing-transportation-modes-tab-item a {
    color: var(--light-text-gray);
}

.rm2-routing-transportation-modes-tab-item a.active {
    color: var(--text-black) !important;
}

.rm2-routing-transportation-modes-tab-item a.active {
    background-color: var(--light-bg-color-highlight) !important;
}

.rm2-routing-control-route-overview-table-icon {
    width: 2em;
}

.rm2-routing-control-route-overview-item {
    cursor: pointer;
    border-radius: 0;
}

.rm2-routing-control-route-overview-item:hover {
    background-color: rgb(242, 242, 242);
}

.rm2-routing-control-route-overview-line {
    height: 1px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.125);
    margin: auto 5px;
}

.tab-pane.show.active {
    opacity: 1;
}

.nav-link:hover {
    background-color: transparent !important;
}

.mapboxgl-ctrl-top-left {
    z-index: auto;
}

@media only screen and (max-width: 768px) {
    .rm2-routing-control-panel {
        top: 0;
        left: 0;
        width: 100vw;
        border-radius: 0;
    }

    .rm2-routing-control-panel .panel-top {
        border-radius: 0;
    }

    .rm2-routing-control-panel .panel-bottom {
        position: fixed;
        left: 0;
        right: 0;
        max-height: 200px;
        bottom: 0;
        margin-top: 0;
        padding-top: 0;
        border-top:  1px solid #dee2e6 !important;

        box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, .15) !important;
        /* -webkit-box-shadow: 0px 0px 9px -2px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 0px 9px -2px rgba(0,0,0,0.75);
        box-shadow: 0px 0px 9px -2px rgba(0,0,0,0.75); */
    }
}
