section.openstreet-maps {
    background-color: rgba(255, 255, 255, 1);
}

section.openstreet-maps .embed-container {
    display: flex;
    padding-bottom: 0;
    height: auto;
}

section.openstreet-maps .embed-container.leaflet-fullscreen-on {
    padding: 0;
}

section.openstreet-maps .row {
    padding: 0 15px;
}

section.openstreet-maps .leaflet-control a {
    color: #1b1b1b;
    font-style: normal;
}

section.openstreet-maps a.leaflet-control-directions-show {
    font-size: 2em;
    padding: 0;
    width: auto;
    height: auto;
    line-height: initial;
}

section.openstreet-maps a.leaflet-control-directions-show input {
    border: none;
    width: 250px;
    font-size: 0.7em;
    height: 30px;
}

.leaflet-control-directions-show span.input-group-text {
    background: transparent;
    border: none;
}

section.openstreet-maps .search_forms {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    bottom: 0;
    z-index: 9999;
    background: #212529;
    overflow: auto;
}

section.openstreet-maps .search_forms span.fas.fa-times {cursor: pointer;}

section.openstreet-maps .search_forms i.fas.fa-exchange-alt {
    transform: translateY(100%);
    transform: rotate(90deg);
    margin: 25px 0;
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.2s ease all;
}

section.openstreet-maps .search_forms i.fas.fa-exchange-alt:hover {
    color: #43abfe;
}

section.openstreet-maps .search_forms .directions-results {
    padding: 0 5px;
}

section.openstreet-maps .search_forms .directions-results .fa-times {
    font-size: 0.5em;
    margin: 5px 10px;
}

section.openstreet-maps .search_forms .step {
    display: grid;
    min-height: 25px;
    border-bottom: 1px solid #fff;
    margin: 0 0 10px 0;
    padding: 10px 5px;
    grid-template-columns: 8% 5% 82% 5%;
}

section.openstreet-maps .search_forms .autocomplete-items, .leaflet-control-directions-show .autocomplete-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 5px;
    right: 0;
    width: 89%;
    overflow: auto;
    max-height: 300px;
}

.leaflet-control-directions-show .autocomplete-items {
    left: 0;
}

section.openstreet-maps .search_forms  .autocomplete-items div, .leaflet-control-directions-show .autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
    color: #212529;
    text-align: left;
    display: block;
}

.leaflet-control-directions-show .autocomplete-items {
    font-size: 0.7em;
}

section.openstreet-maps .search_forms .step b { font-size: 0.9em; }

section.openstreet-maps .search_forms .instruct-dist {
    display: flex;
    justify-content: space-between;
}

section.openstreet-maps .search_forms span.direction {
    font-size: 0.8em;
    background-image: url(/modules/mod_page/extensions/ext_openstreet_maps/css/images/routing-sprite.png);
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    display: inline-block;
    background-color: #fff;
}

section.openstreet-maps .search_forms span.direction.type-11 { background-position-x: -161px; }
section.openstreet-maps .search_forms span.direction.type-0 { background-position-x: -460px; }
section.openstreet-maps .search_forms span.direction.type-1 { background-position-x: -40px; }

section.openstreet-maps .search_forms span.distance {
    font-size: 0.9em;
    color: #888;
}

section.openstreet-maps .search_forms span.instruction {
    font-size: 1em;
    margin: 0 5px;
    padding: 0 0 0 5px;
    text-align: left;
}

section.openstreet-maps .search_forms .button-container {
    text-align: center;
}

section.openstreet-maps .leaflet-popup-content { 
    width: auto !important;
    min-width: 200px;
}

section.openstreet-maps .leaflet-popup-content picture {
    max-width: 300px;
    max-height: 300px;
}

section.openstreet-maps .leaflet-popup-content picture img {
    width: 100%;
    height: 100%;
}

section.openstreet-maps .leaflet-control-container > * {
    transition: 0.2s ease all;
}

.openstreetmap {
    flex-grow: 1;
    padding: 26.25%;
}

.openstreetmap_text_content {
    min-height: 75px;
}

.edit_option.special_option.edit_address {
    min-width: 150px;
}

.openstreetmap_af_item input {
    width: 100%;
}

section.openstreet-maps .leaflet-left {
    left: 25px;
}

section.openstreet-maps .leaflet-right {
    right: 25px;
}

section.openstreet-maps .leaflet-bottom.leaflet-right {
    right: 50px;
}

section.openstreet-maps .leaflet-control a i {
    display: inline-block;
    height: 100%;
    width: 100%;
}

section.openstreet-maps .leaflet-control a i.fa-search {
    padding: 3px;
}

section.openstreet-maps .leaflet-control span {
    padding: 3px;
}

section.openstreet-maps .leaflet-control a i.fa-directions { 
    font-size: 1.5em; 
}

section.openstreet-maps .layer-type-choice {
    position: absolute;
    bottom: 0;
    height: 300px;
    width: 200px;
    background: #fff;
    color: #1b1b1b;
    border-radius: 5px;
    box-shadow: 0 0 2px #000;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: left;
    padding: 5px;
}

section.openstreet-maps .layer:hover {
    background: #43abfe;
    color: #fff;
}

section.openstreet-maps .layer-type-choice .layer {
    padding: 5px;
    
}

section.openstreet-maps .layer-type-choice .layer img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}
