/* Events page: retain the useful calendar, replace the heavy dashboard shell. */

.events-section.events-page {
  width: 100%;
  padding: 0 !important;
  background: #f2efe8 !important;
  color: #11110f !important;
}

.events-section .events-layout,
.events-section .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.filter-header {
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  display: block;
  background: linear-gradient(90deg, rgba(229,222,210,.94) 0%, rgba(229,222,210,.84) 30%, rgba(229,222,210,.25) 65%, rgba(229,222,210,.06) 100%), url('../images/ai/skyline.jpg') center 55% / cover !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(17,17,15,.1) !important;
  color: #11110f;
}

/* Simple, always-visible controls within the filter panel. */
.events-sidebar.simple-filters {
  width: min(460px, 100%) !important;
  background: #fff !important;
  color: #202020 !important;
  box-shadow: -12px 0 50px rgba(0,0,0,.12) !important;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
}
.simple-filters .filter-drawer-head {
  background: #fff;
  padding-top: 25px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-color: #ededed;
}
.simple-filters .filter-drawer-head h2 { font: 600 20px/1.3 "Inter", sans-serif; letter-spacing: -.04em; }
.simple-filters .filter-drawer-close { width: 36px; height: 36px; flex-basis: 36px; min-width: 44px; min-height: 44px; border: 0; background: #f5f5f5; color: #333; }
.simple-filters .sidebar-section { flex-shrink: 0; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #ededed !important; }
.simple-filters .sidebar-title {
  display: block;
  margin: 0 0 14px !important;
  color: #222 !important;
  font: 600 14px/1.4 "Inter", sans-serif !important;
  text-transform: none !important;
  letter-spacing: -.015em !important;
}
.simple-filters .search-input {
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  background: #fff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 9px !important;
  font: 400 14px/1.4 "Inter", sans-serif;
}
.simple-filters .search-icon { color: #666 !important; }
.simple-filters .dropdown-toggle[hidden] { display: none !important; }
.simple-filters .dropdown-menu.open {
  position: static;
  display: block;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
  opacity: 1;
}
.simple-filters .date-picker-container { padding: 0; }
.simple-filters .date-field-label { display: block; margin-bottom: 8px; color: #737373; font-size: 12px; }
.simple-filters .date-picker-input { width: 100%; border: 1px solid #d9d9d9; border-radius: 9px; background: #fff; padding: 11px 13px; font: 400 14px/1.4 "Inter", sans-serif; }
.simple-filters .quick-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.simple-filters .quick-date-btn,
.simple-filters #cityDropdownMenu .dropdown-item {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #e2e2e2 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #575757 !important;
  font: 500 12px/1.4 "Inter", sans-serif;
  box-shadow: none;
  text-align: center;
  cursor: pointer;
}
.simple-filters #cityDropdownMenu.open { display: flex; flex-wrap: wrap; gap: 8px; }
.simple-filters .quick-date-btn.active,
.simple-filters #cityDropdownMenu .dropdown-item.active { color: #111 !important; background: #f4f4f4 !important; border-color: #202020 !important; }
.simple-filters #typeDropdownMenu { display: grid; gap: 2px; }
.simple-filters .dropdown-checkbox-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: #fff !important; cursor: pointer; }
.simple-filters .dropdown-checkbox-item input[type="checkbox"] { appearance: auto; display: block; position: static; opacity: 1; width: 18px; height: 18px; margin: 0; accent-color: #202020; cursor: pointer; }
.simple-filters .checkbox-custom, .simple-filters .checkbox-count { display: none; }
.simple-filters .checkbox-label { color: #454545; font: 400 14px/1.4 "Inter", sans-serif; }
.simple-filters .filter-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: #fff;
  border-color: #ededed;
  flex-shrink: 0;
}
.simple-filters .clear-filters { width: auto; min-height: 44px; padding: 0; margin: 0; border: 0 !important; background: transparent !important; color: #333 !important; font: 500 13px/1.4 "Inter", sans-serif; letter-spacing: 0; text-transform: none; text-decoration: underline; white-space: nowrap; }
.simple-filters .apply-filters { width: auto; min-height: 46px; padding: 0 24px; border-radius: 8px; font: 600 13px/1.4 "Inter", sans-serif; letter-spacing: 0; text-transform: none; }
.events-toolbar .mobile-filter-btn { min-height: 44px; border: 1px solid #cbc6bc !important; border-radius: 8px !important; background: #fff !important; color: #222 !important; font: 500 13px/1.4 "Inter", sans-serif; letter-spacing: 0; text-transform: none; box-shadow: none; }
.events-toolbar .mobile-filter-btn i { font-size: 18px; }
.events-toolbar .mobile-filter-btn:hover { background: #f7f5f1 !important; }

@media (max-width: 620px) {
  .filter-header { background: linear-gradient(90deg, rgba(229,222,210,.9), rgba(229,222,210,.36)), url('../images/ai/skyline.jpg') center / cover !important; }
  .events-sidebar.simple-filters { width: 100% !important; }
  .simple-filters .quick-date-btn, .simple-filters #cityDropdownMenu .dropdown-item { min-height: 44px; }
}

.filter-header::before,
.filter-header::after,
.filter-header h3::before { display: none !important; }

.events-header-copy {
  width: min(1420px, calc(100% - 64px));
  min-height: 0;
  margin: 0 auto;
  padding: 35px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.events-header-kicker {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  color: #a88448;
  font: 700 10px/1.4 "Inter", sans-serif;
  letter-spacing: .21em;
  text-transform: uppercase;
  text-align: left !important;
}

.filter-header h1 {
  max-width: 980px;
  margin: 0 !important;
  color: #11110f !important;
  font: 400 clamp(36px, 3.4vw, 48px)/1.12 "Playfair Display", Georgia, serif !important;
  letter-spacing: -.035em !important;
  text-align: left !important;
}

.filter-header h1 .highlight-text {
  color: #927035 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-weight: 400 !important;
}

.filter-header .subtitle {
  max-width: 620px;
  margin: 12px 0 0 !important;
  color: #69655e !important;
  font-size: 16px !important;
  line-height: 1.7;
  text-align: left !important;
}

.events-header-visual {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  background: #101216;
}

.events-header-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,15,.18), transparent 45%), linear-gradient(0deg, rgba(7,8,10,.48), transparent 48%);
}

.events-header-visual img { width: 100%; height: 100%; object-fit: cover; }
.events-header-visual figcaption {
  position: absolute;
  right: 30px;
  bottom: 24px;
  z-index: 1;
  color: rgba(255,255,255,.82);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.events-content-grid {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  display: block;
  background: #f2efe8;
}

.events-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  z-index: 12000 !important;
  width: min(430px, 100%) !important;
  height: 100dvh !important;
  min-height: 0 !important;
  padding: 0 30px 30px !important;
  overflow-y: auto !important;
  background: #e5ded2 !important;
  border: 0 !important;
  border-left: 1px solid rgba(17,17,15,.12) !important;
  box-shadow: -24px 0 60px rgba(20,17,12,.2) !important;
  color: #11110f !important;
  transform: translateX(105%) !important;
  transition: transform .32s cubic-bezier(.22,.75,.28,1) !important;
}

.events-sidebar.open { transform: translateX(0) !important; }

.events-toolbar {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.events-toolbar p {
  margin: 0;
  color: #6f6a61;
  font: 500 13px/1.5 "Inter", sans-serif;
  letter-spacing: .04em;
}

.mobile-filter-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 20px;
  border: 1px solid #11110f !important;
  border-radius: 0 !important;
  background: #11110f !important;
  color: #fff !important;
  font: 700 11px/1 "Inter", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-filter-btn:hover { background: #9e7a3d !important; border-color: #9e7a3d !important; }

.filter-drawer-head {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 -30px 30px;
  padding: 24px 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #e5ded2;
  border-bottom: 1px solid rgba(17,17,15,.12);
}

.filter-drawer-head span {
  display: block;
  margin-bottom: 4px;
  color: #9e7a3d;
  font: 700 9px/1.4 "Inter", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.filter-drawer-head h2 {
  margin: 0;
  color: #11110f;
  font: 500 30px/1.05 "Playfair Display", Georgia, serif;
}

.filter-drawer-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,15,.2);
  border-radius: 50%;
  background: transparent;
  color: #11110f;
  font-size: 20px;
  cursor: pointer;
}

.filter-drawer-actions {
  position: sticky;
  bottom: -30px;
  z-index: 3;
  margin: 26px -30px -30px;
  padding: 18px 30px 30px;
  background: #e5ded2;
  border-top: 1px solid rgba(17,17,15,.12);
}

.apply-filters {
  width: 100%;
  min-height: 52px;
  border: 1px solid #11110f;
  background: #11110f;
  color: #fff;
  font: 700 11px/1 "Inter", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11900;
  display: block !important;
  border: 0;
  background: rgba(8,8,7,.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

body.filters-open { overflow: hidden; }
body.filters-open .filter-backdrop { opacity: 1; pointer-events: auto; }

.sidebar-section { border-color: rgba(17,17,15,.11) !important; }
.sidebar-title { color: #7d6338 !important; letter-spacing: .18em !important; }
.sidebar-title i, .search-icon { color: #9e7a3d !important; }
.events-sidebar .dropdown-label { color: #292722 !important; }
.events-sidebar .dropdown-menu { position: static; margin-top: 8px; }
.events-sidebar .dropdown-menu:not(.open) { display: none; }
.events-sidebar .quick-date-btn { color: #5f5b53; border-color: #c7bdac; background: #f7f4ef; min-height: 44px; }
.events-sidebar .quick-date-btn.active { background: #11110f; color: #fff; }
.events-sidebar .date-picker-input { color: #292722; background: #f7f4ef; border-color: #c7bdac; color-scheme: light; min-height: 48px; }
.events-sidebar .checkbox-label { color: #292722; }
.events-sidebar .checkbox-count { color: #6f6a61; }
.events-empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: #6f6a61; }
.filter-count { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: #b89559; color: #11110f; font-size: 10px; }
.events-sidebar :focus-visible, .mobile-filter-btn:focus-visible { outline: 2px solid #9e7a3d; outline-offset: 4px; }

.search-input,
.dropdown-toggle,
.clear-filters {
  min-height: 50px;
  background: rgba(255,255,255,.7) !important;
  border: 1px solid rgba(17,17,15,.18) !important;
  border-radius: 0 !important;
  color: #171613 !important;
  box-shadow: none !important;
}

.search-input::placeholder { color: #827e76 !important; }
.dropdown-toggle:hover,
.dropdown-toggle.active,
.search-input:focus { border-color: #9e7a3d !important; background: #fff !important; }
.dropdown-arrow { color: #9e7a3d !important; }

.dropdown-menu {
  background: #fff !important;
  border: 1px solid rgba(17,17,15,.16) !important;
  border-radius: 0 !important;
  box-shadow: 0 18px 45px rgba(30,25,18,.14) !important;
}
.dropdown-item,
.dropdown-checkbox-item { color: #292722 !important; border-color: rgba(17,17,15,.08) !important; }
.dropdown-item:hover,
.dropdown-item.active,
.dropdown-checkbox-item:hover { background: #f1ede5 !important; color: #11110f !important; }
.clear-filters { color: #5f5b53 !important; }

#events-list {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.event-row {
  min-width: 0;
  background: #fff !important;
  border: 1px solid rgba(17,17,15,.13) !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 28px rgba(26,22,16,.07) !important;
  color: #11110f !important;
}
.event-row::before { display: none !important; }
.event-row:hover {
  border-color: rgba(158,122,61,.55) !important;
  box-shadow: 0 15px 38px rgba(26,22,16,.11) !important;
  transform: translateY(-3px) !important;
}

.event-media { height: 220px; border-radius: 0 !important; background: #d6d1c8; }
.event-media::after { height: 38%; background: linear-gradient(to top, rgba(0,0,0,.42), transparent); }
.event-category,
.event-date { border-radius: 0 !important; }

.event-content { padding: 24px 24px 16px; }
.event-title {
  color: #171613 !important;
  font-size: 20px;
  font-weight: 600;
  min-height: 52px;
}
.event-location,
.event-datetime { color: #6f6a61 !important; }
.event-location i,
.event-datetime i { color: #9e7a3d !important; }

.event-actions { padding: 0 24px 18px !important; }
.action-btn {
  width: 36px !important;
  height: 36px !important;
  background: transparent !important;
  border: 1px solid rgba(17,17,15,.18) !important;
  color: #4e4a43 !important;
  border-radius: 50% !important;
}
.action-btn:hover { border-color: #9e7a3d !important; color: #9e7a3d !important; }
.event-right { padding: 0 24px 24px; }
.book-btn {
  min-height: 46px;
  background: #11110f !important;
  border: 1px solid #11110f !important;
  border-radius: 0 !important;
  color: #fff !important;
  letter-spacing: .12em;
}
.book-btn:hover { background: #9e7a3d !important; border-color: #9e7a3d !important; box-shadow: none !important; }

@media (max-width: 1024px) {
  .events-header-copy {
    width: calc(100% - 60px);
    min-height: 0;
    padding: 32px 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }
  .filter-header .subtitle { margin-top: 12px !important; }
  .events-toolbar { width: calc(100% - 60px); }
  #events-list {
    position: relative !important;
    left: auto !important;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: calc(100% - 60px) !important;
    min-height: 360px;
    margin: 0 auto !important;
    padding: 28px 0 60px;
    transform: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #events-list > * { visibility: visible !important; opacity: 1 !important; }
  #events-list:empty::before {
    content: "Loading upcoming events…";
    padding: 70px 20px;
    color: #777168;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .events-header-copy { width: calc(100% - 40px); padding: 28px 0; }
  .filter-header h1 { font-size: clamp(31px, 7.5vw, 40px) !important; }
  .filter-header .subtitle { margin-top: 12px !important; font-size: 14px !important; }
  .events-toolbar { width: calc(100% - 40px); padding-top: 20px; }
  .events-toolbar p { display: none; }
  .mobile-filter-btn { width: 100%; min-height: 48px; }
  #events-list { width: calc(100% - 40px) !important; padding: 20px 0 50px !important; grid-template-columns: 1fr !important; gap: 20px; }
  .events-sidebar { width: 100% !important; padding-right: 20px !important; padding-left: 20px !important; }
  .filter-drawer-head { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
  .filter-drawer-actions { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
  .event-media { height: 210px; }
}

/* The filter menu unfolds from the hero into the page. */
.events-header-copy { position: relative; padding-right: 0; }
.hero-filter-btn {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: inline-flex !important;
  gap: 10px;
  min-width: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  min-height: 46px;
  border: 1px solid rgba(35,32,27,.25) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.88) !important;
  color: #222 !important;
  font: 500 13px/1.4 "Inter", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none !important;
}
.hero-filter-btn:hover { background: #fff !important; }
.hero-filter-btn > i { display: block; font-size: 20px; line-height: 1; }
.hero-filter-btn[aria-expanded="true"] { border-color: #746b5d !important; }
.hero-filter-btn.has-filters::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #9e7a3d; }
.inline-filters .dropdown-checkbox-item { width: fit-content; max-width: 100%; padding: 8px 12px; border-radius: 999px; transition: background-color .15s ease; }
.inline-filters .dropdown-checkbox-item:hover,
.inline-filters .dropdown-checkbox-item:focus-within { background: #f4f1eb !important; }
.inline-filters .dropdown-checkbox-item:has(input:checked) { background: #eee9df !important; }
.hero-filter-btn .filter-chevron { transition: transform .2s ease; }
.hero-filter-btn[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
body.filters-open { overflow: auto; }
.events-sidebar.simple-filters.inline-filters {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: none;
  width: min(1420px, calc(100% - 64px)) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto;
  padding: 24px 0 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid #dedad2 !important;
  background: #fff !important;
  box-shadow: 0 0 0 100vmax #fff !important;
  clip-path: inset(0 -100vmax);
  transform: none !important;
  transition: none !important;
}
.events-sidebar.simple-filters.inline-filters.open {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr 1fr;
  column-gap: 32px;
  animation: filters-unfold .22s ease-out;
}
.inline-filters .filter-drawer-head {
  position: static;
  grid-column: 1 / -1;
  margin: 0 0 24px;
  padding: 0 0 16px;
}
.inline-filters .sidebar-section,
.inline-filters .sidebar-section.search-section { min-width: 0; margin: 0; padding: 0 0 24px; border: 0 !important; }
.inline-filters #cityDropdownMenu.open { flex-direction: column; align-items: stretch; }
.inline-filters .quick-dates { flex-direction: row !important; display: flex !important; flex-wrap: wrap; gap: 8px; }
.inline-filters .quick-date-btn { flex: 0 1 auto; width: auto !important; font-size: 12px !important; }
.inline-filters .date-field-label { text-align: left; }
.inline-filters .dropdown-checkbox-item input[type="checkbox"] { color-scheme: light; }
.inline-filters .clear-filters { font-size: 13px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
.inline-filters .filter-drawer-actions {
  position: static;
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 0 20px;
  border-top: 1px solid #ededed;
}
.events-toolbar { padding-top: 24px; }
@keyframes filters-unfold { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1024px) {
  .events-sidebar.simple-filters.inline-filters { width: calc(100% - 60px) !important; }
  .events-sidebar.simple-filters.inline-filters.open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}
@media (max-width: 620px) {
  .events-header-copy { padding-right: 0; }
  .hero-filter-btn { position: relative; right: auto; bottom: auto; width: 48px; height: 48px; margin-top: 22px !important; }
  .events-sidebar.simple-filters.inline-filters { width: calc(100% - 40px) !important; }
  .events-sidebar.simple-filters.inline-filters.open { grid-template-columns: 1fr; }
  .inline-filters .filter-drawer-head { margin-bottom: 20px; }
  .inline-filters #cityDropdownMenu.open { flex-direction: row; }
  .inline-filters #typeDropdownMenu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-filters .sidebar-section { padding-bottom: 20px; }
  .events-toolbar p { display: block; }
  .inline-filters .search-input,
  .inline-filters .date-picker-input { min-width: 0; max-width: 100%; font-size: 16px !important; }
  .inline-filters .quick-date-btn,
  .inline-filters #cityDropdownMenu .dropdown-item { min-height: 44px; padding: 10px 12px; }
  .inline-filters .dropdown-checkbox-item { min-width: 0; }
  .inline-filters .dropdown-checkbox-item input[type="checkbox"] { flex-shrink: 0; }
  .inline-filters .checkbox-label { min-width: 0; overflow-wrap: break-word; }
  .inline-filters #typeDropdownMenu { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .inline-filters .filter-drawer-actions { gap: 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .inline-filters .apply-filters { min-height: 48px; }
  .hero-filter-btn { min-height: 48px; }
}

.events-toolbar .event-filter-toggle {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #36332e;
  font: 500 13px/1.4 "Inter", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: color .15s ease;
}
.events-toolbar .event-filter-toggle:hover,
.events-toolbar .event-filter-toggle[aria-expanded="true"] { color: #9e7a3d; background: transparent; }
.event-filter-toggle svg { display: block; flex-shrink: 0; }
.event-filter-toggle:focus-visible { outline: 2px solid #9e7a3d; outline-offset: 2px; }
.event-filter-toggle.has-filters::after { content: ""; position: absolute; top: 7px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #9e7a3d; }
.event-ride-note { margin: 0 0 12px; color: #777168; font: 400 12px/1.5 "Inter", sans-serif; text-align: center; }
.event-right .book-btn { font-size: 11px; letter-spacing: .08em; }

/* A visitor can request transport for an event outside the listings. */
.events-toolbar-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.events-toolbar-divider { width: 1px; height: 18px; background: #d3cdc1; }
.custom-event-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #59564f; font: 400 13px/1.4 "Inter", sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }
.custom-event-toggle > span { color: #937344; font-size: 21px; font-weight: 300; }
.custom-event-toggle:hover, .custom-event-toggle[aria-expanded="true"] { color: #937344; }
.custom-event-panel { width: min(1420px, calc(100% - 64px)); margin: 18px auto 0; padding: 28px; border: 1px solid #d9d3c8; background: #faf8f3; }
.custom-event-panel[hidden] { display: none; }
.custom-event-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.custom-event-heading h2 { margin: 0 0 8px; color: #25251f; font: 400 26px/1.2 var(--ed-serif); letter-spacing: -.025em; text-align: left; }
.custom-event-heading p { margin: 0; color: #767168; font: 400 13px/1.6 "Inter", sans-serif; text-align: left; }
.custom-event-heading > button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin: -8px -8px 0 0; padding: 0; color: #646158; background: transparent; border: 0; cursor: pointer; }
.custom-event-form { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr auto; gap: 18px; align-items: end; }
.custom-event-form label { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: #4b4840; font: 500 12px/1.4 "Inter", sans-serif; text-align: left; }
.custom-event-form label > span { color: #4b4840; }
.custom-event-form small { color: #8c877d; font-size: 11px; font-weight: 400; }
.custom-event-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #d6d1c7; border-radius: 4px; background: #fff; color: #25251f; font: 400 14px/1.4 "Inter", sans-serif; color-scheme: light; }
.custom-event-form button { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; padding: 12px 18px; border: 1px solid #181914; border-radius: 4px; background: #181914; color: #f5f2eb; font: 500 13px/1.4 "Inter", sans-serif; cursor: pointer; }
.custom-event-form button > span { font-size: 20px; }
.custom-event-panel :focus-visible, .custom-event-toggle:focus-visible { outline: 2px solid #9e7a3d; outline-offset: 3px; }
@media (max-width: 1000px) {
  .custom-event-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .events-toolbar-actions { width: 100%; gap: 15px; justify-content: flex-end; }
  .events-toolbar:has(.events-toolbar-actions) { gap: 0; }
  .events-toolbar-divider { height: 16px; }
  .custom-event-toggle { gap: 7px; font-size: 12px; }
  .custom-event-panel { width: calc(100% - 40px); padding: 20px; }
  .custom-event-form { grid-template-columns: 1fr; gap: 16px; }
  .custom-event-heading h2 { font-size: 23px; }
  .custom-event-heading { gap: 8px; }
}

/* Matching expanded panels, distinguished by white and warm beige. */
#events-list { scroll-margin-top: 125px; }
.event-pagination-footer { width: 100%; padding: 20px 16px; display: grid; justify-items: center; gap: 12px; }
.event-page-summary { margin: 0; color: #777166; font: 400 12px/1.5 "Inter", sans-serif; }
.event-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.event-pagination[hidden] { display: none; }
.event-pagination button { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #c8b59a; border-radius: 50%; background: transparent; color: #86643e; font: 500 13px/1 "Inter", sans-serif; cursor: pointer; }
.event-pagination button:hover { background: #e9dfd0; }
.event-pagination button[aria-current="page"] { background: #86643e; border-color: #86643e; color: #fffaf1; }
.event-pagination button:disabled { opacity: .3; cursor: default; }
.event-pagination button:focus-visible { outline: 2px solid #997b46; outline-offset: 3px; }
.event-pagination > span { padding: 0 2px; color: #777166; }
@media (max-width: 480px) {
  .event-pagination { gap: 3px; }
  .event-pagination button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 6px; }
}
.custom-event-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 0;
  border: 0;
  border-bottom: 1px solid #d3cbbb;
  background: #e7e1d6;
  box-shadow: 0 0 0 100vmax #e7e1d6;
  clip-path: inset(0 -100vmax);
}
.custom-event-panel[hidden] { display: none; }
.custom-event-heading { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #d3cbbb; }
.custom-event-heading > button { margin: 0; background: rgba(255,255,255,.45); border-radius: 50%; }
.custom-event-form { grid-template-columns: 1fr 1.35fr 1fr; grid-template-rows: 1fr auto; padding-bottom: 20px; align-items: start; }
.custom-event-form > button { grid-column: 1 / -1; justify-self: end; align-self: end; min-width: 144px; }
.events-toolbar:has(> .custom-event-toggle) { gap: 20px; padding-bottom: 12px; }
@media (min-width: 1025px) {
  .events-sidebar.simple-filters.inline-filters.open, .custom-event-panel:not([hidden]) { min-height: 480px !important; }
  .events-sidebar.simple-filters.inline-filters.open { grid-template-rows: auto 1fr auto; }
}
@media (max-width: 1024px) {
  .custom-event-panel { width: calc(100% - 60px); }
  .custom-event-form { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 20px; }
}
@media (max-width: 680px) {
  .events-toolbar:has(> .custom-event-toggle) .events-toolbar-actions { width: auto; }
  .custom-event-panel { padding-top: 20px; }
  .custom-event-form { grid-template-columns: 1fr; }
  .custom-event-form > button { width: 100%; }
}
@media (max-width: 620px) { .custom-event-panel { width: calc(100% - 40px); } }

/* Keep field labels, inputs and anchored event results on the same grid. */
.custom-event-panel#customEventPanel {
  min-height: 0 !important;
  padding: 28px;
  grid-template-rows: auto auto;
}
.custom-event-panel#customEventPanel .custom-event-form {
  grid-template-rows: auto auto auto;
  padding-bottom: 0;
}
.custom-event-panel#customEventPanel .custom-event-form > button {
  margin: 0;
  align-self: start;
  justify-content: center;
  text-align: center;
}
#customEventPanel .custom-event-heading,
#customEventPanel .custom-event-form,
#customEventPanel .custom-event-form label,
#customEventPanel .custom-event-form label > span,
#customEventPanel .custom-event-form input,
#customEventPanel .custom-event-form small { text-align: left !important; }
#customEventPanel input::-webkit-date-and-time-value { text-align: left !important; margin: 0; }
#customEventPanel input::-webkit-datetime-edit { text-align: left; padding: 0; }
@media (max-width: 680px) {
  .custom-event-panel#customEventPanel { padding: 20px; }
}
.custom-event-panel .custom-event-form { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 24px; row-gap: 28px; }
.custom-event-panel .custom-event-form > label { grid-column: span 2; }
.custom-event-panel .custom-event-form > .custom-event-name,
.custom-event-panel .custom-event-form > .custom-event-venue { grid-column: span 3; }
.custom-event-panel .custom-event-form label { display: flex; align-items: stretch; gap: 9px; margin: 0; padding: 0; text-align: left; }
.custom-event-panel .custom-event-form label > span:first-child { min-height: 17px; font: 500 12px/1.4 "Inter", sans-serif; }
.custom-event-panel .custom-event-form input { height: 48px; min-height: 48px; margin: 0; }
.custom-event-panel .custom-event-form label > small { min-height: 0; font: 400 11px/1.5 "Inter", sans-serif; }
.custom-event-panel .event-name-search { position: relative; display: block; width: 100%; min-width: 0; }
.custom-event-panel .event-suggestions { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: block; width: 100%; max-height: 260px; padding: 4px 0; overflow-y: auto; border: 1px solid #dcd5c8; border-radius: 6px; background: #fffefa; box-shadow: 0 8px 24px rgba(22,23,18,.13); }
.custom-event-panel .event-suggestions[hidden] { display: none; }
.custom-event-panel .event-suggestion { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; width: 100%; min-height: 58px; padding: 12px 14px; border: 0; border-bottom: 1px solid #eee8df; border-radius: 0; background: transparent; color: #34362d; font: 400 13px/1.5 "Inter", sans-serif; text-align: left; cursor: pointer; }
.custom-event-panel .event-suggestion strong { font-size: 13px; font-weight: 500; }
.custom-event-panel .event-suggestion small { color: #787165; font: 400 11px/1.5 "Inter", sans-serif; }
.custom-event-panel .event-suggestion:hover, .custom-event-panel .event-suggestion[aria-selected="true"] { background: #eee9df; }
.custom-event-panel .event-search-status { display: block; padding: 10px 14px; color: #827a6e; font: 400 11px/1.6 "Inter", sans-serif; }
@media (max-width: 1024px) {
  .custom-event-panel .custom-event-form { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; row-gap: 24px; }
  .custom-event-panel .custom-event-form > label,
  .custom-event-panel .custom-event-form > .custom-event-name,
  .custom-event-panel .custom-event-form > .custom-event-venue { grid-column: auto; }
}
@media (max-width: 680px) {
  .custom-event-panel#customEventPanel {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    min-width: 0;
    padding: 18px 12px;
    box-sizing: border-box;
  }
  #customEventPanel .custom-event-heading { gap: 12px; margin-bottom: 18px; padding-bottom: 14px; }
  #customEventPanel .custom-event-heading h2 { font-size: 22px; line-height: 1.2; }
  #customEventPanel .custom-event-heading p { font-size: 12px; line-height: 1.6; }
  .custom-event-panel#customEventPanel .custom-event-form {
    width: 100%; min-width: 0; max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 16px;
  }
  #customEventPanel .custom-event-form > label,
  #customEventPanel .custom-event-form > .custom-event-name,
  #customEventPanel .custom-event-form > .custom-event-venue { grid-column: 1; width: 100%; min-width: 0; max-width: 100%; gap: 6px; }
  #customEventPanel .field-picker,
  #customEventPanel .place-input-anchor,
  #customEventPanel .event-name-search { width: 100%; min-width: 0; max-width: 100%; }
  #customEventPanel .custom-event-form input {
    display: block; width: 100%; min-width: 0; min-inline-size: 0; max-width: 100%;
    height: 46px; min-height: 46px; padding: 10px 12px; border-radius: 2px;
    box-sizing: border-box; font-size: 16px; line-height: 24px;
  }
  #customEventPanel input[type="date"], #customEventPanel input[type="time"] { -webkit-appearance: none; appearance: none; text-align: left; }
  #customEventPanel input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
  #customEventPanel .custom-event-form > button { width: 100%; min-width: 0; min-height: 46px; margin-top: 2px; }
}
