*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 16px;
  background: #12141d;
  color: #f3f4f6;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #34d399;
  color: #12141d;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

/* Header: centered H1 + caption, burger menu on the right */
.site-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #1e2230;
  border: 1px solid #2e3448;
  border-radius: 8px;
  position: relative;
}

.header-brand {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 1.45rem;
  color: #f3f4f6;
}

.page-caption {
  margin: 4px auto 0;
  max-width: 120ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #cbd5e1;
  font-weight: 400;
}

.interpreter-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.interpreter-cta span {
  color: #34d399;
  font-weight: 700;
}

.interpreter-cta:hover,
.interpreter-cta:focus-visible {
  background: rgba(52, 211, 153, 0.22);
  border-color: #34d399;
  outline: none;
}

.burger-btn {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #34d399;
  border-radius: 6px;
  background: #12141d;
  color: #34d399;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.burger-btn:hover,
.burger-btn:focus-visible {
  background: #34d399;
  color: #12141d;
  outline: none;
}

.burger-nav {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #1e2230;
  border: 1px solid #34d399;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.burger-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burger-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #f3f4f6;
  text-decoration: none;
  font-weight: 600;
}

.burger-nav a:hover,
.burger-nav a:focus-visible {
  background: #282e40;
  color: #34d399;
  outline: none;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
  background: #1e2230;
  padding: 12px;
  border: 1px solid #2e3448;
  border-radius: 8px;
}

.filters label {
  flex: 1 1 180px;
}

.date-filter-box {
  flex: 1 1 230px;
}

.calendar-subinput {
  border-color: #34d399;
}

label,
.filter-field-label {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 4px;
  color: #f3f4f6;
}

select,
input[type="text"],
input[type="date"],
input[type="url"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #3b4259;
  border-radius: 6px;
  font-size: 1rem;
  background: #12141d;
  color: #f3f4f6;
}

select:focus,
input[type="text"]:focus,
input[type="date"]:focus,
input[type="url"]:focus {
  border-color: #34d399;
  outline: 2px solid rgba(52, 211, 153, 0.25);
}

.clear-btn {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #34d399;
  border-radius: 6px;
  background: #34d399;
  color: #12141d;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.clear-btn:hover,
.clear-btn:focus-visible {
  background: #6ee7b7;
  outline: none;
}

/* Multi-select button filters (Access Types & Event Types) */
.multi-filter-box {
  position: relative;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.multi-toggle-btn {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #3b4259;
  border-radius: 6px;
  background: #12141d;
  color: #f3f4f6;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.multi-toggle-btn::after {
  content: "▾";
  color: #34d399;
}

.multi-toggle-btn[aria-expanded="true"],
.multi-toggle-btn:focus-visible {
  border-color: #34d399;
  outline: none;
}

.multi-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 8px;
  background: #1e2230;
  border: 1px solid #34d399;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  z-index: 950;
}

.multi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.multi-chip {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #3b4259;
  background: #12141d;
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.multi-chip[aria-pressed="true"] {
  background: #34d399;
  border-color: #34d399;
  color: #12141d;
}

.multi-reset-btn {
  margin-top: 8px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #3b4259;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.multi-reset-btn:hover,
.multi-reset-btn:focus-visible {
  border-color: #34d399;
  color: #34d399;
  outline: none;
}

/* Flatpickr popout mode & quick-preset bars */
.flatpickr-calendar {
  background: #1e2230;
  border: 1px solid #2e3448;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* Flatpickr dark theme contrast & range styling */
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
span.flatpickr-weekday {
  color: #f3f4f6;
  fill: #f3f4f6;
  background: transparent;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: #34d399;
  fill: #34d399;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #6ee7b7;
}

.flatpickr-day {
  color: #f3f4f6;
  border-radius: 6px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #282e40;
  border-color: #34d399;
  color: #ffffff;
}

.flatpickr-day.today {
  border-color: #34d399;
  color: #34d399;
  font-weight: 700;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #34d399;
  border-color: #34d399;
  color: #12141d;
  font-weight: 700;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange {
  background: rgba(52, 211, 153, 0.22);
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow:
    -5px 0 0 rgba(52, 211, 153, 0.22),
    5px 0 0 rgba(52, 211, 153, 0.22);
  color: #f3f4f6;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #64748b;
}

.fp-mode-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 8px 0;
  border-top: 1px solid #2e3448;
  background: #1e2230;
}

.fp-mode-btn {
  padding: 6px 8px;
  border: 1px solid #3b4259;
  border-radius: 6px;
  background: #12141d;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.fp-mode-btn.is-active {
  background: #34d399;
  border-color: #34d399;
  color: #12141d;
}

.fp-quick-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #2e3448;
  background: #1e2230;
}

.fp-quick-btn {
  padding: 7px 8px;
  border: 1px solid #34d399;
  border-radius: 6px;
  background: #12141d;
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.fp-quick-btn:hover,
.fp-quick-btn:focus-visible {
  background: #34d399;
  color: #12141d;
  outline: none;
}

/* Main Map & List Layout */
.layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

#map {
  height: 520px;
  border-radius: 8px;
  border: 1px solid #2e3448;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.card {
  background: #1e2230;
  border: 1px solid #2e3448;
  border-radius: 8px;
  padding: 14px;
}

.card h2 {
  color: #f3f4f6;
}

.card a {
  color: #34d399;
  font-weight: 600;
  text-decoration: none;
}

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

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.card-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2e3448;
  background: #12141d;
}

.badge {
  display: inline-block;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.drawer-access-notes {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #2e3448;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #f3f4f6;
}

.drawer-access-notes strong {
  color: #34d399;
}

.meta {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.next-date-banner {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #f3f4f6;
  font-size: 0.9rem;
}

.next-date-banner strong {
  color: #34d399;
}

.outside-filter-note {
  margin: 6px 0 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.dates-disclosure {
  margin: 8px 0;
  border: 1px solid #2e3448;
  border-radius: 6px;
  background: #12141d;
}

.dates-disclosure summary {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #34d399;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dates-disclosure summary::-webkit-details-marker {
  display: none;
}

.dates-disclosure summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 700;
}

.dates-disclosure[open] summary::after {
  content: "−";
}

.dates-drawer-body {
  padding: 10px;
  border-top: 1px solid #2e3448;
  max-height: 260px;
  overflow-y: auto;
}

.month-group {
  margin-bottom: 12px;
}

.month-group:last-child {
  margin-bottom: 0;
}

.month-heading {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34d399;
}

.date-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px;
}

.date-pill {
  padding: 6px 8px;
  border-radius: 6px;
  background: #1e2230;
  border: 1px solid #2e3448;
  font-size: 0.82rem;
  color: #f3f4f6;
}

.date-pill span {
  display: block;
  color: #34d399;
  font-weight: 600;
  font-size: 0.78rem;
}

.drawer-footer-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #2e3448;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 14px 16px;
  background: #1e2230;
  border: 1px solid #2e3448;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.site-footer a {
  color: #34d399;
  font-weight: 600;
}

/* Submit Page */
.submit-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #1e2230;
  border: 1px solid #2e3448;
  border-radius: 8px;
  padding: 20px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

textarea {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  border: 1px solid #3b4259;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #12141d;
  color: #f3f4f6;
}

.submit-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #34d399;
  border-radius: 6px;
  background: #34d399;
  color: #12141d;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  background: #12141d;
  border-left: 3px solid #34d399;
  line-height: 1.45;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: #34d399;
  font-weight: 600;
  text-decoration: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 800px) {
  body {
    padding: 12px;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    position: relative;
  }

  .header-brand {
    width: 100%;
    text-align: center;
  }

  .site-header h1 {
    font-size: 1.25rem;
  }

  .interpreter-cta {
    justify-content: center;
    text-align: center;
    border-radius: 8px;
  }

  .burger-btn {
    order: -1; /* Moves the menu button to the top of the header */
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .burger-btn::after {
    content: "Menu";
    font-size: 0.95rem;
    font-weight: 700;
  }

  .burger-nav {
    top: 60px; /* 12px header padding + 44px button height + 4px gap */
    left: 12px;
    right: 12px;
    min-width: 0;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters label,
  .multi-filter-box {
    flex: none;
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  #map {
    height: 320px;
  }

  .event-list {
    max-height: none;
    overflow-y: visible;
  }
}
.footer-disclaimer {
  flex: 1 1 100%;
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid #2e3448;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}
