/* ==========================================================================
   Hero: headline + links to the location pages
   ========================================================================== */

.hero {
  padding-block: var(--space-12) var(--space-10);
}

/* one column: the headline runs across the full width, cities below it */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.hero__eyebrow {
  margin-bottom: var(--space-4);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* the line break is only for phones; wider screens fit the headline on one line */
.hero__title br { display: none; }

.hero__title em {
  font-style: normal;
  color: var(--color-pink);
}

/* " - page 2" at the end of the location h1: smaller and grey, so the heading keeps its look */
.hero__title-page {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Cities ------------------------------------------------------------------ */

.cities { min-width: 0; padding-bottom: var(--space-1); }

.cities__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.cities__title .icon { width: 18px; height: 18px; color: var(--color-pink); }

.cities__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cities__list > li { display: flex; }

.city-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 1.0625rem;
  color: var(--color-text);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.city-link__count {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.city-link:hover { border-color: var(--color-pink); color: var(--color-pink-strong); }
.city-link:focus-visible { outline: 2px solid var(--color-pink); outline-offset: 2px; }

/* the page you are on: dark ink pill, same accent as the header */
.city-link[aria-current="page"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #FFFFFF;
  font-weight: 600;
}

.city-link[aria-current="page"] .city-link__count { color: rgba(255, 255, 255, 0.7); font-weight: 400; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero__inner { gap: var(--space-6); }
}

/* ---------- Mobile: cities in one swipeable row ---------- */
@media (max-width: 639px) {
  .hero { padding-block: var(--space-8) var(--space-5); }

  .hero__inner { gap: var(--space-5); }

  .hero__eyebrow { display: none; }

  .hero__title { font-size: 2.5rem; line-height: 1.1; }
  .hero__title br { display: inline; }

  .cities__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter);
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .cities__list::-webkit-scrollbar { display: none; }
  .cities__list > li { flex-shrink: 0; scroll-snap-align: start; }
  .city-link { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .city-link { transition: none; }
}
