:root {
  --vertex-cyan: #08a7c4;
  --vertex-cyan-dark: #006f86;
  --vertex-yellow: #ffc528;
  --vertex-ink: #1e292d;
  --vertex-soft: #536166;
  --vertex-mist: #f2f5f4;
  --vertex-line: #d8dfdf;
}

.vertex-route-shell {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}

.vertex-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--vertex-line);
  border-radius: 4px;
  background: white;
  color: var(--vertex-ink);
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.vertex-button--primary {
  border-color: var(--vertex-yellow);
  background: var(--vertex-yellow);
}

.vertex-button--quiet {
  background: transparent;
}

.vertex-button--kaya {
  width: 100%;
  border-color: var(--vertex-ink);
  background: var(--vertex-ink);
  color: white;
}

.vertex-route-status {
  padding: 12px 0;
  background: #fff1c9;
  color: #553e00;
}

.vertex-route-status .vertex-route-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.vertex-route-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 380px;
  align-items: end;
  overflow: hidden;
  background: var(--vertex-ink);
  color: white;
}

.vertex-route-hero.has-image::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 26, 0.88), rgba(15, 23, 26, 0.12));
  content: "";
}

.vertex-route-hero__image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.vertex-route-hero__content {
  padding-block: 72px 54px;
}

.vertex-route-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #98eaf4;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.vertex-route-hero h1 {
  margin: 0;
  font-size: 58px;
}

.vertex-route-name {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
}

.vertex-route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  padding-block: 64px 90px;
}

.vertex-route-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-block: 1px solid var(--vertex-line);
}

.vertex-route-facts > div {
  min-width: 0;
  padding: 22px 18px;
}

.vertex-route-facts > div + div {
  border-left: 1px solid var(--vertex-line);
}

.vertex-route-facts dt,
.vertex-route-label {
  display: block;
  margin-bottom: 6px;
  color: var(--vertex-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vertex-route-facts dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.vertex-color-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: #999;
}

.vertex-color-swatch[data-color="red"] { background: #cf3535; }
.vertex-color-swatch[data-color="orange"] { background: #ef8e2f; }
.vertex-color-swatch[data-color="yellow"] { background: #f1cf32; }
.vertex-color-swatch[data-color="green"] { background: #3b945b; }
.vertex-color-swatch[data-color="blue"] { background: #3986c8; }
.vertex-color-swatch[data-color="purple"] { background: #8052a6; }
.vertex-color-swatch[data-color="pink"] { background: #e66da0; }
.vertex-color-swatch[data-color="black"] { background: #222; }
.vertex-color-swatch[data-color="white"] { background: #fff; }

.vertex-route-notes {
  margin-top: 46px;
  font-size: 19px;
}

.vertex-route-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--vertex-line);
  border-radius: 6px;
  align-self: start;
}

.vertex-route-aside strong {
  display: block;
  font-size: 18px;
}

.vertex-directory-hero {
  padding-block: 84px 64px;
  background: var(--vertex-ink);
  color: white;
}

.vertex-directory-hero .vertex-route-label {
  color: #98eaf4;
}

.vertex-directory-hero h1 {
  margin-bottom: 14px;
  font-size: 58px;
}

.vertex-directory-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.vertex-directory {
  padding-block: 42px 90px;
}

.vertex-directory-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--vertex-line);
}

.vertex-directory-filters label {
  display: grid;
  gap: 6px;
  color: var(--vertex-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vertex-directory-filters select {
  width: 100%;
  min-height: 46px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #bbc6c7;
  border-radius: 4px;
  background: white;
  color: var(--vertex-ink);
  font: inherit;
  text-transform: none;
}

.vertex-route-count {
  margin: 24px 0 14px;
  color: var(--vertex-soft);
  font-size: 14px;
  font-weight: 700;
}

.vertex-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vertex-route-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vertex-line);
  border-radius: 6px;
  background: white;
}

.vertex-route-card a {
  display: block;
  text-decoration: none;
}

.vertex-route-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--vertex-mist);
}

.vertex-route-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.vertex-route-card:hover img {
  transform: scale(1.025);
}

.vertex-route-card__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--vertex-soft);
  font-size: 26px;
  font-weight: 800;
}

.vertex-route-card__body {
  padding: 20px;
}

.vertex-route-card__body > span {
  color: var(--vertex-cyan-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vertex-route-card h2 {
  margin: 6px 0;
  font-size: 24px;
}

.vertex-route-card p {
  margin: 0;
  color: var(--vertex-soft);
  font-size: 14px;
}

.vertex-directory-empty {
  padding: 40px;
  border: 1px dashed var(--vertex-line);
  text-align: center;
}

.vertex-tag-message {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding: 60px 20px;
  background: var(--vertex-mist);
}

.vertex-tag-message__inner {
  width: min(100%, 560px);
  padding: 44px;
  border: 1px solid var(--vertex-line);
  border-radius: 6px;
  background: white;
  text-align: center;
}

.vertex-tag-message__code {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--vertex-cyan-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.vertex-tag-message .vertex-button {
  margin: 6px 4px;
}

@media (max-width: 800px) {
  .vertex-route-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vertex-route-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .vertex-route-facts > div:nth-child(3) {
    border-left: 0;
  }

  .vertex-route-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--vertex-line);
  }

  .vertex-directory-filters {
    grid-template-columns: 1fr 1fr;
  }

  .vertex-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .vertex-route-hero {
    min-height: 330px;
  }

  .vertex-route-hero h1,
  .vertex-directory-hero h1 {
    font-size: 40px;
  }

  .vertex-route-layout {
    padding-block: 40px 64px;
  }

  .vertex-directory-filters,
  .vertex-route-grid {
    grid-template-columns: 1fr;
  }

  .vertex-directory-filters .vertex-button {
    width: 100%;
  }

  .vertex-tag-message__inner {
    padding: 30px 22px;
  }
}

