/* =========================================================
   EVENTS PAGE BASE
   ========================================================= */
.events-header {
  background: #41b8e5;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.events-header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 2rem;
}

.events-header .subtitle {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 1.1rem;
}

.events-container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* =========================================================
   UPCOMING EVENTS LIST
   ========================================================= */
.events-list-section h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* =========================================================
   UNIFIED EVENT CARD STYLING (top + bottom)
   ========================================================= */

.event-card,
.event-on-day {
  background: white;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
  cursor: pointer;
}

.event-card:hover,
.event-on-day:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: var(--brand-hover);
}

.event-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.event-card-date {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.event-card-location {
  font-size: 0.95rem;
  color: #333;
}

.event-no-results {
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
  opacity: 0.75;
}

/* =========================================================
   CALENDAR SECTION
   ========================================================= */
.events-calendar-section {
  margin-top: 3rem;
}

.events-calendar-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* =========================================================
   CALENDAR HEADER
   ========================================================= */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

#calendarTitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.cal-btn {
  background: #c62828;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cal-btn:hover {
  background: #a61f1f;
}

/* =========================================================
   WEEKDAY HEADERS
   ========================================================= */
.calendar-headerDays {
  color: #2fa8d3;
  font-weight: 300;
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

/* =========================================================
   CALENDAR GRID
   ========================================================= */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar-empty {
  height: 40px;
}

/* =========================================================
   CALENDAR DAYS
   ========================================================= */
.calendar-day {
  background: #f3f3f3;
  padding: 12px 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.calendar-day:hover {
  background: #e6e6e6;
}

/* Event-highlighted days (multi-day spans included) */
.calendar-day.event {
  background: #41b8e5;
  color: white;
  font-weight: 600;
}

/* Highlight today's date */
.calendar-day.today {
  border: 2px solid #c62828;
  font-weight: 600;
}

/* =========================================================
   EVENTS LIST UNDER CALENDAR
   ========================================================= */
.calendar-events {
  margin-top: 1rem;
  padding: 1rem;
}

.calendar-events h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.calendar-events .no-events {
  font-size: 1rem;
  opacity: 0.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
.events-footer {
  text-align: center;
  padding: 2rem 0;
  color: #555;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* =========================================================
   RESPONSIVE FIXES (MOBILE)
   ========================================================= */
@media (max-width: 600px) {
  /* Compact grid spacing */
  .calendar-grid {
    padding: 0.6rem;
    gap: 4px;
  }

  /* Smaller day blocks */
  .calendar-day {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  /* Hide weekday headers on very small screens */
  .calendar-headerDays {
    font-size: 0.7rem;
    padding: 3px 0;
    letter-spacing: 0.6px;
    white-space: nowrap;
  }

  /* 2-column fallback mode (optional but recommended) 
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }*/

  #calendarTitle {
    font-size: 1.1rem;
  }
}

/* =========================================================
   Map
   ========================================================= */
.event-map-wrapper {
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  background: #f7f7f7; /* visible while loading */
}
