/* ======================================================================
   Events — list grid + single-event hero/notice. Reuses booking.css for the
   hero band, form card, steppers, deposit/pay blocks and the loader.
   Mobile-first.
   ====================================================================== */

.ev-wrap { max-width: 760px; }

/* ---------- list grid ---------- */
.ev-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
}

.ev-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.ev-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-2);
}
.ev-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ev-card-media--ph {
  background-image: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.ev-card-ph-ic { color: var(--on-brand); opacity: .95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.ev-card-ph-ic .os-ic { width: 44px; height: 44px; }

/* date chip */
.ev-date {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 46px; padding: 5px 8px;
  background: var(--surface); color: var(--text);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  line-height: 1;
}
.ev-date-d { font-size: var(--fz-lg); font-weight: 800; }
.ev-date-m { font-size: var(--fz-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 2px; }

/* status pill */
.ev-pill {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fz-xs); font-weight: 700;
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ev-pill--low  { background: #fff4e5; color: #9a5b00; }
.ev-pill--soon { background: var(--brand-soft); color: var(--brand-strong); }
.ev-pill--out  { background: #f3e6e7; color: #b3261e; }
[data-theme="dark"] .ev-pill--low { background: color-mix(in srgb, var(--warning) 24%, var(--surface)); color: #f5c451; }
[data-theme="dark"] .ev-pill--out { background: color-mix(in srgb, var(--error) 26%, var(--surface)); color: #ff9a9d; }

.ev-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-card-title { font-size: var(--fz-md); font-weight: 800; margin: 0; line-height: 1.25; }
.ev-card-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-meta-item { font-size: var(--fz-sm); color: var(--text-muted); }
.ev-card-outlet { font-size: var(--fz-sm); color: var(--text-muted); }
.ev-card-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.ev-charge { font-weight: 800; color: var(--brand-strong); }
.ev-go { font-size: var(--fz-sm); font-weight: 700; color: var(--brand); }

/* ---------- single event ---------- */
.ev-hero--img { isolation: isolate; }
.ev-hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Legibility scrim over the poster so hero text stays readable (replaces the old inline gradient). */
.ev-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.66));
}
.ev-back {
  display: inline-block;
  margin: 0 2px 12px;
  font-size: var(--fz-sm); font-weight: 600;
  color: var(--text-muted); text-decoration: none;
}
.ev-back:hover { color: var(--brand); }

.ev-about { white-space: normal; }
.ev-about p { margin: 0; color: var(--text); line-height: 1.6; }

.ev-notice {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
}
.ev-notice--soldout, .ev-notice--closed { background: #f3e6e7; color: #b3261e; }
.ev-notice--notopen { background: var(--brand-soft); color: var(--brand-strong); }
[data-theme="dark"] .ev-notice--soldout, [data-theme="dark"] .ev-notice--closed { background: color-mix(in srgb, var(--error) 22%, var(--surface)); color: #ff9a9d; }
