/* ============================================
   PROGRAM PAGE - NEW REACT COMPONENT STYLES
   ============================================ */

/* ---- PROGRAM APP CONTAINER ---- */
.program-app-new {
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- MULTI-TRACK CALENDAR ---- */
.multi-track-calendar {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.multi-track-calendar__title {
  font-family: Antonio, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--festival-dark-text);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

/* Wrapper for relative positioning of absolute track labels */
.multi-track-calendar__wrapper {
  position: relative;
}

/* Track Labels Column - absolutely positioned */
.multi-track-calendar__track-labels {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  background: var(--surface);
  padding-top: 36px; /* Space for day header */
}

/* Container - scrollable with padding for track labels */
.multi-track-calendar__container {
  overflow-x: auto;
  padding-left: 120px; /* Match track labels width */
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--festival-teal) var(--festival-light);
}

.multi-track-calendar__container::-webkit-scrollbar {
  height: 8px;
}

.multi-track-calendar__container::-webkit-scrollbar-track {
  background: var(--festival-light);
  border-radius: 4px;
}

.multi-track-calendar__container::-webkit-scrollbar-thumb {
  background: var(--festival-teal);
  border-radius: 4px;
}

.multi-track-calendar__track-label-header {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--festival-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--festival-light);
}

.multi-track-calendar__track-label {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--track-color);
  border-bottom: 1px solid var(--festival-light);
  background: var(--surface);
}

.multi-track-calendar__days-container {
  display: flex;
  gap: 2px;
}

.multi-track-calendar__day {
  min-width: 1400px;
  flex-shrink: 0;
}

.multi-track-calendar__day-header-wrapper {
  height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.multi-track-calendar__day-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: sticky;
  left: 0;
  z-index: 5;
}

.multi-track-calendar__day-name {
  font-family: Rubik, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--festival-teal);
}

.multi-track-calendar__hours {
  position: relative;
  height: 24px;
  border-bottom: 1px solid var(--festival-light);
  background: var(--festival-bg-soft);
}

.multi-track-calendar__hour {
  position: absolute;
  font-family: Inter, sans-serif;
  font-size: 0.625rem;
  color: var(--festival-gray);
  padding-left: 2px;
}

.multi-track-calendar__tracks {
  background: var(--surface);
}

.multi-track-calendar__track {
  position: relative;
  height: 56px;
  border-bottom: 1px solid var(--festival-light);
}

.multi-track-calendar__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.multi-track-calendar__grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgb(0 0 0 / 10%);
}

.multi-track-calendar__event-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  transition: opacity 0.3s ease;
}

.multi-track-calendar__event-label {
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
  margin-bottom: 4px;
  padding: 2px 4px;
  position: sticky;
  left: 0;
  display: inline-block;
  background-color: rgb(255 255 255 / 90%);
  border-radius: 2px;
}

.multi-track-calendar__event {
  width: 100%;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
  transition: box-shadow 0.2s ease, filter 0.3s ease;
}

.multi-track-calendar__event:hover {
  z-index: 2;
}

.multi-track-calendar__event:disabled {
  cursor: default;
}

/* ---- FILTER SECTION ---- */
.program-filters-section {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1.25rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.filter-section__heading {
  font-family: Antonio, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--festival-dark-text);
  margin: 0;
  letter-spacing: 0.01em;
}

.filter-section__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.5rem;
}

.filter-section__divider {
  width: 1px;
  height: 24px;
  background: var(--festival-light-mid, #d6e0e5);
}

.filter-section__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

/* Filter buttons (rectangular) */
.filter-button {
  --chip-ink: var(--chip-color, var(--festival-teal));

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0.375rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--festival-light);
  border-radius: var(--radius-md);
  font-family: Antonio, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--festival-dark-text);
  cursor: pointer;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

.filter-button svg {
  flex-shrink: 0;
  color: var(--chip-ink);
  transition: color var(--transition-normal);
}

@media (hover: hover) {
  .filter-button:hover {
    border-color: var(--chip-ink);
    background: color-mix(in srgb, var(--chip-ink) 8%, var(--mix-base));
  }
}

.filter-button.active {
  background: var(--chip-ink);
  border-color: var(--chip-ink);
  color: white;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--chip-ink) 30%, transparent);
}

.filter-button.active svg {
  color: white;
}

.filter-button:focus {
  outline: none;
}

.filter-button:focus-visible {
  outline: 2px solid var(--chip-ink);
  outline-offset: 2px;
}

.filter-button--day {
  --chip-color: var(--festival-teal);
}

.filter-button--paid {
  --chip-color: var(--festival-coral);
}

.filter-button--age {
  --chip-color: var(--festival-blue);
}

.filter-section__clear-row {
  border-top: 1px solid var(--festival-light);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.filter-section__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  background: var(--festival-coral);
  border: none;
  border-radius: var(--radius-md);
  font-family: Antonio, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  cursor: pointer;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--festival-coral) 30%, transparent);
}

.filter-section__clear:hover {
  background: var(--festival-pink);
}

.filter-section__clear:focus-visible {
  outline: 2px solid var(--festival-pink-dark);
  outline-offset: 2px;
}

/* ---- DAY SECTION ---- */
.program-day-section {
  margin-bottom: 3rem;
}

/* ---- DAY HEADER ---- */
.program-day-header {
  margin-bottom: 1.5rem;
  padding-left: 6rem;
}

.program-day-header__title {
  font-family: Antonio, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--festival-dark-text);
  margin: 0;
  line-height: 1.1;
}

.program-day-header__underline {
  width: 96px;
  height: 4px;
  border-radius: 2px;
  background: var(--festival-teal);
  margin-top: 0.5rem;
}

.program-day-header__hours {
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: var(--festival-gray);
  margin: 0.5rem 0 0;
}

/* ---- EVENTS TIMELINE ---- */
.program-events-section {
  margin-bottom: 3rem;
}

.program-events__timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem 0 6rem;
}

.program-events__empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--festival-light);
  border-radius: var(--radius-xl);
}

.program-events__empty p {
  font-family: Inter, sans-serif;
  font-size: 1.125rem;
  color: var(--festival-gray);
}

.program-events__empty-hint {
  font-size: 0.875rem !important;
  margin-top: 0.5rem;
}

/* ---- PAST EVENTS (live festival view) ---- */

/* While the festival runs, a day's finished events fold into one closed
   accordion at the top of its timeline. Outside the festival window nothing
   collapses and none of this renders. */
.program-past-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.program-past-toggle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border: 2px dashed var(--festival-light);
  border-radius: var(--radius-md);
  font-family: Antonio, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--festival-gray);
  cursor: pointer;
  transition: border-color var(--transition-normal), color var(--transition-normal);
}

.program-past-toggle__chevron {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

@media (prefers-reduced-motion: reduce) {
  .program-past-toggle__chevron {
    transition: none;
  }
}

.program-past-toggle[aria-expanded="true"] {
  border-style: solid;
}

.program-past-toggle[aria-expanded="true"] .program-past-toggle__chevron {
  transform: rotate(90deg);
}

@media (hover: hover) {
  .program-past-toggle:hover {
    border-color: var(--festival-teal);
    color: var(--festival-dark-text);
  }
}

.program-past-toggle:focus {
  outline: none;
}

.program-past-toggle:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
}

/* overflow:hidden is what makes the height animation work, but the cards' time
   gutters sit outside the card at `right: 100%` — so the clip box is widened
   leftwards by the timeline's own gutter padding to keep them visible. */
.program-past-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-left: -6rem;
  padding-left: 6rem;
  overflow: hidden;
}

.event-card--past {
  opacity: 0.6;
  filter: grayscale(35%);
}

/* ---- TIME OVERRIDE NOTICE (?now= test view) ---- */
.program-time-override {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0.625rem 1rem;
  background: var(--festival-coral);
  border-radius: var(--radius-md);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: var(--festival-pink-dark);
  text-align: center;
}

.program-time-override__reset {
  font-weight: 700;
  color: var(--festival-pink-dark);
  text-decoration: underline;
}

/* ---- EVENT CARD ---- */
.event-card {
  position: relative;
  display: flex;
  flex-direction: row;
  min-height: 11rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  overflow: visible;
  scroll-margin-top: 100px;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
}

.event-card--filtered {
  pointer-events: none;
}

/* Image / icon-fallback area - left on desktop */
.event-card__image {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  width: 176px;
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
}

.event-card__image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Time gutter - sits to the left of each card, in the timeline's left padding */
.event-card__time-gutter {
  position: absolute;
  right: 100%;
  top: 1rem;
  display: flex;
  flex-direction: column;
  width: 5rem;
  padding-right: 0.75rem;
  text-align: right;
  font-family: Antonio, sans-serif;
  line-height: 1;
}

.event-card__time-start {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--festival-dark-text);
}

.event-card__time-end {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--festival-gray);
}

/* Content column */
.event-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0.75rem 1.25rem;
  overflow: hidden;
}

.event-card__title {
  font-family: Antonio, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--festival-dark-text);
  margin: 0;
  line-height: 1.2;
}

.event-card__tentative-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: #fbbf24;
  color: white;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.event-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  color: var(--festival-gray);
  line-height: 1.45;
  margin: 0;
}

.event-card__description-link {
  color: var(--festival-cyan);
  font-weight: 600;
  text-decoration: underline;
}

/* Expandable + expanded card states (click-to-expand on truncated descriptions) */
.event-card--expandable {
  cursor: pointer;
}

.event-card--expanded {
  height: auto;
}

.event-card--expanded .event-card__description {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.event-card__expand-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--festival-green);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.event-card__expand-toggle:focus {
  outline: none;
}

.event-card__expand-toggle:focus-visible {
  outline: 2px solid var(--festival-green);
  outline-offset: 2px;
}

@media (hover: hover) {
  .event-card__expand-toggle:hover {
    color: var(--festival-green-dark);
  }
}

.event-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* Right-side ticket panel — third column inside the card on desktop */
.event-card__buy {
  flex-shrink: 0;
  align-self: flex-start;
  width: 160px;
  height: 11rem;
  display: flex;
}

.event-card__meta-location {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--festival-green);
}

.event-card__meta-location svg {
  flex-shrink: 0;
}

.event-card__location-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-normal);
}

.event-card__location-link:hover {
  color: var(--festival-teal);
}

.event-card__location-link:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Primary category - small bordered chip with icon */
.event-card__primary-category {
  --chip-ink: var(--chip-color, var(--festival-teal));

  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--chip-ink) 35%, var(--mix-base));
  border-radius: var(--radius-full);
  color: var(--chip-ink);
  background: color-mix(in srgb, var(--chip-ink) 8%, var(--mix-base));
  font-family: Inter, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
}

.event-card__primary-category svg {
  flex-shrink: 0;
}

/* Age chip */
.event-card__age-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--festival-light-mid, var(--festival-light));
  border-radius: var(--radius-full);
  color: var(--festival-dark-text);
  background: var(--surface);
  font-family: Antonio, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Secondary category chips */
.event-card__category-chip {
  --chip-ink: var(--chip-color, var(--festival-teal));

  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--chip-ink) 12%, var(--mix-base));
  color: var(--chip-ink);
  border: 1px solid color-mix(in srgb, var(--chip-ink) 35%, var(--mix-base));
  font-family: Inter, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* When rendered as <button>, the chips become filter shortcuts:
   click toggles the matching filter in the section above. */
button.event-card__primary-category,
button.event-card__category-chip,
button.event-card__age-chip {
  appearance: none;
  cursor: pointer;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

button.event-card__primary-category:focus,
button.event-card__category-chip:focus,
button.event-card__age-chip:focus {
  outline: none;
}

button.event-card__primary-category:focus-visible,
button.event-card__category-chip:focus-visible {
  outline: 2px solid var(--chip-ink);
  outline-offset: 2px;
}

button.event-card__age-chip:focus-visible {
  outline: 2px solid var(--festival-blue);
  outline-offset: 2px;
}

@media (hover: hover) {
  button.event-card__primary-category:hover,
  button.event-card__category-chip:hover {
    background: color-mix(in srgb, var(--chip-ink) 22%, var(--mix-base));
    border-color: var(--chip-ink);
  }

  button.event-card__age-chip:hover {
    background: var(--festival-light);
    border-color: var(--festival-light-mid, var(--festival-light));
  }
}

/* Ticket pill - vertical CTA panel filling the right column of the card */
.event-card__ticket-pill {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  font-family: Inter, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color 100ms linear, filter 100ms linear, transform 100ms ease;
}

.event-card__ticket-pill-icon {
  flex-shrink: 0;
}

.event-card__ticket-pill-main {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.event-card__ticket-pill-price {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
}

.event-card__ticket-pill--live {
  background: #60bf00;
  color: #fff;
  cursor: pointer;
}

.event-card__ticket-pill--live:hover {
  background: #53a600;
}

.event-card__ticket-pill--live:active {
  background: #3a7300;
  transform: translateY(1px);
}

.event-card__ticket-pill--live:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
}

.event-card__ticket-pill--presale {
  background: var(--festival-light);
  color: var(--festival-gray);
  cursor: default;
}

.event-card__ticket-pill--presale .event-card__ticket-pill-price {
  opacity: 0.75;
}

.event-card__ticket-pill-presale-time {
  white-space: nowrap;
}

.event-card__ticket-pill--soldout {
  background: var(--festival-pink-dark);
  color: #fff;
  cursor: default;
}

/* The festival is over: the ticket and reservation pills are kept for context
   but rendered as inert grey text rather than links. */
.event-card__ticket-pill--past {
  background: var(--festival-light);
  color: var(--festival-gray);
  cursor: default;
}

.event-card__ticket-pill--past .event-card__ticket-pill-price {
  opacity: 0.75;
}

/* These three pills take their colour from the picture on their own card — see
   `cta_color` in program-data.js, which arrives as --cta-color. Each is sampled
   from the artwork and then only adjusted for brightness, never for hue, so the
   pill still reads as belonging to the image beside it. The fallback is the
   colour used by most of that pill's events, for anything shipping without one.
   Deliberately flat and bright: the white label sits in the same contrast band as
   the Eventfrog green above, which is the look these are matched to.
   Hover and active darken with a brightness filter because there is no second hex
   to swap to when the colour comes from data. */

/* Festzeltküche: the teal diamond, brightened */
.event-card__ticket-pill--menu {
  --cta-ink: var(--cta-color, #37bebb);

  background: var(--cta-ink);
  color: #fff;
  cursor: pointer;
}

.event-card__ticket-pill--menu:hover {
  filter: brightness(0.93);
}

.event-card__ticket-pill--menu:active {
  filter: brightness(0.86);
  transform: translateY(1px);
}

.event-card__ticket-pill--menu:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
}

/* Akemi & Band: the magenta stage bokeh */
.event-card__ticket-pill--reserve {
  --cta-ink: var(--cta-color, #ed50ac);

  background: var(--cta-ink);
  color: #fff;
  cursor: pointer;
}

.event-card__ticket-pill--reserve:hover {
  filter: brightness(0.93);
}

.event-card__ticket-pill--reserve:active {
  filter: brightness(0.86);
  transform: translateY(1px);
}

.event-card__ticket-pill--reserve:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
}

/* Spielbereich: the golden sky behind the carousel */
.event-card__ticket-pill--spielbereich {
  --cta-ink: var(--cta-color, #f5ca72);

  background: var(--cta-ink);
  color: #fff;
  cursor: pointer;
}

.event-card__ticket-pill--spielbereich:hover {
  filter: brightness(0.93);
}

.event-card__ticket-pill--spielbereich:active {
  filter: brightness(0.86);
  transform: translateY(1px);
}

.event-card__ticket-pill--spielbereich:focus-visible {
  outline: 2px solid var(--festival-teal);
  outline-offset: 2px;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--festival-teal) 0%, var(--festival-teal-dark) 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 40;
}

/* ---- CALENDAR SECTION ---- */
.program-calendar-section {
  margin-bottom: 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (width <= 767px) {
  .multi-track-calendar {
    padding: 0.75rem;
  }

  .multi-track-calendar__title {
    font-size: 1rem;
  }

  .multi-track-calendar__track-labels {
    width: 90px;
    padding-top: 32px;
  }

  .multi-track-calendar__container {
    padding-left: 90px;
  }

  .multi-track-calendar__track-label-header {
    height: 28px;
  }

  .multi-track-calendar__track-label {
    height: 50px;
    font-size: 0.625rem;
    padding: 0 0.5rem;
  }

  .multi-track-calendar__day {
    min-width: 500px;
  }

  .multi-track-calendar__day-header-wrapper {
    height: 32px;
  }

  .multi-track-calendar__day-name {
    font-size: 0.75rem;
  }

  .multi-track-calendar__hour {
    font-size: 0.5625rem;
  }

  .multi-track-calendar__track {
    height: 50px;
  }

  .multi-track-calendar__event-label {
    font-size: 0.6rem;
  }

  .multi-track-calendar__event {
    height: 24px;
  }

  .program-filters-section {
    padding: 0.75rem 1rem 0.875rem;
  }

  .filter-section__row {
    gap: 0.375rem;
  }

  .filter-section__divider {
    display: none;
  }

  .filter-section__group {
    gap: 0.375rem;
  }

  .filter-button {
    min-height: 40px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .program-events__timeline {
    gap: 1rem;
    padding: 0 0 0 4rem;
  }

  .program-past-group {
    gap: 1rem;
  }

  /* Match the timeline's narrower gutter so the clip box still clears the
     time labels — see the desktop rule. */
  .program-past-list {
    gap: 1rem;
    margin-left: -4rem;
    padding-left: 4rem;
  }

  /* Event card: stack vertically on mobile */
  .event-card {
    flex-direction: column;
    height: auto;
  }

  .event-card__image {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .event-card__buy {
    width: 100%;
    height: auto;
  }

  .program-day-header {
    padding-left: 4rem;
  }

  .event-card__time-gutter {
    top: 0.625rem;
    width: 3.5rem;
    padding-right: 0.5rem;
  }

  .event-card__time-start {
    font-size: 1rem;
  }

  .event-card__time-end {
    font-size: 0.8125rem;
  }

  .event-card__content {
    padding: 0.875rem 1rem 1rem;
    gap: 0.4rem;
  }

  .event-card__title {
    font-size: 1.125rem;
  }

  .event-card__description {
    font-size: 0.8125rem;
  }

  .event-card__meta-row {
    gap: 0.375rem 0.5rem;
  }

  .event-card__ticket-pill {
    flex-direction: row;
    height: auto;
    min-height: 64px;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}

@media (width <= 480px) {
  .program-day-header__title {
    font-size: 1.5rem;
  }

  .program-day-header__hours {
    font-size: 0.8125rem;
  }
}

/* ============================================
   MAP MODAL AND GOOGLE MAPS STYLES
   ============================================ */

/* ---- MAP MODAL OVERLAY ---- */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(4px);
}

.map-modal__content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 95vh;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- MAP MODAL HEADER ---- */
.map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--festival-teal) 0%, var(--festival-teal-dark) 100%);
  color: white;
}

.map-modal__title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-modal__icon {
  opacity: 0.9;
}

.map-modal__title {
  font-family: Antonio, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.map-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgb(255 255 255 / 15%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: background var(--transition-normal);
}

.map-modal__close:hover {
  background: rgb(255 255 255 / 25%);
}

.map-modal__close:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ---- MAP MODAL BODY ---- */
.map-modal__body {
  flex: 1;
  min-height: 600px;
  position: relative;
}

/* ---- GOOGLE MAP CONTAINER ---- */
.google-map-container {
  width: 100%;
  height: 100%;
  min-height: 600px;
  position: relative;
  background: var(--festival-light);
}

.google-map-container--error {
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 600px;
  transition: opacity 0.3s ease;
}

/* ---- GOOGLE MAP LOADING STATE ---- */
.google-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--festival-light);
  z-index: 5;
}

.google-map-loading p {
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: var(--festival-gray);
  margin: 0;
}

.google-map-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--festival-light);
  border-top-color: var(--festival-teal);
  border-radius: 50%;
  animation: map-spinner 0.8s linear infinite;
}

@keyframes map-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ---- GOOGLE MAP ERROR STATE ---- */
.google-map-error {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.google-map-error__title {
  font-family: Rubik, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--festival-dark-text);
  margin: 0 0 0.5rem;
}

.google-map-error__message {
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  color: var(--festival-pink);
  margin: 0 0 1rem;
}

.google-map-error__hint {
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  color: var(--festival-gray);
  margin: 0;
}

/* ---- GOOGLE MAP INFO WINDOW ---- */
.gm-style-iw-ch { display: none !important; }

.gm-style-iw-c .gm-ui-hover-effect {
  display: none !important;
}

.gm-style .gm-style-iw-c {
  background: linear-gradient(90deg, #01c196 0%, #1a4538 100%) !important;
  padding: 0 !important;
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-glow-teal) !important;
}

.gm-style .gm-style-iw-tc::after {
  background: #0e8367 !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

.map-info-window {
  padding: 0;
  font-family: Inter, sans-serif;
}

.map-route-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.map-route-pill:hover {
  transform: translateY(-2px);
}

.gm-style .gm-style-iw-c:has(.map-route-pill:hover) {
  box-shadow: 0 8px 30px rgb(1 193 150 / 40%) !important;
}

.map-route-pill:active {
  transform: translateY(0);
}

.map-route-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  border-radius: var(--radius-full);
}

.map-route-pill__title {
  font-family: Antonio, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-route-pill__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes map-route-pill-pulse {
  0%   { transform: scale(1); }
  55%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .map-route-pill {
    animation: map-route-pill-pulse 420ms ease-out 1;
  }
}

/* ---- MAP MARKER BOUNCE ANIMATION ---- */
@keyframes marker-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

.marker-bounce {
  animation: marker-bounce 0.6s ease 3;
}

/* ---- MAP MODAL RESPONSIVE ---- */
@media (width <= 767px) {
  .map-modal {
    padding: 0.25rem;
  }

  .map-modal__content {
    max-height: 98vh;
    border-radius: var(--radius-lg);
  }

  .map-modal__header {
    padding: 0.5rem 1rem;
  }

  .map-modal__title {
    font-size: 1.125rem;
  }

  .map-modal__close {
    width: 36px;
    height: 36px;
  }

  .map-modal__body {
    min-height: 500px;
  }

  .google-map-container {
    min-height: 500px;
  }

  .google-map-canvas {
    min-height: 500px;
  }
}

@media (width <= 480px) {
  .map-modal__body {
    min-height: 420px;
  }

  .google-map-container {
    min-height: 420px;
  }

  .google-map-canvas {
    min-height: 420px;
  }

  .map-route-pill {
    padding: 0.5rem 1rem;
  }

  .map-route-pill__title {
    font-size: 0.9375rem;
  }
}

/* ---- SPIELBEREICH (kids games area page) ---- */

/* Logo-style images (e.g. Pfadi): show the whole graphic on white instead of
   cropping it square. */
.event-card__image--contain {
  background: var(--surface);
}

.event-card__image--contain .event-card__image-photo {
  object-fit: contain;
  padding: 1rem;
}

/* Jeton note above the day filter. Paying for the games is the one thing a visitor
   has to sort out before anything else, so it leads the page. The stand names inside
   reuse .event-card__meta-location, so a location reads the same here as on a card. */
.spielbereich-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--festival-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.spielbereich-note__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--festival-teal-dark);
}

.spielbereich-note__text {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--festival-dark-text);
}

/* The stand names run inside a sentence here, not in a card's meta row. An
   inline-flex box whose first child is an SVG has no real baseline, so the browser
   synthesises one from its bottom edge and the name rides up out of the line. Laying
   it out inline instead puts the name back on the sentence's baseline, with the pin
   nudged down to sit optically centred on it. */
.spielbereich-note__text .event-card__meta-location {
  display: inline;

  /* A pin belongs to the name beside it, so the pair wraps as one unit rather than
     leaving the icon stranded at the end of a line. */
  white-space: nowrap;
}

.spielbereich-note__text .event-card__meta-location svg {
  margin-right: 0.25rem;
  vertical-align: -0.175em;
}

/* Day filter above the list. 15 stands is a lot to scan on a phone, so the chips
   narrow it to the day the visitor is actually coming. */
.spielbereich-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.spielbereich-filter__btn {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--festival-light);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--festival-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spielbereich-filter__btn:hover {
  border-color: var(--festival-teal);
  color: var(--festival-teal-dark);
}

.spielbereich-filter__btn--active {
  border-color: var(--festival-teal);
  background: var(--festival-teal);
  color: var(--festival-white);
}

.spielbereich-filter__btn--active:hover {
  color: var(--festival-white);
}

/* Per-stand opening chips at the foot of a location card. */
.event-card__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.625rem 0 0;
  padding: 0;
  list-style: none;
}

.event-card__slot {
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--festival-light);
  border-radius: var(--radius-full);
  background: var(--festival-bg-soft);
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--festival-gray);
}

/* Locations list — mirrors .program-events__timeline but without the left
   time-gutter padding (Spielbereich cards have no time gutter). */
.spielbereich-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem;
}

@media (width <= 767px) {
  .spielbereich-list {
    gap: 1rem;
    padding: 0;
  }

  .spielbereich-note {
    padding: 0.75rem 0.875rem;
    margin-bottom: 1rem;
  }

  .spielbereich-note__text {
    font-size: 0.875rem;
  }

  .spielbereich-filter {
    margin-bottom: 1.25rem;
  }

  .spielbereich-filter__btn {
    padding: 0.4375rem 0.9375rem;
    font-size: 0.8125rem;
  }
}
