.reis-section--map .yyt-route-map-layout {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 30, 29, .14);
  border-radius: 1rem;
  background: #fffaf3;
  box-shadow: 0 .9rem 2.4rem rgba(31, 30, 29, .12);
}

.reis-section--map .leaflet-container {
  width: 100%;
  background: #ebe5dc;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.reis-section--map .yyt-route-legend {
  position: absolute;
  top: .8rem;
  left: 3.65rem;
  z-index: 500;
  width: min(12rem, calc(100% - 4.5rem));
  max-height: calc(100% - 1.6rem);
  min-width: 0;
  padding: .75rem;
  border: 1px solid rgba(31, 30, 29, .12);
  border-radius: .75rem;
  background: rgba(255, 250, 243, .88);
  box-shadow: 0 .45rem 1.25rem rgba(31, 30, 29, .14);
  backdrop-filter: blur(8px);
}

.reis-section--map .yyt-route-legend__eyebrow {
  display: block;
  margin-bottom: .18rem;
  color: #9a651d;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.reis-section--map .yyt-route-legend h3 {
  margin: 0 0 .55rem;
  color: #1f1e1d;
  font-size: 1.05rem;
  line-height: 1.05;
}

.reis-section--map .yyt-route-legend__list {
  display: grid;
  max-height: 27rem;
  margin: 0;
  padding: 0 .25rem 0 0;
  gap: .12rem;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgba(154, 101, 29, .35) transparent;
  scrollbar-width: thin;
}

.reis-section--map .yyt-route-legend__list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.reis-section--map .yyt-route-legend__item {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  padding: .3rem .35rem;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: .48rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: #3e3933;
  font: inherit;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.reis-section--map .yyt-route-legend__item:hover,
.reis-section--map .yyt-route-legend__item:focus-visible {
  background: rgba(214, 155, 54, .14);
  color: #1f1e1d;
  outline: none;
  transform: translateX(.18rem);
}

.reis-section--map .yyt-route-legend__item:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(185, 121, 32, .55);
}

.reis-section--map .yyt-route-legend__number {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1.5px solid #d69b36;
  border-radius: 50%;
  background: #1f1e1d;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
}

.reis-section--map .leaflet-tile-pane {
  filter: sepia(.08) saturate(.72) contrast(.94);
}

.reis-section--map .yyt-city-label {
  width: auto !important;
  height: auto !important;
  border: 0;
  background: transparent;
}

.reis-section--map .yyt-city-label[hidden] {
  display: none !important;
}

.reis-section--map .yyt-city-label span {
  display: inline-block;
  padding: .12rem .3rem;
  border-radius: .25rem;
  background: rgba(255, 252, 247, .54);
  box-shadow: 0 1px 3px rgba(31, 30, 29, .05);
  color: rgba(82, 77, 71, .68);
  font-family: inherit;
  font-size: .62rem;
  font-weight: 550;
  line-height: 1.1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.reis-section--map .yyt-route-marker {
  align-items: center;
  background: #1f1e1d;
  border: 3px solid #d69b36;
  border-radius: 50%;
  box-shadow: 0 .25rem .8rem rgba(31, 30, 29, .3);
  color: #fff;
  display: flex;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  height: 2.125rem;
  justify-content: center;
  line-height: 1;
  width: 2.125rem;
}

.reis-section--map .yyt-route-label {
  background: rgba(255, 252, 247, .96);
  border: 1px solid rgba(31, 30, 29, .14);
  border-radius: .55rem;
  box-shadow: 0 .25rem .7rem rgba(31, 30, 29, .15);
  color: #1f1e1d;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .55rem;
  white-space: nowrap;
}

.reis-section--map .yyt-route-label::before {
  display: none;
}

.reis-section--map .leaflet-popup-content-wrapper,
.reis-section--map .leaflet-popup-tip {
  background: #fffaf3;
  color: #1f1e1d;
}

.reis-section--map .leaflet-popup-content-wrapper {
  border-radius: .75rem;
  box-shadow: 0 .65rem 1.7rem rgba(31, 30, 29, .2);
}

.reis-section--map .leaflet-control-zoom a {
  background: #1f1e1d;
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}

.reis-section--map .leaflet-control-zoom a:hover,
.reis-section--map .leaflet-control-zoom a:focus {
  background: #d69b36;
  color: #1f1e1d;
}

.reis-section--map .leaflet-control-attribution {
  background: rgba(255, 252, 247, .82);
  color: #655f58;
  font-size: .62rem;
}

@media (max-width: 47.99rem) {
  .reis-section--map .yyt-route-map-layout {
    border-radius: .75rem;
  }

  .reis-section--map .leaflet-container {
    min-height: 26rem;
    border-radius: 0;
  }

  .reis-section--map .yyt-route-legend {
    top: .65rem;
    right: .65rem;
    left: auto;
    width: min(10.5rem, calc(100% - 4.5rem));
    padding: .65rem;
  }

  .reis-section--map .yyt-route-legend h3 {
    margin-bottom: .45rem;
  }

  .reis-section--map .yyt-route-legend__list {
    max-height: 14rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .reis-section--map .yyt-route-legend__item {
    padding: .28rem .3rem;
  }

  .reis-section--map .yyt-route-label {
    font-size: .7rem;
  }

  .reis-section--map .yyt-city-label span {
    font-size: .56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reis-section--map .yyt-route-legend__item {
    transition: none;
  }
}
