body
{
  margin: 0;
  padding-top: 80px;
  font-family: 'Lato', Roboto, Arial, sans-serif;
  background-color: black;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bg-slideshow
{
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg-slideshow-slide
{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-slideshow-slide.active
{
  opacity: 1;
}

body::before
{
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
  pointer-events: none;
}


/* =========================
   Page heading
========================= */
.events-heading-wrap
{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.events-eyebrow
{
  display: block;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.events-title
{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  color: white;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.events-rule
{
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

/* =========================
   Events page layout
========================= */
.events-page
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: calc(100vh - 80px);
}

/* =========================
   Calendar container (two-column)
========================= */
.calendar-container
{
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: min(820px, calc(100vw - 40px));
  font-family: 'Lato', Roboto, Arial, sans-serif;
  padding: 32px 32px 36px;
}

/* Left column: nav + legend + grid */
.calendar-left
{
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

/* Right column: event details */
.calendar-right
{
  width: 260px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
}

/* =========================
   Calendar navigation
========================= */
.calendar-nav
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-nav #monthYear
{
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: white;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.nav-btn:hover
{
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   Legend / filter
========================= */
.legend
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.legend-btn
{
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Lato', Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.legend-btn:hover
{
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.legend-btn.active
{
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.legend-dot
{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================
   Calendar grid
========================= */
.calendar
{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

/* Day headers */
.day-name
{
  font-family: 'Lato', Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding-bottom: 6px;
}

/* Calendar day cells */
.day
{
  height: 52px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: 'Lato', Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.day-num
{
  line-height: 1;
}

/* Empty grid spacers */
.day-empty
{
  height: 52px;
}

/* Today highlight */
.day.today
{
  background-color: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
  font-weight: 700;
}

/* Selected (clicked) day */
.day.selected
{
  outline: 2px solid white;
  outline-offset: -2px;
}

.day:hover
{
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Days with events */
.event-day
{
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.event-day:hover
{
  background-color: rgba(255, 255, 255, 0.45);
}

/* Event dots row */
.event-dots
{
  display: flex;
  gap: 3px;
}

.event-dot
{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================
   Event details panel
========================= */
.event-details
{
  font-family: 'Lato', Roboto, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: white;
  word-wrap: break-word;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn
{
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.event-details h3
{
  color: white;
  margin-top: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.event-card
{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
  transition: background 0.2s ease;
  text-align: left;
}

.event-card:last-child
{
  margin-bottom: 0;
}

.event-card:hover
{
  background: rgba(255, 255, 255, 0.12);
}

.event-cat-dot
{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.event-card-body
{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-title
{
  font-family: 'Lato', Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: white;
}

.event-time
{
  font-family: 'Lato', Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 900px) {
  .calendar-container {
    flex-direction: column;
    width: min(500px, calc(100vw - 40px));
  }
  .calendar-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 16px;
  }
}

@media screen and (max-width: 520px) {
  .events-page {
    padding: 0 12px;
  }
  .calendar-container {
    padding: 16px;
  }
  .day {
    height: 40px;
    font-size: 10px;
  }
}

@media screen and (max-width: 400px) {
  .events-page {
    padding: 0 8px;
  }
  .calendar-container {
    padding: 12px;
    gap: 12px;
  }
  .day {
    height: 34px;
    font-size: 9px;
    border-radius: 6px;
  }
  .calendar {
    gap: 4px;
  }
  .events-title {
    font-size: 2rem;
  }
  .calendar-nav #monthYear {
    font-size: 18px;
  }
}

/* iOS Safari fix */
@media (hover: none) and (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
  body::before {
    background-attachment: scroll;
  }
}
