/* Hallmark · component: seasonal event shelf · genre: modern-minimal
 * theme: existing CrowdLevels homepage · scope: additive section only
 * Audience: park visitors · use: open an in-season event guide
 * Pre-emit critique: P4 H5 E4 S5 R5 V4
 * No new palette, fonts, entrance animation, or page-level changes.
 */
.guide-events {
  padding-block: var(--space-xl) 0;
  color: var(--atlas-ink);
  scroll-margin-top: 7rem;
}
.guide-events[hidden],
.guide-events [hidden] { display: none !important; }
.guide-events > .guide-shell {
  padding-bottom: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--atlas-rule);
}
.guide-events-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.guide-events-heading h2 {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.guide-events-heading h2 > span { color: var(--atlas-cobalt); }
.guide-events-controls {
  display: flex;
  flex: none;
  gap: var(--space-2xs);
}
.guide-events-controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--atlas-ink);
  font-size: var(--text-md);
  cursor: pointer;
}
.guide-events-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.guide-events-controls button:active:not(:disabled) {
  background: var(--atlas-cobalt);
  color: var(--color-accent-ink);
}
.guide-events-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--space-sm);
  margin: -4px;
  padding: 4px 4px var(--space-sm);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule-strong) var(--color-paper-2);
}
.guide-events-list > li {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}
.guide-event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: var(--atlas-ink);
  background: var(--color-paper);
  text-decoration: none;
  border: var(--rule-hair) solid var(--atlas-rule);
  border-radius: var(--radius-card);
}
.guide-event-media {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 3 / 2;
  overflow: clip;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
  background: var(--atlas-night-deep);
  color: var(--atlas-on-dark);
}
.guide-event-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--event-image-position, center);
}
.guide-event-media img[data-fit="contain"] { object-fit: contain; }
.guide-event-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm);
}
.guide-event-venue {
  color: var(--atlas-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
}
.guide-event-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  hyphens: none;
}
.guide-event-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-xs);
}
.guide-event-dates {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  color: var(--atlas-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.guide-event-arrow {
  flex: none;
  color: var(--atlas-cobalt);
  font-size: var(--text-md);
}
.guide-event-card:focus-visible,
.guide-events-controls button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.guide-event-card:active { background: var(--color-paper-2); }
@media (hover: hover) {
  .guide-event-card:hover h3 { color: var(--atlas-cobalt); text-decoration: underline; text-underline-offset: 3px; }
  .guide-events-controls button:hover:not(:disabled) { background: var(--color-paper-3); color: var(--atlas-ink); }
}
@media (min-width: 40rem) {
  .guide-events-list { grid-auto-columns: calc((100% - var(--space-md)) / 2.2); gap: var(--space-md); }
}
@media (min-width: 60rem) {
  .guide-events-list { grid-auto-columns: calc((100% - var(--space-md) * 2) / 3); }
}
@media (min-width: 80rem) {
  .guide-events-list { grid-auto-columns: calc((100% - var(--space-md) * 3) / 4); }
}
@media (max-width: 23rem) {
  .guide-events-heading { align-items: start; flex-direction: column; gap: var(--space-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-events-list { scroll-behavior: auto; }
  .guide-events *, .guide-events *::before, .guide-events *::after { animation: none; transition: none; }
}
