/* GPS : repères d’arrêts lisibles, sans ajouter de panneaux sur la carte. */
#route-navigation .nav-stop-marker {
  background: transparent;
  border: 0;
  overflow: visible;
}
.nav-stop-pin {
  position: relative;
  transform: rotate(var(--nav-map-angle, 0deg));
  transform-origin: 17px 17px;
  display: flex;
  align-items: center;
  width: 34px;
  height: 34px;
}
.nav-stop-symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #1763ad;
  color: #fff;
  box-shadow: 0 2px 8px #102a4d60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-stop-symbol svg {
  width: 20px;
  height: 20px;
}
.nav-stop-name {
  display: none;
  position: absolute;
  left: 39px;
  top: 2px;
  white-space: nowrap;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
  color: #15314d;
  padding: 6px 9px;
  border: 1px solid #c6d8e8;
  border-radius: 8px;
  font: 700 12px/1.3 system-ui;
  box-shadow: 0 2px 7px #102a4d20;
}
.nav-stop-labels-visible .nav-stop-name {
  display: block;
}
.nav-stop-upcoming .nav-stop-symbol {
  background: #bd1637;
  border-color: #fff;
  box-shadow:
    0 0 0 4px #bd16372b,
    0 2px 10px #102a4d60;
}
.nav-stop-upcoming .nav-stop-name {
  display: block;
  background: #bd1637;
  color: white;
  border-color: #bd1637;
  font-size: 13px;
  max-width: 230px;
}
.nav-stop-upcoming .nav-stop-pin {
  z-index: 2;
}
#route-navigation .nav-next-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-basis: 100%;
  margin-top: 9px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff1f4;
  border-left: 4px solid #bd1637;
  color: #232f3c;
  text-align: left;
}
#route-navigation .nav-next-stop[hidden] {
  display: none;
}
#route-navigation .nav-next-stop small {
  font-size: 10px;
  font-weight: 800;
  color: #a81835;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
#route-navigation .nav-next-stop strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.nav-next-stop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #bd1637;
  color: white;
  flex-shrink: 0;
}
.nav-next-stop-icon svg {
  width: 21px;
  height: 21px;
}
#route-navigation .nav-progress {
  flex-wrap: wrap;
}
#route-navigation.nav-night .nav-next-stop {
  background: #35232c;
  color: #fff;
}
#route-navigation.nav-night .nav-next-stop small {
  color: #ffb7c6;
}
.nav-stop-marker:focus-visible {
  outline: 3px solid #ffc629;
  outline-offset: 5px;
  border-radius: 12px;
}
@media (max-width: 600px) {
  #route-navigation .nav-next-stop {
    padding: 8px 9px;
    margin-top: 7px;
  }
  #route-navigation .nav-next-stop strong {
    font-size: 15px;
  }
  .nav-stop-name {
    max-width: 145px;
  }
  .nav-stop-upcoming .nav-stop-name {
    max-width: 175px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  #route-navigation .nav-next-stop {
    padding: 5px 8px;
    gap: 7px;
  }
  #route-navigation .nav-next-stop strong {
    font-size: 13px;
  }
  .nav-next-stop-icon {
    width: 25px;
    height: 25px;
  }
}
#route-navigation .nav-next-stop {
  border-top: 0;
  padding-top: 11px;
  color: #232f3c;
  margin-top: 9px;
}
#route-navigation .nav-next-stop > div {
  min-width: 0;
}
#route-navigation .nav-progress {
  row-gap: 0;
}
@media (max-width: 600px) {
  #route-navigation .nav-next-stop {
    padding-top: 8px;
    margin-top: 7px;
  }
}
/* Keep touch controls clear of the information cards in landscape. */
@media (max-height: 500px) and (orientation: landscape) {
  #route-navigation .nav-progress {
    right: auto;
    width: min(60%, 520px);
  }
  #route-navigation .nav-speed-panel {
    bottom: 19px;
  }
  #route-navigation .nav-zoom-controls {
    display: flex;
    flex-direction: row;
    gap: 6px;
  }
  #route-navigation .nav-map-buttons {
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
  }
}
#route-navigation .nav-map-warning {
  position: absolute;
  top: 8px;
  left: 65px;
  right: 65px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 450;
  padding: 7px 10px;
  border-radius: 9px;
  background: #fff7df;
  color: #684b17;
  border: 1px solid #dfc788;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
#route-navigation .nav-map-warning[hidden] {
  display: none;
}
@media (max-height: 500px) and (orientation: landscape) {
  #route-navigation .nav-map-warning {
    left: 115px;
    right: 115px;
  }
}
