.page {
  min-height: 100vh;
  background: var(--color-obsidian);
  color: var(--color-card-foreground);
}


.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--header-band-height) + 2.5rem);
  padding-bottom: 2.25rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(220, 38, 38, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
  line-height: 1;
}

.page-subtitle {
  max-width: 72ch;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
}


.toolbar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.55);
}

.chip.is-active {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.22),
    rgba(220, 38, 38, 0.08)
  );
  border-color: rgba(220, 38, 38, 0.75);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: min(420px, 100%);
}

.search i {
  position: absolute;
  left: 0.9rem;
  opacity: 0.8;
}

.search input {
  width: 100%;
  padding: 0.85rem 0.95rem 0.85rem 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  outline: none;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search input:focus {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}


.events {
  padding: 2rem 0 3.25rem 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-card {
  display: grid;
  grid-template-columns: 220px 1fr; 
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}


.flyer-box {
  position: relative;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.14),
    rgba(0, 0, 0, 0.28)
  );
  min-height: 220px; 
  align-self: stretch;
  cursor: zoom-in;
  outline: none;
}

.flyer-box:focus-visible {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.flyer-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 60% 35%,
    rgba(220, 38, 38, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.flyer-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.event-card:hover .flyer-box img {
  transform: scale(1.06);
  filter: contrast(1.02);
}

.event-card:hover .flyer-box::after {
  opacity: 1;
}


.flyer-zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.flyer-zoom-badge i {
  width: 18px;
  height: 18px;
}


.flyer-fallback {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 0.75rem;
}

.flyer-fallback i {
  opacity: 0.9;
}


.meta h4 {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.pills {
  margin: 0.55rem 0 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  white-space: nowrap;
}


.pill-date {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.10);
}

.desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.55);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.85);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.empty {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
  display: none;
}

.empty.is-showing {
  display: block;
}



body.is-modal-open {
  overflow: hidden;
}

.flyer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 1.25rem;
}

.flyer-modal.is-open {
  display: grid;
}

.flyer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.flyer-modal__dialog {
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 10, 10, 0.85);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.flyer-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flyer-modal__title {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.flyer-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.flyer-modal__close:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(220, 38, 38, 0.12);
}

.flyer-modal__close i {
  width: 18px;
  height: 18px;
}

.flyer-modal__body {
  position: relative;
  padding: 0.9rem;
  overflow: auto;
  max-height: calc(86vh - 64px);
}

.flyer-modal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}


@media (max-width: 520px) {
  .event-card {
    grid-template-columns: 160px 1fr;
  }

  .flyer-box {
    min-height: 180px;
  }

  .flyer-modal__dialog {
    width: min(980px, 96vw);
  }
}
