/* Shared event card: catalogues, date results, AJAX and recommendations. */
.event-card {
  --card-h: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ga-event-border, #e6e4de);
  border-radius: 16px;
  background: var(--ga-surface-strong, #fff);
  color: var(--ga-ink, #1b1b1b);
  box-shadow: none;
  font-family: 'RG-SlimBook', 'Montserrat', Arial, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.event-card:hover {
  border-color: var(--ga-event-border-hover, #c8c5bc);
  box-shadow: 0 4px 14px rgba(27,27,27,.06);
  transform: none;
}
.event-card > a.link-reset { display: block; flex: none; width: 100%; min-width: 0; }
.event-card .event-media {
  display: block; position: relative; inset: auto; margin: 0; width: 100%;
  height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 0;
  overflow: hidden; background: var(--ga-event-image-bg, #efede8);
}
.event-card .event-media::after { content: none; }
.event-card .event-media img {
  display: block; width: 100%; height: 100%; margin: 0; border-radius: 0;
  object-fit: cover; object-position: center; transform: none; filter: none;
  user-select: none; -webkit-user-drag: none;
}
.event-card .event-body {
  position: static; display: flex; flex-direction: column; flex: 1;
  min-width: 0; min-height: 0; gap: 0; margin: 0; padding: 16px;
  border: 0; border-radius: 0; background: var(--ga-surface-strong, #fff);
}
.event-card .event-category,
.event-card .event-cover-kicker {
  display: block; width: auto; margin: 0 0 6px; padding: 0;
  border: 0; border-radius: 0; background: none;
  color: var(--ga-event-muted, #666760); font-size: 12px; line-height: 1.4;
  font-weight: 400; text-transform: none; letter-spacing: 0;
}
.event-card .event-header { display: block; flex: 0 0 auto; min-height: 0; height: auto; margin: 0; }
.event-card .event-title,
.event-card .event-title.is-long,
.event-card .event-title.is-very-long {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; min-height: 0; margin: 0;
  font: 600 20px/1.3 'RG-SlimBook', 'Montserrat', Arial, sans-serif;
  color: var(--ga-ink, #1b1b1b); letter-spacing: -.02em; text-shadow: none;
  overflow-wrap: anywhere;
}
.event-card a.link-reset { color: inherit; text-decoration: none; }
.event-card .event-chips {
  display: flex; flex-direction: column; align-items: stretch;
  flex-wrap: nowrap; flex-shrink: 0; gap: 4px; overflow: visible; margin: 14px 0 0;
}
.event-card .event-chip,
.event-card .event-chips time.event-chip {
  display: block; max-width: 100%; flex-shrink: 1; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; color: var(--ga-event-muted, #666760);
  font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: 0;
  white-space: normal; overflow-wrap: anywhere;
}
.event-card .event-chips time.event-chip { color: var(--ga-ink, #1b1b1b); order: -1; }
.event-card .event-chip span { color: inherit; }
.event-card .event-actions {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
  gap: 0 12px; margin: auto 0 0; padding-top: 14px; width: 100%;
}
.event-card .price-corner,
.event-card .event-price-unknown {
  position: static; inset: auto; display: block; min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; color: var(--ga-ink, #1b1b1b);
  font-size: 18px; line-height: 1.4; font-weight: 500; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  grid-column: 1; grid-row: 1;
}
.event-card .price-corner [itemprop="price"] { color: inherit; font-weight: 700; white-space: nowrap; }
.event-card .event-price-unknown { font-size: 13px; color: var(--ga-event-muted, #666760); }
.event-card .btn-buy {
  grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; min-height: 44px; padding: 9px 20px;
  border: 0; border-radius: 10px; background: var(--ga-action, #d83218);
  color: var(--ga-invert, #fff); font: 600 14px/1.3 'RG-SlimBook', 'Montserrat', Arial, sans-serif;
  text-decoration: none; box-shadow: none; text-align: center;
}
.event-card .btn-buy:hover { background: var(--ga-action-hover, #bd2b14); color: var(--ga-invert, #fff); }
.event-card .all-dates-btn {
  grid-column: 1 / -1; grid-row: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; height: auto;
  width: auto; padding: 0; margin: 4px 0 -8px; border: 0; border-radius: 0;
  background: none; color: var(--ga-event-muted, #666760); box-shadow: none;
  font: 400 13px/1.4 'RG-SlimBook', 'Montserrat', Arial, sans-serif; text-decoration: none;
}
.event-card .all-dates-btn::after { content: '→'; }
.event-card .all-dates-btn:hover { color: var(--ga-ink, #1b1b1b); opacity: 1; }
.event-card:focus-visible,
.event-card a:focus-visible { outline: 2px solid var(--ga-action, #d83218); outline-offset: 3px; }
.event-card .event-cta { display: none; }
.event-card .event-mobile-summary,
.event-card .event-mobile-details,
.event-card .event-price-mobile { display: none; }
.event-card .partner-badge {
  display: block; width: fit-content; order: 1; font-size: 12px;
  font-weight: 400; color: var(--ga-event-muted, #666760);
}
.event-card .event-age-badge {
  display: inline-flex; position: absolute; top: 10px; right: 10px;
  align-items: center; justify-content: center; padding: 3px 6px;
  border-radius: 6px; background: var(--ga-surface-strong, #fff);
  color: var(--ga-ink, #1b1b1b); font-size: 12px;
}
@media (max-width: 767px) {
  .row > .allevents { flex: 0 0 100%; width: 100%; max-width: 100%; }
  .event-card .event-title,
  .event-card .event-title.is-long,
  .event-card .event-title.is-very-long { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .event-card { transition: none; } }
