.rt-page__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .rt-page__container {
    padding: 0 20px;
  }
}

.rt-page__title {
  font-family: "Fixel Display", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.8px;
  color: #04083a;
  margin: 0 0 32px;
}
@media screen and (max-width: 1024px) {
  .rt-page__title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 24px;
  }
}

.routes__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}
@media screen and (max-width: 1200px) {
  .routes__grid {
    grid-template-columns: 300px 1fr;
    gap: 24px;
  }
}
@media screen and (max-width: 1024px) {
  .routes__grid {
    grid-template-columns: 1fr;
  }
}

.routes__none {
  padding: 60px 0;
  text-align: center;
  color: #7a7d98;
  font-family: "Work Sans", sans-serif;
}

.routes__aside {
  background: #fff;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  padding: 24px;
  position: sticky;
  top: 154px;
}
@media screen and (max-width: 1024px) {
  .routes__aside {
    position: static;
    padding: 20px;
  }
}

.routes__aside-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.routes__aside-title {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: -0.48px;
  color: #04083a;
  margin: 0;
}

.routes__count {
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  color: #04083a;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(235, 122, 27, 0.1);
  border: 1px solid rgba(235, 122, 27, 0.25);
  color: #eb7a1b;
  letter-spacing: 0;
}

.routes__search {
  position: relative;
  margin-bottom: 16px;
}
.routes__search svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: rgba(4, 8, 58, 0.4);
  pointer-events: none;
}
.routes__search input {
  padding-right: 30px;
}

.routes__search-input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px 0 38px;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  background: #fff;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  color: #04083a;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.routes__search-input::-webkit-input-placeholder {
  color: rgba(4, 8, 58, 0.4);
}
.routes__search-input:-moz-placeholder {
  color: rgba(4, 8, 58, 0.4);
}
.routes__search-input::-moz-placeholder {
  color: rgba(4, 8, 58, 0.4);
}
.routes__search-input:-ms-input-placeholder {
  color: rgba(4, 8, 58, 0.4);
}
.routes__search-input:focus {
  outline: none;
  border-color: #eb7a1b;
  box-shadow: 0 0 0 3px rgba(235, 122, 27, 0.15);
}

.routes__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 560px;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 0 8px;
}
@media screen and (max-width: 1024px) {
  .routes__list {
    max-height: 380px;
  }
}

.routes__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.routes__item[hidden] {
  display: none;
}
.routes__item:active {
  background: rgba(235, 122, 27, 0.06);
}
@media screen and (min-width: 1025px) {
  .routes__item:hover {
    background: rgba(235, 122, 27, 0.06);
  }
}
.routes__item:focus-visible {
  outline: none;
  border-color: #eb7a1b;
  box-shadow: 0 0 0 3px rgba(235, 122, 27, 0.15);
}
.routes__item.is-active {
  background: rgba(235, 122, 27, 0.1);
  border-color: rgba(235, 122, 27, 0.3);
}
.routes__item.is-active .routes__num {
  background: #eb7a1b;
  border-color: #eb7a1b;
  color: #fff;
}

.routes__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  background: #fff;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #04083a;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.routes__dir {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(4, 8, 58, 0.7);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.routes__no-match {
  margin: 16px 0 0;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: #7a7d98;
  text-align: center;
}

.routes__view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.routes__view-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.routes__view-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 48px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 4px;
  background: #eb7a1b;
  font-family: "Work Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.routes__view-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.routes__view-title {
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  color: #04083a;
}

.routes__view-dir {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: -0.48px;
  color: #04083a;
  font-size: 20px;
  line-height: 26px;
}
@media screen and (max-width: 767px) {
  .routes__view-dir {
    font-size: 17px;
    line-height: 22px;
  }
}

.routes__view-link {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #0b70cf;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.routes__view-link:active {
  color: rgb(8.8, 89.6, 165.6);
}
@media screen and (min-width: 1025px) {
  .routes__view-link:hover {
    color: rgb(8.8, 89.6, 165.6);
  }
}
.routes__view-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.routes__view-link svg {
  width: 16px;
  height: 16px;
}
@media screen and (max-width: 767px) {
  .routes__view-link {
    display: none;
  }
}

.routes__map {
  border: 1px solid #a7ccee;
  border-radius: 4px;
  overflow: hidden;
  background: #fafcfe;
}

.routes__map-frame {
  width: 100%;
  height: 560px;
  overflow: hidden;
}
@media screen and (max-width: 1200px) {
  .routes__map-frame {
    height: 480px;
  }
}
@media screen and (max-width: 767px) {
  .routes__map-frame {
    height: 380px;
  }
}
.routes__map-frame .eway_widget_container {
  border: 0 !important;
}

.routes__map-canvas {
  width: 100%;
}

.routes__map-fallback {
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid #a7ccee;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  color: #7a7d98;
}
.routes__map-fallback a {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #0b70cf;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.routes__map-fallback a:active {
  color: rgb(8.8, 89.6, 165.6);
}
@media screen and (min-width: 1025px) {
  .routes__map-fallback a:hover {
    color: rgb(8.8, 89.6, 165.6);
  }
}

.routes__stops {
  background: #fff;
  border: 1px solid #a7ccee;
  border-radius: 4px;
  padding: 24px;
}
@media screen and (max-width: 767px) {
  .routes__stops {
    padding: 20px;
  }
}

.routes__stops-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.routes__stops-title {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: -0.48px;
  color: #04083a;
  margin: 0;
}

.routes__stops-count {
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  color: #04083a;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(235, 122, 27, 0.1);
  border: 1px solid rgba(235, 122, 27, 0.25);
  color: #eb7a1b;
  letter-spacing: 0;
}

.routes__stops-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  -webkit-column-gap: 32px;
  -moz-column-gap: 32px;
  column-gap: 32px;
}
.routes__stops-list > * {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
@media screen and (max-width: 1024px) {
  .routes__stops-list {
    column-count: 1;
  }
}

.routes__stop {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  line-height: 20px;
  color: #04083a;
  counter-increment: stop;
}
.routes__stop::before {
  content: counter(stop);
  flex-shrink: 0;
  min-width: 22px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(4, 8, 58, 0.4);
  font-variant-numeric: tabular-nums;
}

.routes__stop--edge {
  font-weight: 600;
}
.routes__stop--edge::before {
  color: #eb7a1b;
}
