:root {
  --bg: #f4efe8;
  --surface: #ffffff;
  --surface-soft: #efe7dd;
  --text: #2d2118;
  --muted: #7d6a5b;
  --brand: #a61d1d;
  --brand-dark: #7f1717;
  --accent: #d9c2ad;
  --border: #e6d8ca;
  --shadow: 0 18px 40px rgba(44, 26, 18, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #faf7f2 0%, var(--bg) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.events-header,
.events-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
}

.events-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  color: var(--brand);
}

.events-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.events-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.events-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 12px 16px;
  border-radius: 999px;
}

.events-nav a:hover,
.events-nav a.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(44, 26, 18, 0.08);
}

.events-shell {
  padding-bottom: 40px;
}

.events-intro {
  padding: 18px 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brand);
  font-weight: 800;
  font-size: .82rem;
}

.events-intro h1 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}

.events-intro p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(230,216,202,.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.calendar-panel {
  padding: 24px;
  position: sticky;
  top: 20px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-title {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.calendar-nav {
  appearance: none;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(166, 29, 29, 0.28);
}


.calendar-nav:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

.calendar-nav:disabled:hover {
  transform: none;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 10px;
}

.calendar-weekdays span {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

.calendar-day {
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(44, 26, 18, 0.08);
}

.calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  box-shadow: none;
}

.calendar-day.is-empty:hover { transform: none; }

.calendar-day-number {
  font-weight: 800;
  font-size: 1rem;
}

.calendar-day-events {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.calendar-pill {
  min-width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
}

.calendar-day.has-events {
  border-color: rgba(166, 29, 29, .28);
  background: #fff9f8;
}

.calendar-day.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 30px rgba(166, 29, 29, 0.25);
}

.calendar-day.is-selected .calendar-pill {
  background: #fff;
}

.calendar-legend {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: .92rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.dot-selected {
  background: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(166, 29, 29, 0.16);
}

.list-panel {
  padding: 24px;
  min-height: 720px;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.list-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.hall-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 800;
}

.hall-link:hover {
  background: var(--brand);
  color: #fff;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 820px;
  overflow: auto;
  padding-right: 6px;
}

.events-list::-webkit-scrollbar { width: 10px; }
.events-list::-webkit-scrollbar-thumb { background: #dbc7b5; border-radius: 999px; }

.event-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fdf9f4 100%);
}

.event-item.is-highlighted {
  border-color: rgba(166, 29, 29, .45);
  box-shadow: 0 18px 30px rgba(166, 29, 29, .12);
}

.event-date-badge {
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  padding: 14px 10px;
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-date-badge .month {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  opacity: .92;
}

.event-date-badge .day {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  margin: 6px 0;
}

.event-date-badge .weekday {
  font-size: .84rem;
  opacity: .92;
}

.event-main h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
}

.event-meta,
.event-desc,
.event-stats {
  color: var(--muted);
}

.event-meta,
.event-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: .95rem;
}

.event-desc {
  margin: 12px 0;
  line-height: 1.7;
}

.event-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.event-price {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.05rem;
}

.event-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.event-link:hover { background: var(--brand-dark); }

.list-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.65);
}

@media (max-width: 1100px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .calendar-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .events-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
  }

  .events-nav {
    gap: 8px;
  }

  .events-nav a {
    padding: 10px 12px;
  }

  .calendar-panel,
  .list-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .calendar-day {
    min-height: 66px;
    border-radius: 16px;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

  .event-actions {
    align-items: flex-start;
  }

  .event-date-badge {
    align-self: auto;
  }

  .list-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
