:root {
  --gold: #f4c85f;
  --gold-bright: #ffe184;
  --cream: #fff4dc;
  --muted: rgba(255, 244, 220, 0.82);
  --aubergine: #211329;
  --purple: #30203c;
  --plum: #40284a;
  --line: rgba(244, 200, 95, 0.42);
  --panel: rgba(33, 20, 42, 0.46);
}

* { box-sizing: border-box; }

html { background: var(--aubergine); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: Avenir, "Avenir Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(184, 82, 49, 0.42), transparent 26rem),
    radial-gradient(circle at 30% 42%, rgba(230, 126, 65, 0.24), transparent 30rem),
    radial-gradient(circle at 72% 50%, rgba(128, 73, 127, 0.28), transparent 34rem),
    linear-gradient(135deg, #24152d 0%, #322344 48%, #563048 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: repeating-radial-gradient(circle at 25% 20%, rgba(255,255,255,.22) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

/* ─── Layout ─────────────────────────────────────────────── */

.page-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 24px;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 24px;
}

.site-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 3px 14px rgba(244, 200, 95, 0.18)) drop-shadow(0 1px 4px rgba(0,0,0,0.5));
  transition: transform .35s ease, filter .35s ease;
}

.site-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 20px rgba(244, 200, 95, 0.32)) drop-shadow(0 1px 6px rgba(0,0,0,0.55));
}

.header-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(244, 200, 95, 0.15) 15%,
    rgba(244, 200, 95, 0.45) 40%,
    rgba(244, 200, 95, 0.45) 60%,
    rgba(244, 200, 95, 0.15) 85%,
    transparent 100%
  );
  flex-shrink: 0;
}

.header-text {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header h1 {
  margin: 0;
  font-family: "Tangerine", cursive;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 32px rgba(244, 200, 95, 0.18), 0 1px 3px rgba(0,0,0,0.45);
  letter-spacing: .03em;
}

.header-home-link {
  color: inherit;
  text-decoration: none;
}

.header-home-link:hover {
  color: var(--gold-bright);
}

.header-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-breadcrumb li {
  display: flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 244, 220, 0.42);
}

.header-breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: rgba(244, 200, 95, 0.3);
  font-size: .8rem;
}

.header-breadcrumb a {
  color: rgba(255, 244, 220, 0.42);
  text-decoration: none;
  transition: color .18s;
}

.header-breadcrumb a:hover {
  color: var(--gold-bright);
}

.header-breadcrumb li[aria-current="page"] {
  color: rgba(244, 200, 95, 0.65);
}

/* ─── Filters ────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 36px;
}

.filter-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

.time-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.time-filter-btn {
  padding: 7px 18px;
  border-radius: 24px;
  border: 1px solid rgba(244, 200, 95, 0.38);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .10em;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  height: auto;
  width: auto;
  margin: 0;
  box-shadow: none;
}

.time-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(244, 200, 95, 0.07);
}

.time-filter-btn.active {
  background: linear-gradient(180deg, #ffda77, #e5a443);
  border-color: transparent;
  color: #221423;
}

.filter-sep {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex-shrink: 0;
}

.location-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 34px 7px 14px;
  border-radius: 24px;
  border: 1px solid rgba(244, 200, 95, 0.38);
  background: rgba(33, 20, 42, 0.55);
  color: var(--cream);
  font-family: inherit;
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  outline: none;
  transition: border-color .18s;
}

.location-select:hover,
.location-select:focus {
  border-color: var(--gold);
}

.location-select option {
  background: #30203c;
  color: var(--cream);
}

.select-chevron {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--gold);
  font-size: .7rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ─── Events Grid ────────────────────────────────────────── */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── Event Card ─────────────────────────────────────────── */

.event-card-item {
  border-radius: 14px;
  border: 1px solid rgba(244, 200, 95, 0.14);
  background: rgba(33, 20, 42, 0.52);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,.22);
}

.event-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 42px rgba(0,0,0,.34), 0 0 0 1px rgba(244,200,95,0.24);
  border-color: rgba(244,200,95,0.28);
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--aubergine);
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img--contain {
  object-fit: contain;
  padding: 12px;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 40% 40%, rgba(184, 82, 49, 0.32), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(128, 73, 127, 0.22), transparent 50%),
    linear-gradient(145deg, #2a1535, #3d2248, #4a2840);
}

.placeholder-motif {
  width: 90px;
  height: 90px;
  opacity: .9;
}

.card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.status-upcoming {
  background: rgba(244, 200, 95, 0.18);
  color: var(--gold);
  border: 1px solid rgba(244, 200, 95, 0.35);
}

.status-past {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 244, 220, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-date {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--gold-bright);
}

.card-date-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  margin: 0 0 4px;
  font-family: "Tangerine", cursive;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold);
  letter-spacing: .02em;
}

.card-subtitle {
  margin: 0 0 10px;
  font-size: .88rem;
  font-style: italic;
  color: var(--gold-bright);
  opacity: .85;
  line-height: 1.4;
}

.card-synopsis {
  margin: 0 0 18px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 200, 95, 0.16);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--muted);
}

.card-location svg {
  flex-shrink: 0;
  color: var(--gold);
  opacity: .7;
}

.card-link {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffda77, #e5a443);
  color: #221423;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .16s;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.card-link:hover {
  opacity: .88;
}

/* ─── Empty State ────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  margin-top: 48px;
  padding: 12px 0;
  border-top: 1px solid rgba(244, 200, 95, 0.16);
  text-align: center;
  color: rgba(255, 244, 220, 0.32);
  font-size: .72rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .page-wrap {
    width: min(1180px, calc(100% - 32px));
    padding: 28px 0 16px;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .filter-sep {
    display: none;
  }

  .filter-bar {
    gap: 10px 16px;
  }
}

@media (max-width: 560px) {
  .page-wrap {
    width: min(1180px, calc(100% - 24px));
    padding: 20px 0 12px;
  }

  .site-header {
    padding: 16px 0 14px;
    margin-bottom: 24px;
  }

  .site-logo {
    width: 65px;
    height: 65px;
  }

  .header-logo-wrap {
    padding-right: 18px;
  }

  .header-text {
    padding-left: 18px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .time-filter-btn {
    padding: 6px 14px;
    font-size: .76rem;
  }

  .card-img-wrap {
    height: 180px;
  }
}
