.edx-explore {
  --edx-bg: #f7f3ff;
  --edx-accent: #7c3aed;
  --edx-accent-strong: #5b21b6;
  --edx-accent-soft: #f1eaff;
  --edx-coral: #fb7185;
  --edx-blue: #3b82f6;
  --edx-green: #10b981;
  --edx-amber: #f59e0b;
  --edx-ink: #18181b;
  --edx-muted: #71717a;
  --edx-line: rgba(24, 24, 27, 0.1);
  --edx-panel: rgba(255, 255, 255, 0.86);
  --edx-surface: #ffffff;
  --edx-soft: #faf7ff;
  --edx-shadow: 0 18px 45px rgba(24, 24, 27, 0.1);
  --edx-shadow-soft: 0 10px 30px rgba(42, 30, 78, 0.1);
  color: var(--edx-ink);
  font-family: inherit;
}

/* Desktop map toolbar: keep the search field flexible, use compact filter and
   view controls, and reserve a fixed slot for the Map switch. */
@media (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-map-topbar {
    height: 62px;
    align-items: stretch;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 122px);
    height: 62px;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 46px;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    font-size: 0;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button > span:first-child {
    display: none;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button .edx-filter-count:not([hidden]) {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.68rem;
  }

  .edx-explore[data-view="map"] .edx-view-select--map.has-custom-menu > .edx-view-select__button,
  .edx-explore[data-view="map"] .edx-view-select--map.has-custom-menu > select {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-view-select--map,
  .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: var(--edx-ink);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 8px 22px rgba(31, 18, 53, 0.08);
    cursor: pointer;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact {
    position: relative;
    z-index: 2;
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    height: 62px;
    min-height: 62px;
    align-self: stretch;
    gap: 7px;
    padding: 0 12px;
    border-radius: 20px;
    pointer-events: auto;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"] {
    color: #ffffff !important;
    border-color: #6d28d9 !important;
    background: #6d28d9 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 30px rgba(91, 33, 182, 0.32) !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"] .edx-map-toggle__switch {
    width: 40px;
    height: 24px;
    border-color: rgba(255, 255, 255, 0.58) !important;
    background: rgba(255, 255, 255, 0.24) !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"] .edx-map-toggle__switch::after {
    width: 16px;
    height: 16px;
    transform: translateX(16px);
  }

  .edx-explore[data-view="map"] .edx-map-topbar > [data-edx-map-count] {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls > :not(.edx-map-quick-search) {
    transition: opacity 150ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-view-active > :not(.edx-mobile-view-options) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.96);
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options:not([hidden]) {
    position: absolute;
    inset: 7px;
    z-index: 30;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: var(--edx-muted);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options button:hover,
  .edx-explore[data-view="map"] .edx-mobile-view-options button:focus-visible {
    color: var(--edx-accent-strong);
    background: var(--edx-accent-soft);
    outline: none;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options button[aria-pressed="true"] {
    color: #ffffff;
    background: #6d28d9;
    box-shadow: 0 7px 18px rgba(91, 33, 182, 0.26);
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-mobile-view-trigger,
  html.dark .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    color: #ddd6fe;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Final responsive control polish. Keep these overrides last: this stylesheet
   includes legacy toolbar layers above for cached shell compatibility. */
@media (min-width: 721px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: calc(50% + 10px) !important;
    right: 6px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(42, 30, 78, 0.12) !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(620px, 72dvh) !important;
    margin-top: 12px !important;
    padding: 16px !important;
    overflow: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters::before {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-head {
    grid-column: 1 / -1 !important;
    padding-top: 0 !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open::before {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-shell > :not(.edx-search-card),
  .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > :not(.edx-control-row) {
    filter: none !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 1041px) {
  .edx-explore:not([data-view="map"]) .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    width: calc(100% - 24px) !important;
    margin-right: 12px !important;
    margin-left: 12px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    width: 162px !important;
    transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active::before,
  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-view-active::before {
    width: calc(100% - 122px) !important;
  }
}

/* --------------------------------------------------------------------------
   Shared event card + feed-only controller
   The component is intentionally context-neutral so it can be rendered by
   What's On, Style Hub, profiles, My Events, or the [ed_event_card] shortcode.
   -------------------------------------------------------------------------- */

.edx-explore--feed-only .edx-view-select,
.edx-explore--feed-only .edx-mobile-tabs,
.edx-explore--feed-only .edx-mobile-view-options {
  display: none !important;
}

.edx-explore--feed-only .edx-control-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

.edx-explore--feed-only:not([data-view="map"]) .edx-results {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 334px)) !important;
  justify-content: start;
  align-items: start;
  gap: 18px !important;
}

.edx-shared-event-card {
  --ed-card-accent: var(--ed-color-primary, #7c3aed);
  --ed-card-accent-strong: var(--ed-color-primary-strong, #5b21b6);
  --ed-card-accent-soft: var(--ed-color-primary-soft, #f1eaff);
  --ed-card-blue: var(--ed-color-accent, #ec4899);
  --ed-card-ink: var(--ed-app-text, var(--ed-color-ink, #18181b));
  --ed-card-muted: var(--ed-app-muted, var(--ed-color-muted, #71717a));
  --ed-card-line: var(--ed-app-border, var(--ed-color-line, rgba(24, 24, 27, .1)));
  --ed-card-panel: var(--ed-app-surface, var(--ed-color-surface-strong, #ffffff));
  --ed-card-shadow-soft: var(--ed-app-shadow-soft, var(--ed-shadow-sm, 0 10px 30px rgba(42, 30, 78, .1)));
  --edx-accent: var(--ed-card-accent);
  --edx-accent-strong: var(--ed-card-accent-strong);
  --edx-accent-soft: var(--ed-card-accent-soft);
  --edx-blue: var(--ed-card-blue);
  --edx-ink: var(--ed-card-ink);
  --edx-muted: var(--ed-card-muted);
  --edx-line: var(--ed-card-line);
  --edx-panel: var(--ed-card-panel);
  --edx-shadow-soft: var(--ed-card-shadow-soft);
  --ed-event-card-surface: var(--ed-card-panel);
  --ed-event-card-soft: var(--ed-app-field, var(--ed-color-soft, #f8f5ff));
  --ed-event-card-text: var(--ed-card-ink);
  --ed-event-card-muted: var(--ed-card-muted);
  --ed-event-card-line: var(--ed-card-line);
  --ed-event-card-primary: var(--ed-card-accent);
  --ed-event-card-primary-strong: var(--ed-card-accent-strong);
  --ed-event-card-primary-soft: var(--ed-card-accent-soft);
  --ed-event-card-teal: var(--ed-color-teal, #0f766e);
  --ed-event-card-teal-soft: var(--ed-color-teal-soft, rgba(15, 118, 110, .12));
  --ed-event-card-on-primary: var(--ed-color-on-primary, #ffffff);
  --edm-event-card-bg: var(--ed-event-card-surface);
  --edm-event-card-text: var(--ed-event-card-text);
  --edm-event-card-muted: var(--ed-event-card-muted);
  --edm-event-card-border: var(--ed-event-card-line);
  --edm-event-card-accent: var(--edx-accent, #7c3aed);
  --edm-event-card-accent-soft: var(--edx-accent-soft, #f1eaff);
  width: min(100%, 334px);
  max-width: 334px;
  min-height: 0 !important;
  background: var(--ed-event-card-surface);
  isolation: isolate;
}

.edx-shared-event-card--style-hub {
  width: 100%;
  max-width: none;
}

.ed-event-card__stage {
  position: relative;
  width: 100%;
  height: var(--ed-event-card-summary-height, auto);
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  transition: height .34s cubic-bezier(.22, .72, .28, 1);
  will-change: height;
}

.edx-shared-event-card.is-showing-details .ed-event-card__stage {
  height: var(--ed-event-card-details-height, var(--ed-event-card-summary-height, auto));
}

.ed-event-card__summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ed-event-card-surface);
  transition:
    opacity .22s ease,
    transform .28s cubic-bezier(.22, .72, .28, 1),
    filter .22s ease;
}

.edx-shared-event-card.is-showing-details .ed-event-card__summary {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  filter: blur(2px);
}

.edx-shared-event-card .ed-event-card__actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px 44px !important;
  gap: 7px !important;
}

.edx-shared-event-card .ed-event-card__participation {
  display: grid;
  gap: 0;
  min-width: 0;
  margin-top: 10px;
}

.edx-shared-event-card .ed-event-card__participation > :is(.edm-event-going-button, .ed-event-card__date-select) {
  width: 100%;
}

.edx-shared-event-card .ed-event-card__secondary-actions {
  grid-template-columns: minmax(0, 1fr) 40px 44px !important;
  margin-top: 0;
}

.edx-shared-event-card .ed-event-card__secondary-actions .ed-event-card__details-toggle {
  grid-column: 1;
}

.edx-shared-event-card .ed-event-card__secondary-actions .edx-event__share-trigger {
  grid-column: 2;
}

.edx-shared-event-card .ed-event-card__secondary-actions .edx-event__options-trigger {
  grid-column: 3;
}

.ed-event-card__actions .edx-event__going,
.ed-event-card__actions .ed-event-card__details-toggle {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  white-space: nowrap;
  font-size: .76rem;
}

.ed-event-card__details-toggle,
.ed-event-card__details-head button,
.ed-event-card__details-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-surface);
  box-shadow: none;
  font-family: inherit;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.ed-event-card__details-toggle:hover,
.ed-event-card__details-head button:hover,
.ed-event-card__details-actions a:hover {
  border-color: color-mix(in srgb, var(--ed-event-card-primary) 42%, var(--ed-event-card-line));
  background: var(--ed-event-card-soft);
  transform: translateY(-1px);
}

.ed-event-card__details-toggle:focus-visible,
.ed-event-card__details-head button:focus-visible,
.ed-event-card__details-actions a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ed-event-card-primary) 34%, transparent);
  outline-offset: 2px;
}

.ed-event-card__details {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(8px);
  color: var(--ed-event-card-text);
  background: var(--ed-event-card-surface);
  transition:
    opacity .18s ease,
    transform .26s cubic-bezier(.22, .72, .28, 1),
    visibility 0s linear .3s;
}

.edx-shared-event-card.is-showing-details .ed-event-card__details {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .24s ease .08s,
    transform .3s cubic-bezier(.22, .72, .28, 1) .04s,
    visibility 0s linear 0s;
}

.ed-event-card__details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-event-card__details-head > div {
  display: grid;
  gap: 3px;
}

.ed-event-card__details-head span {
  color: var(--ed-event-card-primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ed-event-card__details-head strong {
  color: var(--ed-event-card-text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}

.ed-event-card__details-head button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: .82rem;
}

.ed-event-card__details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
}

.ed-event-card__details dl div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--ed-event-card-surface) 76%, transparent);
}

.ed-event-card__details dt,
.ed-event-card__details dd {
  margin: 0;
}

.ed-event-card__details dt {
  color: var(--ed-event-card-muted);
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.ed-event-card__details dd {
  color: var(--ed-event-card-text);
  overflow-wrap: anywhere;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
}

.ed-event-card__details-actions {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  gap: 8px;
  padding-top: 2px;
}

.ed-event-card__details-actions a {
  min-height: 36px;
  padding: 8px 13px;
  font-size: .8rem;
}

.ed-event-card__details-actions .ed-event-card__primary-link {
  border-color: transparent;
  color: var(--ed-event-card-on-primary);
  background: var(--ed-event-card-primary);
  box-shadow: none;
}

.ed-event-card__details-actions .ed-event-card__primary-link:hover {
  color: var(--ed-event-card-on-primary);
  background: var(--ed-event-card-primary-strong);
}

@media (max-width: 720px) {
  .edx-explore--feed-only .edx-control-row,
  body.edx-explore-page .edx-explore--feed-only .edx-control-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .edx-explore--feed-only .edx-filter-toggle {
    grid-column: 1 !important;
    width: 100%;
  }

  .edx-explore--feed-only:not([data-view="map"]) .edx-results {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .edx-shared-event-card,
  .my-flavour-app .ed-flavour-hub-explorer .edx-explore .edx-shared-event-card {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 360px) {
  .edx-shared-event-card .ed-event-card__actions {
    grid-template-columns: minmax(0, 1fr) 36px 36px !important;
    gap: 5px !important;
  }

  .ed-event-card__actions .edx-event__share-trigger,
  .ed-event-card__actions .edx-event__options-trigger {
    width: 36px;
    min-width: 36px;
  }

  .ed-event-card__details {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-event-card__stage,
  .ed-event-card__summary,
  .ed-event-card__details {
    transition: none !important;
  }
}
 
/* Mobile explore controls and filter sheet. Kept last so the compact layout
   is not affected by the older responsive compatibility layers above. */
.edx-filter-sheet-handle {
  display: none;
}

@media (max-width: 720px) {
  body.edx-filter-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.edx-filter-sheet-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(15, 11, 28, 0.32);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: edx-filter-backdrop-in 180ms ease-out both;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box;
    min-height: 70px !important;
    padding: 8px !important;
    overflow: visible !important;
  }

  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    width: calc(100% - 120px) !important;
    border-radius: 22px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    position: relative !important;
    inset: auto !important;
    flex: 0 1 104px !important;
    grid-column: auto !important;
    box-sizing: border-box;
    width: 104px !important;
    min-width: 76px !important;
    max-width: 104px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(110, 85, 155, 0.18) !important;
    border-radius: 23px !important;
    background: rgba(255, 255, 255, 0.74) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(44, 30, 78, 0.08) !important;
    overflow: hidden !important;
    transition: flex-basis 280ms cubic-bezier(0.22, 1, 0.36, 1), width 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label > span {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search input {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 36px 0 13px !important;
    border: 0 !important;
    border-radius: inherit !important;
    outline: 0 !important;
    color: var(--edx-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search input::placeholder {
    color: var(--edx-muted) !important;
    opacity: 0.9;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: 50% !important;
    right: 5px !important;
    bottom: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > .edx-quick-search {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > [data-edx-view-control] {
    width: 0 !important;
    min-width: 0 !important;
    flex-basis: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    position: relative !important;
    inset: auto !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 46px !important;
    grid-column: auto !important;
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-self: center !important;
    transition: width 240ms ease, min-width 240ms ease, flex-basis 240ms ease, opacity 160ms ease !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle > span:first-child {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background: currentColor !important;
    clip-path: polygon(4% 8%, 96% 8%, 62% 47%, 62% 86%, 40% 96%, 40% 47%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    flex: 0 0 46px !important;
    grid-column: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    align-self: center !important;
    transition: width 240ms ease, min-width 240ms ease, flex-basis 240ms ease, opacity 160ms ease !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    flex: 0 0 112px !important;
    grid-column: auto !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 0 0 auto !important;
    align-self: center !important;
  }

  .edx-explore .edx-filters,
  body.edx-explore-page .edx-explore .edx-filters,
  .edx-explore:not([data-view="map"]) .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    --edx-filter-sheet-drag: 0px;
    position: fixed !important;
    z-index: 99990 !important;
    inset: auto 0 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 102%, 0) !important;
    border: 1px solid rgba(120, 96, 160, 0.18) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    background: var(--edx-surface, #fff) !important;
    box-shadow: 0 -24px 70px rgba(20, 13, 37, 0.28) !important;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease !important;
    -webkit-overflow-scrolling: touch;
  }

  .edx-explore.is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore.is-filter-open .edx-filters,
  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, var(--edx-filter-sheet-drag), 0) !important;
  }

  .edx-explore .edx-filters.is-filter-sheet-dragging {
    transition: none !important;
    user-select: none;
  }

  .edx-explore .edx-filters::before {
    display: none !important;
  }

  .edx-explore .edx-filter-head,
  .edx-explore:not([data-view="map"]) .edx-filter-head {
    position: sticky !important;
    top: 0;
    z-index: 2;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-column: 1 !important;
    align-items: center;
    min-height: 70px;
    margin: 0 -18px 2px !important;
    padding: 8px 18px 10px !important;
    background: var(--edx-surface, #fff) !important;
    border-bottom: 1px solid rgba(120, 96, 160, 0.12);
  }

  .edx-explore .edx-filter-head strong {
    grid-column: 2;
    font-size: 1.08rem;
  }

  .edx-filter-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    display: block !important;
    width: 56px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: transparent;
    transform: translateX(-50%);
    cursor: grab;
    touch-action: none;
  }

  .edx-filter-sheet-handle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: rgba(92, 82, 111, 0.42);
    transform: translateX(-50%);
  }

  .edx-filter-sheet-handle:active {
    cursor: grabbing;
  }

  .edx-explore .edx-filters .edx-field,
  .edx-explore .edx-filters .edx-filter-actions {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .edx-explore.is-filter-open .edx-shell > :not(.edx-search-card),
  .edx-explore.is-filter-open .edx-search-card > :not(.edx-control-row) {
    filter: none !important;
    transform: none !important;
  }

  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  html.dark .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  html[data-ed-theme="dark"] .edx-explore .edx-filters,
  html.dark .edx-explore .edx-filters,
  html[data-ed-theme="dark"] .edx-explore .edx-filter-head,
  html.dark .edx-explore .edx-filter-head {
    background: #171720 !important;
  }
}

@media (max-width: 380px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    flex-basis: 82px !important;
    width: 82px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    flex-basis: 100px !important;
    width: 100px !important;
    min-width: 100px !important;
  }
}

@keyframes edx-filter-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
 
/* True EOF Explore responsive correction. Keep this last. */
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-panel,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-topbar,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-sheet-chrome {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-shell,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-wrap {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open::before {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-shell > :not(.edx-search-card),
body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > :not(.edx-control-row) {
  filter: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  grid-column: 1 / -1 !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  border-radius: 22px !important;
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 220ms ease,
    padding 220ms ease,
    opacity 180ms ease,
    transform 220ms ease !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
  max-height: min(660px, 76dvh) !important;
  margin-top: 12px !important;
  padding: 16px !important;
  overflow: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters::before,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-head button {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-head {
  grid-column: 1 / -1 !important;
  padding: 0 !important;
}

@media (min-width: 721px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) auto 60px auto !important;
    align-items: end !important;
    gap: 14px !important;
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: none !important;
    margin: -34px auto 20px !important;
    padding: 16px !important;
    overflow: visible !important;
    border-radius: 28px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search {
    grid-column: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding-right: 58px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    top: calc(50% + 10px) !important;
    right: 8px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 138px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select {
    grid-column: 3 !important;
    position: relative !important;
    display: inline-flex !important;
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-view-select__button {
    display: inline-flex !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    grid-column: 4 !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 128px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 18px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1181px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(230px, 1fr) 52px 52px 112px !important;
    align-items: center !important;
    width: min(960px, calc(100% - 32px)) !important;
    margin: -26px auto 16px !important;
    padding: 12px !important;
    border-radius: 24px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    min-height: 52px !important;
    border-radius: 999px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    top: 50% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    position: relative !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle > span:first-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle .edx-filter-count:not([hidden]) {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    font-size: 0.68rem !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    width: 112px !important;
    min-width: 112px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 12px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within),
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within) > :not(.edx-map-quick-search):not(.edx-mobile-view-options),
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active > :not(.edx-map-quick-search):not(.edx-mobile-view-options) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(12px) scale(0.96) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within) .edx-map-quick-search,
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-quick-search.is-mobile-search-open {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: 1fr !important;
    padding: 0 14px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(620px, calc(100dvh - 180px)) !important;
    margin-top: 10px !important;
    padding: 14px !important;
  }
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters,
html.dark body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
  background: rgba(20, 23, 36, 0.96) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32) !important;
}

/* Mobile explore controls and filter sheet. Kept last so the compact layout
   is not affected by the older responsive compatibility layers above. */
.edx-filter-sheet-handle {
  display: none;
}

@media (max-width: 720px) {
  body.edx-filter-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.edx-filter-sheet-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(15, 11, 28, 0.32);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: edx-filter-backdrop-in 180ms ease-out both;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box;
    min-height: 70px !important;
    padding: 8px !important;
    overflow: visible !important;
  }

  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    width: calc(100% - 120px) !important;
    border-radius: 22px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    position: relative !important;
    inset: auto !important;
    flex: 0 1 104px !important;
    grid-column: auto !important;
    box-sizing: border-box;
    width: 104px !important;
    min-width: 76px !important;
    max-width: 104px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(110, 85, 155, 0.18) !important;
    border-radius: 23px !important;
    background: rgba(255, 255, 255, 0.74) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(44, 30, 78, 0.08) !important;
    overflow: hidden !important;
    transition: flex-basis 280ms cubic-bezier(0.22, 1, 0.36, 1), width 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label > span {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search input {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 36px 0 13px !important;
    border: 0 !important;
    border-radius: inherit !important;
    outline: 0 !important;
    color: var(--edx-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search input::placeholder {
    color: var(--edx-muted) !important;
    opacity: 0.9;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: 50% !important;
    right: 5px !important;
    bottom: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > .edx-quick-search {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > [data-edx-view-control] {
    width: 0 !important;
    min-width: 0 !important;
    flex-basis: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    position: relative !important;
    inset: auto !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 46px !important;
    grid-column: auto !important;
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-self: center !important;
    transition: width 240ms ease, min-width 240ms ease, flex-basis 240ms ease, opacity 160ms ease !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle > span:first-child {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background: currentColor !important;
    clip-path: polygon(4% 8%, 96% 8%, 62% 47%, 62% 86%, 40% 96%, 40% 47%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    flex: 0 0 46px !important;
    grid-column: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    align-self: center !important;
    transition: width 240ms ease, min-width 240ms ease, flex-basis 240ms ease, opacity 160ms ease !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    flex: 0 0 112px !important;
    grid-column: auto !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 0 0 auto !important;
    align-self: center !important;
  }

  .edx-explore .edx-filters,
  body.edx-explore-page .edx-explore .edx-filters,
  .edx-explore:not([data-view="map"]) .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    --edx-filter-sheet-drag: 0px;
    position: fixed !important;
    z-index: 99990 !important;
    inset: auto 0 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 102%, 0) !important;
    border: 1px solid rgba(120, 96, 160, 0.18) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    background: var(--edx-surface, #fff) !important;
    box-shadow: 0 -24px 70px rgba(20, 13, 37, 0.28) !important;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease !important;
    -webkit-overflow-scrolling: touch;
  }

  .edx-explore.is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore.is-filter-open .edx-filters,
  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, var(--edx-filter-sheet-drag), 0) !important;
  }

  .edx-explore .edx-filters.is-filter-sheet-dragging {
    transition: none !important;
    user-select: none;
  }

  .edx-explore .edx-filters::before {
    display: none !important;
  }

  .edx-explore .edx-filter-head,
  .edx-explore:not([data-view="map"]) .edx-filter-head {
    position: sticky !important;
    top: 0;
    z-index: 2;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-column: 1 !important;
    align-items: center;
    min-height: 70px;
    margin: 0 -18px 2px !important;
    padding: 8px 18px 10px !important;
    background: var(--edx-surface, #fff) !important;
    border-bottom: 1px solid rgba(120, 96, 160, 0.12);
  }

  .edx-explore .edx-filter-head strong {
    grid-column: 2;
    font-size: 1.08rem;
  }

  .edx-filter-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    display: block !important;
    width: 56px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: transparent;
    transform: translateX(-50%);
    cursor: grab;
    touch-action: none;
  }

  .edx-filter-sheet-handle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: rgba(92, 82, 111, 0.42);
    transform: translateX(-50%);
  }

  .edx-filter-sheet-handle:active {
    cursor: grabbing;
  }

  .edx-explore .edx-filters .edx-field,
  .edx-explore .edx-filters .edx-filter-actions {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .edx-explore.is-filter-open .edx-shell > :not(.edx-search-card),
  .edx-explore.is-filter-open .edx-search-card > :not(.edx-control-row) {
    filter: none !important;
    transform: none !important;
  }

  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  html.dark .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  html[data-ed-theme="dark"] .edx-explore .edx-filters,
  html.dark .edx-explore .edx-filters,
  html[data-ed-theme="dark"] .edx-explore .edx-filter-head,
  html.dark .edx-explore .edx-filter-head {
    background: #171720 !important;
  }
}

@media (max-width: 380px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    flex-basis: 82px !important;
    width: 82px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    flex-basis: 100px !important;
    width: 100px !important;
    min-width: 100px !important;
  }
}

@keyframes edx-filter-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Explore responsive rails. This deliberately sits at EOF so the public Explore
   controls have one predictable desktop -> tablet -> mobile progression. */
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-panel,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-topbar,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-sheet-chrome {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-shell,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-wrap {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open::before {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-shell > :not(.edx-search-card),
body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > :not(.edx-control-row) {
  filter: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filters {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
  grid-column: 1 / -1 !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 48px rgba(42, 30, 78, 0.12) !important;
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 220ms ease,
    padding 220ms ease,
    opacity 180ms ease,
    transform 220ms ease !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters,
body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-control-row > .edx-filters {
  max-height: min(660px, 76dvh) !important;
  margin-top: 12px !important;
  padding: 16px !important;
  overflow: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters::before {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-head {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 721px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) auto 60px auto !important;
    align-items: end !important;
    gap: 14px !important;
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: none !important;
    margin: -34px auto 20px !important;
    padding: 16px !important;
    overflow: visible !important;
    border-radius: 28px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search {
    grid-column: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 0 58px 0 18px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    top: calc(50% + 10px) !important;
    right: 8px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 138px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select {
    grid-column: 3 !important;
    position: relative !important;
    display: inline-flex !important;
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-view-select__button {
    display: inline-flex !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    grid-column: 4 !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 128px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 18px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1181px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(230px, 1fr) 52px 52px 112px !important;
    align-items: center !important;
    width: min(960px, calc(100% - 32px)) !important;
    margin: -26px auto 16px !important;
    padding: 12px !important;
    border-radius: 24px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    min-height: 52px !important;
    border-radius: 999px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    top: 50% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    position: relative !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle > span:first-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle .edx-filter-count:not([hidden]) {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    font-size: 0.68rem !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    width: 112px !important;
    min-width: 112px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 12px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within),
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within) > :not(.edx-map-quick-search):not(.edx-mobile-view-options),
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active > :not(.edx-map-quick-search):not(.edx-mobile-view-options) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(12px) scale(0.96) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within) .edx-map-quick-search,
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-quick-search.is-mobile-search-open {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: 1fr !important;
    padding: 0 14px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(620px, calc(100dvh - 180px)) !important;
    margin-top: 10px !important;
    padding: 14px !important;
  }
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters,
html.dark body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
  background: rgba(20, 23, 36, 0.96) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32) !important;
}

/* Explore breakpoint stabiliser. Keep this last so the public Explore toolbar
   has one predictable progression across desktop, tablet, and phone widths. */
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-panel,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-topbar,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-sheet-chrome {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-shell,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-wrap {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
  position: relative !important;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto 60px auto !important;
  align-items: end !important;
  gap: 12px !important;
  box-sizing: border-box;
  width: min(1060px, calc(100% - 48px)) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: -28px auto 18px !important;
  padding: 22px !important;
  overflow: visible !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
  grid-column: 1 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 0 58px 0 18px !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit],
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
  top: calc(50% + 10px) !important;
  right: 8px !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
  grid-column: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  width: auto !important;
  min-width: 138px !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  white-space: nowrap;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select__button {
  grid-column: 3 !important;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  align-self: end !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
  grid-column: 4 !important;
  box-sizing: border-box;
  width: auto !important;
  min-width: 128px !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  align-self: end !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 220ms ease,
    padding 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
  max-height: min(640px, 74dvh) !important;
  margin-top: 12px !important;
  padding: 16px !important;
  overflow: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-head {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open::before,
body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-shell > :not(.edx-search-card),
body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > :not(.edx-control-row) {
  filter: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (min-width: 1181px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(230px, 1fr) 52px 52px 112px !important;
    align-items: center !important;
    width: min(960px, calc(100% - 32px)) !important;
    margin: -26px auto 16px !important;
    padding: 12px !important;
    border-radius: 24px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    min-height: 52px !important;
    border-radius: 999px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    top: 50% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    position: relative;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle > span:first-child {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle .edx-filter-count:not([hidden]) {
    position: absolute;
    top: -3px;
    right: -3px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.68rem !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select__button {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    width: 112px !important;
    min-width: 112px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 12px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(620px, calc(100dvh - 180px)) !important;
    margin-top: 10px !important;
    padding: 14px !important;
    overflow: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within),
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within) > :not(.edx-map-quick-search):not(.edx-mobile-view-options),
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active > :not(.edx-map-quick-search):not(.edx-mobile-view-options) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(12px) scale(0.96) !important;
  }

  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-topbar__controls:has(.edx-map-quick-search:focus-within) .edx-map-quick-search,
  body.edx-explore-page .edx-explore[data-view="map"] .edx-map-quick-search.is-mobile-search-open {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Share the compact mobile search, filter and results-view controller between
   the feed and map surfaces. The Map switch remains a fixed sibling so the
   expanding controls never displace it. */
@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    position: relative;
    isolation: isolate;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    gap: 8px;
    min-height: 74px;
    padding: 7px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select {
    grid-column: auto !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    position: relative;
    z-index: 24;
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    min-height: 60px;
    margin-left: auto;
    padding-inline: 12px;
    border-radius: 20px;
    transform: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    position: relative;
    display: flex !important;
    flex: 0 0 46px;
    grid-column: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px;
    align-self: center;
    overflow: hidden;
    padding: 5px !important;
    border: 1px solid color-mix(in srgb, var(--edx-muted) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--edx-panel) 88%, transparent);
    transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1), max-width 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search label {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search label > span {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row .edx-quick-search button[data-edx-quick-search-submit],
  .edx-explore:not([data-view="map"]) .edx-control-row .edx-quick-search button[data-edx-quick-search-submit]:hover,
  .edx-explore:not([data-view="map"]) .edx-control-row .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  .edx-explore:not([data-view="map"]) .edx-control-row .edx-quick-search button[data-edx-quick-search-submit]:active {
    top: 50% !important;
    right: 5px !important;
    bottom: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > :not(.edx-quick-search):not(.edx-map-toggle) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(12px) scale(0.96);
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search.is-mobile-search-open {
    position: absolute;
    inset: 7px 127px 7px 7px;
    z-index: 20;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    align-self: stretch;
    overflow: hidden !important;
    padding: 7px !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search.is-mobile-search-open label {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search.is-mobile-search-open input {
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    appearance: none;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    position: relative;
    display: inline-flex !important;
    flex: 0 0 46px;
    width: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    align-self: center;
    padding: 0 !important;
    font-size: 0 !important;
    border-radius: 50%;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle > span:first-child {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle .edx-filter-count:not([hidden]) {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.68rem !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select.has-custom-menu > .edx-view-select__button,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select.has-custom-menu > select {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    align-self: center;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row .edx-mobile-view-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--edx-muted) 22%, transparent);
    border-radius: 50%;
    color: var(--edx-ink);
    background: color-mix(in srgb, var(--edx-panel) 88%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 22px rgba(31, 18, 53, 0.08);
    cursor: pointer;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-view-active > :not(.edx-mobile-view-options):not(.edx-map-toggle) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.96);
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-mobile-view-options:not([hidden]) {
    position: absolute;
    inset: 7px 127px 7px 7px;
    z-index: 30;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-mobile-view-options button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
    border: 0;
    border-radius: 999px;
    color: var(--edx-muted);
    background: transparent;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 850;
    cursor: pointer;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-mobile-view-options button:hover,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-mobile-view-options button:focus-visible {
    color: var(--edx-accent-strong);
    background: var(--edx-accent-soft);
    outline: none;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-mobile-view-options button[aria-pressed="true"] {
    color: #ffffff;
    background: #6d28d9;
    box-shadow: 0 7px 18px rgba(91, 33, 182, 0.26);
  }
}

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

.edx-shell {
	width: min(1440px, 100%);
	margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 247, 255, 0.72)),
    var(--edx-bg);
	box-shadow: 0 24px 80px rgba(42, 30, 78, 0.14);
}

.edx-search-card {
  display: block;
}

.edx-hero {
	display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: -8px -8px 18px;
  padding: 26px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(251, 113, 133, 0.06)),
    rgba(255, 255, 255, 0.72);
}

.edx-hero__copy {
  max-width: 760px;
}

.edx-eyebrow {
  margin: 0 0 6px;
  color: var(--edx-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edx-hero h2 {
  margin: 0;
  font-size: 3.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.edx-hero h1 {
  margin: 0;
  font-size: 3.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.edx-hero__copy > p:not(.edx-eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--edx-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.edx-view-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--edx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--edx-shadow-soft);
}

.edx-view-switcher button,
.edx-filter-toggle,
.edx-primary,
.edx-secondary,
.edx-filter-chip,
.edx-quick-chips button,
.edx-mobile-tabs button,
.edx-event__cta,
.edx-event__save,
.edx-filter-head button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.edx-view-switcher button {
  min-width: 96px;
  padding: 0 16px;
  color: var(--edx-muted);
  background: transparent;
}

.edx-view-switcher button:hover,
.edx-view-switcher button:focus-visible,
.edx-mobile-tabs button:hover,
.edx-mobile-tabs button:focus-visible {
  color: var(--edx-accent-strong);
  background: var(--edx-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.edx-view-switcher button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
}

.edx-view-switcher button[aria-pressed="true"]:hover,
.edx-view-switcher button[aria-pressed="true"]:focus-visible,
.edx-mobile-tabs button[aria-pressed="true"]:hover,
.edx-mobile-tabs button[aria-pressed="true"]:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  box-shadow:
    0 12px 24px rgba(124, 58, 237, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.edx-control-row {
  position: relative;
  margin-bottom: 12px;
}

.edx-filter-toggle {
  display: none;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--edx-accent-strong);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(42, 30, 78, 0.09);
}

.edx-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(160px, 1fr) repeat(5, minmax(118px, 0.82fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--edx-line);
  border-radius: 24px;
  background: var(--edx-panel);
  box-shadow: var(--edx-shadow);
  backdrop-filter: blur(18px);
}

.edx-filter-head {
  display: none;
}

.edx-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.edx-field span {
  color: var(--edx-muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.edx-field input,
.edx-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(24, 24, 27, 0.11);
  border-radius: 15px;
  color: var(--edx-ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.edx-field input:focus,
.edx-field select:focus,
.edx-view-switcher button:focus-visible,
.edx-filter-toggle:focus-visible,
.edx-primary:focus-visible,
.edx-secondary:focus-visible,
.edx-filter-chip:focus-visible,
.edx-event a:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 2px;
}

.edx-filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.edx-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 46px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
}

.edx-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 46px;
  padding: 0 22px;
  color: var(--edx-ink);
  background: #f4f4f5;
}

.edx-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.edx-quick-chips::-webkit-scrollbar {
  display: none;
}

.edx-quick-chips button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  color: var(--edx-muted);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(42, 30, 78, 0.07);
}

.edx-filter-toggle:hover,
.edx-filter-toggle:focus-visible,
.edx-quick-chips button:hover,
.edx-quick-chips button:focus-visible,
.edx-filter-chip:hover,
.edx-filter-chip:focus-visible,
.edx-filter-head button:hover,
.edx-filter-head button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.28);
  color: var(--edx-accent-strong);
  background: var(--edx-accent-soft);
  box-shadow: 0 12px 26px rgba(42, 30, 78, 0.12);
}

.edx-quick-chips button[aria-pressed="true"] {
  color: var(--edx-accent-strong);
  border-color: rgba(124, 58, 237, 0.28);
  background: var(--edx-accent-soft);
  box-shadow:
    0 10px 24px rgba(124, 58, 237, 0.12),
    inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.edx-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  margin: 12px 0;
}

.edx-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  color: var(--edx-accent-strong);
  background: rgba(241, 234, 255, 0.92);
  box-shadow: 0 8px 20px rgba(42, 30, 78, 0.07);
}

.edx-filter-chip strong {
  font-size: 1rem;
  line-height: 1;
}

.edx-filter-chip--clear {
  color: var(--edx-accent-strong);
  background: rgba(255, 255, 255, 0.92);
}

.edx-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  color: var(--edx-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.edx-results-meta strong {
  display: block;
  color: var(--edx-ink);
  font-size: 1.05rem;
}

.edx-results-meta span {
  display: block;
  margin-top: 3px;
}

.edx-results-shell {
  display: grid;
  gap: 18px;
}

.edx-results {
  display: grid;
  gap: 14px;
}

.edx-explore[data-view="cards"] .edx-results {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.edx-explore[data-view="map"] .edx-results-shell {
  grid-template-columns: minmax(330px, 0.85fr) minmax(420px, 1.15fr);
  align-items: start;
}

.edx-explore[data-view="map"] .edx-results {
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.edx-event {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edx-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--edx-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.edx-event:hover,
.edx-event.is-highlighted {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.13);
}

.edx-event--list {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.edx-event--card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.edx-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(59, 130, 246, 0.12)),
    #f4f4f5;
}

.edx-event__image {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.edx-event__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edx-event__image--thumb {
  overflow: hidden;
  height: 104px;
  border-radius: 16px;
  background: #f4f4f5;
}

.edx-event__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 104px;
  border-radius: 16px;
  color: var(--edx-accent);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(251, 113, 133, 0.14)),
    #fafafa;
  font-size: 2rem;
  font-weight: 850;
}

.edx-card-media .edx-event__placeholder {
  border-radius: 0;
}

.edx-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 68px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edx-badge,
.edx-price {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--edx-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.09);
  font-size: 0.78rem;
  font-weight: 850;
}

.edx-price {
  color: var(--edx-accent-strong);
  background: #fff;
}

.edx-event__body {
  min-width: 0;
  padding: 16px;
}

.edx-event--list .edx-event__body {
  padding: 0;
}

.edx-event__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.edx-event__kicker {
  color: var(--edx-accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.edx-event h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.edx-event h3 a {
  color: inherit;
  text-decoration: none;
}

.edx-event h3 a:hover {
  color: var(--edx-accent-strong);
}

.edx-event p {
  margin: 7px 0 0;
  color: var(--edx-muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.edx-event__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.edx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #3f3f46;
  background: #f4f4f5;
  font-size: 0.76rem;
  font-weight: 750;
}

.edx-chip--type {
  color: #9f1239;
  background: #fff1f2;
}

.edx-shared-event-card .edx-chip--more {
  color: var(--ed-event-card-muted);
  background: color-mix(in srgb, var(--ed-event-card-text) 8%, transparent);
}

.edx-chip--level {
  color: #0f766e;
  background: #ccfbf1;
}

.edx-chip--provider {
  color: #4338ca;
  background: #eef2ff;
}

.edx-recurrence {
  margin-top: 10px;
  color: var(--edx-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.edx-event__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--edx-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.edx-provider {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.edx-shared-event-card .edx-provider {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.edx-provider__avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-blue));
  font-size: 0.72rem;
  font-weight: 850;
  overflow: hidden;
}

.edx-provider__initials {
  position: relative;
  z-index: 0;
}

.edx-provider__avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.edx-provider:hover .edx-provider__copy strong {
  color: var(--ed-event-card-primary-strong, var(--edx-accent-strong));
}

a.edx-provider:focus-visible {
  border-radius: 9px;
  outline: 3px solid color-mix(in srgb, var(--ed-event-card-primary, var(--edx-accent)) 34%, transparent);
  outline-offset: 3px;
}

.edx-provider__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.edx-provider__copy strong,
.edx-provider__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edx-provider__copy strong {
  color: var(--edx-ink);
  font-size: 0.82rem;
}

.edx-provider__copy span {
  color: var(--edx-muted);
  font-size: 0.74rem;
}

.edx-next-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.edx-next-dates span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--edx-muted);
  background: rgba(124, 58, 237, 0.07);
  font-size: 0.74rem;
  font-weight: 700;
}

.edx-event__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 72px;
  color: #fff;
  background: var(--edx-ink);
  text-decoration: none;
}

.edx-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.edx-event__quick-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 44px;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.edx-event__quick-actions .edx-event__going {
  width: 100%;
  min-width: 0;
}

.edx-event__quick-actions .edx-event__share-trigger {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edx-line);
  border-radius: 999px;
  color: var(--edx-accent-strong);
  background: var(--edx-accent-soft);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.edx-event__quick-actions .edx-event__share-trigger:hover {
  border-color: var(--edx-accent);
  background: var(--edx-panel);
  transform: translateY(-1px);
}

.edx-event__quick-actions .edx-event__share-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edx-event__quick-actions .edx-event__options-trigger {
  width: 44px;
  min-width: 44px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edx-line);
  border-radius: 999px;
  color: var(--edx-accent-strong);
  background: var(--edx-panel);
  box-shadow: var(--edx-shadow-soft);
  cursor: pointer;
}

.edx-event__quick-actions .edx-event__options-trigger:hover {
  border-color: var(--edx-accent);
  transform: translateY(-1px);
}

.edx-event__quick-actions .edx-event__options-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edx-event__actions--map {
  display: grid;
  grid-template-columns: minmax(108px, 1fr) 38px 38px;
  justify-content: stretch;
  width: min(100%, 236px);
  gap: 7px;
  margin-top: 12px;
}

.edx-event__actions--map .edx-event__going {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding-inline: 10px;
  white-space: nowrap;
  font-size: 0.78rem;
}

.edx-event__actions--map .edx-event__share-trigger,
.edx-event__actions--map .edx-event__options-trigger {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edx-line);
  border-radius: 999px;
  color: var(--edx-accent-strong);
  background: var(--edx-panel);
  box-shadow: none;
  cursor: pointer;
}

.edx-event__actions--map .edx-event__share-trigger {
  background: var(--edx-accent-soft);
}

.edx-event__actions--map :is(.edx-event__share-trigger, .edx-event__options-trigger):hover {
  border-color: var(--edx-accent);
  transform: translateY(-1px);
}

.edx-event__actions--map :is(.edx-event__share-trigger, .edx-event__options-trigger) svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edx-event__going {
  min-height: 40px;
  flex: 1 1 128px;
}

.edx-event__going--compact {
  flex: 0 1 118px;
}

.edx-event__quick-actions .edx-event__cta {
  flex: 1 1 96px;
}

.edx-event__save {
  --edm-save-size: 44px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.13);
}

.edx-event__save--compact {
  position: static;
  flex: 0 0 auto;
  background: var(--edm-save-bg);
  box-shadow: none;
}

.edx-agenda-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.edx-agenda-date {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--edx-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--edx-shadow-soft);
}

.edx-agenda-date span {
  font-weight: 850;
}

.edx-agenda-date small {
  color: var(--edx-muted);
  font-weight: 700;
}

.edx-agenda-items {
  display: grid;
  gap: 12px;
}

.edx-map-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
  min-height: 720px;
  border: 1px solid var(--edx-line);
  border-radius: 30px;
  background: #f4f4f5;
  box-shadow: var(--edx-shadow);
}

.edx-map-panel[hidden] {
  display: none;
}

.edx-map-canvas {
  width: 100%;
  min-height: 720px;
}

.edx-map-status {
  position: absolute;
  inset: auto 18px 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--edx-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(24, 24, 27, 0.12);
  font-weight: 750;
}

.edx-map-status:empty {
  display: none;
}

.edx-map-info {
  display: grid;
  gap: 6px;
  max-width: 220px;
  color: var(--edx-ink);
}

.edx-map-info strong {
  font-size: 0.98rem;
}

.edx-map-info span {
  color: var(--edx-muted);
  font-size: 0.82rem;
}

.edx-map-info a {
  color: var(--edx-accent);
  font-weight: 800;
}

.edx-empty {
  padding: 44px 22px;
  border: 1px dashed rgba(124, 58, 237, 0.35);
  border-radius: 24px;
  color: var(--edx-muted);
  background: rgba(124, 58, 237, 0.05);
  text-align: center;
  font-weight: 750;
}

.edx-explore.is-loading .edx-results {
  opacity: 0.55;
  pointer-events: none;
}

.edx-explore--notice {
  padding: 24px;
  border: 1px solid var(--edx-line);
  border-radius: 18px;
  background: #fff;
}

.edx-mobile-tabs {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .edx-explore {
    --edx-bg: #161421;
    --edx-ink: #faf7ff;
    --edx-muted: rgba(250, 247, 255, 0.68);
    --edx-line: rgba(255, 255, 255, 0.12);
    --edx-panel: rgba(31, 27, 45, 0.86);
    --edx-surface: #211d31;
    --edx-soft: #1a1726;
    --edx-accent: #a78bfa;
    --edx-accent-strong: #ddd6fe;
    --edx-accent-soft: rgba(167, 139, 250, 0.16);
    --edx-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    --edx-shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.28);
  }

  .edx-shell,
  .edx-hero {
    background:
      linear-gradient(180deg, rgba(31, 27, 45, 0.92), rgba(22, 20, 33, 0.78)),
      var(--edx-bg);
  }

  .edx-view-switcher,
  .edx-field input,
  .edx-field select,
  .edx-event,
  .edx-agenda-date,
  .edx-map-status,
  .edx-quick-chips button {
    color: var(--edx-ink);
    background-color: var(--edx-surface);
  }

  .edx-chip,
  .edx-secondary,
  .edx-filter-head button {
    color: var(--edx-ink);
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 1040px) {
  .edx-shell {
    padding: 18px;
  }

  .edx-view-switcher {
    display: none;
  }

  .edx-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edx-filter-actions {
    grid-column: 1 / -1;
  }

  .edx-explore[data-view="cards"] .edx-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edx-explore[data-view="map"] .edx-results-shell {
    grid-template-columns: 1fr;
  }

  .edx-map-panel {
    position: relative;
    top: auto;
    min-height: 520px;
    order: -1;
  }

  .edx-map-canvas {
    min-height: 520px;
  }

  .edx-mobile-tabs {
    position: sticky;
    z-index: 20;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 18px;
    padding: 5px;
    border: 1px solid var(--edx-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--edx-shadow);
    backdrop-filter: blur(16px);
  }

  .edx-mobile-tabs button {
    min-width: 0;
    color: var(--edx-muted);
    background: transparent;
  }

  .edx-mobile-tabs button[aria-pressed="true"] {
    color: var(--edx-accent-strong);
    background: var(--edx-accent-soft);
    box-shadow:
      0 10px 24px rgba(124, 58, 237, 0.12),
      inset 0 0 0 1px rgba(124, 58, 237, 0.08);
  }
}

@media (max-width: 720px) {
  .edx-shell {
    padding: 14px;
  }

  .edx-hero {
    display: grid;
    gap: 16px;
  }

  .edx-hero h2 {
    font-size: 2.1rem;
  }

  .edx-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .edx-filters {
    position: fixed;
    z-index: 9999;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: none;
    max-height: calc(100vh - 32px);
    overflow: auto;
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 26px;
  }

  .edx-explore.is-filter-open .edx-filters {
    display: grid;
  }

  .edx-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }

  .edx-filter-head strong {
    font-size: 1.1rem;
  }

  .edx-filter-head button {
    width: 40px;
    padding: 0;
    color: var(--edx-ink);
    background: #f4f4f5;
    font-size: 1.35rem;
  }

  .edx-active-filters {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .edx-filter-chip {
    flex: 0 0 auto;
  }

  .edx-results-meta {
    margin: 14px 0;
  }

  .edx-explore[data-view="cards"] .edx-results,
  .edx-results {
    grid-template-columns: 1fr;
  }

  .edx-event--list {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .edx-event--list .edx-event__actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
  }

  .edx-event--list .edx-event__cta {
    flex: 1 1 120px;
  }

  .edx-event--list .edx-event__going {
    flex: 1 1 120px;
  }

  .edx-event--list .edx-event__save--compact {
    flex: 0 0 auto;
  }

  .edx-event__image--thumb,
  .edx-event__placeholder {
    height: 92px;
    min-height: 92px;
  }

  .edx-event__topline {
    display: grid;
    justify-content: start;
  }

  .edx-agenda-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .edx-agenda-date {
    position: relative;
    top: auto;
  }

  .edx-explore[data-view="map"] .edx-results-shell {
    display: flex;
    flex-direction: column;
  }

  .edx-explore[data-view="map"] .edx-results {
    max-height: 42vh;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--edx-line);
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--edx-shadow);
  }

  .edx-map-panel,
  .edx-map-canvas {
    min-height: 58vh;
    border-radius: 24px;
  }

  .edx-mobile-tabs {
    position: sticky;
    z-index: 20;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 18px;
    padding: 5px;
    border: 1px solid var(--edx-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--edx-shadow);
    backdrop-filter: blur(16px);
  }

  .edx-mobile-tabs button {
    min-width: 0;
    color: var(--edx-muted);
    background: transparent;
  }

  .edx-mobile-tabs button[aria-pressed="true"] {
    color: var(--edx-accent-strong);
    background: var(--edx-accent-soft);
    box-shadow:
      0 10px 24px rgba(124, 58, 237, 0.12),
      inset 0 0 0 1px rgba(124, 58, 237, 0.08);
  }

  .edx-explore[data-view="map"] .edx-results {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    padding-top: 24px;
  }

  .edx-explore[data-view="map"] .edx-results::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    width: 42px;
    height: 5px;
    margin: -8px auto 12px;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.24);
  }
}

@media (prefers-color-scheme: dark) and (max-width: 720px) {
  .edx-mobile-tabs,
  .edx-explore[data-view="map"] .edx-results {
    background: rgba(31, 27, 45, 0.94);
  }

  .edx-explore[data-view="map"] .edx-results::before {
    background: rgba(250, 247, 255, 0.28);
  }
}

html.edx-map-lock,
body.edx-map-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.edx-map-sheet-chrome,
.edx-map-topbar {
  display: none;
}

.edx-map-sheet-back[hidden] {
  display: none !important;
}

.edx-map-sheet-chrome[hidden],
.edx-map-topbar[hidden] {
  display: none !important;
}

.edx-explore:not([data-view="map"]) .edx-map-sheet-chrome,
.edx-explore:not([data-view="map"]) .edx-map-topbar {
  display: none !important;
}

.edx-explore:not([data-view="map"]) .edx-results-wrap {
  height: auto !important;
  max-height: none !important;
  transform: none !important;
}

.edx-explore:not([data-view="map"]) .edx-results::before {
  content: none !important;
  display: none !important;
}

.edx-explore[data-view="map"] {
  position: fixed;
  inset: 0;
  z-index: 99990;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #0b0b12;
}

.edx-explore[data-view="map"] .edx-shell {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0b0b12;
  box-shadow: none;
  overflow: hidden;
}

.edx-explore[data-view="map"] .edx-hero,
.edx-explore[data-view="map"] .edx-quick-chips,
.edx-explore[data-view="map"] .edx-active-filters,
.edx-explore[data-view="map"] .edx-results-meta {
  display: none;
}

.edx-explore[data-view="map"] .edx-control-row {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: rgba(11, 11, 18, 0.26);
  backdrop-filter: blur(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, backdrop-filter 0.2s ease;
}

.edx-explore[data-view="map"].is-filter-open .edx-control-row {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(10px);
}

.edx-explore[data-view="map"] .edx-filter-toggle {
  display: none;
}

.edx-explore[data-view="map"] .edx-filters {
  width: min(980px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(720px, calc(100dvh - 48px));
  overflow: auto;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.edx-explore[data-view="map"].is-filter-open .edx-filters {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.edx-explore[data-view="map"] .edx-results-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.edx-explore[data-view="map"] .edx-results-wrap {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  border-right: 1px solid var(--edx-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 16px 0 40px rgba(24, 24, 27, 0.14);
  transition: filter 0.22s ease, transform 0.22s ease, height 0.24s ease;
}

.edx-explore[data-view="map"] .edx-results {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  overscroll-behavior: contain;
}

.edx-explore[data-view="map"] .edx-map-panel {
  position: relative;
  inset: auto;
  top: auto;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #dbe4ef;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.edx-explore[data-view="map"] .edx-map-panel[hidden] {
  display: block;
}

.edx-explore[data-view="map"] .edx-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.edx-explore[data-view="map"] .edx-map-topbar {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.edx-map-topbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(740px, calc(100% - 132px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 20px 54px rgba(31, 18, 53, 0.18);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  pointer-events: auto;
}

.edx-map-quick-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 300px;
  max-width: min(430px, 42vw);
  min-height: 46px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 22px rgba(31, 18, 53, 0.08);
  backdrop-filter: none;
}

.edx-map-quick-search {
  position: relative;
}

.edx-map-quick-search label {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.edx-map-quick-search__icon {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(113, 113, 122, 0.78);
  border-radius: 999px;
  pointer-events: none;
}

.edx-map-quick-search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(113, 113, 122, 0.78);
  transform: rotate(45deg);
  transform-origin: center;
}

.edx-map-quick-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px 0 38px;
  border: 0;
  border-radius: 999px;
  color: var(--edx-ink);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 760;
  outline: none;
}

.edx-map-quick-search input::placeholder {
  color: rgba(113, 113, 122, 0.88);
}

.edx-map-quick-search:focus-within {
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow:
    0 16px 38px rgba(88, 28, 135, 0.18),
    0 0 0 4px rgba(167, 139, 250, 0.2);
}

.edx-map-quick-search button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.edx-map-quick-search button:hover,
.edx-map-quick-search button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.3);
}

.edx-map-filter-button,
.edx-map-topbar > span {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: var(--edx-ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 22px rgba(31, 18, 53, 0.08);
  backdrop-filter: none;
  font: inherit;
  font-weight: 850;
}

.edx-map-filter-button {
  padding: 0 16px;
  cursor: pointer;
  pointer-events: auto;
}

.edx-map-topbar > span {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--edx-muted);
}

.edx-explore[data-view="map"].is-filter-open .edx-map-panel,
.edx-explore[data-view="map"].is-filter-open .edx-results-wrap {
  filter: blur(5px) saturate(0.88) brightness(0.84);
  transform: scale(1.01);
  pointer-events: none;
}

.edx-explore[data-view="map"] .edx-mobile-tabs {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .edx-explore[data-view="map"] .edx-results-wrap {
    background: rgba(31, 27, 45, 0.96);
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }

  .edx-map-filter-button,
  .edx-map-topbar > span {
    color: var(--edx-ink);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }

  .edx-map-quick-search {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }

  .edx-map-quick-search input {
    color: var(--edx-ink);
  }
}

@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-results-shell {
    display: block;
  }

  .edx-explore[data-view="map"] .edx-map-panel {
    position: absolute;
    inset: 0;
  }

  .edx-explore[data-view="map"] .edx-map-topbar {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
  }

  .edx-map-topbar__controls {
    max-width: none;
  }

  .edx-map-quick-search {
    display: none;
  }

  .edx-map-topbar > span {
    display: none;
  }

  .edx-explore[data-view="map"] .edx-control-row {
    padding: 14px;
  }

  .edx-explore[data-view="map"] .edx-filters {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .edx-explore[data-view="map"] .edx-results-wrap {
    position: absolute;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    z-index: 32;
    height: 160px;
    min-height: 132px;
    max-height: calc(100dvh - 92px);
    border: 1px solid var(--edx-line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(24, 24, 27, 0.22);
    backdrop-filter: blur(22px);
    transition: filter 0.22s ease, transform 0.22s ease;
    will-change: height;
  }

  .edx-explore[data-view="map"] .edx-results-wrap.is-animating {
    transition: height 0.24s ease, filter 0.22s ease, transform 0.22s ease;
  }

  .edx-explore[data-view="map"] .edx-results-wrap[data-edx-sheet-state="half"] {
    border-radius: 30px 30px 24px 24px;
  }

  .edx-explore[data-view="map"] .edx-results-wrap[data-edx-sheet-state="full"] {
    top: auto;
    max-height: none;
    border-radius: 30px;
  }

  .edx-map-sheet-chrome {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    gap: 6px;
    justify-items: center;
    padding: 10px 16px 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }

  .edx-map-sheet-back {
    position: absolute;
    top: 11px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 999px;
    color: #5b21b6;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 255, 0.94));
    box-shadow:
      0 10px 24px rgba(88, 28, 135, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
    appearance: none;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition:
      transform 0.18s ease,
      color 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  .edx-map-sheet-back strong {
    line-height: 1;
  }

  .edx-map-sheet-back:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(124, 58, 237, 0.58);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow:
      0 16px 34px rgba(88, 28, 135, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .edx-map-sheet-back:focus-visible {
    outline: 3px solid rgba(167, 139, 250, 0.42);
    outline-offset: 3px;
    color: #4c1d95;
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.42);
    box-shadow: 0 16px 34px rgba(88, 28, 135, 0.2);
  }

  .edx-map-sheet-back:active {
    transform: translateY(0);
    color: #ffffff;
    border-color: rgba(109, 40, 217, 0.7);
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow:
      0 8px 18px rgba(88, 28, 135, 0.2),
      inset 0 2px 6px rgba(24, 24, 27, 0.16);
  }

  .edx-explore.is-sheet-dragging .edx-map-sheet-chrome {
    cursor: grabbing;
  }

  .edx-map-sheet-handle {
    width: 68px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: grab;
  }

  .edx-map-sheet-handle::before {
    content: "";
    display: block;
    width: 58px;
    height: 6px;
    margin: 7px auto;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.2);
  }

  .edx-map-sheet-title {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 34px;
    padding-inline: 82px;
    text-align: center;
  }

  .edx-map-sheet-title strong {
    font-size: 0.96rem;
  }

  .edx-map-sheet-title span {
    color: var(--edx-muted);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .edx-explore[data-view="map"] .edx-results {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .edx-explore[data-view="map"] .edx-results {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.34) transparent;
  }

  .edx-explore[data-view="map"] .edx-results::-webkit-scrollbar {
    width: 6px;
  }

  .edx-explore[data-view="map"] .edx-results::-webkit-scrollbar-track {
    background: transparent;
  }

  .edx-explore[data-view="map"] .edx-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.28);
  }

  .edx-explore[data-view="map"] .edx-results::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.42);
  }

  .edx-explore[data-view="map"] .edx-results::before {
    content: none;
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 34;
    display: grid;
    margin: 0;
  }

  .edx-explore[data-view="map"] .edx-event--list {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
  }

  .edx-explore[data-view="map"] .edx-event__image--thumb,
  .edx-explore[data-view="map"] .edx-event__placeholder {
    height: 78px;
    min-height: 78px;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-results-wrap {
    background: rgba(31, 27, 45, 0.94);
  }

  .edx-map-sheet-handle::before {
    background: rgba(250, 247, 255, 0.28);
  }
}

.edx-event--map {
  display: grid;
  align-self: start;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 106px;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(24, 24, 27, 0.09);
  cursor: pointer;
}

.edx-explore[data-view="map"] .edx-results {
  align-content: start;
}

.edx-event--map .edx-event__image--map,
.edx-event--map .edx-event__placeholder {
  width: 86px;
  height: 86px;
  min-height: 86px;
  overflow: hidden;
  border-radius: 16px;
}

.edx-event--map .edx-event__body {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0;
}

.edx-event--map .edx-event__kicker,
.edx-event--map p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edx-event--map .edx-event__kicker {
  display: block;
  font-size: 0.78rem;
}

.edx-event--map h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.edx-event--map p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-results {
    gap: 10px;
  }

  .edx-explore[data-view="map"] .edx-event--map {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 94px;
    padding: 10px;
    border-radius: 20px;
  }

  .edx-explore[data-view="map"] .edx-event--map .edx-event__image--map,
  .edx-explore[data-view="map"] .edx-event--map .edx-event__placeholder {
    width: 74px;
    height: 74px;
    min-height: 74px;
    border-radius: 15px;
  }

  .edx-explore[data-view="map"] .edx-event--map .edx-event__kicker {
    font-size: 0.76rem;
  }

  .edx-explore[data-view="map"] .edx-event--map h3 {
    font-size: 1rem;
  }

  .edx-explore[data-view="map"] .edx-event--map p {
    font-size: 0.84rem;
  }
}

@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-results-wrap[data-edx-sheet-state="full"] {
    top: auto !important;
    max-height: calc(100dvh - 156px);
  }

  .edx-explore[data-view="map"] .edx-filters {
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 255, 0.88)),
      var(--edx-panel);
    box-shadow: 0 28px 80px rgba(24, 24, 27, 0.3);
  }

  .edx-explore[data-view="map"] .edx-filter-head {
    margin: 0 0 2px;
  }

  .edx-explore[data-view="map"] .edx-filter-head button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 50%;
    color: var(--edx-ink);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(24, 24, 27, 0.09);
    font-size: 1.2rem;
    line-height: 1;
  }

  .edx-explore[data-view="map"] .edx-field {
    gap: 7px;
  }

  .edx-explore[data-view="map"] .edx-field input,
  .edx-explore[data-view="map"] .edx-field select {
    min-height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
  }

  .edx-explore[data-view="map"] .edx-filter-actions {
    gap: 8px;
    padding-top: 2px;
    min-width: 0;
  }

  .edx-map-filter-button {
    min-height: 44px;
    padding: 0 15px;
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--edx-accent-strong);
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-filter-actions {
    width: 100%;
    min-width: 0;
  }

  .edx-explore[data-view="map"] .edx-filter-actions .edx-primary,
  .edx-explore[data-view="map"] .edx-filter-actions .edx-secondary {
    flex: 1 1 0;
    min-width: 0 !important;
  }
}

@media (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-results-shell {
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
    height: 100dvh;
    min-height: 100dvh;
  }

  .edx-explore[data-view="map"] .edx-results-wrap {
    height: 100dvh;
    border-radius: 0;
  }

  .edx-explore[data-view="map"] .edx-results {
    gap: 10px;
    padding: 12px;
    padding-bottom: 96px;
  }

  .edx-explore[data-view="map"] .edx-map-panel {
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .edx-explore[data-view="map"] .edx-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .edx-explore[data-view="map"] .edx-map-topbar {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 42;
    display: grid;
    width: min(520px, calc(100vw - 40px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 18px 48px rgba(24, 24, 27, 0.18);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs button {
    min-width: 0;
    color: var(--edx-muted);
    background: transparent;
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs button[aria-pressed="true"] {
    color: var(--edx-accent-strong);
    background: rgba(124, 58, 237, 0.14);
  }

  .edx-explore[data-view="map"] .edx-event--map {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 94px;
    padding: 10px;
    border-radius: 20px;
  }

  .edx-explore[data-view="map"] .edx-event--map .edx-event__image--map,
  .edx-explore[data-view="map"] .edx-event--map .edx-event__placeholder {
    width: 74px;
    height: 74px;
    min-height: 74px;
    border-radius: 15px;
  }
}

@media (prefers-color-scheme: dark) and (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-mobile-tabs {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs button[aria-pressed="true"] {
    color: var(--edx-accent);
    background: rgba(124, 58, 237, 0.2);
  }
}

@media (min-width: 1041px) {
  .edx-explore[data-view="map"] .edx-mobile-tabs {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-hero {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 42;
    display: flex;
    width: min(560px, calc(100vw - 40px));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .edx-explore[data-view="map"] .edx-hero__copy {
    display: none;
  }

  .edx-explore[data-view="map"] .edx-view-switcher {
    display: inline-flex;
    width: 100%;
    pointer-events: auto;
    border-color: rgba(124, 58, 237, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 18px 48px rgba(24, 24, 27, 0.18);
    backdrop-filter: blur(18px);
  }

  .edx-explore[data-view="map"] .edx-view-switcher button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (prefers-color-scheme: dark) and (min-width: 1041px) {
  .edx-explore[data-view="map"] .edx-view-switcher {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }
}

.edx-explore .edx-primary,
.edx-explore .edx-secondary {
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.edx-explore .edx-primary:hover,
.edx-explore .edx-primary:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong)) !important;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
}

.edx-explore .edx-secondary:hover,
.edx-explore .edx-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.18) !important;
  color: var(--edx-accent-strong) !important;
  background: var(--edx-accent-soft) !important;
}

.edx-explore .edx-view-switcher,
.edx-explore .edx-mobile-tabs,
.edx-explore .edx-filter-toggle,
.edx-explore .edx-map-filter-button,
.edx-explore .edx-filter-chip,
.edx-explore .edx-quick-chips button,
.edx-explore .edx-filter-head button {
  border-radius: 999px !important;
}

.edx-explore .edx-filter-toggle {
  border: 1px solid rgba(124, 58, 237, 0.18) !important;
  color: var(--edx-accent-strong) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.edx-explore .edx-map-filter-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  min-width: 150px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  border-radius: 999px !important;
  color: var(--edx-accent-strong) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px rgba(24, 24, 27, 0.14) !important;
  white-space: nowrap !important;
}

.edx-explore .edx-map-filter-button > span:not(.edx-filter-count) {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.edx-explore .edx-map-filter-button:hover,
.edx-explore .edx-map-filter-button:focus-visible,
.edx-explore .edx-map-filter-button[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.34) !important;
  color: var(--edx-accent-strong) !important;
  background: var(--edx-accent-soft) !important;
  box-shadow: 0 18px 40px rgba(42, 30, 78, 0.18) !important;
}

.edx-explore[data-view="map"] .edx-filter-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: end !important;
  justify-content: flex-start !important;
  min-width: 230px;
}

.edx-explore[data-view="map"] .edx-filter-actions .edx-primary,
.edx-explore[data-view="map"] .edx-filter-actions .edx-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 104px !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.edx-explore[data-view="map"] .edx-filter-actions .edx-primary {
  border: 1px solid transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong)) !important;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24) !important;
}

.edx-explore[data-view="map"] .edx-filter-actions .edx-secondary {
  border: 1px solid rgba(124, 58, 237, 0.16) !important;
  color: var(--edx-accent-strong) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 24px rgba(42, 30, 78, 0.08) !important;
}

.edx-explore[data-view="map"] .edx-filter-actions .edx-primary:hover,
.edx-explore[data-view="map"] .edx-filter-actions .edx-primary:focus-visible,
.edx-explore[data-view="map"] .edx-filter-actions .edx-primary:active {
  transform: translateY(-1px);
  color: #fff !important;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong)) !important;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.3) !important;
}

.edx-explore[data-view="map"] .edx-filter-actions .edx-secondary:hover,
.edx-explore[data-view="map"] .edx-filter-actions .edx-secondary:focus-visible,
.edx-explore[data-view="map"] .edx-filter-actions .edx-secondary:active {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.3) !important;
  color: var(--edx-accent-strong) !important;
  background: var(--edx-accent-soft) !important;
  box-shadow: 0 14px 30px rgba(42, 30, 78, 0.14) !important;
}

.edx-explore .edx-filter-chip--clear {
  border-color: rgba(124, 58, 237, 0.16) !important;
  color: var(--edx-accent-strong) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.edx-explore .edx-filter-head button {
  border: 1px solid rgba(124, 58, 237, 0.14) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.26);
}

html[data-ed-theme="dark"] .edx-explore .edx-secondary {
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f6f7fb !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-secondary:hover,
html[data-ed-theme="dark"] .edx-explore .edx-secondary:focus-visible {
  border-color: rgba(196, 181, 253, 0.28) !important;
  color: #ddd6fe !important;
  background: rgba(167, 139, 250, 0.16) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-view-switcher,
html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(31, 27, 45, 0.78) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-filter-toggle,
html[data-ed-theme="dark"] .edx-explore .edx-map-filter-button,
html[data-ed-theme="dark"] .edx-explore .edx-quick-chips button,
html[data-ed-theme="dark"] .edx-explore .edx-filter-chip,
html[data-ed-theme="dark"] .edx-explore .edx-filter-head button {
  border-color: rgba(196, 181, 253, 0.18) !important;
  color: #ddd6fe !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-map-quick-search {
  border-color: rgba(196, 181, 253, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-map-quick-search input {
  color: #f5f3ff !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-map-quick-search input::placeholder {
  color: rgba(221, 214, 254, 0.76) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-map-quick-search__icon {
  border-color: rgba(221, 214, 254, 0.76) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-map-quick-search__icon::after {
  background: rgba(221, 214, 254, 0.76) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-view-switcher button:hover,
html[data-ed-theme="dark"] .edx-explore .edx-view-switcher button:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button:hover,
html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-filter-toggle:hover,
html[data-ed-theme="dark"] .edx-explore .edx-filter-toggle:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-map-filter-button:hover,
html[data-ed-theme="dark"] .edx-explore .edx-map-filter-button:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-quick-chips button:hover,
html[data-ed-theme="dark"] .edx-explore .edx-quick-chips button:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-filter-chip:hover,
html[data-ed-theme="dark"] .edx-explore .edx-filter-chip:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-filter-head button:hover,
html[data-ed-theme="dark"] .edx-explore .edx-filter-head button:focus-visible {
  border-color: rgba(196, 181, 253, 0.32) !important;
  color: #f5f3ff !important;
  background: rgba(167, 139, 250, 0.18) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-filter-actions .edx-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.3) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-filter-actions .edx-secondary {
  border-color: rgba(196, 181, 253, 0.2) !important;
  color: #ddd6fe !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-filter-actions .edx-secondary:hover,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-filter-actions .edx-secondary:focus-visible,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-filter-actions .edx-secondary:active {
  border-color: rgba(196, 181, 253, 0.36) !important;
  color: #f5f3ff !important;
  background: rgba(167, 139, 250, 0.18) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-view-switcher button[aria-pressed="true"],
html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button[aria-pressed="true"],
html[data-ed-theme="dark"] .edx-explore .edx-quick-chips button[aria-pressed="true"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28) !important;
}

@media (max-width: 1040px) {
  .edx-explore .edx-view-switcher {
    display: none !important;
  }

  .edx-explore .edx-mobile-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--edx-line);
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--edx-shadow);
    backdrop-filter: blur(16px);
  }

  .edx-explore:not([data-view="map"]) .edx-mobile-tabs {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 99970;
    width: auto;
    max-width: 680px;
    margin: 0 auto;
  }

  .edx-explore:not([data-view="map"]) .edx-shell {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }

  .edx-explore:not([data-view="map"]) .edx-results {
    padding-bottom: 18px;
  }

  .edx-explore:not([data-view="map"]) .edx-map-sheet-chrome {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 42;
    margin: 0;
  }

  .edx-explore .edx-mobile-tabs button {
    min-width: 0;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 1040px) {
  .edx-explore .edx-mobile-tabs {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }
}

@media (max-width: 1040px) {
  html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 27, 45, 0.92);
  }
}

@media (min-width: 1041px) {
  .edx-explore:not([data-view="map"]) .edx-mobile-tabs,
  .edx-explore[data-view="map"] .edx-mobile-tabs {
    display: none !important;
  }
}

.edx-explore .edx-view-switcher button,
.edx-explore .edx-mobile-tabs button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px;
  border-radius: 999px !important;
  overflow: hidden;
}

.edx-explore .edx-view-switcher button:hover,
.edx-explore .edx-view-switcher button:focus-visible,
.edx-explore .edx-mobile-tabs button:hover,
.edx-explore .edx-mobile-tabs button:focus-visible,
.edx-explore .edx-view-switcher button[aria-pressed="true"],
.edx-explore .edx-mobile-tabs button[aria-pressed="true"] {
  border-radius: 999px !important;
}

.edx-explore .edx-filter-actions .edx-primary,
.edx-explore .edx-filter-actions .edx-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 104px !important;
  min-height: 46px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

@media (max-width: 1040px) {
  .edx-explore .edx-mobile-tabs {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99970;
    width: min(680px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    border-radius: 999px !important;
    transform: translateX(-50%) !important;
  }

  .edx-explore[data-view="map"] .edx-mobile-tabs {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(560px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .edx-explore .edx-mobile-tabs button {
    min-width: 0 !important;
    padding: 0 12px !important;
  }
}

@media (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-results-shell {
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr) !important;
  }

  .edx-explore[data-view="map"] .edx-results-wrap {
    order: 1 !important;
    grid-column: 1 !important;
  }

  .edx-explore[data-view="map"] .edx-map-panel {
    order: 2 !important;
    grid-column: 2 !important;
  }
}

@media (min-width: 1041px) {
  .edx-explore[data-view="map"] .edx-hero {
    position: fixed !important;
    left: 50vw !important;
    right: auto !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(560px, calc(100vw - 48px)) !important;
    transform: translateX(-50%) !important;
  }
}

.edx-explore .edx-view-switcher {
  display: none !important;
}

.edx-explore .edx-mobile-tabs {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 100000 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: min(560px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(124, 58, 237, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(47, 43, 59, 0.92) !important;
  box-shadow: 0 18px 48px rgba(24, 24, 27, 0.22) !important;
  backdrop-filter: blur(18px);
  transform: translateX(-50%) !important;
}

.edx-explore .edx-mobile-tabs button {
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.48) !important;
  background: transparent !important;
}

.edx-explore .edx-mobile-tabs button:hover,
.edx-explore .edx-mobile-tabs button:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.edx-explore .edx-mobile-tabs button[aria-pressed="true"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong)) !important;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.32) !important;
}

.edx-explore:not([data-view="map"]) .edx-shell {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
}

.edx-explore[data-view="map"] .edx-results {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 520px) {
  .edx-explore .edx-mobile-tabs {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(420px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    gap: 4px !important;
  }

  .edx-explore .edx-mobile-tabs button {
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 0.88rem !important;
  }
}

.edx-explore:not([data-view="map"]) .edx-mobile-tabs,
.edx-explore[data-view="map"] .edx-mobile-tabs {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 100000 !important;
  display: grid !important;
  width: min(560px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  transform: translateX(-50%) !important;
}

.edx-explore:not([data-view="map"]) .edx-control-row {
  display: grid !important;
  gap: 12px !important;
  margin: 0 0 10px !important;
}

.edx-quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  width: min(760px, 100%);
}

.edx-quick-search label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.edx-quick-search label span {
  color: var(--edx-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.edx-quick-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  color: var(--edx-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(42, 30, 78, 0.08);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.edx-quick-search input:focus {
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow:
    0 14px 32px rgba(42, 30, 78, 0.1),
    0 0 0 4px rgba(124, 58, 237, 0.14);
}

.edx-quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.edx-quick-search button:hover,
.edx-quick-search button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.3);
}

.edx-explore[data-view="map"] .edx-quick-search {
  display: none !important;
}

.edx-explore:not([data-view="map"]) .edx-filter-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 132px !important;
  justify-self: start !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
}

.edx-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

.edx-filter-count[hidden] {
  display: none !important;
}

.edx-explore:not([data-view="map"]) .edx-filters {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: grid !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition:
    max-height 0.28s ease,
    padding 0.22s ease,
    opacity 0.2s ease,
    transform 0.22s ease !important;
}

.edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
  max-height: 760px !important;
  padding: 14px !important;
  overflow: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.edx-explore:not([data-view="map"]) .edx-filter-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.edx-explore .edx-active-filters {
  display: flex !important;
  min-height: 0;
  margin: 2px 0 12px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
}

.edx-explore[data-view="map"] .edx-active-filters {
  position: fixed !important;
  top: calc(70px + env(safe-area-inset-top, 0px)) !important;
  left: 18px !important;
  right: 18px !important;
  z-index: 100001 !important;
  display: flex !important;
  max-width: min(680px, calc(100vw - 36px));
  margin: 0 auto !important;
  pointer-events: auto;
}

.edx-explore[data-view="map"] .edx-active-filters:empty {
  display: none !important;
}

@media (max-width: 720px) {
  .edx-quick-search {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .edx-quick-search button {
    width: 100%;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-toggle {
    width: 100% !important;
    justify-self: stretch !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: 1fr !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(680px, calc(100dvh - 160px)) !important;
  }

  .edx-explore[data-view="map"] .edx-active-filters {
    top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
  }
}

@media (min-width: 721px) {
  .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 760px) auto !important;
    align-items: end !important;
    column-gap: 12px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search {
    width: 100% !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-toggle {
    min-height: 50px !important;
    align-self: end !important;
    justify-self: start !important;
  }
}

.edx-explore .edx-quick-search button,
.edx-explore .edx-quick-search button:hover,
.edx-explore .edx-quick-search button:focus-visible,
.edx-explore .edx-quick-search button:active {
  border-radius: 999px !important;
}

.edx-explore:not([data-view="map"]) .edx-filters {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 99999 !important;
  width: min(1040px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  max-height: min(66dvh, 680px) !important;
  transform: translate(-50%, 18px) scale(0.98) !important;
  box-shadow: 0 26px 80px rgba(24, 24, 27, 0.22) !important;
}

.edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
  max-height: min(66dvh, 680px) !important;
  padding: 16px !important;
  transform: translate(-50%, 0) scale(1) !important;
}

.edx-explore:not([data-view="map"]) .edx-filters::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.16);
  transform: translateX(-50%);
}

.edx-explore:not([data-view="map"]) .edx-filter-head {
  padding-top: 10px !important;
}

.edx-explore[data-view="map"].is-filter-open .edx-control-row {
  place-items: end center !important;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

.edx-explore[data-view="map"] .edx-filters {
  max-height: min(640px, calc(100dvh - 132px)) !important;
}

@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-filters {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(520px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(72dvh, 680px) !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(72dvh, 680px) !important;
  }

  .edx-explore .edx-quick-search button {
    border-radius: 999px !important;
  }

  .edx-explore[data-view="map"].is-filter-open .edx-control-row {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .edx-explore[data-view="map"] .edx-filters {
    max-height: calc(100dvh - 104px) !important;
  }
}

@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-mobile-tabs,
  .edx-explore[data-view="map"] .edx-mobile-tabs {
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(620px, calc(100vw - 12px)) !important;
    max-width: calc(100vw - 12px) !important;
    gap: 5px !important;
    padding: 6px !important;
  }

  .edx-explore .edx-mobile-tabs button {
    min-height: 46px !important;
    padding: 0 10px !important;
    font-size: 0.94rem !important;
  }
}

.edx-explore .edx-filter-head {
  justify-content: flex-start !important;
}

.edx-explore .edx-filter-head [data-edx-filter-close] {
  display: none !important;
}

.edx-explore .edx-quick-search button,
.edx-explore .edx-quick-search button:hover,
.edx-explore .edx-quick-search button:focus-visible,
.edx-explore .edx-quick-search button:active {
  border-radius: 999px !important;
}

@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search {
    display: contents !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search label {
    grid-column: 1 / -1 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button,
  .edx-explore:not([data-view="map"]) .edx-filter-toggle {
    min-height: 50px !important;
    width: 100% !important;
    border-radius: 999px !important;
    align-self: stretch !important;
    justify-self: stretch !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button {
    grid-column: 1 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-toggle {
    grid-column: 2 !important;
  }
}

@media (min-width: 1041px) {
  .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 760px) auto !important;
    align-items: end !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 18px 48px rgba(42, 30, 78, 0.12) !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: 520px !important;
    margin-top: 12px !important;
    padding: 16px !important;
    overflow: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters::before {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-head {
    grid-column: 1 / -1 !important;
    padding-top: 0 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-actions {
    align-self: end !important;
  }
}

@media (min-width: 1041px) and (max-width: 1280px) {
  .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1040px) {
  .edx-explore .edx-mobile-tabs {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease !important;
  }

  .edx-explore.is-filter-open .edx-mobile-tabs {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, calc(100% + 34px)) !important;
  }
}

@media (max-width: 1040px) {
  .edx-explore:not([data-view="map"]) {
    position: relative;
  }

  .edx-explore:not([data-view="map"])::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(11, 11, 18, 0.26);
    backdrop-filter: blur(0);
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      backdrop-filter 0.22s ease;
  }

  .edx-explore:not([data-view="map"]).is-filter-open::before {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
  }

  .edx-explore:not([data-view="map"]) .edx-shell > :not(.edx-search-card),
  .edx-explore:not([data-view="map"]) .edx-search-card > :not(.edx-control-row) {
    transition:
      filter 0.22s ease,
      transform 0.22s ease;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-shell > :not(.edx-search-card),
  .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > :not(.edx-control-row) {
    filter: blur(5px) saturate(0.88) brightness(0.86);
    transform: scale(1.01);
    pointer-events: none;
  }

  .edx-explore:not([data-view="map"]) .edx-filters {
    z-index: 99999 !important;
    width: min(680px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(760px, calc(100dvh - 28px)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 255, 0.88)),
      var(--edx-panel) !important;
    box-shadow: 0 28px 80px rgba(24, 24, 27, 0.3) !important;
    transform: translate(-50%, 18px) scale(0.96) !important;
    transition:
      transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(760px, calc(100dvh - 28px)) !important;
    padding: 18px !important;
    opacity: 1 !important;
    transform: translate(-50%, 0) scale(1) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-actions .edx-primary,
  .edx-explore:not([data-view="map"]) .edx-filter-actions .edx-secondary {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-filters {
    width: min(520px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(760px, calc(100dvh - 28px)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(760px, calc(100dvh - 28px)) !important;
  }
}

@media (max-width: 1279px) {
  body.account-open .edx-explore.is-filter-open::before,
  body.menu-open .edx-explore.is-filter-open::before {
    opacity: 0 !important;
    visibility: hidden !important;
    backdrop-filter: blur(0) !important;
  }

  body.account-open .edx-explore.is-filter-open .edx-filters,
  body.menu-open .edx-explore.is-filter-open .edx-filters {
    z-index: 900 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, 18px) scale(0.96) !important;
  }

  body.account-open .edx-explore.is-filter-open .edx-shell > :not(.edx-control-row),
  body.menu-open .edx-explore.is-filter-open .edx-shell > :not(.edx-control-row) {
    filter: none !important;
    transform: none !important;
  }
}

.edx-explore[data-view="map"] .edx-results {
  transition: gap 0.22s ease;
}

.edx-explore[data-view="map"] .edx-event--map {
  max-height: 150px;
  animation: edxMapRowRestore 0.2s ease both;
  transition:
    max-height 0.24s ease,
    min-height 0.24s ease,
    margin 0.24s ease,
    padding 0.24s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.edx-explore[data-view="map"].is-map-card-expanded .edx-event--map.is-faded {
  min-height: 0 !important;
  max-height: 0 !important;
  margin: -7px 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-color: transparent !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: scale(0.98) translateY(6px) !important;
  box-shadow: none !important;
  animation: none !important;
}

.edx-explore[data-view="map"].is-map-card-expanded .edx-event--map.is-faded > * {
  opacity: 0;
}

.edx-event--map-expanded {
  width: 100%;
  min-height: 0;
  align-self: start;
  cursor: default;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 22px 58px rgba(24, 24, 27, 0.16);
  animation: edxMapCardExpand 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.edx-event--map-expanded:hover {
  transform: none;
}

.edx-map-card-close {
  position: absolute;
  top: 12px;
  right: auto;
  left: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 5px 16px 5px 8px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  color: #5b21b6;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(88, 28, 135, 0.18);
  appearance: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.edx-map-card-close span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 1rem;
  line-height: 1;
}

.edx-map-card-close:hover,
.edx-map-card-close:focus-visible {
  transform: translateY(-1px);
  color: #4c1d95;
  border-color: rgba(124, 58, 237, 0.36);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(88, 28, 135, 0.26);
}

@keyframes edxMapCardExpand {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes edxMapRowRestore {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .edx-event--map-expanded .edx-card-media {
    aspect-ratio: 16 / 9;
    max-height: 230px;
  }

  .edx-event--map-expanded .edx-event__body {
    padding: 14px;
  }

  .edx-map-card-close {
    min-height: 38px;
    padding: 4px 13px 4px 7px;
    font-size: 0.8rem;
  }

  .edx-map-card-close span {
    width: 28px;
    height: 28px;
  }
}

.edx-explore[data-view="map"] .edx-map-quick-search,
.edx-explore[data-view="map"] .edx-map-quick-search:hover,
.edx-explore[data-view="map"] .edx-map-quick-search:focus-within,
.edx-explore[data-view="map"] .edx-map-quick-search input,
.edx-explore[data-view="map"] .edx-map-quick-search input:hover,
.edx-explore[data-view="map"] .edx-map-quick-search input:focus,
.edx-explore[data-view="map"] .edx-map-quick-search button,
.edx-explore[data-view="map"] .edx-map-quick-search button:hover,
.edx-explore[data-view="map"] .edx-map-quick-search button:focus-visible,
.edx-explore[data-view="map"] .edx-map-quick-search button:active,
.edx-explore[data-view="map"] .edx-map-filter-button,
.edx-explore[data-view="map"] .edx-map-filter-button:hover,
.edx-explore[data-view="map"] .edx-map-filter-button:focus-visible,
.edx-explore[data-view="map"] .edx-map-filter-button:active,
.edx-explore[data-view="map"] .edx-map-filter-button[aria-expanded="true"] {
  border-radius: 999px !important;
}

.edx-explore[data-view="map"] .edx-map-quick-search input,
.edx-explore[data-view="map"] .edx-map-quick-search input:hover,
.edx-explore[data-view="map"] .edx-map-quick-search input:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  appearance: none;
}

.edx-explore[data-view="map"] .edx-map-quick-search button:hover,
.edx-explore[data-view="map"] .edx-map-quick-search button:focus-visible,
.edx-explore[data-view="map"] .edx-map-quick-search button:active {
  border-color: rgba(124, 58, 237, 0.42) !important;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}

.edx-explore[data-view="map"] .edx-active-filters {
  gap: 8px !important;
  padding: 4px 6px !important;
}

.edx-explore[data-view="map"] .edx-active-filters .edx-filter-chip {
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  line-height: 1.1 !important;
}

.edx-explore[data-view="map"] .edx-active-filters .edx-filter-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-right: -4px;
  border-radius: 999px;
  line-height: 1;
}

.edx-explore[data-view="map"] .edx-active-filters .edx-filter-chip--clear {
  padding-inline: 16px !important;
}

@media (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-map-topbar > [data-edx-map-count] {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar {
    justify-content: flex-start !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls {
    max-width: min(760px, calc(100% - 24px)) !important;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]) {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid !important;
    flex: 0 0 auto;
    gap: 4px;
    justify-items: start;
    min-height: 66px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(24, 24, 27, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 252, 0.9));
    box-shadow: 0 12px 28px rgba(24, 24, 27, 0.06);
    cursor: default;
    touch-action: auto;
    user-select: auto;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-handle {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-title {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-title strong {
    color: var(--edx-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-title span {
    display: none;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-back:not([hidden]) {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 0 6px;
    padding: 0 18px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 999px;
    color: #5b21b6;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 255, 0.94));
    box-shadow: 0 10px 24px rgba(88, 28, 135, 0.12);
    appearance: none;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition:
      transform 0.18s ease,
      color 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-back:hover,
  .edx-explore[data-view="map"] .edx-map-sheet-back:focus-visible {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(124, 58, 237, 0.58);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 16px 34px rgba(88, 28, 135, 0.22);
  }

  .edx-explore[data-view="map"] .edx-results {
    padding-top: 14px !important;
  }
}

.edx-explore[data-view="map"] .edx-map-quick-search {
  overflow: visible !important;
}

.edx-explore[data-view="map"] .edx-map-quick-search button,
.edx-explore[data-view="map"] .edx-map-quick-search button:hover,
.edx-explore[data-view="map"] .edx-map-quick-search button:focus-visible,
.edx-explore[data-view="map"] .edx-map-quick-search button:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 88px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 999px);
  line-height: 1 !important;
}

.edx-explore[data-view="map"] .edx-map-quick-search button:hover,
.edx-explore[data-view="map"] .edx-map-quick-search button:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 15px 32px rgba(124, 58, 237, 0.32) !important;
}

@media (min-width: 721px) and (max-width: 1040px) {
  .edx-explore[data-view="map"] .edx-map-topbar {
    left: 12px;
    right: 12px;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls {
    gap: 8px;
    max-width: calc(100% - 16px) !important;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search {
    min-width: 220px !important;
    max-width: min(340px, 52vw) !important;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button {
    min-width: 116px !important;
    padding-inline: 16px !important;
  }
}

@media (prefers-color-scheme: dark) and (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]) {
    border-color: rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(31, 27, 45, 0.96), rgba(31, 27, 45, 0.9));
  }
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]) {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(31, 27, 45, 0.96), rgba(31, 27, 45, 0.9));
}

/* Keep Explore synced to the explicit site theme, not the device colour scheme. */
html[data-ed-theme="light"] .edx-explore {
  --edx-bg: #f7f3ff !important;
  --edx-accent: #7c3aed !important;
  --edx-accent-strong: #5b21b6 !important;
  --edx-accent-soft: #f1eaff !important;
  --edx-ink: #18181b !important;
  --edx-muted: #71717a !important;
  --edx-line: rgba(24, 24, 27, 0.1) !important;
  --edx-panel: rgba(255, 255, 255, 0.86) !important;
  --edx-surface: #ffffff !important;
  --edx-soft: #faf7ff !important;
  --edx-shadow: 0 18px 45px rgba(24, 24, 27, 0.1) !important;
  --edx-shadow-soft: 0 10px 30px rgba(42, 30, 78, 0.1) !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="light"] .edx-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 247, 255, 0.72)),
    var(--edx-bg) !important;
}

html[data-ed-theme="light"] .edx-hero {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(251, 113, 133, 0.06)),
    rgba(255, 255, 255, 0.72) !important;
}

html[data-ed-theme="light"] .edx-view-switcher,
html[data-ed-theme="light"] .edx-field input,
html[data-ed-theme="light"] .edx-field select,
html[data-ed-theme="light"] .edx-event,
html[data-ed-theme="light"] .edx-agenda-date,
html[data-ed-theme="light"] .edx-map-status,
html[data-ed-theme="light"] .edx-quick-chips button {
  color: var(--edx-ink) !important;
  background-color: var(--edx-surface) !important;
}

html[data-ed-theme="light"] .edx-chip,
html[data-ed-theme="light"] .edx-secondary,
html[data-ed-theme="light"] .edx-filter-head button {
  color: var(--edx-ink) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

html[data-ed-theme="light"] .edx-mobile-tabs {
  border-color: rgba(24, 24, 27, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--edx-shadow) !important;
}

html[data-ed-theme="light"] .edx-mobile-tabs button {
  color: var(--edx-muted) !important;
  background: transparent !important;
}

html[data-ed-theme="light"] .edx-mobile-tabs button:hover,
html[data-ed-theme="light"] .edx-mobile-tabs button:focus-visible,
html[data-ed-theme="light"] .edx-mobile-tabs button[aria-pressed="true"] {
  color: var(--edx-accent-strong) !important;
  background: var(--edx-accent-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12) !important;
}

html[data-ed-theme="light"] .edx-explore[data-view="map"] .edx-results-wrap,
html[data-ed-theme="light"] .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]) {
  background: rgba(255, 255, 255, 0.96) !important;
}

html[data-ed-theme="light"] .edx-map-filter-button,
html[data-ed-theme="light"] .edx-map-topbar > span,
html[data-ed-theme="light"] .edx-map-quick-search {
  color: var(--edx-ink) !important;
  border-color: rgba(24, 24, 27, 0.1) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

html[data-ed-theme="light"] .edx-map-quick-search input {
  color: var(--edx-ink) !important;
}

html[data-ed-theme="light"] .edx-map-quick-search input::placeholder {
  color: rgba(113, 113, 122, 0.78) !important;
}

html[data-ed-theme="dark"] .edx-explore {
  --edx-bg: #161421 !important;
  --edx-ink: #faf7ff !important;
  --edx-muted: rgba(250, 247, 255, 0.68) !important;
  --edx-line: rgba(255, 255, 255, 0.12) !important;
  --edx-panel: rgba(31, 27, 45, 0.86) !important;
  --edx-surface: #211d31 !important;
  --edx-soft: #1a1726 !important;
  --edx-accent: #a78bfa !important;
  --edx-accent-strong: #ddd6fe !important;
  --edx-accent-soft: rgba(167, 139, 250, 0.16) !important;
  --edx-shadow: 0 22px 70px rgba(0, 0, 0, 0.34) !important;
  --edx-shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.28) !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="dark"] .edx-shell,
html[data-ed-theme="dark"] .edx-hero {
  background:
    linear-gradient(180deg, rgba(31, 27, 45, 0.92), rgba(22, 20, 33, 0.78)),
    var(--edx-bg) !important;
}

html[data-ed-theme="dark"] .edx-view-switcher,
html[data-ed-theme="dark"] .edx-field input,
html[data-ed-theme="dark"] .edx-field select,
html[data-ed-theme="dark"] .edx-event,
html[data-ed-theme="dark"] .edx-agenda-date,
html[data-ed-theme="dark"] .edx-map-status,
html[data-ed-theme="dark"] .edx-quick-chips button {
  color: var(--edx-ink) !important;
  background-color: var(--edx-surface) !important;
}

html[data-ed-theme="dark"] .edx-chip,
html[data-ed-theme="dark"] .edx-secondary,
html[data-ed-theme="dark"] .edx-filter-head button {
  color: var(--edx-ink) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-ed-theme="dark"] .edx-mobile-tabs {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(31, 27, 45, 0.92) !important;
}

html[data-ed-theme="dark"] .edx-mobile-tabs button {
  color: rgba(250, 247, 255, 0.64) !important;
  background: transparent !important;
}

html[data-ed-theme="dark"] .edx-mobile-tabs button:hover,
html[data-ed-theme="dark"] .edx-mobile-tabs button:focus-visible,
html[data-ed-theme="dark"] .edx-mobile-tabs button[aria-pressed="true"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28) !important;
}

/* Final theme sync: Feed, Map, Calendar and List must follow the site toggle. */
html[data-ed-theme="light"] .edx-explore {
  color-scheme: light;
  background: #f7f3ff !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="light"] .edx-explore :where(
  .edx-shell,
  .edx-results-shell,
  .edx-results-wrap,
  .edx-filters,
  .edx-calendar,
  .edx-agenda-date,
  .edx-event,
  .edx-map-sheet-chrome:not([hidden]),
  .edx-explore--notice
) {
  border-color: rgba(24, 24, 27, 0.1) !important;
  background: #ffffff !important;
  color: #18181b !important;
}

html[data-ed-theme="light"] .edx-explore :where(
  .edx-event h3,
  .edx-event h3 a,
  .edx-results-meta strong,
  .edx-provider__copy strong,
  .edx-map-info strong,
  .edx-filter-head strong,
  .edx-calendar strong,
  .edx-agenda-date strong
) {
  color: #18181b !important;
}

html[data-ed-theme="light"] .edx-explore :where(
  .edx-event p,
  .edx-event__footer,
  .edx-provider__copy span,
  .edx-recurrence,
  .edx-next-dates span,
  .edx-results-meta,
  .edx-hero__copy > p:not(.edx-eyebrow),
  .edx-field span,
  .edx-map-info span
) {
  color: #71717a !important;
}

html[data-ed-theme="light"] .edx-explore[data-view="map"],
html[data-ed-theme="light"] .edx-explore[data-view="map"] .edx-shell {
  background: #f7f3ff !important;
}

html[data-ed-theme="dark"] .edx-explore {
  --edx-bg: #141624 !important;
  --edx-ink: #f6f7fb !important;
  --edx-muted: #b4bcd0 !important;
  --edx-line: #30364d !important;
  --edx-panel: #232739 !important;
  --edx-surface: #1b1e2d !important;
  --edx-soft: #191d2b !important;
  --edx-accent: #a78bfa !important;
  --edx-accent-strong: #ddd6fe !important;
  --edx-accent-soft: rgba(167, 139, 250, 0.16) !important;
  --edx-shadow: 0 24px 70px rgba(0, 0, 0, 0.34) !important;
  --edx-shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
  color-scheme: dark;
  background: var(--edx-bg) !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="dark"] .edx-explore :where(
  .edx-shell,
  .edx-results-shell,
  .edx-results-wrap,
  .edx-filters,
  .edx-calendar,
  .edx-agenda-date,
  .edx-event,
  .edx-map-sheet-chrome:not([hidden]),
  .edx-explore--notice
) {
  border-color: var(--edx-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--edx-surface) !important;
  color: var(--edx-ink) !important;
  box-shadow: var(--edx-shadow-soft) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.13), transparent 30%),
    var(--edx-bg) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-hero {
  border-color: var(--edx-line) !important;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.13), rgba(251, 113, 133, 0.08)),
    #1b1e2d !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="dark"] .edx-explore :where(
  .edx-event h3,
  .edx-event h3 a,
  .edx-results-meta strong,
  .edx-provider__copy strong,
  .edx-map-info strong,
  .edx-filter-head strong,
  .edx-calendar strong,
  .edx-agenda-date strong
) {
  color: var(--edx-ink) !important;
}

html[data-ed-theme="dark"] .edx-explore :where(
  .edx-event p,
  .edx-event__footer,
  .edx-provider__copy span,
  .edx-recurrence,
  .edx-next-dates span,
  .edx-results-meta,
  .edx-hero__copy > p:not(.edx-eyebrow),
  .edx-field span,
  .edx-map-info span
) {
  color: var(--edx-muted) !important;
}

html[data-ed-theme="dark"] .edx-explore :where(
  .edx-field input,
  .edx-field select,
  .edx-map-quick-search,
  .edx-map-status,
  .edx-map-filter-button,
  .edx-map-topbar > span,
  .edx-mobile-tabs,
  .edx-view-switcher,
  .edx-filter-toggle,
  .edx-quick-chips button,
  .edx-filter-chip,
  .edx-filter-head button
) {
  border-color: var(--edx-line) !important;
  background: var(--edx-panel) !important;
  color: var(--edx-ink) !important;
  box-shadow: var(--edx-shadow-soft) !important;
}

html[data-ed-theme="dark"] .edx-explore :where(
  .edx-field input::placeholder,
  .edx-map-quick-search input::placeholder
) {
  color: rgba(180, 188, 208, 0.78) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-chip--type {
  color: #fecdd3 !important;
  background: rgba(251, 113, 133, 0.14) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-chip--level {
  color: #99f6e4 !important;
  background: rgba(45, 212, 191, 0.14) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-chip--provider {
  color: #c4b5fd !important;
  background: rgba(167, 139, 250, 0.16) !important;
}

html[data-ed-theme="dark"] .edx-explore :where(.edx-badge, .edx-price) {
  color: var(--edx-ink) !important;
  background: rgba(31, 27, 45, 0.92) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"],
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-shell,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-panel {
  background: #0f1220 !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-results-wrap,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]) {
  border-color: var(--edx-line) !important;
  background: rgba(31, 34, 50, 0.96) !important;
  color: var(--edx-ink) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-handle::before,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-results::before {
  background: rgba(246, 247, 251, 0.3) !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button {
  color: rgba(246, 247, 251, 0.68) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button:hover,
html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button:focus-visible,
html[data-ed-theme="dark"] .edx-explore .edx-mobile-tabs button[aria-pressed="true"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28) !important;
}

/* Public What's On page polish: align the hero with My Flavour and keep Feed
   cards compact even when only one result is returned. */
body.edx-explore-page .edx-explore {
  --edx-control-sticky-offset: calc(var(--admin-bar-height, 0px) + var(--header-height, 0px) + 12px);
  min-height: 100vh;
  padding: 24px 0 80px;
  background:
    radial-gradient(circle at 8% 0%, rgba(236, 72, 153, 0.12), transparent 30rem),
    radial-gradient(circle at 95% 10%, rgba(124, 58, 237, 0.14), transparent 28rem),
    #f8fafc !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-shell {
  width: min(1210px, calc(100% - 32px));
  max-width: min(1210px, calc(100% - 32px));
  padding: 0 0 58px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.edx-explore-page .edx-search-card {
  display: contents;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: clamp(310px, 34vw, 430px);
  margin: 0 !important;
  padding: clamp(38px, 6vw, 64px);
  border: 0 !important;
  border-radius: 34px;
  color: #ffffff !important;
  background:
    linear-gradient(135deg, rgba(232, 236, 255, 0.94) 0%, rgba(167, 139, 250, 0.9) 46%, rgba(236, 151, 210, 0.92) 100%),
    #b99cf4 !important;
  box-shadow: 0 32px 90px rgba(76, 29, 149, 0.18);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy {
  max-width: 760px;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  margin: 0 0 16px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94) !important;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h1,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h2 {
  max-width: 780px;
  color: #ffffff !important;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 950;
  line-height: 0.94;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy > p:not(.edx-eyebrow) {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: clamp(1rem, 2vw, 1.14rem);
  font-weight: 650;
  line-height: 1.65;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
  position: relative !important;
  top: auto;
  z-index: 60;
  width: min(1060px, calc(100% - 48px));
  margin: -28px auto 18px !important;
  padding: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 24px 64px rgba(31, 18, 53, 0.15);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row:hover,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row:focus-within {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 28px 76px rgba(31, 18, 53, 0.18);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search {
  width: 100% !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label span {
  color: #5f566b !important;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
  min-height: 60px;
  border-color: rgba(24, 24, 27, 0.1);
  border-radius: 18px;
  background: #f6f7fb;
  box-shadow: none;
  font-weight: 560;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle {
  min-height: 60px !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-chips,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-active-filters,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-meta,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-shell {
  width: min(1060px, calc(100% - 48px));
  margin-right: auto !important;
  margin-left: auto !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-chips {
  padding-bottom: 14px;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-chips button {
  min-height: 36px;
  border-color: rgba(24, 24, 27, 0.1);
  color: #18181b !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 20px rgba(31, 18, 53, 0.06);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-meta {
  margin-top: 20px !important;
  margin-bottom: 16px !important;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-results {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 334px)) !important;
  justify-content: start;
  align-items: start;
  gap: 18px !important;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event {
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(31, 18, 53, 0.09);
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-card-media {
  aspect-ratio: 16 / 9;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event__body {
  padding: 14px;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event h3 {
  font-size: 1.02rem;
  line-height: 1.22;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event p {
  font-size: 0.88rem;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event__chips,
body.edx-explore-page .edx-explore[data-view="cards"] .edx-event__footer,
body.edx-explore-page .edx-explore[data-view="cards"] .edx-event__quick-actions,
body.edx-explore-page .edx-explore[data-view="cards"] .edx-next-dates {
  margin-top: 10px;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-badge,
body.edx-explore-page .edx-explore[data-view="cards"] .edx-price {
  min-height: 25px;
  padding-inline: 9px;
  font-size: 0.72rem;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event__save {
  --edm-save-size: 40px;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event {
  border-color: rgba(24, 24, 27, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(31, 18, 53, 0.09);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list {
  grid-template-columns: 132px minmax(0, 1fr) minmax(236px, auto);
  gap: 18px;
  align-items: start;
  padding: 16px;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list > .edx-event__image,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event__image--thumb,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list > .edx-event__placeholder {
  width: 132px;
  height: 112px;
  min-height: 112px;
  border-radius: 18px;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event__body {
  display: grid;
  gap: 8px;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(109, 40, 217, 0.14);
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-price {
  min-height: 26px;
  color: #5b21b6;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 18, 53, 0.08);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event h3 {
  max-width: 100%;
  color: #18181b;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.24;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event p {
  margin: 0;
  color: #5f6470;
  font-size: 0.93rem;
  font-weight: 560;
  line-height: 1.45;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event__chips {
  gap: 7px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 24, 27, 0.07);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(109, 40, 217, 0.11);
  color: #312e81;
  background: rgba(109, 40, 217, 0.07);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: capitalize;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-chip--type {
  color: #8b1e3f;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.13);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-chip--level {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.16);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-chip--provider {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.13);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-recurrence {
  margin-top: 2px;
  color: #6d7280;
  font-size: 0.8rem;
  font-weight: 850;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-next-dates {
  display: grid;
  gap: 5px;
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 24, 27, 0.06);
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-next-dates span {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: #5f6470;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__actions {
  display: grid;
  grid-template-columns: minmax(108px, 1fr) 40px 44px;
  grid-template-rows: 40px;
  gap: 8px;
  align-self: center;
  align-items: center;
  justify-content: end;
  width: 236px;
  min-width: 236px;
  margin-top: 0;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__going {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 40px;
  color: var(--edx-accent-strong) !important;
  background: var(--edx-accent-soft) !important;
  border-color: var(--edx-accent) !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__share-trigger {
  grid-column: 2;
  grid-row: 1;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__options-trigger {
  grid-column: 3;
  grid-row: 1;
}

body.edx-explore-page .edx-explore[data-view="cards"] .edx-event__quick-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 44px;
}

@media (min-width: 1041px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    column-gap: 12px !important;
  }
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore {
    padding-top: 14px;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-shell {
    width: min(calc(100% - 20px), 620px);
    max-width: min(calc(100% - 20px), 620px);
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero {
    min-height: 300px;
    border-radius: 28px;
    padding: 30px 24px 58px;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h1,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h2 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-chips,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-active-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-meta,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-shell {
    width: min(100%, calc(100vw - 32px));
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    margin-top: -34px !important;
    padding: 16px !important;
    border-radius: 24px;
  }

  body.edx-explore-page .edx-explore[data-view="cards"] .edx-results {
    grid-template-columns: 1fr !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list > .edx-event__image,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event__image--thumb,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list > .edx-event__placeholder {
    width: 96px;
    height: 96px;
    min-height: 96px;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 40px 44px;
    grid-template-rows: 42px;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__going {
    grid-column: 1;
    grid-row: 1;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__share-trigger {
    grid-column: 2;
    grid-row: 1;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-event--list .edx-event__options-trigger {
    grid-column: 3;
    grid-row: 1;
  }
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore {
  background:
    radial-gradient(circle at 8% 0%, rgba(236, 72, 153, 0.13), transparent 30rem),
    radial-gradient(circle at 95% 10%, rgba(167, 139, 250, 0.16), transparent 28rem),
    #111827 !important;
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero {
  background:
    linear-gradient(135deg, rgba(37, 42, 72, 0.98) 0%, rgba(109, 40, 217, 0.88) 52%, rgba(190, 72, 155, 0.86) 100%),
    #221b3a !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(40, 44, 66, 0.72), rgba(25, 27, 42, 0.52)),
    rgba(17, 24, 39, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.34);
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label span {
  color: #b4bcd0 !important;
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
  border-color: #30364d;
  color: #f6f7fb;
  background: #232739;
}

html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero,
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero {
  color: #ffffff !important;
}

html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-eyebrow,
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-eyebrow {
  color: rgba(255, 255, 255, 0.94) !important;
}

html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h1,
html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h2,
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h1,
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h2 {
  color: #ffffff !important;
}

html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy > p:not(.edx-eyebrow),
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy > p:not(.edx-eyebrow) {
  color: rgba(255, 255, 255, 0.86) !important;
}

html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input,
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
  color: #17111f !important;
}

html[data-ed-theme="light"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input::placeholder,
html:not([data-ed-theme="dark"]) body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input::placeholder {
  color: rgba(81, 70, 95, 0.72) !important;
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero,
html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h1,
html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h2 {
  color: #ffffff !important;
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-eyebrow {
  color: rgba(255, 255, 255, 0.94) !important;
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy > p:not(.edx-eyebrow) {
  color: rgba(255, 255, 255, 0.84) !important;
}

html[data-ed-theme="dark"] body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input::placeholder {
  color: rgba(246, 247, 251, 0.62) !important;
}

.edx-explore .edx-view-switcher,
.edx-explore .edx-mobile-tabs {
  display: none !important;
}

.edx-view-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-width: 60px;
  min-height: 60px;
  align-self: end;
  justify-self: start;
  color: var(--edx-accent-strong);
}

.edx-view-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  opacity: 0;
  font: inherit;
  cursor: pointer;
}

.edx-view-select__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(42, 30, 78, 0.09);
  color: currentColor;
  pointer-events: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.edx-view-select__grid {
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor 0 0) left top / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) right top / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 6px 6px no-repeat;
  opacity: 0.9;
}

.edx-view-select__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.edx-view-select:hover .edx-view-select__button,
.edx-view-select:focus-within .edx-view-select__button {
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 14px 32px rgba(42, 30, 78, 0.13);
  transform: translateY(-1px);
}

.edx-view-select select:focus {
  outline: none;
}

.edx-view-select:focus-within .edx-view-select__button {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 2px;
}

.edx-view-select--map {
  width: 52px;
  min-width: 52px;
  min-height: 46px;
}

.edx-view-select--map .edx-view-select__button {
  width: 52px;
  height: 46px;
  background: rgba(255, 255, 255, 0.96);
}

html[data-ed-theme="dark"] .edx-view-select {
  color: #ddd6fe;
}

html[data-ed-theme="dark"] .edx-view-select__button {
  border-color: rgba(196, 181, 253, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-ed-theme="dark"] .edx-view-select:hover .edx-view-select__button,
html[data-ed-theme="dark"] .edx-view-select:focus-within .edx-view-select__button {
  border-color: rgba(221, 214, 254, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.edx-explore[data-view="map"] .edx-map-topbar__controls {
  border-color: rgba(255, 255, 255, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.3) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 20px 54px rgba(31, 18, 53, 0.18) !important;
  backdrop-filter: blur(26px) saturate(1.55) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.55) !important;
}

.edx-explore[data-view="map"] .edx-map-topbar {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.edx-explore[data-view="map"] .edx-map-quick-search,
.edx-explore[data-view="map"] .edx-map-filter-button,
.edx-explore[data-view="map"] .edx-view-select__button {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 22px rgba(31, 18, 53, 0.08) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-topbar__controls {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(44, 48, 70, 0.74), rgba(18, 22, 34, 0.5)),
    rgba(15, 23, 42, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 20px 54px rgba(0, 0, 0, 0.34) !important;
}

html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-quick-search,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-filter-button,
html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-view-select__button {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

@media (min-width: 721px) {
  .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 760px) auto auto !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters {
    grid-column: 1 / -1 !important;
  }
}

@media (min-width: 1041px) {
  .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
  }
}

@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 1fr) 60px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search {
    display: contents !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search label {
    grid-column: 1 / -1 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button {
    grid-column: 1 / -1 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-toggle {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-view-select {
    grid-column: 2 !important;
    justify-self: end;
  }
}

/* My Flavour embeds the Explorer inside its own hub surface, so remove the
   standalone Explorer page panels without affecting the public Explorer page. */
.my-flavour-app .ed-flavour-hub-explorer .edx-search-card,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-search-card,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-search-card {
  border: 1px solid var(--edx-line) !important;
  background: var(--edx-panel) !important;
  background-image: none !important;
  box-shadow: var(--edx-shadow-soft) !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-explore,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore,
.my-flavour-app .ed-flavour-hub-explorer .edx-shell,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-shell,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-shell,
.my-flavour-app .ed-flavour-hub-explorer .edx-hero,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-hero,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-hero,
.my-flavour-app .ed-flavour-hub-explorer .edx-results-shell,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-results-shell,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-results-shell,
.my-flavour-app .ed-flavour-hub-explorer .edx-results-wrap,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-results-wrap,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-results-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-shell,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-shell,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-shell {
  padding: 0 !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-hero,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-hero,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-hero {
  margin: 0 !important;
  padding: 0 !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-hero__copy,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-hero__copy,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-hero__copy {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-results-meta,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-results-meta,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-results-meta {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-active-filters,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-active-filters,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-active-filters {
  display: none !important;
}

.my-flavour-app .ed-flavour-hub-explorer .edx-empty,
html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-empty,
html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-empty {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

@media (max-width: 1040px) {
  .my-flavour-app .ed-flavour-hub-explorer .edx-explore:not([data-view="map"]) .edx-mobile-tabs,
  html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore:not([data-view="map"]) .edx-mobile-tabs,
  html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore:not([data-view="map"]) .edx-mobile-tabs {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
    width: min(720px, 100%) !important;
    max-width: 100% !important;
    margin: 2px 0 0 !important;
    transform: none !important;
  }

  .my-flavour-app .ed-flavour-hub-explorer .edx-explore:not([data-view="map"]) .edx-shell,
  html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore:not([data-view="map"]) .edx-shell,
  html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore:not([data-view="map"]) .edx-shell {
    padding-bottom: 0 !important;
  }

  .my-flavour-app .ed-flavour-hub-explorer .edx-explore.is-filter-open .edx-mobile-tabs,
  html[data-ed-theme="light"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore.is-filter-open .edx-mobile-tabs,
  html[data-ed-theme="dark"] .my-flavour-app .ed-flavour-hub-explorer .edx-explore.is-filter-open .edx-mobile-tabs {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}

/* Mobile map results remain one distinct draggable bottom sheet on both the
   public What's On explorer and the Explorer embedded in Style Hub. */
@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-results-wrap,
  html[data-ed-theme="light"] .edx-explore[data-view="map"] .edx-results-wrap,
  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-results-wrap {
    position: fixed !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    bottom: 0 !important;
    height: clamp(238px, 28dvh, 280px);
    min-height: 238px !important;
    overflow: hidden !important;
    border: 1px solid var(--edx-line) !important;
    border-bottom: 0 !important;
    border-radius: 30px 30px 0 0 !important;
    background: color-mix(in srgb, var(--edx-panel) 96%, transparent) !important;
    box-shadow: 0 24px 70px rgba(24, 24, 27, 0.22) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
    backdrop-filter: blur(22px) saturate(1.08) !important;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]),
  html[data-ed-theme="light"] .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]),
  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-chrome:not([hidden]) {
    border: 0 !important;
    border-bottom: 1px solid var(--edx-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .edx-explore[data-view="map"] .edx-results {
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    background: transparent !important;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-handle {
    display: block !important;
    width: 72px !important;
    height: 22px !important;
    padding: 0 !important;
    opacity: 1 !important;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-handle::before,
  html[data-ed-theme="light"] .edx-explore[data-view="map"] .edx-map-sheet-handle::before {
    content: "" !important;
    display: block !important;
    width: 58px !important;
    height: 6px !important;
    margin: 8px auto !important;
    border-radius: 999px !important;
    background: rgba(54, 47, 66, 0.48) !important;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.16) !important;
    opacity: 1 !important;
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-handle::before {
    background: rgba(246, 247, 251, 0.58) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.34) !important;
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-back:not([hidden]) {
    color: #ffffff !important;
    border-color: rgba(196, 181, 253, 0.52) !important;
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
    box-shadow:
      0 12px 28px rgba(76, 29, 149, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-back:not([hidden]):hover,
  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-sheet-back:not([hidden]):focus-visible {
    color: #ffffff !important;
    border-color: rgba(221, 214, 254, 0.78) !important;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  }
}

/* Map is a dedicated toggle; the remaining result layouts stay in the view
   controller. Search submission lives inside the text field as an icon. */
.edx-map-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 116px;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  color: var(--edx-accent-strong);
  background: var(--edx-panel);
  box-shadow: var(--edx-shadow-soft);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.edx-map-toggle__switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--edx-muted) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--edx-muted) 22%, transparent);
  box-shadow: inset 0 1px 3px rgba(24, 24, 27, 0.14);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.edx-map-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(24, 24, 27, 0.28);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.edx-map-toggle:hover,
.edx-map-toggle:focus-visible {
  border-color: rgba(124, 58, 237, 0.48);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 14px 32px rgba(42, 30, 78, 0.15);
}

.edx-map-toggle[aria-pressed="true"] {
  color: var(--edx-accent-strong);
  border-color: rgba(124, 58, 237, 0.36);
  background: var(--edx-panel);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.14);
}

.edx-map-toggle[aria-pressed="true"] .edx-map-toggle__switch {
  border-color: var(--edx-accent);
  background: linear-gradient(135deg, var(--edx-accent), var(--edx-accent-strong));
  box-shadow: inset 0 1px 3px rgba(49, 46, 129, 0.24), 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.edx-map-toggle[aria-pressed="true"] .edx-map-toggle__switch::after {
  transform: translateX(20px);
}

html[data-ed-theme="dark"] .edx-map-toggle:not([aria-pressed="true"]) {
  color: #ddd6fe;
  border-color: rgba(196, 181, 253, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.edx-map-toggle--compact {
  min-width: 108px;
  min-height: 46px;
  padding-inline: 14px;
}

.edx-explore:not([data-view="map"]) .edx-quick-search {
  position: relative;
  display: block !important;
  width: 100% !important;
}

.edx-quick-search label {
  position: relative;
}

.edx-quick-search input {
  padding-right: 58px !important;
}

.edx-explore .edx-quick-search button[data-edx-quick-search-submit] {
  position: absolute !important;
  right: 6px !important;
  bottom: 6px !important;
  z-index: 2;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--edx-accent-strong) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.edx-explore [data-edx-quick-search-submit] svg {
  display: none !important;
}

.edx-explore button[data-edx-quick-search-submit] {
  font-size: 0 !important;
}

.edx-explore button[data-edx-quick-search-submit]::before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.edx-explore .edx-quick-search button[data-edx-quick-search-submit]:hover,
.edx-explore .edx-quick-search button[data-edx-quick-search-submit]:focus-visible {
  transform: none !important;
  color: var(--edx-accent) !important;
  background: var(--edx-accent-soft) !important;
  outline: none !important;
}

.edx-map-quick-search label {
  width: 100%;
}

.edx-map-quick-search input {
  padding: 0 46px 0 14px !important;
}

.edx-explore .edx-map-quick-search button[data-edx-quick-search-submit] {
  position: absolute !important;
  top: 50% !important;
  right: 5px !important;
  bottom: auto !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--edx-accent-strong) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}

.edx-explore .edx-map-quick-search button[data-edx-quick-search-submit]:hover,
.edx-explore .edx-map-quick-search button[data-edx-quick-search-submit]:focus-visible {
  color: var(--edx-accent) !important;
  background: var(--edx-accent-soft) !important;
  transform: translateY(-50%) !important;
}

.edx-explore[data-view="map"][data-results-view="cards"] .edx-results {
  grid-template-columns: minmax(0, 1fr) !important;
}

.edx-explore[data-view="map"] .edx-event--map-list {
  width: 100%;
  max-width: none;
}

@media (min-width: 721px) {
  .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 1fr) auto 60px auto !important;
  }
}

@media (max-width: 720px) {
  .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(0, 1fr) 60px 108px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search {
    grid-column: 1 / -1 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-toggle {
    grid-column: 1 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-view-select {
    grid-column: 2 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-map-toggle {
    grid-column: 3 !important;
    min-width: 108px;
    min-height: 60px;
    padding-inline: 10px;
  }

  .edx-map-toggle--compact {
    min-width: 104px;
    min-height: 46px;
    padding-inline: 10px;
  }
}

@keyframes edx-map-surface-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes edx-results-surface-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edx-explore.is-modern-view-transition[data-view="map"] .edx-map-panel,
.edx-explore.is-modern-view-transition[data-view="map"] .edx-results-wrap {
  animation: edx-map-surface-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.edx-explore.is-modern-view-transition:not([data-view="map"]) .edx-search-card,
.edx-explore.is-modern-view-transition:not([data-view="map"]) .edx-results-meta,
.edx-explore.is-modern-view-transition:not([data-view="map"]) .edx-results-wrap,
.edx-explore.is-results-transitioning .edx-results {
  animation: edx-results-surface-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .edx-explore.is-modern-view-transition *,
  .edx-explore.is-results-transitioning .edx-results,
  .edx-map-toggle__switch,
  .edx-map-toggle__switch::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The waffle already communicates a view menu; a second chevron adds noise. */
.edx-view-select__chevron {
  display: none !important;
}

.edx-view-select__button {
  gap: 0 !important;
}

.edx-mobile-view-trigger,
.edx-mobile-view-options {
  display: none;
}

@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-map-topbar__controls {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    width: auto !important;
    max-width: min(440px, calc(100% - 122px)) !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact {
    position: relative;
    z-index: 2;
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    align-self: stretch;
    height: auto;
    min-height: 60px;
    gap: 7px;
    padding-inline: 12px;
    border-radius: 20px;
    letter-spacing: -0.01em;
    pointer-events: auto;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"] {
    color: #ffffff !important;
    border-color: #6d28d9 !important;
    background: #6d28d9 !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 14px 30px rgba(91, 33, 182, 0.32) !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"]:hover,
  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"]:focus-visible {
    color: #ffffff !important;
    border-color: #5b21b6 !important;
    background: #5b21b6 !important;
    transform: none !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 16px 34px rgba(76, 29, 149, 0.4) !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"] .edx-map-toggle__switch {
    width: 40px;
    height: 24px;
    border-color: rgba(255, 255, 255, 0.58) !important;
    background: rgba(255, 255, 255, 0.24) !important;
    box-shadow: inset 0 1px 3px rgba(49, 20, 92, 0.26) !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact[aria-pressed="true"] .edx-map-toggle__switch::after {
    width: 16px;
    height: 16px;
    transform: translateX(16px);
  }

  .edx-explore[data-view="map"] .edx-view-select--map.has-custom-menu > .edx-view-select__button,
  .edx-explore[data-view="map"] .edx-view-select--map.has-custom-menu > select {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: var(--edx-ink);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 8px 22px rgba(31, 18, 53, 0.08);
    cursor: pointer;
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-mobile-view-trigger,
  html.dark .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    color: #ddd6fe;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-view-active > :not(.edx-mobile-view-options) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.96);
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options:not([hidden]) {
    position: absolute;
    inset: 7px;
    z-index: 30;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
    border: 0;
    border-radius: 999px;
    color: var(--edx-muted);
    background: transparent;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 850;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options button:hover,
  .edx-explore[data-view="map"] .edx-mobile-view-options button:focus-visible {
    color: var(--edx-accent-strong);
    background: var(--edx-accent-soft);
    outline: none;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-options button[aria-pressed="true"] {
    color: #ffffff;
    background: #6d28d9;
    box-shadow: 0 7px 18px rgba(91, 33, 182, 0.26);
  }

  .edx-mobile-view-option__icon {
    display: block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background: currentColor;
  }

  .edx-mobile-view-option__icon--feed {
    -webkit-mask: linear-gradient(#000 0 0) 0 0 / 6px 6px no-repeat, linear-gradient(#000 0 0) 8px 0 / 6px 6px no-repeat, linear-gradient(#000 0 0) 0 8px / 6px 6px no-repeat, linear-gradient(#000 0 0) 8px 8px / 6px 6px no-repeat;
    mask: linear-gradient(#000 0 0) 0 0 / 6px 6px no-repeat, linear-gradient(#000 0 0) 8px 0 / 6px 6px no-repeat, linear-gradient(#000 0 0) 0 8px / 6px 6px no-repeat, linear-gradient(#000 0 0) 8px 8px / 6px 6px no-repeat;
  }

  .edx-mobile-view-option__icon--calendar {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .edx-mobile-view-option__icon--list {
    -webkit-mask: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 6px);
    mask: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 6px);
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls > :not(.edx-map-quick-search) {
    transition: opacity 150ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active > :not(.edx-map-quick-search) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(12px) scale(0.96);
  }

  .edx-explore[data-view="map"] .edx-map-quick-search {
    display: flex !important;
    flex: 0 0 46px;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px;
    overflow: hidden;
    padding: 5px !important;
    transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1), max-width 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search label {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search button[data-edx-quick-search-submit] {
    right: 5px !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls .edx-map-quick-search button[data-edx-quick-search-submit],
  .edx-explore[data-view="map"] .edx-map-topbar__controls .edx-map-quick-search button[data-edx-quick-search-submit]:hover,
  .edx-explore[data-view="map"] .edx-map-topbar__controls .edx-map-quick-search button[data-edx-quick-search-submit]:focus-visible,
  .edx-explore[data-view="map"] .edx-map-topbar__controls .edx-map-quick-search button[data-edx-quick-search-submit]:active {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search.is-mobile-search-open {
    position: absolute;
    inset: 0;
    z-index: 20;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    padding: 7px !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active .edx-map-quick-search,
  html.dark .edx-explore[data-view="map"] .edx-map-topbar__controls.is-mobile-search-active .edx-map-quick-search {
    background: transparent !important;
    border-color: transparent !important;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search.is-mobile-search-open label {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search.is-mobile-search-open input {
    opacity: 1 !important;
    visibility: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    appearance: none;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button {
    position: relative;
    flex: 0 0 46px;
    width: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button > span:first-child {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button .edx-filter-count:not([hidden]) {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.68rem !important;
  }

  .edx-explore[data-view="map"] .edx-view-select--map,
  .edx-explore[data-view="map"] .edx-view-select--map .edx-view-select__button {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }
}

/* Final mobile parity layer: the feed toolbar uses the exact geometry of the
   map toolbar (224px control pill + 10px gap + 112px Map switch). */
@media (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    width: calc(100% - 12px) !important;
    height: 62px !important;
    min-height: 62px !important;
    margin: 0 6px !important;
    padding: 0 0 0 8px !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    width: calc(100% - 122px);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 14px 36px rgba(34, 23, 58, 0.12);
    backdrop-filter: blur(18px) saturate(135%);
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    align-self: center !important;
    border-radius: 999px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row .edx-mobile-view-trigger {
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    color: var(--edx-ink) !important;
    background: rgba(255, 255, 255, 0.56) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 8px 22px rgba(31, 18, 53, 0.08) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    position: relative !important;
    z-index: 24;
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 0 0 auto !important;
    align-self: center !important;
    gap: 7px !important;
    padding: 0 12px !important;
    border-radius: 20px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle .edx-map-toggle__switch {
    width: 40px;
    height: 24px;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle .edx-map-toggle__switch::after {
    width: 16px;
    height: 16px;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search.is-mobile-search-open {
    position: absolute !important;
    inset: 0 122px 0 0 !important;
    z-index: 20;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 7px !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-mobile-view-options:not([hidden]) {
    inset: 7px 129px 7px 7px !important;
  }

  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before,
  html.dark .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(24, 24, 27, 0.78);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  }

  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-control-row .edx-mobile-view-trigger,
  html.dark .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  html.dark .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  html.dark .edx-explore:not([data-view="map"]) .edx-control-row .edx-mobile-view-trigger {
    color: #ddd6fe !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }
}

@media (min-width: 721px) {
  .edx-explore[data-view="map"] .edx-map-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 10px !important;
    height: 62px;
  }

  .edx-explore[data-view="map"] .edx-map-topbar__controls {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px 46px;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 62px;
  }

  .edx-explore[data-view="map"] .edx-map-quick-search {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button {
    position: relative;
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button > span:first-child {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .edx-explore[data-view="map"] .edx-map-filter-button .edx-filter-count:not([hidden]) {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.68rem !important;
  }

  .edx-explore[data-view="map"] .edx-view-select--map.has-custom-menu > .edx-view-select__button,
  .edx-explore[data-view="map"] .edx-view-select--map.has-custom-menu > select {
    display: none !important;
  }

  .edx-explore[data-view="map"] .edx-view-select--map,
  .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

  .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: var(--edx-ink);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 8px 22px rgba(31, 18, 53, 0.08);
    cursor: pointer;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > .edx-map-toggle--compact {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 62px !important;
    min-height: 62px !important;
    margin: 0 !important;
    align-self: stretch;
    gap: 7px;
    padding: 0 12px !important;
    border-radius: 20px !important;
    pointer-events: auto !important;
  }

  .edx-explore[data-view="map"] .edx-map-topbar > [data-edx-map-count] {
    display: none !important;
  }

  html[data-ed-theme="dark"] .edx-explore[data-view="map"] .edx-mobile-view-trigger,
  html.dark .edx-explore[data-view="map"] .edx-mobile-view-trigger {
    color: #ddd6fe;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Final responsive control polish. This block intentionally follows every
   legacy compatibility layer in this stylesheet. */
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-panel,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-topbar,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-map-sheet-chrome {
  display: none !important;
}

body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-shell,
body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-results-wrap {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

@media (min-width: 721px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(230px, 1fr) 52px 52px 112px !important;
    align-items: center !important;
    gap: 12px !important;
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: -30px auto 18px !important;
    padding: 12px !important;
    overflow: visible !important;
    border-radius: 28px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search {
    grid-column: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    border-radius: 999px !important;
    padding-right: 58px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: calc(50% + 10px) !important;
    right: 6px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    grid-column: 2 !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle > span:first-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.1V18l-3.6 1.8v-7.7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filter-toggle .edx-filter-count:not([hidden]) {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    font-size: 0.68rem !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select {
    grid-column: 3 !important;
    position: relative !important;
    display: inline-flex !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-mobile-view-trigger {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select .edx-view-select__button {
    display: inline-flex !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-view-select select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    grid-column: 4 !important;
    display: inline-flex !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 12px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(42, 30, 78, 0.12) !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(620px, 72dvh) !important;
    margin-top: 12px !important;
    padding: 16px !important;
    overflow: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filters::before {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-filter-head {
    grid-column: 1 / -1 !important;
    padding-top: 0 !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open::before {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]).is-filter-open .edx-shell > :not(.edx-search-card),
  .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > :not(.edx-control-row) {
    filter: none !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 1041px) {
  .edx-explore:not([data-view="map"]) .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    width: calc(100% - 24px) !important;
    margin-right: 12px !important;
    margin-left: 12px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    width: 162px !important;
    transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active::before,
  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-view-active::before {
    width: calc(100% - 122px) !important;
  }
}

/*
 * Authoritative Explore control rail.
 *
 * explore.css retains the historical compatibility layers used by cached
 * shells. This file is intentionally enqueued afterwards and owns only the
 * responsive toolbar and mobile filter sheet.
 */

.edx-filter-sheet-handle {
  display: none;
}

@media (max-width: 1180px) and (min-width: 561px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) 54px 54px 126px !important;
    align-items: end !important;
    gap: 10px !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    padding: 18px !important;
    overflow: visible !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row::before {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    align-self: end !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-self: end !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    grid-column: 2 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle > span:first-child {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background: currentColor !important;
    clip-path: polygon(4% 8%, 96% 8%, 62% 47%, 62% 86%, 40% 96%, 40% 47%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    grid-column: 3 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    position: relative !important;
    inset: auto !important;
    grid-column: 4 !important;
    box-sizing: border-box;
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding-inline: 14px !important;
    align-self: end !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: 50% !important;
    right: 6px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 560px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(74px, 1fr) 46px 46px 104px !important;
    align-items: center !important;
    gap: 6px !important;
    box-sizing: border-box;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    min-height: 66px !important;
    margin: 0 12px !important;
    padding: 6px !important;
    overflow: visible !important;
    border-radius: 22px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row::before,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(110, 85, 155, 0.18) !important;
    border-radius: 23px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(44, 30, 78, 0.08) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label > span {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search input {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 34px 0 12px !important;
    border: 0 !important;
    border-radius: inherit !important;
    outline: 0 !important;
    color: var(--edx-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    bottom: auto !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:hover,
  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:focus-visible,
  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit]:active {
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    position: relative !important;
    inset: auto !important;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-self: center !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
    grid-column: 2 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    grid-column: 3 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle > span:first-child {
    display: none !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle::before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background: currentColor !important;
    clip-path: polygon(4% 8%, 96% 8%, 62% 47%, 62% 86%, 40% 96%, 40% 47%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    position: relative !important;
    inset: auto !important;
    grid-column: 4 !important;
    box-sizing: border-box;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding-inline: 10px !important;
    align-self: center !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) 0 0 104px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > [data-edx-view-control] {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 46px !important;
    padding: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  body.edx-filter-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.edx-filter-sheet-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(15, 11, 28, 0.32);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  body.edx-explore-page .edx-explore .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-filters {
    --edx-filter-sheet-drag: 0px;
    position: fixed !important;
    z-index: 99990 !important;
    inset: auto 0 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 102%, 0) !important;
    border: 1px solid rgba(120, 96, 160, 0.18) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    background: var(--edx-surface, #fff) !important;
    box-shadow: 0 -24px 70px rgba(20, 13, 37, 0.28) !important;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.edx-explore-page .edx-explore.is-filter-open .edx-filters,
  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-filters {
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, var(--edx-filter-sheet-drag), 0) !important;
  }

  .edx-explore .edx-filters.is-filter-sheet-dragging {
    transition: none !important;
    user-select: none;
  }

  .edx-explore .edx-filters::before {
    display: none !important;
  }

  body.edx-explore-page .edx-explore .edx-filter-head {
    position: sticky !important;
    top: 0;
    z-index: 2;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-column: 1 !important;
    align-items: center;
    min-height: 70px;
    margin: 0 -18px 2px !important;
    padding: 8px 18px 10px !important;
    border-bottom: 1px solid rgba(120, 96, 160, 0.12);
    background: var(--edx-surface, #fff) !important;
  }

  .edx-explore .edx-filter-head strong {
    grid-column: 2;
  }

  .edx-filter-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    display: block !important;
    width: 58px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: transparent;
    transform: translateX(-50%);
    cursor: grab;
    touch-action: none;
  }

  .edx-filter-sheet-handle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: rgba(92, 82, 111, 0.42);
    transform: translateX(-50%);
  }

  body.edx-explore-page .edx-explore .edx-filters .edx-field,
  body.edx-explore-page .edx-explore .edx-filters .edx-filter-actions {
    grid-column: 1 !important;
    width: 100% !important;
  }

  html[data-ed-theme="dark"] .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  html.dark .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  html[data-ed-theme="dark"] body.edx-explore-page .edx-explore .edx-filters,
  html.dark body.edx-explore-page .edx-explore .edx-filters,
  html[data-ed-theme="dark"] body.edx-explore-page .edx-explore .edx-filter-head,
  html.dark body.edx-explore-page .edx-explore .edx-filter-head {
    background: #171720 !important;
  }
}

@media (max-width: 360px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(68px, 1fr) 44px 44px 96px !important;
    gap: 5px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
}

@media (max-width: 1180px) {
  body.edx-explore-page,
  body.edx-explore-page .edx-explore,
  body.edx-explore-page .edx-shell,
  body.edx-explore-page .edx-search-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.edx-explore-page {
    overflow-x: hidden !important;
  }

  body.edx-explore-page .edx-quick-chips {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
  }
}

/* Compact control alignment and sheet corrections. */
@media (max-width: 1180px) and (min-width: 561px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row {
    grid-template-columns: minmax(180px, 1fr) 54px 54px 126px !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    min-height: 82px !important;
    padding: 14px 22px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    align-self: center !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filters {
    display: none !important;
    grid-column: 1 / -1 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-control-row > .edx-filters {
    display: grid !important;
    margin-top: 14px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search label {
    display: flex !important;
    align-items: center !important;
    height: 54px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    height: 54px !important;
    min-height: 54px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] > .edx-mobile-view-trigger,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] > .edx-view-select__button {
    box-sizing: border-box !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    box-sizing: border-box !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin-right: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    box-sizing: border-box !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
}

@media (max-width: 560px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    align-items: center !important;
    row-gap: 0 !important;
    min-height: 66px !important;
    padding: 7px 10px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search > label {
    display: flex !important;
    align-items: center !important;
    height: 46px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search input {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] {
    box-sizing: border-box !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] > .edx-mobile-view-trigger,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] > .edx-view-select__button {
    box-sizing: border-box !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters,
  body.edx-explore-page .edx-explore.is-filter-open > .edx-filters {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 99990 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    border-radius: 28px 28px 0 0 !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 102%, 0) !important;
  }

  body.edx-explore-page .edx-explore.is-filter-open > .edx-filters {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, var(--edx-filter-sheet-drag), 0) !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    outline-offset: 2px;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle::before {
    top: 5px !important;
    width: 48px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: rgba(92, 82, 111, 0.42) !important;
    box-shadow: none !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-head {
    box-sizing: border-box !important;
    min-height: 78px !important;
    padding: 30px 20px 13px !important;
  }
}

/* Small-window filter sheets use the same locked, draggable presentation as phones. */
@media (min-width: 561px) and (max-width: 820px) {
  body.edx-explore-page.edx-filter-sheet-open {
    overflow: hidden !important;
  }

  body.edx-explore-page.edx-filter-sheet-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(18, 15, 29, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  body.edx-explore-page .edx-explore > .edx-filters,
  body.edx-explore-page .edx-explore.is-filter-open > .edx-filters {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 99990 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    overflow: auto !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 102%, 0) !important;
  }

  body.edx-explore-page .edx-explore.is-filter-open > .edx-filters {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, var(--edx-filter-sheet-drag), 0) !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle::before {
    top: 5px !important;
    width: 48px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: rgba(92, 82, 111, 0.42) !important;
    box-shadow: none !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-head {
    box-sizing: border-box !important;
    min-height: 78px !important;
    padding: 30px 20px 13px !important;
  }
}

/* Safari renders its native search reset control as a dark dot once the
   custom search button is applied. The Explorer supplies its own search
   action, so remove all native search decorations. */
.edx-explore input[type="search"] {
  appearance: none !important;
  -webkit-appearance: none !important;
}

.edx-explore input[type="search"]::-webkit-search-decoration,
.edx-explore input[type="search"]::-webkit-search-cancel-button,
.edx-explore input[type="search"]::-webkit-search-results-button,
.edx-explore input[type="search"]::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
}

/* Phone-only presentation. Wider compact windows retain the full stable
   toolbar; phones get the expanding search while the Map switch stays put. */
@media (max-width: 560px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero {
    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
    margin-inline: 12px !important;
    padding: 26px 18px 66px !important;
    border-radius: 24px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy {
    width: 100% !important;
    max-width: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.2rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.045em !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-hero__copy > p:last-child {
    margin-top: 18px !important;
    font-size: 0.96rem !important;
    line-height: 1.45 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(80px, 1fr) 46px 46px 104px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: -34px 12px 18px !important;
    padding: 7px 10px !important;
    overflow: visible !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-quick-search {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search input {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 38px 0 14px !important;
    font-size: 0.9rem !important;
    line-height: 46px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-quick-search button[data-edx-quick-search-submit] {
    top: 50% !important;
    right: 4px !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] > .edx-mobile-view-trigger {
    display: inline-grid !important;
    place-items: center !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    display: inline-flex !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) 0 0 104px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > .edx-filter-toggle,
  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active > [data-edx-view-control] {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
}

@media (max-width: 360px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row,
  .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(56px, 1fr) 42px 42px 92px !important;
    gap: 5px !important;
    padding-inline: 7px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > [data-edx-view-control] > .edx-mobile-view-trigger {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  .edx-explore:not([data-view="map"]) .edx-control-row.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) 0 0 92px !important;
  }
}

/* Unified responsive search rail.
   Historical cached-shell rules above still describe older layouts. This is
   the single effective geometry contract: one fluid grid from compact desktop
   down to phone width, plus one narrow-screen interaction where Search borrows
   the Filter and View columns. */

body.edx-explore-page .edx-explore button[data-edx-quick-search-submit]::before {
  content: none !important;
  display: none !important;
}

body.edx-explore-page .edx-explore .edx-quick-search button[data-edx-quick-search-submit] svg,
body.edx-explore-page .edx-explore .edx-map-quick-search button[data-edx-quick-search-submit] svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  overflow: visible !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
}

@media (max-width: 1180px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    --edx-rail-control: clamp(42px, calc(36.08px + 1.52vw), 54px);
    --edx-rail-map: clamp(92px, calc(75.21px + 4.3vw), 126px);
    --edx-rail-gap: clamp(5px, calc(2.53px + 0.633vw), 10px);
    --edx-rail-padding: clamp(10px, 1.7vw, 20px);
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--edx-rail-control) var(--edx-rail-control) var(--edx-rail-map) !important;
    align-items: center !important;
    justify-content: stretch !important;
    column-gap: var(--edx-rail-gap) !important;
    row-gap: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: calc(var(--edx-rail-control) + 20px) !important;
    padding: 10px var(--edx-rail-padding) !important;
    overflow: visible !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row::before {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    grid-column: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--edx-rail-control) !important;
    min-height: var(--edx-rail-control) !important;
    max-height: var(--edx-rail-control) !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search > label {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search > label > span {
    display: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 42px 0 clamp(14px, 1.8vw, 20px) !important;
    font-size: clamp(0.9rem, calc(0.848rem + 0.14vw), 0.95rem) !important;
    line-height: 1.2 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search button[data-edx-quick-search-submit] {
    position: absolute !important;
    top: 50% !important;
    right: 5px !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > [data-edx-view-control],
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > [data-edx-view-control] > .edx-mobile-view-trigger,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > [data-edx-view-control] > .edx-view-select__button {
    box-sizing: border-box !important;
    width: var(--edx-rail-control) !important;
    min-width: var(--edx-rail-control) !important;
    max-width: var(--edx-rail-control) !important;
    height: var(--edx-rail-control) !important;
    min-height: var(--edx-rail-control) !important;
    max-height: var(--edx-rail-control) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-self: center !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filter-toggle {
    display: inline-grid !important;
    place-items: center !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-map-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: var(--edx-rail-map) !important;
    min-width: var(--edx-rail-map) !important;
    max-width: var(--edx-rail-map) !important;
    height: var(--edx-rail-control) !important;
    min-height: var(--edx-rail-control) !important;
    max-height: var(--edx-rail-control) !important;
    margin: 0 !important;
    padding: 0 clamp(9px, 1vw, 13px) !important;
    align-self: center !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]).is-filter-open .edx-search-card > .edx-control-row > .edx-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filters .edx-filter-head {
    grid-column: 1 / -1 !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filters .edx-field,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filters .edx-filter-actions {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filters input,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filters select {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Keep the compact-desktop rail rounded through the legacy 720px interval.
   Phone styling takes over at 560px with its existing, slightly tighter radius. */
@media (min-width: 561px) and (max-width: 720px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    border-radius: 28px !important;
  }
}

@media (max-width: 600px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) 0 0 var(--edx-rail-map) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > .edx-quick-search {
    width: 100% !important;
    max-width: none !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > .edx-filter-toggle,
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > [data-edx-view-control] {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: var(--edx-rail-control) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
}

/* At the smallest supported viewport, preserve a useful search target by
   yielding only the View column. This is the same toolbar and interaction,
   not a separate phone component. */
@media (max-width: 340px) {
  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row {
    grid-template-columns: minmax(0, 1fr) var(--edx-rail-control) 0 var(--edx-rail-map) !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row > [data-edx-view-control] {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  body.edx-explore-page .edx-explore:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) 0 0 var(--edx-rail-map) !important;
  }
}

/* The compact filter header is the sheet's complete drag surface. Keeping the
   visible grabber centred independently prevents generic button hover styles
   from replacing its centring transform. */
@media (max-width: 820px) {
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-head {
    position: sticky !important;
    cursor: grab !important;
    touch-action: none !important;
    user-select: none !important;
    overflow: hidden !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters.is-filter-sheet-dragging .edx-filter-head {
    cursor: grabbing !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-head > strong {
    position: relative;
    z-index: 2;
    pointer-events: none;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:hover,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:focus-visible,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:active {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: grab !important;
    touch-action: none !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters.is-filter-sheet-dragging .edx-filter-sheet-handle {
    cursor: grabbing !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:hover::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:focus-visible::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:active::before {
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    width: 56px !important;
    height: 6px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: rgba(92, 82, 111, 0.46) !important;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.12) !important;
    transform: translateX(-50%) !important;
  }
}

/* Map result-sheet controls inherit button hover rules from several legacy
   skins. The handle itself must never move; only its colour may respond. */
@media (max-width: 720px) {
  .edx-explore[data-view="map"] .edx-map-sheet-handle,
  .edx-explore[data-view="map"] .edx-map-sheet-handle:hover,
  .edx-explore[data-view="map"] .edx-map-sheet-handle:focus-visible,
  .edx-explore[data-view="map"] .edx-map-sheet-handle:active {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    justify-self: center !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: grab !important;
    touch-action: none !important;
  }

  .edx-explore[data-view="map"] .edx-map-sheet-handle::before,
  .edx-explore[data-view="map"] .edx-map-sheet-handle:hover::before,
  .edx-explore[data-view="map"] .edx-map-sheet-handle:focus-visible::before,
  .edx-explore[data-view="map"] .edx-map-sheet-handle:active::before {
    position: static !important;
    display: block !important;
    width: 58px !important;
    height: 6px !important;
    margin: 8px auto !important;
    transform: none !important;
  }
}

/* Final authority for the single feed view and shared card action rail. */
.edx-explore.edx-explore--feed-only .edx-view-select,
.edx-explore.edx-explore--feed-only .edx-mobile-tabs,
.edx-explore.edx-explore--feed-only .edx-mobile-view-options {
  display: none !important;
}

.edx-explore.edx-explore--feed-only .edx-control-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

.edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-results {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 334px)) !important;
  justify-content: start !important;
  align-items: start !important;
}

body .edx-shared-event-card .ed-event-card__actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px 44px !important;
  gap: 7px !important;
}

@media (max-width: 720px) {
  body .edx-explore.edx-explore--feed-only .edx-control-row {
    grid-template-columns: minmax(74px, 1fr) 46px 104px !important;
  }

  body .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-results {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .edx-explore.edx-explore--feed-only .edx-shared-event-card {
    width: 100% !important;
    max-width: none !important;
  }
}

.edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-control-row > .edx-filter-toggle {
  grid-column: 2 !important;
}

.edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-control-row > .edx-map-toggle {
  display: inline-flex !important;
  grid-column: 3 !important;
}

.edx-explore.edx-explore--feed-only[data-view="map"] .edx-map-topbar__controls {
  grid-template-columns: minmax(0, 1fr) 46px !important;
}

@media (max-width: 560px) {
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-control-row.is-mobile-search-active {
    grid-template-columns: minmax(0, 1fr) 0 104px !important;
  }
}

/* The map sheet is a placement of the shared event card, not a second card.
   Only its composition changes here; content, actions, and details markup stay
   owned by the reusable component. */
.edx-shared-event-card[data-ed-event-card-layout="map"],
.edx-explore[data-view="map"] .edx-shared-event-card[data-ed-event-card-layout="map"] {
  display: block;
  grid-template-columns: none;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  padding: 0;
  cursor: pointer;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 10px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-card-media {
  width: 96px;
  min-width: 96px;
  height: 112px;
  min-height: 112px;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 16px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-card-media .edx-event__placeholder {
  min-height: 100%;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-card-badges {
  display: none;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__save {
  --edm-save-size: 34px;
  top: 7px;
  right: 7px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__body {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 4px;
  padding: 0;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__topline {
  gap: 7px;
  margin: 0;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__kicker,
.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__body > p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__body > p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.25;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] :is(.edx-event__chips, .edx-event__footer) {
  display: none;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__actions {
  margin-top: 5px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__actions :is(.edx-event__going, .ed-event-card__details-toggle) {
  min-height: 36px;
  padding: 6px 8px;
  font-size: .7rem;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__actions :is(.edx-event__share-trigger, .edx-event__options-trigger) {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
}

/* Selecting a map result reveals the very same card in its full composition. */
.edx-explore[data-view="map"] .edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded {
  cursor: default;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .ed-event-card__summary {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-card-media {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-card-badges {
  display: flex;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__save {
  --edm-save-size: 40px;
  top: 12px;
  right: 12px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__body {
  align-content: initial;
  gap: 8px;
  padding: 14px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__topline {
  margin: 0;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded h3 {
  display: block;
  overflow: visible;
  font-size: 1.05rem;
  -webkit-line-clamp: initial;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__body > p {
  overflow: visible;
  white-space: normal;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded :is(.edx-event__chips, .edx-event__footer) {
  display: flex;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .ed-event-card__actions {
  margin-top: 10px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .ed-event-card__actions :is(.edx-event__going, .ed-event-card__details-toggle) {
  min-height: 40px;
  padding: 8px 9px;
  font-size: .76rem;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .ed-event-card__actions .edx-event__share-trigger {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .ed-event-card__actions .edx-event__options-trigger {
  width: 44px;
  min-width: 44px;
  min-height: 40px;
}

@media (max-width: 720px) {
  .edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__summary {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .edx-shared-event-card[data-ed-event-card-layout="map"] .edx-card-media {
    width: 82px;
    min-width: 82px;
    height: 106px;
    min-height: 106px;
  }

  .edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__actions {
    grid-template-columns: minmax(0, 1fr) 34px 34px !important;
    gap: 5px !important;
  }

  .edx-shared-event-card[data-ed-event-card-layout="map"] .ed-event-card__actions :is(.edx-event__share-trigger, .edx-event__options-trigger) {
    width: 34px;
    min-width: 34px;
  }

  .edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-card-media {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
  }

  .edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .ed-event-card__actions {
    grid-template-columns: minmax(0, 1fr) 40px 44px !important;
    gap: 7px !important;
  }
}

/* Compact attendance summary. The member plugin hydrates this with real
   attendee avatars and keeps it synchronized with the I'm going action. */
.edx-shared-event-card .edx-event__attendance {
  display: none;
  min-width: 0;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ed-event-card-line);
}

.edx-shared-event-card .edx-event__attendance.is-hydrated {
  display: block;
}

.edx-shared-event-card button.edx-event__attendance {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--ed-event-card-line);
  border-radius: 0;
  color: var(--ed-event-card-text);
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: left;
  appearance: none;
}

.edx-shared-event-card button.edx-event__attendance:not(:disabled) {
  cursor: pointer;
}

.edx-shared-event-card button.edx-event__attendance:disabled {
  opacity: 1;
  cursor: default;
}

.edx-shared-event-card button.edx-event__attendance:not(:disabled):hover .edx-event__attendance-line strong {
  color: var(--ed-event-card-primary-strong);
}

.edx-shared-event-card button.edx-event__attendance:focus-visible {
  border-radius: 10px;
  outline: 3px solid color-mix(in srgb, var(--ed-event-card-primary) 34%, transparent);
  outline-offset: 2px;
}

.edx-shared-event-card .edx-event__attendance-line,
.edx-shared-event-card .edx-event__attendance-empty {
  min-width: 0;
  min-height: 34px;
  color: var(--ed-event-card-muted) !important;
}

.edx-shared-event-card .edx-event__attendance-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.edx-shared-event-card .edx-event__attendance-line strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ed-event-card-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 900;
}

.edx-shared-event-card button.edx-event__attendance:not(:disabled) .edx-event__attendance-line::after {
  content: "›";
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-primary-soft);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.edx-shared-event-card .edx-event__attendance .edm-event-going-avatar-stack {
  flex: 0 0 auto;
}

.edx-shared-event-card .edx-event__attendance .edm-event-going-avatar-stack > * + * {
  margin-left: -10px;
}

.edx-shared-event-card .edx-event__attendance :is(.edm-event-going-stack-avatar, .edm-event-going-stack-more) {
  width: 32px;
  height: 32px;
  border-width: 2px;
  border-color: var(--ed-event-card-surface);
  box-shadow: 0 6px 14px rgba(32, 24, 48, .13);
}

.edx-shared-event-card .edx-event__attendance .edm-event-going-stack-more {
  font-size: .68rem;
}

.edx-shared-event-card .edx-event__attendance-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  font-weight: 850;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance {
  margin-top: 3px;
  padding-top: 0;
  border-top: 0;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance-line,
.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance-empty {
  min-height: 27px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance :is(.edm-event-going-stack-avatar, .edm-event-going-stack-more) {
  width: 26px;
  height: 26px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance .edm-event-going-avatar-stack > * + * {
  margin-left: -8px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance-line {
  gap: 7px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance-line strong,
.edx-shared-event-card[data-ed-event-card-layout="map"] .edx-event__attendance-empty {
  font-size: .7rem;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ed-event-card-line);
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance-line,
.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance-empty {
  min-height: 34px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance :is(.edm-event-going-stack-avatar, .edm-event-going-stack-more) {
  width: 32px;
  height: 32px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance .edm-event-going-avatar-stack > * + * {
  margin-left: -10px;
}

.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance-line strong,
.edx-shared-event-card[data-ed-event-card-layout="map"].edx-event--map-expanded .edx-event__attendance-empty {
  font-size: .78rem;
}

/* The confirmed state keeps its colour and checkmark without the halo,
   sparks, or glowing shadow used by the wider member interface. */
.edx-shared-event-card .edm-event-going-button,
.edx-shared-event-card .edm-event-going-button:hover,
.edx-shared-event-card .edm-event-going-button.is-going,
.edx-shared-event-card .edm-event-going-button[aria-pressed="true"] {
  --edm-going-shadow: none;
  box-shadow: none !important;
}

.edx-shared-event-card .edm-event-going-button::after,
.edx-shared-event-card .edm-event-going-spark {
  display: none !important;
}

.edx-shared-event-card .edm-event-going-button.is-celebrating,
.edx-shared-event-card .edm-event-going-button.is-celebrating .edm-event-going-icon,
.edx-shared-event-card .edm-event-going-button.is-celebrating .edm-event-going-icon__ring,
.edx-shared-event-card .edm-event-going-button.is-celebrating .edm-event-going-icon__check {
  animation: none !important;
}

/* Event options are the card's third face. The summary fades first, then the
   options fade into the same stage instead of opening the global sheet. */
.edx-shared-event-card.is-showing-options .ed-event-card__stage {
  height: var(--ed-event-card-options-height, var(--ed-event-card-summary-height, auto));
}

.edx-shared-event-card.is-showing-options .ed-event-card__summary {
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
  filter: none;
  transition:
    opacity .16s ease,
    transform .2s ease;
}

.ed-event-card__options {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(5px);
  color: var(--ed-event-card-text);
  background: var(--ed-event-card-surface);
  transition:
    opacity .14s ease,
    transform .18s ease,
    visibility 0s linear .22s;
}

.edx-shared-event-card.is-showing-options .ed-event-card__options {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .22s ease .16s,
    transform .24s ease .14s,
    visibility 0s linear 0s;
}

.ed-event-card__options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-event-card__options-head > div {
  display: grid;
  gap: 3px;
}

.ed-event-card__options-head span {
  color: var(--ed-event-card-primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ed-event-card__options-head strong {
  color: var(--ed-event-card-text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}

.ed-event-card__options-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-surface);
  box-shadow: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ed-event-card__options-head button:hover {
  border-color: color-mix(in srgb, var(--ed-event-card-primary) 42%, var(--ed-event-card-line));
  background: var(--ed-event-card-soft);
}

.ed-event-card__options-head button:focus-visible,
.ed-event-card__option-row:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ed-event-card-primary) 34%, transparent);
  outline-offset: 2px;
}

.ed-event-card__options-actions {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.edx-shared-event-card .ed-event-card__option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 16px;
  color: var(--ed-event-card-text);
  background: color-mix(in srgb, var(--ed-event-card-surface) 88%, var(--ed-event-card-soft));
  box-shadow: none;
  text-align: left;
}

.edx-shared-event-card .ed-event-card__option-row[hidden] {
  display: none !important;
}

.edx-shared-event-card button.ed-event-card__option-row {
  cursor: pointer;
}

.edx-shared-event-card button.ed-event-card__option-row:hover {
  border-color: color-mix(in srgb, var(--ed-event-card-primary) 38%, var(--ed-event-card-line));
  background: var(--ed-event-card-soft);
}

.edx-shared-event-card .ed-event-card__option-row strong,
.edx-shared-event-card .ed-event-card__option-row small {
  display: block;
}

.edx-shared-event-card .ed-event-card__option-row strong {
  color: var(--ed-event-card-text);
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.15;
}

.edx-shared-event-card .ed-event-card__option-row small {
  margin-top: 3px;
  color: var(--ed-event-card-muted);
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.3;
}

.edx-shared-event-card .ed-event-card__option-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-primary-soft);
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
}

.edx-shared-event-card .ed-event-card__option-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ed-event-card-primary);
}

@media (max-width: 360px) {
  .ed-event-card__options {
    padding: 14px;
  }

  .edx-shared-event-card .ed-event-card__option-row {
    padding: 10px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-event-card__options {
    transition: none !important;
  }
}

/* Recurring attendance and Upcoming Dates share one primary action. */
.ed-event-card__participation .ed-event-card__date-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ed-event-card-on-primary);
  background: var(--ed-event-card-primary);
  box-shadow: none;
  font: inherit;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.ed-event-card__participation .ed-event-card__date-select:hover,
.ed-event-card__participation .ed-event-card__date-select[aria-expanded="true"] {
  color: var(--ed-event-card-on-primary);
  background: var(--ed-event-card-primary-strong);
}

.ed-event-card__date-select-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.ed-event-card__date-select-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ed-event-card__date-select:focus-visible,
.ed-event-card__upcoming-head button:focus-visible,
.ed-event-card__occurrence:focus-visible,
.ed-event-card__series-going:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ed-event-card-primary) 34%, transparent);
  outline-offset: 2px;
}

.edx-shared-event-card.is-showing-upcoming .ed-event-card__stage {
  height: var(--ed-event-card-upcoming-height, var(--ed-event-card-summary-height, auto));
}

.edx-shared-event-card.is-showing-upcoming .ed-event-card__summary {
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
  filter: none;
  transition:
    opacity .16s ease,
    transform .2s ease;
}

.ed-event-card__upcoming {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: grid;
  grid-template-rows: auto auto minmax(0, auto);
  align-content: start;
  gap: 13px;
  min-width: 0;
  min-height: 100%;
  padding: 18px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(5px);
  color: var(--ed-event-card-text);
  background: var(--ed-event-card-surface);
  transition:
    opacity .14s ease,
    transform .18s ease,
    visibility 0s linear .22s;
}

.edx-shared-event-card.is-showing-upcoming .ed-event-card__upcoming {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .22s ease .16s,
    transform .24s ease .14s,
    visibility 0s linear 0s;
}

.ed-event-card__upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-event-card__upcoming-head > div {
  display: grid;
  gap: 3px;
}

.ed-event-card__upcoming-head span {
  color: var(--ed-event-card-teal);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ed-event-card__upcoming-head strong {
  color: var(--ed-event-card-text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}

.ed-event-card__upcoming-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-surface);
  box-shadow: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ed-event-card__occurrence-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: min(52vh, 450px);
  padding-right: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ed-event-card__occurrence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 15px;
  color: var(--ed-event-card-text);
  background: color-mix(in srgb, var(--ed-event-card-surface) 88%, var(--ed-event-card-soft));
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ed-event-card__occurrence:hover,
.ed-event-card__occurrence[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--ed-event-card-teal) 46%, var(--ed-event-card-line));
  background: color-mix(in srgb, var(--ed-event-card-teal-soft) 62%, var(--ed-event-card-surface));
}

.ed-event-card__occurrence > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ed-event-card__occurrence strong,
.ed-event-card__occurrence small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-event-card__occurrence strong {
  font-size: .84rem;
  font-weight: 950;
}

.ed-event-card__occurrence small {
  color: var(--ed-event-card-muted);
  font-size: .7rem;
  font-weight: 760;
}

.ed-event-card__occurrence em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-primary-soft);
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
}

.ed-event-card__occurrence[aria-pressed="true"] em {
  color: var(--ed-event-card-on-primary);
  background: var(--ed-event-card-primary);
}

.ed-event-card__series-going {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid var(--ed-event-card-primary);
  border-radius: 15px;
  color: var(--ed-event-card-on-primary);
  background: var(--ed-event-card-primary);
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ed-event-card__series-going[aria-pressed="true"] {
  border-color: var(--ed-event-card-line);
  color: var(--ed-event-card-text);
  background: var(--ed-event-card-soft);
}

.ed-event-card__series-going span {
  font-size: .82rem;
  font-weight: 950;
}

.ed-event-card__series-going small {
  color: inherit;
  opacity: .78;
  font-size: .68rem;
  font-weight: 730;
}

.ed-event-card__occurrence:disabled,
.ed-event-card__series-going:disabled {
  opacity: .58;
  cursor: wait;
}

@media (max-width: 360px) {
  .ed-event-card__upcoming {
    padding: 14px;
  }

  .ed-event-card__occurrence {
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-event-card__upcoming {
    transition: none !important;
  }
}

/* Attendee list is another reusable card face, opened from the avatar row. */
.edx-shared-event-card.is-showing-attendees .ed-event-card__stage {
  height: var(--ed-event-card-attendees-height, var(--ed-event-card-summary-height, auto));
}

.edx-shared-event-card.is-showing-attendees .ed-event-card__summary {
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
  filter: none;
  transition:
    opacity .16s ease,
    transform .2s ease;
}

.ed-event-card__attendees {
  position: absolute;
  inset: 0 0 auto;
  z-index: 7;
  display: grid;
  grid-template-rows: auto auto minmax(0, auto);
  align-content: start;
  gap: 13px;
  min-width: 0;
  min-height: 100%;
  padding: 18px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(5px);
  color: var(--ed-event-card-text);
  background: var(--ed-event-card-surface);
  transition:
    opacity .14s ease,
    transform .18s ease,
    visibility 0s linear .22s;
}

.edx-shared-event-card.is-showing-attendees .ed-event-card__attendees {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .22s ease .16s,
    transform .24s ease .14s,
    visibility 0s linear 0s;
}

.ed-event-card__attendees-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ed-event-card__attendees-head > div {
  display: grid;
  gap: 3px;
}

.ed-event-card__attendees-head span {
  color: var(--ed-event-card-teal);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ed-event-card__attendees-head strong {
  color: var(--ed-event-card-text);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}

.ed-event-card__attendees-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 999px;
  color: var(--ed-event-card-primary-strong);
  background: var(--ed-event-card-surface);
  box-shadow: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ed-event-card__attendees-head button:hover {
  border-color: color-mix(in srgb, var(--ed-event-card-primary) 42%, var(--ed-event-card-line));
  background: var(--ed-event-card-soft);
}

.ed-event-card__attendees-head button:focus-visible,
.ed-event-card__attendee-list .edm-event-going-chip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ed-event-card-primary) 34%, transparent);
  outline-offset: 2px;
}

.edx-event p.ed-event-card__attendees-context,
.ed-event-card__attendees-context {
  margin: 0;
  color: var(--ed-event-card-muted);
  font-size: .76rem;
  font-weight: 780;
  line-height: 1.35;
}

.ed-event-card__attendee-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: min(58vh, 520px);
  padding-right: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ed-event-card__attendee-list .edm-event-going-panel-title {
  min-height: 28px;
  color: var(--ed-event-card-text) !important;
}

.ed-event-card__attendee-list .edm-event-going-panel-title .edm-event-going-avatar-stack {
  display: none;
}

.ed-event-card__attendee-list .edm-event-going-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.edx-shared-event-card .ed-event-card__attendee-list .edm-event-going-chip {
  width: 100%;
  min-height: 50px;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--ed-event-card-line);
  border-radius: 15px;
  color: var(--ed-event-card-text) !important;
  background: color-mix(in srgb, var(--ed-event-card-surface) 86%, var(--ed-event-card-soft));
}

.edx-shared-event-card .ed-event-card__attendee-list a.edm-event-going-chip:hover {
  border-color: color-mix(in srgb, var(--ed-event-card-teal) 44%, var(--ed-event-card-line));
  background: var(--ed-event-card-teal-soft);
}

.ed-event-card__attendee-list .edm-event-going-chip strong {
  color: var(--ed-event-card-text);
}

.ed-event-card__attendee-list .edm-event-going-chip small,
.ed-event-card__attendee-list .edm-event-going-empty {
  color: var(--ed-event-card-muted) !important;
}

@media (max-width: 360px) {
  .ed-event-card__attendees {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-event-card__attendees {
    transition: none !important;
  }
}

/* Explore search and filter-sheet authority.
   Keep this at the end of the stylesheet: the file still contains historical
   responsive skins used by cached shells, and these rules define the current
   feed controls without changing their behaviour. */
.edx-explore .edx-quick-search input[type="search"],
.edx-explore .edx-map-quick-search input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
}

.edx-explore .edx-quick-search input[type="search"]::-webkit-search-decoration,
.edx-explore .edx-quick-search input[type="search"]::-webkit-search-cancel-button,
.edx-explore .edx-quick-search input[type="search"]::-webkit-search-results-button,
.edx-explore .edx-quick-search input[type="search"]::-webkit-search-results-decoration,
.edx-explore .edx-map-quick-search input[type="search"]::-webkit-search-decoration,
.edx-explore .edx-map-quick-search input[type="search"]::-webkit-search-cancel-button,
.edx-explore .edx-map-quick-search input[type="search"]::-webkit-search-results-button,
.edx-explore .edx-map-quick-search input[type="search"]::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
}

.edx-explore button[data-edx-quick-search-submit] {
  background-image: none !important;
}

.edx-explore button[data-edx-quick-search-submit]::before,
.edx-explore button[data-edx-quick-search-submit]::after {
  content: none !important;
  display: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.edx-explore .edx-quick-search button[data-edx-quick-search-submit] svg,
.edx-explore .edx-map-quick-search button[data-edx-quick-search-submit] svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  fill: none !important;
  stroke: currentColor !important;
}

.edx-explore button[data-edx-quick-search-submit] svg ~ svg {
  display: none !important;
}

@media (max-width: 720px) {
  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row,
  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px 104px !important;
    grid-template-rows: 46px 46px !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    min-height: 120px !important;
    height: auto !important;
    padding: 10px !important;
  }

  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search,
  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > .edx-quick-search,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > .edx-quick-search {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search label,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-quick-search input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
  }

  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filter-toggle,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-filter-toggle,
  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > .edx-filter-toggle,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row.is-mobile-search-active > .edx-filter-toggle {
    display: inline-grid !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border-width: 1px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  body.edx-explore-page .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-map-toggle,
  .edx-explore.edx-explore--feed-only:not([data-view="map"]) .edx-search-card > .edx-control-row > .edx-map-toggle {
    display: inline-flex !important;
    grid-column: 3 !important;
    grid-row: 2 !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
  }
}

@media (max-width: 820px) {
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:hover,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:focus,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:focus-visible,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:active,
  .edx-explore > .edx-filters .edx-filter-sheet-handle,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:hover,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:focus,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:focus-visible,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:active {
    position: absolute !important;
    top: 2px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    inset: 2px auto auto 50% !important;
    z-index: 3 !important;
    display: block !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:hover::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:focus::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:focus-visible::before,
  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle:active::before,
  .edx-explore > .edx-filters .edx-filter-sheet-handle::before,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:hover::before,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:focus::before,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:focus-visible::before,
  .edx-explore > .edx-filters .edx-filter-sheet-handle:active::before {
    content: "" !important;
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    display: block !important;
    width: 56px !important;
    height: 6px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(92, 82, 111, 0.46) !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
  }

  body.edx-explore-page .edx-explore > .edx-filters .edx-filter-sheet-handle::after,
  .edx-explore > .edx-filters .edx-filter-sheet-handle::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    outline: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
}
/* Website-owned dance preferences entry point. The full My Flavour builder
   remains the single source of truth for exact and wider style matching. */
.edx-my-styles {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .1), rgba(236, 72, 153, .08));
  color: #6d28d9;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.edx-my-styles:hover,
.edx-my-styles:focus-visible {
  border-color: rgba(124, 58, 237, .42);
  background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(236, 72, 153, .13));
  color: #5b21b6;
}

html[data-ed-theme="dark"] .edx-my-styles,
html.dark .edx-my-styles {
  border-color: rgba(199, 173, 255, .28);
  background: rgba(158, 116, 255, .15);
  color: #e9ddff;
}

@media (max-width: 820px) {
  .edx-my-styles {
    order: 5;
    width: 100%;
  }
}
