.map-page.content-page {
  width: 100%;
  max-width: var(--max);
  padding: 58px 34px 90px;
}

.map-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}

.map-heading-row h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.map-month-form {
  display: grid;
  gap: 5px;
  min-width: min(260px, 100%);
  padding-bottom: 4px;
}

.map-month-label {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.map-month-select {
  width: 100%;
  border: 0;
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 28px 7px 0;
  font: 900 1rem/1.2 var(--sans);
  cursor: pointer;
}

.map-month-select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.map-date-rail {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}

.map-date-link {
  position: relative;
  flex: 0 0 76px;
  min-height: 78px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: center;
  justify-items: start;
  gap: 1px;
  padding: 11px 12px 9px;
  border-right: 1px solid rgba(17, 19, 24, .28);
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: center;
}

.map-date-link:hover,
.map-date-link:focus-visible {
  background: rgba(255, 210, 26, .25);
}

.map-date-link.is-active {
  background: var(--sun);
}

.map-date-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--ink);
}

.map-date-all {
  flex-basis: 92px;
}

.map-date-weekday {
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.map-date-day {
  align-self: center;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.map-date-count {
  min-height: .8rem;
  font-size: .62rem;
  font-weight: 800;
  color: var(--muted);
}

.map-date-link.is-active .map-date-count {
  color: var(--ink);
}

.map-page .event-map {
  width: 100%;
  height: clamp(470px, 68vh, 780px);
  min-height: 470px;
  border: 3px solid var(--ink);
  background: var(--soft);
}

.map-noscript {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .map-page.content-page {
    padding: 42px 18px 64px;
  }

  .map-heading-row {
    display: grid;
    gap: 24px;
    margin-bottom: 26px;
  }

  .map-month-form {
    width: min(100%, 320px);
  }

  .map-date-link {
    flex-basis: 68px;
    min-height: 72px;
    padding-inline: 10px;
  }

  .map-date-all {
    flex-basis: 82px;
  }

  .map-page .event-map {
    height: 62vh;
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-date-rail {
    scroll-behavior: auto;
  }
}
