.road-classification-label {
  font-size: 12px;
  color: blue;
  background-color: white;
  padding: 5px;
}


/* Basics */
.osrm-directions-inputs,
.osrm-directions-errors,
.osrm-directions-routes,
.osrm-directions-instructions {
  font: 15px/20px 'Open Sans', sans-serif;
  margin-bottom: 30px;
}

.osrm-directions-summary {
  padding-left: 20px;
  padding-top: 10px;
}

.osrm-directions-inputs,
.osrm-directions-inputs *,
.osrm-directions-errors,
.osrm-directions-errors *,
.osrm-directions-routes,
.osrm-directions-routes *,
.osrm-directions-instructions,
.osrm-directions-instructions * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.map {
  background: #eee;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* tool colors and divs */
.fill-osrm {
  background-color: rgba(37, 72, 127, 0.8);
}

.fill-dark {
  background-color: #404040;
}

.dark {
  color: #fff;
}

/* Scale position */
.leaflet-control-scale {
  position: absolute;
  left: 10px;
  bottom: 1px;
}

/* Zoom control position */
.leaflet-control-zoom {
  left: 355px;
  color: rgba(37, 72, 127, 0.8);
}

.leaflet-bar a {
  color: rgba(0, 0, 0, 0.8);
}

/* Not used: {
  background-image: url('../images/crosshairs.svg');
  width: 36px;
  height: 36px;
  color: rgba(37,72,127, 0.8);
  background-color: rgba(37,72,127, 0.8);
  box-shadow: 0 1px 5px rgba(0,0,0,0.65);
  border-radius: 4px;
  z-index: 100;
} */

/* Layers position */
.leaflet-control-layers {
  position: absolute;
  left: 0px;
  bottom: 35px;
  display: none;
}

.leaflet-control-layers-expanded {
  width: 180px;
}

/* Layer styling */
.leaflet-retina .leaflet-control-layers-toggle {
  background-image: url('../images/layers.svg');
  background-size: 26px 26px;
}

.leaflet-control-layers-toggle {
  background-image: url('../images/layers.svg');
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}

.leaflet-bar a,
.leaflet-control-layers-toggle {
  background-position: 55% 70%;
  background-repeat: no-repeat;
  display: block;
  background-size: 85%;
}

.leaflet-control-layers-expanded {
  padding: 6px 10px 6px 6px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Toolbar */
.leaflet-osrm-tools-container {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  width: 161px;
  height: 26px;
  display: none;
}


/* Waypoint marker labels */
.leaflet-osrm-waypoint-label {
  background-color: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* Geocode container */
.leaflet-routing-container {
  position: fixed;
  width: 33.3333%;
  max-width: 340px;
  min-width: 200px;
  padding-right: 0px;
  transition: 0.5s;
}

.leaflet-routing-container.dark {
  z-index: 10;
  background: none repeat scroll 0% 0% rgba(8, 115, 186, 0.85);
  top: 0px;
  right: 0px;
  bottom: 0px;
  margin: 0px !important;
  background-image: url('../images/transportfocus_logo.svg');
  -webkit-background-size: 200px 60px;
  background-size: 200px 60px;
  background-position: 20px 10px;
  background-repeat: no-repeat;
  padding-top: 50px;
}

.leaflet-routing-geocoders div {
  padding: 4px 0px 4px 0px;
}

.leaflet-routing-geocoder {
  position: relative;
  background-color: rgba(8, 115, 186, 0.85);
  margin: 0 0 0 0;
  border-bottom: 0.5px solid #ffffff;
}

.leaflet-container button {
  margin: 0 10px 0 0;
  float: left;
  width: 40px;
  height: 40px;
  background-color: white;
}

.leaflet-routing-geocoders button {
  font: bold 18px 'Lucida Console', Monaco, monospace;
  margin: 0;
  margin-right: 3px;
  float: right;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.75);
  transition: background-color 0.2s ease;
  border: 0px;
  border-radius: 0 0 5px 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-right: 0px;
  color: white;
}

.leaflet-routing-add-waypoint {
  display: block;
}

.leaflet-routing-add-waypoint:after {
  content: ' + ';
}

.leaflet-routing-reverse-waypoints:after {
  font-weight: bold;
  content: '\21c5';
  color: white;
}

.leaflet-routing-remove-waypoint {
  background-color: transparent;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  padding-left: 10px;
}

.leaflet-routing-remove-waypoint:after {
  position: absolute;
  display: block;
  width: 15px;
  height: 1px;
  z-index: 1;
  bottom: 0;
  margin: auto;
  font-size: 18px;
  font-weight: bold;
  content: "\00d7";
  text-align: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.6);
  padding-bottom: 16px;
  margin-top: -10px;
  margin-left: 0px;
  line-height: 1;
}

.leaflet-routing-remove-waypoint {
  background-color: transparent;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  margin-top: 10px;
}

.leaflet-routing-remove-waypoint:hover {
  color: black;
  transition: background-color 0.2s ease;
}

.leaflet-routing-alternatives-container {
  position: fixed;
  right: 0px;
  top: 60px;
  width: 45%;
  max-width: 340px;
  min-width: 200px;
  height: 95%;
  overflow: scroll;
  transition: 0.5s;
}

/* OSRM + Leaflet toolbar icons */
.leaflet-bar {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 0px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
  margin-bottom: 20px;
}

.osrm-directions-icon {
  background-image: url('../images/osrm.toolbar.icons.svg');
  -webkit-background-size: 146px 24px;
  background-size: 170px 24px;
  margin: 0;
  content: '';
  display: inline-block;
  vertical-align: top;
  width: 24px;
  height: 24px;
}

.osrm-add-icon {
  background-position: -280px 0;
}

.osrm-via-icon {
  background-position: -300px 0;
}

.osrm-editor-icon {
  background-position: -48px 0;
}

.osrm-josm-icon {
  background-position: -72px 0;
}

.osrm-debug-icon {
  background-position: -96px 0;
}

.osrm-mapillary-icon {
  background-position: -120px 0;
}

.osrm-gpx-icon {
  background-position: -146px 0;
}

.osrm-localization-chooser {
  color: #ffffff;
  background: transparent;
  border: none;
  height: 24px;
  padding-left: 3px;
  padding-right: 3px;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.osrm-localization-chooser:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.leaflet-osrm-tools-hide {
  display: none;
}

/* OSRM geocoder directions inputs */
.osrm-directions-inputs {
  position: fixed;
  left: 10px;
  top: 10px;
  width: 45%;
  max-width: 350px;
  min-width: 200px;
  overflow: auto;
  max-height: 75%;
  margin-top: 25vh;
}

.leaflet-routing-geocoders.osrm-directions-inputs .leaflet-routing-geocoder:first-child input {
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  height: 50px;
  border-left-color: lime;
  border-left-width: thick;
}

.leaflet-routing-geocoders.osrm-directions-inputs .leaflet-routing-geocoder:last-of-type input {
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  height: 50px;
  border-left-color: red;
  border-left-width: thick;
}

.leaflet-routing-geocoders.osrm-directions-inputs .leaflet-routing-geocoder input {
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  height: 50px;
  border-left-color: white;
  border-left-width: thick;
}

.osrm-directions-inputs input {
  font-size: 16px;
  width: 90%;
  background-color: transparent;
  color: rgb(247, 243, 243);
  height: 30px;
  padding: 10px 10px 10px 20px;
}

::placeholder {
  color: rgb(247, 243, 243);
}

.osrm-directions-route-summary {
  display: none;
}

.osrm-directions-route-active .osrm-directions-route-summary {
  display: block;
}

/* directions icons */
.osrm-directions-instructions .osrm-directions-icon {
  position: absolute;
  left: 10px;
  top: 25px;
  margin: auto;
}

.osrm-continue-icon {
  background-position: 0 0;
}

.osrm-sharp-right-icon {
  background-position: -20px 0;
}

.osrm-turn-right-icon {
  background-position: -40px 0;
}

.osrm-bear-right-icon {
  background-position: -60px 0;
}

.osrm-u-turn-icon {
  background-position: -80px 0;
}

.osrm-sharp-left-icon {
  background-position: -100px 0;
}

.osrm-turn-left-icon {
  background-position: -120px 0;
}

.osrm-bear-left-icon {
  background-position: -140px 0;
}

.osrm-depart-icon {
  background-position: -160px -1;
  background-color: #87DE9F;
}

.osrm-enter-roundabout-icon {
  background-position: -180px 0;
}

.osrm-arrive-icon {
  background-position: -200px 0;
  background-color: #DB5C0A;
}

.osrm-close-icon {
  background-position: -220px 0;
}

.osrm-reverse-icon {
  background-position: -240px 0;
}

.osrm-error-icon {
  background-position: -260px 0;
}

.osrm-marker-drag-icon {
  display: block;
  background-color: #444;
  border-radius: 50%;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

.osrm-marker-drag-icon-step {
  background-color: #3BB2D0;
}

.leaflet-osrm-tools-container {
  width: auto;
  text-align: justify;
  padding: 2px 4px;
  z-index: 8;
}

.leaflet-osrm-tools-container div {
  vertical-align: middle;
  display: inline-block;
  cursor: pointer;
  padding: 2px 0px;
}

.leaflet-osrm-tools-container span:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.leaflet-osrm-tools-container span[disabled],
.leaflet-osrm-tools-container span[disabled]:hover {
  background-color: transparent;
  cursor: default;
  opacity: 0.5;
}

/* Instructions */
.osrm-directions-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.osrm-directions-step {
  position: relative;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  padding: 20px 20px 20px 40px;
  font-size: 20px;
  line-height: 25px;
}

.osrm-directions-step-distance {
  color: rgba(255, 255, 255, .5);
  position: absolute;
  padding: 5px 10px;
  font-size: 12px;
  left: 30px;
  bottom: -15px;
}

.osrm-directions-step:hover {
  color: white;
}

.osrm-directions-step:after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: -20px;
  border-left: 2px dotted rgba(255, 255, 255, .2);
  left: 20px;
}

.osrm-directions-step:last-child:after,
.osrm-directions-step:last-child .osrm-directions-step-distance {
  display: none;
}

/* Directions Summary */
.osrm-directions-summary {
  color: rgba(250, 250, 250, 0.8);
}

.leaflet-routing-alt.osrm-directions-instructions.leaflet-routing-alt-minimized {
  display: none;
}

.leaflet-routing-alt-minimized .osrm-directions-summary {
  color: rgba(250, 250, 250, 0.8);
  padding-top: 80px;
}

.leaflet-routing-alt table td,
.leaflet-routing-alt table {
  color: rgba(250, 250, 250, 0.8);
  margin-top: 20px;
  padding: 5px;
  padding-bottom: 10px;
  padding-left: 10px;
  font-weight: 400;
  font-size: 14px;
}

.leaflet-routing-alt-minimized table td,
.leaflet-routing-alt-minimized table {
  color: rgba(37, 72, 127, 0.8);
  margin-top: 20px;
  padding: 5px;
  padding-bottom: 10px;
  padding-left: 10px;
  font-weight: 400;
  font-size: 14px;
}

.osrm-directions-summary h2 {
  font-size: 19px;
  font-weight: bold;
  line-height: 22px;
  margin-right: 15px;
}

.osrm-directions-summary h3 {
  font-weight: normal;
}

.leaflet-osrm-geocoder-label {
  width: 20px;
  height: 20px;
  font-family: Arial;
  font-variant: bold;
  font-size: 20px;
  color: #fff;
}

.leaflet-routing-alt table td:hover {
  cursor: pointer;
  background-color: rgba(37, 72, 127, 0.8);
}

.leaflet-routing-alt table tr:hover {
  background-color: rgba(37, 72, 127, 0.8);
}

td.distance {
  min-width: 60px;
}

.leaflet-routing-icon {
  background-image: url('../images/osrm.directions.icons.black.svg');
  -webkit-background-size: 455px 20px;
  background-size: 455px 20px;
  background-repeat: no-repeat;
  margin: 0;
  content: '';
  display: inline-block;
  vertical-align: top;
  width: 20px;
  height: 20px;
}

.leaflet-routing-alt-minimized .leaflet-routing-icon {
  background-image: url('../images/osrm.directions.icons.black.svg');
}

.leaflet-routing-icon-continue {
  background-position: 2px 0px;
}

.leaflet-routing-icon-sharp-right {
  background-position: -24px 0px;
}

.leaflet-routing-icon-turn-right {
  background-position: -50px 0px;
}

.leaflet-routing-icon-bear-right {
  background-position: -74px 0px;
}

.leaflet-routing-icon-u-turn {
  background-position: -101px 0px;
}

.leaflet-routing-icon-sharp-left {
  background-position: -127px 0px;
}

.leaflet-routing-icon-turn-left {
  background-position: -150px 0px;
}

.leaflet-routing-icon-bear-left {
  background-position: -175px 0px;
}

.leaflet-routing-icon-depart {
  background-position: -202px 0px;
}

.leaflet-routing-icon-enter-roundabout {
  background-position: -227px 0px;
}

.leaflet-routing-icon-arrive {
  background-position: -253px 0px;
}

.leaflet-routing-icon-via {
  background-position: -278px 0px;
}

.leaflet-routing-icon-fork {
  background-position: -305px 0px;
}

.leaflet-routing-icon-ramp-right {
  background-position: -331px 0px;
}

.leaflet-routing-icon-ramp-left {
  background-position: -352px 0px;
}

.leaflet-routing-icon-merge-left {
  background-position: -376px 0px;
}

.leaflet-routing-icon-merge-right {
  background-position: -403px 0px;
}

.leaflet-routing-icon-end {
  background-position: -429px 0px;
}

/* Lane indications */
.osrm-lane-icon {
  background-image: url('../images/osrm.lanes.icons.svg');
  -webkit-background-size: 180px 20px;
  background-size: 180px 20px;
  background-repeat: no-repeat;
  margin: 3px 0 0 0;
  content: '';
  display: inline-block;
  vertical-align: top;
  width: 20px;
  height: 20px;
}

.osrm-lane-icon.invalid {
  opacity: 0.5;
}

.osrm-lane-icon.straight {
  background-position: 0px 0px;
}

.osrm-lane-icon.left {
  background-position: -20px 0px;
}

.osrm-lane-icon.sharp-left {
  background-position: -40px 0px;
}

.osrm-lane-icon.slight-left {
  background-position: -60px 0px;
}

.osrm-lane-icon.uturn {
  background-position: -80px 0px;
}

.osrm-lane-icon.uturn-right {
  background-position: -100px 0px;
}

.osrm-lane-icon.slight-right {
  background-position: -120px 0px;
}

.osrm-lane-icon.sharp-right {
  background-position: -140px 0px;
}

.osrm-lane-icon.right {
  background-position: -160px 0px;
}

/*  FORM Labels */
.osrm-form-label {
  cursor: default;
}

.osrm-directions-origin .osrm-form-label {
  background-color: #ee8a65;
}

.osrm-directions-via {
  background-color: white;
  position: relative;
}

.osrm-directions-via .osrm-form-label {
  background-color: #CCC;
}

.osrm-directions-via input {
  border-top: 1px solid rgba(0, 0, 0, .1);
}

/* Leaflet marker labels */
.leaflet-label {
  background: rgb(235, 235, 235);
  background: rgba(235, 235, 235, 0.81);
  background-clip: padding-box;
  border-color: #777;
  border-color: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border-style: solid;
  border-width: 4px;
  color: #111;
  display: block;
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: bold;
  padding: 1px 6px;
  position: absolute;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}

.leaflet-label.leaflet-clickable {
  cursor: pointer;
  pointer-events: auto;
}

.leaflet-label:before,
.leaflet-label:after {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  content: none;
  position: absolute;
  top: 5px;
}

.leaflet-label:before {
  border-right: 6px solid black;
  border-right-color: inherit;
  left: -10px;
}

.leaflet-label:after {
  border-left: 6px solid black;
  border-left-color: inherit;
  right: -10px;
}

.leaflet-label-right:before,
.leaflet-label-left:after {
  content: "";
}


/* Small Screen Layout
------------------------------------------------------- */
@media only screen and (max-width:880px) {
  .osrm-directions-summary {
    background-image: url('../images/transportfocus_logo.svg');
    -webkit-background-size: 200px 45px;
    background-size: 200px 45px;
    background-repeat: no-repeat;
    margin: 0;
    padding-top: 40px;
    padding-left: 5px;
    background-position: -21px 0px;
  }

  .osrm-directions-summary h2 {
    font-size: 15px;
    font-weight: bold;
    line-height: 18px;
    margin-right: 15px;
  }

  .leaflet-routing-container.dark {
    z-index: 10;
    background: none repeat scroll 0% 0% rgba(8, 115, 186, 0.85);
    top: 0px;
    right: 0px;
    bottom: 0px;
    margin: 0px !important;
    max-width: 58%;
    min-width: 48%;
  }

  .leaflet-routing-alt table td,
  .leaflet-routing-alt table {
    margin-top: 20px;
    padding: 5px;
    padding-bottom: 10px;
    margin-left: 0%;
    max-width: 95%;
  }

  .leaflet-routing-alternatives-container {
    position: fixed;
    right: 0px;
    top: 10px;
    width: 45%;
    max-width: 55%;
    min-width: 45%;
    height: 100%;
    overflow: scroll;
  }

  .leaflet-bottom .leaflet-control {
    margin-bottom: 0px;
  }

  .leaflet-control-zoom {
    display: hidden;
  }
  .osrm-directions-inputs {
    width: 75%;
  }
}

/*
  geocoding autocomplete styling
  copied over from leaflet-routing-machine.css
*/
.leaflet-routing-geocoder-result {
  font: 16px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  z-index: 1000;
  /* Arbitrary, but try to be above "most" things. */
}

.leaflet-routing-geocoder-result table {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  background-color: white;
  cursor: pointer;
}

.leaflet-routing-geocoder-result-open {
  max-height: 800px;
}

.leaflet-routing-geocoder-selected,
.leaflet-routing-geocoder-result tr:hover {
  background-color: #eee;
}

.leaflet-routing-geocoder-no-results {
  font-style: italic;
  color: #888;
}


/* Mobile Layout
------------------------------------------------------- */
@media only screen and (max-width:400px) {
  .osrm-directions-summary {
    background-image: url('../images/transportfocus_logo.svg');
    -webkit-background-size: 170px 40px;
    background-size: 170px 40px;
    background-repeat: no-repeat;
    margin: 0;
    padding-top: 40px;
    padding-left: 32px;
    margin-left: 20px;
    background-position: -20px 0px;
  }

  .osrm-directions-summary h2 {
    font-size: 15px;
    font-weight: bold;
    line-height: 18px;
    margin-left: -25px;
  }

  .osrm-directions-summary h3 {
    font-size: 12px;
    margin-left: -25px;
  }

  .osrm-directions-inputs input {
    width: 70%;
  }

  .osrm-directions-inputs {
    min-width: 175px;
  }

  .leaflet-routing-remove-waypoint:after {
    margin-left: 19px;
  }

  .leaflet-routing-container.dark {
    z-index: 10;
    background: none repeat scroll 0% 0% rgba(8, 115, 186, 0.85);
    top: 0px;
    right: 0px;
    bottom: 0px;
    margin: 0px !important;
    max-width: 58%;
    min-width: 40%;
  }

  .leaflet-routing-alt table td,
  .leaflet-routing-alt table {
    margin-top: 10px;
    padding-bottom: 0px;
    margin-left: 12px;
    max-width: 95%;
    font-size: 11px;
    line-height: 16px;
  }

  .leaflet-routing-alt .osrm-directions-instructions,
  .leaflet-routing-alternatives-container {
    position: fixed;
    right: 0px;
    top: 10px;
    width: 45%;
    max-width: 55%;
    min-width: 20%;
    height: 100%;
    overflow: scroll;
  }

  .leaflet-left .leaflet-control {
    margin-left: 10px;
  }

  .leaflet-control {
    margin-bottom: 0px;
  }

  .leaflet-routing-alt table td:hover,
  .leaflet-routing-alt table tr:hover {
    border-left-width: 1px;
  }

  .leaflet-control-zoom {
    left: 295px;
  }
}

.leaflet-routing-collapse-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.74902);
  width: 36px;
  height: 36px;
  display: none;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  font-size: 18px;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 50;
}

.leaflet-routing-collapse-btn:after {
  content: '\203a';
}

.leaflet-routing-container-hide .leaflet-routing-collapse-btn:after {
  content: '\2039';
}

.leaflet-routing-container-hide.dark,
.leaflet-routing-container-hide .leaflet-routing-alternatives-container {
  margin-right: -400px !important;
  transition: 0.5s;
}

.information-button {
  background-color: rgba(255, 255, 255, 0) !important;
  border: 0;
  margin: 5em 0 0 0 !important;
  padding: 0.6em 10px !important;
  float: left;
}

.accept-journey-button {
  background-color: rgba(255, 255, 255, 0) !important;
  border: 0;
  padding: 0.6em 10px !important;
  float: left;
}

.roads-button {
  background-color: rgba(255, 255, 255, 0) !important;
  border: 0;
  padding: 0.6em 10px !important;
  float: left;
}

.fa-info-circle {
  color: rgba(0, 0, 0, 0.74902);
}

.fa-check {
  color: rgba(0, 0, 0, 0.74902);
}

.fa-road {
  color: rgba(0, 0, 0, 0.74902);
}

.complete-journey-button {
  display: inline-block;
  background-color: rgb(8, 115, 186, 0.85) !important;
  color: rgb(0, 0, 0) !important;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 5px;
}

.complete-journey-button:hover {
  background-color: #fc0c0c !important;
}

.confirm-journey-no-button,
.complete-journey-no-button {
  display: inline-block;
  background-color: rgb(8, 115, 186, 0.85) !important;
  color: rgb(0, 0, 0) !important;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 5px;
}

.confirm-journey-no-button:hover,
.complete-journey-no-button:hover {
  background-color: #fc0c0c !important;
}

.complete-journey-button[disabled],
.update-roads-button[disabled] {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #aaaaaa44
}

.display-roads-button,
.accept-changes-button,
.zoom-to-route-button,
.confirm-journey-yes-button,
.complete-journey-yes-button,
.update-roads-button,
.go-back-button {
  display: inline-block;
  background-color: rgb(8, 115, 186, 0.85) !important;
  color: rgb(0, 0, 0) !important;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 5px;
}

.display-roads-button:hover,
.accept-changes-button:hover,
.confirm-journey-yes-button:hover,
.zoom-to-route-button:hover,
.complete-journey-yes-button:hover,
.update-roads-button:hover,
.go-back-button:hover {
  background-color: #2bf303 !important;
}

.freeze-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  /* Semi-transparent white */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #333;
  font-weight: bold;
}

#map {
  position: absolute;
  top: 50px;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100vh - 50px);
  transition: top 0.3s, height 0.3s;
}

#map,
.leaflet-routing-geocoders {
  transition: margin-top 0.3s;
}

.leaflet-topbar.expanded~#map {
  top: 25vh;
  height: calc(100vh - 25vh);
}

.leaflet-topbar-tabs>li.active,
.leaflet-topbar-tabs>ul>li.active {
  color: #fff;
  background-color: rgb(255, 255, 255) !important;
}

.road-label {
  font-size: 14px;
  font-weight: bold;
  color: #003366;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 5px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.leaflet-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 115, 186, 0.85);
  z-index: 1000;
  transition: height 0.3s ease-in-out;
  overflow: hidden;
  font-family: Arial;
}

/* Collapsed: Only Tabs Visible */
.leaflet-topbar.collapsed {
  height: 50px;
}

/* Expanded: Covers Top Quarter of Screen */
.leaflet-topbar.expanded {
  height: 25vh;
}

/* Hide the topbar tabs */
.leaflet-topbar-tabs {
  display: none;
  /* Hides the tabs */
}

/* ====== Panel Content Styles ====== */
.leaflet-topbar-content {
  display: none;
  background: white;
  height: calc(100% - 10px) !important;
  overflow-y: auto;
  position: relatve;
  padding-left: 10px;
  padding-right: 10px;
  border: 5px solid black;
}

/* Show Content when Expanded */
.leaflet-topbar.expanded .leaflet-topbar-content {
  display: block;
}

.leaflet-topbar-pane {
  display: none;
}

.leaflet-topbar-pane.active {
  display: block;
}

.leaflet-tooltip.start-journey-marker {
  background-color: #2d7a2d;
  color: #fff;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #1e5a1e;
  text-align: center;
  font-size: 14px;
}

.leaflet-tooltip.end-journey-marker {
  background-color: #a52a2a;
  color: #fff;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #7a1e1e;
  text-align: center;
  font-size: 14px;
}

.leaflet-tooltip.waypoint-journey-marker {
  background-color: #757373;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #757373;
  text-align: center;
  font-size: 14px;
}

.leaflet-routing-geocoder input:focus::placeholder {
  color: transparent;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
    background-color: transparent;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
    background-color: transparent;
  }
}

@keyframes backgroundPulse {
  50% {
    background-color: #5e9bf7;
  }
}


/* Apply pulsing effect only on screens wider than 768px (iPads and larger screens) */
@media (min-width: 768px) {
  .osrm-directions-inputs {
    animation: pulse 1.5s ease-in-out 3;
  }

  .leaflet-topbar-content {
    font-size: 1.6rem;
  }

  .leaflet-routing-geocoder {
    animation: backgroundPulse 1.5s ease-in-out 3;
  }
}

#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #333;
}

/* Default scrollbar */
.leaflet-topbar-content::-webkit-scrollbar {
  width: 20px;
}

.leaflet-topbar-content::-webkit-scrollbar-thumb {
  background-color: rgb(8, 115, 186);
  /* Default scrollbar color */
  border-radius: 5px;
}
