.explore-type-control { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; color: #71717a; font-size: 12px; }
.explore-type-control select { min-height: 38px; min-width: 110px; border: 1px solid #e4e4e7; border-radius: 999px; padding: 7px 30px 7px 13px; background-color: #fff; color: #27272a; font-size: 13px; font-weight: 600; cursor: pointer; }
.explore-type-control select:focus-visible { outline: 2px solid #ef4444; outline-offset: 2px; }
.explore-type-control--menu { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 4px 12px 12px; }
.explore-type-control--menu > span { font-size: 11px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; color: #9ca3af; }
.explore-type-control--menu select { width: 100%; border-radius: 10px; font-size: 16px; }
[data-unified-explore] [hidden], [data-unified-explore] [data-campaigns-clear-btn].hidden { display: none !important; }
.explore-card-context { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #71717a; font-size: 11px; line-height: 16px; }
.explore-create-menu { position: relative; margin-left: auto; flex-shrink: 0; }
.explore-create-menu > summary { list-style: none; cursor: pointer; border-radius: 8px; background: #ef4444; color: #fff; padding: 7px 12px; font-size: 12px; font-weight: 600; }
.explore-create-menu > summary::-webkit-details-marker { display: none; }
.explore-create-menu__options { position: absolute; z-index: 50; right: 0; top: calc(100% + 8px); width: 230px; max-width: calc(100vw - 32px); padding: 5px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #18181b14; }
.explore-create-menu__options a { display: block; padding: 10px; border-radius: 8px; color: #3f3f46; font-size: 13px; }
.explore-create-menu__options a:hover { background: #f4f4f5; }
/* Keep the native search header outside the list's scrolling area. */
body[data-hotwire-native="true"] #main-wrapper[data-page-type="events"] { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body[data-hotwire-native="true"] #main-content[data-unified-explore] { height: 100%; min-height: 0; }
body[data-hotwire-native="true"] #main-content[data-unified-explore] > main { height: 100% !important; min-height: 0; }
@media (max-width: 767px) {
  [data-unified-explore] [data-native-stable-search-spacer] { height: 64px; }
  #main-content[data-unified-explore] [data-campaign-card-summary] { min-height: 0; }
}

/* Native <dialog> keeps the sheet above the fixed header and bottom navigation. */
/* The dialog must not scroll when showModal focuses a control during entry;
   only the inner body scrolls, so focus cannot cancel the upward motion. */
.explore-filter-sheet { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #18181b; overflow: hidden; overflow: clip; }
.explore-filter-sheet:not([open]), .explore-filter-sheet.hidden { display: none; }
.explore-filter-sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.explore-filter-sheet::backdrop { background: rgb(15 23 42 / .42); }
.explore-filter-sheet__panel { width: 100%; max-width: 560px; height: min(90vh, 720px); height: min(90dvh, 720px); max-height: calc(100% - 48px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; background: #f6f6f8; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 40px #0f172a1a; overflow: hidden; animation: explore-sheet-enter 300ms cubic-bezier(.2,.8,.2,1); }
.explore-filter-sheet__handle { display: flex; justify-content: center; flex-shrink: 0; padding: 10px 0 4px; touch-action: none; }
.explore-filter-sheet__handle > span { width: 36px; height: 4px; border-radius: 999px; background: #d1d5db; }
.explore-filter-sheet__header { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 12px; flex-shrink: 0; }
.explore-filter-sheet__header h2 { margin: 0; font-size: 18px; font-weight: 700; outline: none; }
.explore-filter-sheet__header button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e9e9ee; color: #71717a; }
.explore-filter-sheet__body { flex: 1; min-height: 0; padding: 0 20px 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.explore-filter-sheet__section + .explore-filter-sheet__section { margin-top: 20px; }
.explore-filter-sheet__section h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #71717a; }
.explore-filter-sheet__choices { overflow: hidden; border: 1px solid #e9e9ee; border-radius: 14px; background: #fff; }
.explore-filter-sheet .explore-filter-sheet__choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 0; background: #fff; color: #27272a; font-size: 14px; font-weight: 500; text-align: left; }
.explore-filter-sheet .explore-filter-sheet__choice + .explore-filter-sheet__choice { border-top: 1px solid #f0f0f3; }
.explore-filter-sheet .explore-filter-sheet__choice[aria-checked="true"] { background: #fff5f5; color: #ef4444; }
.explore-filter-sheet .explore-filter-sheet__choice.hidden { display: none; }
.explore-filter-sheet__choice > svg { flex-shrink: 0; }
.explore-filter-sheet__choice[aria-checked="false"] > svg { visibility: hidden; }
.explore-filter-sheet__footer { display: flex; align-items: center; gap: 12px; flex-shrink: 0; border-top: 1px solid #e9e9ee; background: #fff; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
.explore-filter-sheet__footer button { min-height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.explore-filter-sheet__footer [data-explore-filter-reset] { min-width: 80px; border: 1px solid #e4e4e7; background: #fff; color: #52525b; }
.explore-filter-sheet__footer [data-explore-filter-apply] { flex: 1; border: 0; background: #ef4444; color: #fff; }
.explore-filter-sheet button:focus-visible { outline: 2px solid #ef4444; outline-offset: 2px; }
@keyframes explore-sheet-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .explore-filter-sheet__panel { animation: none; } }
