.city-nav-scroller {
  --city-nav-control-width: 3rem;
  isolation: isolate;
}

.city-nav-scroller .nav {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.city-nav-scroller .nav::-webkit-scrollbar {
  display: none;
}

.city-nav-scroller.has-prev .nav {
  padding-left: var(--city-nav-control-width);
}

.city-nav-scroller.has-next .nav {
  padding-right: var(--city-nav-control-width);
}

.city-nav-control {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: var(--city-nav-control-width);
  padding: 0;
  color: #cc3333;
  background-color: transparent;
  border: 0;
  transition: color .2s ease, opacity .2s ease;
}

.city-nav-control::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: calc(var(--city-nav-control-width) + 1rem);
  content: "";
  pointer-events: none;
}

.city-nav-control-prev {
  left: 0;
}

.city-nav-control-prev::before {
  left: 0;
  background: linear-gradient(to right, #fff 55%, rgba(255, 255, 255, 0));
}

.city-nav-control-next {
  right: 0;
}

.city-nav-control-next::before {
  right: 0;
  background: linear-gradient(to left, #fff 55%, rgba(255, 255, 255, 0));
}

.city-nav-control:hover,
.city-nav-control:focus {
  color: #8f2424;
}

.city-nav-control:focus-visible {
  outline: 3px solid #cc3333;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .city-nav-scroller .nav {
    scroll-behavior: auto;
  }
}
