.titlebar {
  height: 37px;
  background-color: #f1f0f0;
  border-bottom: 1px solid #ccc;
  position: fixed;
  width: 100%;
  z-index: 10;
}

.titlebar .site-title {
  font-size: 14px;
  margin: 0;
  line-height: 35px;
  padding-left: 10px;
}

.titlebar .site-title .logo {
  height: 30px;
}

.titlebar .site-title .titlebar-text {
  padding-left: 6px;
}

.titlebar .btn-left {
  position: absolute;
  left: 0;
  top: 0;
  margin: 3px 5px;
}

.titlebar .btn-right {
  position: absolute;
  right: 0;
  top: 0;
  margin: 4px 5px;
}

.controls {
  padding: 62px 15px 25px;
  max-width: 320px;
  margin: 0 auto;
}

.controls .form-group {
  overflow: hidden;
  justify-content: space-between;
}

.controls .start-address {
  height: 43px;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
}

.controls .start-address .control-label {
  display: none;
}

.controls .start-address .start-icon {
  margin-right: 8px;
  width: 24px;
  height: 24px;
  background: #19b566;
  border-radius: 50%;
  border: 1px solid #0d5731;
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 22px;
}

.controls .start-address .form-control {
  vertical-align: 18px;
  width: auto;
  flex-grow: 1;
  font-size: 0.8rem;
}

.controls .start-address .loading-animation {
  position: absolute;
  left: 60px;
  color: #555;
  width: 20px;
  height: 20px;
  animation-name: spin;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  display: none;
}

.controls .start-address.geolocation-pending .loading-animation {
  display: block;
}

.controls .start-address.geolocation-pending .form-control {
  color: transparent;
}

.controls .start-address .btn-geolocation {
  width: 34px;
  height: 43px;
  display: inline-block;
  float: right;
  cursor: pointer;
  padding-left: 4px;
  padding-right: 4px;
  margin-left: 6px;
}

.controls .end-address {
  height: 43px;
  overflow: hidden;
  margin-bottom: 0;
}

.controls .end-address .control-label {
  display: none;
}

.controls .end-address .end-icon {
  margin-right: 8px;
  width: 24px;
  height: 24px;
  background: #cf3043;
  border-radius: 50%;
  border: 1px solid #58131c;
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 22px;
}

.controls .end-address .form-control {
  vertical-align: 18px;
  flex-grow: 1;
  width: auto;
  font-size: 0.8rem;
}

.controls .start-address,
.controls .end-address {
  overflow: visible;
}

.controls .places-autocomplete.form-control {
  min-width: 0;
  padding: 0;
  height: auto;
  border: 0;
  flex: 1;
  background: transparent;
}

.controls .places-autocomplete gmp-place-autocomplete {
  display: block;
  width: 100%;
  height: 34px;
  color-scheme: light;
  font: inherit;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.controls .places-autocomplete gmp-place-autocomplete::part(input) {
  box-sizing: border-box;
  min-height: 0;
  height: 32px;
  padding: 0.375rem 0.75rem;
}

.controls .places-autocomplete.is-invalid gmp-place-autocomplete,
.controls .places-autocomplete.is-invalid input {
  border-color: #dc3545;
}

.controls .places-autocomplete input {
  width: 100%;
}

.controls .start-icon,
.controls .end-icon,
.controls .btn-geolocation {
  flex-shrink: 0;
}

.controls input:focus::-webkit-input-placeholder {
  color: transparent;
}

.controls input:focus:-moz-placeholder {
  color: transparent;
}

.controls input:focus::-moz-placeholder {
  color: transparent;
}

.controls input:focus:-ms-input-placeholder {
  color: transparent;
}

.controls .route-type {
  margin-top: 8px;
  margin-bottom: 8px;
}

.controls .route-type .control-label {
  line-height: 30px;
  margin-bottom: 1px;
}

.controls .hill-reluctance {
  margin-bottom: 8px;
}

.controls .hill-reluctance .control-label {
  line-height: 30px;
  margin-bottom: 1px;
}

.controls .clear-link {
  color: #333;
  line-height: 31px;
}

.controls .btn-update-route {
  float: right;
  display: flex;
  align-items: center;
}

.controls .btn-update-route .loading-animation {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  animation-name: spin;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.disclaimer {
  clear: both;
  font-size: 10px;
  margin-top: 30px;
}

.directions {
  padding: 10px 15px;
}

.directions h3 {
  font-size: 14px;
  margin-top: 0;
  font-weight: normal;
}

.directions .directions-list {
  list-style-type: none;
  padding: 10px 0 0;
}

.directions .directions-list li {
  border-bottom: #ccc 1px solid;
  padding: 3px 0;
  font-size: 11px;
  text-transform: capitalize;
}

.weather {
  padding: 3px 0;
}

.weather .temperature,
.weather .humidity,
.weather .weather-description {
  display: inline-block;
  padding-right: 10px;
}

.weather .air-quality-box {
  display: inline-block;
  padding: 2px 3px;
  margin-left: 6px;
  border: 1px solid #c1c1c1;
}

.weather .air-quality-box-1 {
  background-color: #00e400;
}

.weather .air-quality-box-2 {
  background-color: #ffff00;
}

.weather .air-quality-box-3 {
  background-color: #ff7e00;
  color: #ffffff;
}

.weather .air-quality-box-4 {
  background-color: #ff0000;
  color: #ffffff;
}

.weather .air-quality-box-5 {
  background-color: #99004c;
  color: #ffffff;
}

.weather .air-quality-box-6 {
  background-color: #7e0023;
  color: #ffffff;
}

.elevation {
  background: #fff;
  position: relative;
  border-left: 1px solid #ccc;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
  height: 175px;
}

.elevation .close-box {
  position: absolute;
  z-index: 1;
  top: 2px;
  right: 2px;
  color: #333;
  cursor: pointer;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 20px;
}

.elevation .legend {
  display: none;
}

.elevation .grid-axis .tick {
  display: none;
}

.elevation-open-box {
  position: absolute;
  bottom: 142px;
  left: 30px;
  background: #fff;
  border: 1px solid #999;
  border-bottom: 0;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 3px 10px;
  cursor: pointer;
  transform: rotate(90deg);
  transform-origin: left top 0;
  z-index: 1;
}

.map-container {
  position: relative;
  padding-top: 37px;
}

.map-container .logo {
  display: none;
}

.map-container .map-layers {
  position: absolute;
  bottom: 37px;
  right: 0;
  background: #fff;
  border: 1px solid #999;
  border-right: 0;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 10px;
  font-size: 11px;
  font-weight: bold;
}

.map-container .map-layers .close-box {
  position: absolute;
  top: 2px;
  right: 2px;
  color: #333;
  cursor: pointer;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 20px;
}

.map-container .map-layers .map-legend-item {
  margin: 4px 0;
  display: flex;
  align-items: center;
}

.map-container .map-layers .map-legend-icon {
  width: 15px;
  height: 3px;
  margin-right: 6px;
  opacity: 0.6;
}

.map-container .map-layers .map-legend-icon.construction {
  background: url('../images/construction_marker.png') 0 0 no-repeat;
  background-size: 15px 15px;
  width: 15px;
  height: 18px;
  overflow: visible;
}

.map-container .map-layers .map-legend-icon.bikeParking {
  background: url('../images/BikeParkingIcon.png') 0 0 no-repeat;
  background-size: 15px 18px;
  width: 15px;
  height: 18px;
  overflow: visible;
}

.map-container .map-layers .map-legend-icon.bikeShops {
  background: url('../images/BikeShopIcon.png') 0 0 no-repeat;
  background-size: 15px 18px;
  width: 15px;
  height: 18px;
  overflow: visible;
}

.map-container .map-layers .map-legend-icon.sf-class4 {
  background: hsl(280, 100%, 20%);
  height: 5px;
}

.map-container .map-layers .map-legend-icon.sf-class1 {
  background: hsl(280, 100%, 30%);
}

.map-container .map-layers .map-legend-icon.sf-class2 {
  background: hsl(280, 97%, 48%);
}

.map-container .map-layers .map-legend-icon.sf-class3 {
  background: hsl(280, 59%, 71%);
}

.map-container .map-layers .map-legend-icon.tahoe-class1 {
  background: #fcf4db;
  border-top: 1px solid #330066;
  border-bottom: 1px solid #330066;
  height: 3px;
  vertical-align: -2px;
}

.map-container .map-layers .map-legend-icon.tahoe-class2 {
  border-top: 3px solid #660099;
  height: 0px;
  vertical-align: -2px;
}

.map-container .map-layers .map-legend-icon.tahoe-class3 {
  border-top: 3px dashed #9933cc;
  height: 0px;
  vertical-align: -2px;
}

.map-container .map-layers .map-legend-icon.tahoe-winter {
  border-top: 3px dashed #ff0000;
  height: 0px;
  vertical-align: -2px;
}

.map-container .map-layers .map-legend-icon.contracosta-lockers {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-color: #f41cf1;
  border: 1px solid #530a52;
  border-radius: 50%;
  opacity: 1;
}

.map-container .map-layers label {
  margin-bottom: 0;
  padding: 2px 0;
}

.map-container .map-layers label input[type='checkbox'] {
  padding-top: 3px;
  margin-right: 5px;
}

.map-layers-open-box {
  position: absolute;
  bottom: 37px;
  right: 30px;
  background: #ffffff;
  border: 1px solid #999;
  border-top: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 3px 10px;
  cursor: pointer;
  transform: rotate(90deg);
  transform-origin: right bottom 0;
}

.popup-container {
  margin-top: 10px;
  overflow-wrap: break-word;
}

.popup-container p,
.popup-container b {
  font-size: 15px;
  line-height: 20px;
  margin: 0 0 10px;
}

.icon-not-loading {
  display: none;
}

.ReactModal__Overlay {
  z-index: 1001;
}

.ReactModal__Overlay .ReactModal__Content {
  left: 0;
  right: 0;
  margin: 0 auto;
}

.welcome-modal h1 {
  margin-top: 0;
  font-size: 24px;
  text-align: center;
}

.welcome-modal .btn-primary {
  width: 100%;
}

/* Turn-by-turn navigation */

/* While navigating, the map fills the screen. The planning panels stay mounted. */
.navigating .titlebar,
.navigating .controls,
.navigating .directions,
.navigating .elevation,
.navigating .elevation-open-box,
.navigating .map-layers,
.navigating .map-layers-open-box,
.navigating .mapboxgl-ctrl-top-right {
  display: none;
}

.navigating .map-container {
  padding-top: 0;
  margin-left: 0;
}

/* Keep the Mapbox logo and attribution in view above the trip bar or arrival card. */
.navigating .mapboxgl-ctrl-bottom-left,
.navigating .mapboxgl-ctrl-bottom-right {
  bottom: 118px;
}

.navigating .map-container:has(.nav-sim) .mapboxgl-ctrl-bottom-left,
.navigating .map-container:has(.nav-sim) .mapboxgl-ctrl-bottom-right {
  bottom: 164px;
}

.navigating .map-container:has(.nav-arrival) .mapboxgl-ctrl-bottom-left,
.navigating .map-container:has(.nav-arrival) .mapboxgl-ctrl-bottom-right {
  bottom: 310px;
}

.nav-start {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.nav-start > * {
  pointer-events: auto;
}

.nav-start-buttons {
  display: flex;
  gap: 8px;
}

.nav-start-buttons .btn {
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-start-button {
  display: flex;
  align-items: center;
  padding-left: 28px;
  padding-right: 28px;
  font-weight: bold;
}

.nav-start-button .loading-animation {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  animation: spin 3s linear infinite;
}

.nav-start-error {
  position: relative;
  max-width: 340px;
  margin: 0 16px 10px;
  padding: 8px 34px 8px 10px;
  background: #fff;
  border: 1px solid #cf3043;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-start-error .close-box,
.nav-steps .close-box {
  border: 0;
  background: none;
  color: #333;
  font-size: 24px;
  line-height: 1;
  padding: 2px 8px;
}

.nav-start-error .close-box {
  position: absolute;
  top: 2px;
  right: 2px;
}

.maneuver-icon,
.maneuver-icon svg {
  display: block;
  flex: none;
}

.nav-top {
  position: absolute;
  z-index: 6;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.nav-banner {
  align-self: stretch;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  background: #330066;
  color: #fff;
  transition: background 0.25s;
}

.nav-banner.off-route {
  background: #b3261e;
}

.nav-banner.arrive {
  background: #0d5731;
}

.nav-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px 14px 12px 10px;
}

.nav-banner-main .maneuver-icon {
  width: 64px;
  display: flex;
  justify-content: center;
}

.nav-banner-text {
  flex: 1;
  min-width: 0;
}

.nav-banner-distance {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.nav-banner-road {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav-banner-then {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-weight: 600;
}

.nav-banner-then > span:first-child {
  opacity: 0.8;
  font-weight: 500;
}

.nav-caption {
  max-width: min(92vw, 520px);
  padding: 6px 10px 6px 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='%23330066'/%3E%3Cpath d='M16 8.5a5 5 0 010 7M18.5 6a8.5 8.5 0 010 12' stroke='%23330066' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat 8px center / 16px;
  color: #212529;
  font-size: 13.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-debug {
  align-self: stretch;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #9effa0;
  font:
    11px/1.35 ui-monospace,
    Menlo,
    monospace;
  white-space: pre-wrap;
}

.nav-bottom {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.nav-bottom button,
.nav-trip-bar {
  pointer-events: auto;
}

.nav-toast {
  align-self: center;
  max-width: 90vw;
  margin-bottom: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(33, 37, 41, 0.92);
  color: #fff;
  font-size: 14px;
}

.nav-map-controls {
  position: relative;
  display: flex;
  justify-content: flex-end;
  /* Clears the Mapbox attribution button. */
  padding: 0 10px 40px;
}

.nav-map-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-round-button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #330066;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-round-button[aria-pressed='true'] {
  color: #999;
}

.nav-recenter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-trip-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2);
}

.nav-trip {
  display: flex;
  text-align: center;
}

.nav-trip > div {
  flex: 1;
}

.nav-trip strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.nav-trip .nav-trip-arrival strong {
  color: #0d5731;
}

.nav-trip span {
  font-size: 12px;
  color: #6c757d;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-actions .nav-pill {
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 600;
}

.nav-actions .btn-light {
  border-color: #ccc;
}

.nav-actions .nav-end {
  margin-left: auto;
}

/* ?sim=1 controls, on their own row */
.nav-sim {
  order: -1;
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #f1ecf7;
  color: #330066;
  font-size: 13px;
  font-weight: 600;
}

.nav-sim button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #330066;
  font-weight: 700;
}

.nav-sim span {
  min-width: 62px;
  text-align: center;
}

.nav-sim .nav-sim-miss {
  margin-left: auto;
  padding: 0 12px;
}

.nav-steps {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 60%;
  overflow-y: auto;
  padding: 10px 16px 14px;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #330066;
}

.nav-steps-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.nav-steps-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
}

.nav-steps-list li:first-child {
  border-top: 0;
}

.nav-steps-list .maneuver-icon {
  color: #330066;
}

.nav-step-text {
  flex: 1;
  min-width: 0;
}

.nav-step-text.unnamed {
  color: #6c757d;
  font-style: italic;
}

.nav-step-distance {
  color: #6c757d;
  font-size: 12.5px;
  white-space: nowrap;
}

.nav-arrival {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  bottom: 14px;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.nav-arrival h2 {
  margin: 6px 0 12px;
  font-size: 24px;
  font-weight: bold;
  color: #330066;
}

.nav-arrival-flag {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #cf3043;
  color: #fff;
}

.nav-arrival-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.nav-arrival-stats > div {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid #ebe2f5;
  border-radius: 10px;
  background: #faf7fd;
}

.nav-arrival-stats strong {
  display: block;
  font-size: 19px;
  color: #330066;
}

.nav-arrival-stats span {
  font-size: 12px;
  color: #6c757d;
}

.nav-arrival-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #6c757d;
}

.nav-puck {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Animations */

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

@media only screen and (min-width: 667px) {
  .controls {
    width: 340px;
    float: left;
    padding: 10px 15px;
    max-width: none;
  }

  .controls .start-address .loading-animation {
    left: 50px;
  }

  .controls .route-type {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .controls .route-type .form-control {
    width: 180px;
  }

  .controls .hill-reluctance {
    margin-bottom: 6px;
  }

  .controls .hill-reluctance .form-control {
    width: 180px;
  }

  .directions {
    width: 340px;
    clear: left;
    float: left;
    overflow-y: scroll;
  }
  .elevation {
    margin-left: 340px;
  }
  .elevation-open-box {
    bottom: 0;
    left: auto;
    right: 275px;
    transform: none;
  }

  .map-container {
    margin-left: 340px;
    padding-top: 0;
  }

  .map-container .map {
    min-height: 400px;
  }

  .map-container .map-layers {
    bottom: 24px;
  }

  .map-container .map-layers .close-box {
    display: none;
  }

  .map-container .logo {
    display: block;
    position: absolute;
    top: 0;
    left: 52px;
    z-index: 10;
  }

  .map-container .logo.ltbc-logo {
    /*
    Specific styling for the LTBC Logo overlay:

    Bikesy logo has an opaque #333 colored background
    And some more padding around the logo built into the tif
    LTBC Logo has a transparent background and less padding
    So padding needs to be added here. 
    TODO, update the LTBC PNG and then these styles can be removed?
    */
    background: #fff;
    padding: 4px 7px;
    /*
    Rounded corners and a thin solid border look nice too.
    These are included in the old tahoe bike map
    */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #999;
  }

  .map-container .logo.contracosta-logo {
    /*
    Specific styling for the 511 Contra Costa Bike Mapper Logo overlay:
    */
    background: #fff;
    padding: 4px 7px;
    /*
    Rounded corners and a thin solid border look nice too.
    These are included in the old tahoe bike map
    */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #999;
  }

  .titlebar {
    display: none;
  }

  .ReactModal__Overlay .ReactModal__Content {
    max-width: 400px;
    height: 290px;
  }

  /* Wider screens (a phone turned sideways): navigation panels on the left. */
  .navigating .map-container .logo {
    display: none;
  }

  .nav-top {
    right: auto;
    width: 420px;
  }

  .nav-bottom {
    left: 8px;
    bottom: 8px;
    right: 0;
  }

  .nav-trip-bar,
  .nav-steps {
    width: 420px;
    border-radius: 14px;
  }

  .nav-steps {
    right: auto;
    left: 8px;
    bottom: 8px;
  }

  /* The map controls sit in the corner of the map, right of the panels. */
  .nav-map-controls {
    position: absolute;
    left: 428px;
    right: 0;
    bottom: 0;
  }

  .navigating .map-container .mapboxgl-ctrl-bottom-right,
  .navigating .map-container:has(.nav-sim) .mapboxgl-ctrl-bottom-right {
    bottom: 0;
  }
}

@media print {
  .titlebar {
    display: none;
  }
  .directions {
    height: auto !important;
  }

  .directions h3 {
    font-size: 30px;
    margin-top: 20px;
  }

  .directions .directions-list li {
    font-size: 14px;
    border-bottom: 0;
  }

  .map {
    height: 1700px !important;
    page-break-before: always;
  }

  .map .leaflet-control-attribution {
    background: #fff !important;
  }
  .elevation {
    border: 0;
    margin-top: 20px;
  }
}
