/* Apex Spotz Discovery Experience 1.0.0-mvp.2
 * Presentation only. Consumes Apex Design System variables where available.
 * mvp.2: fullscreen-map stacking fix, header-safe sticky map, single-scroll filter
 * drawer with apply footer, hidden-but-sized mobile map (Map button owns it).
 */

body.apex-discovery-experience {
  --ad-primary: var(--apex-color-primary, #2DD4BF);
  --ad-ink: var(--apex-ink, #0B0D0E);
  --ad-bg: var(--apex-bg, #FFFFFF);
  --ad-surface: var(--apex-surface, #F6F7F7);
  --ad-raised: var(--apex-surface-raised, #FFFFFF);
  --ad-muted: var(--apex-text-muted, #6B7176);
  --ad-text: var(--apex-text, #111315);
  --ad-border: var(--apex-border, #E5E8E9);
  --ad-focus: var(--apex-focus, #0F766E);
  --ad-heading: var(--apex-font-heading, "Archivo", "Inter", system-ui, sans-serif);
  --ad-body: var(--apex-font-body, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  max-height: none !important;
  overflow: auto !important;
  background: var(--ad-bg);
  color: var(--ad-text);
}

body.apex-discovery-experience .full-page-container.full-page-jobs,
body.apex-discovery-experience .full-page-content-container {
  height: auto !important;
  max-height: none !important;
}

body.apex-discovery-experience .full-page-content-container {
  overflow: visible !important;
  box-shadow: none !important;
}

.apex-discovery {
  font-family: var(--ad-body);
  background: var(--ad-bg);
  color: var(--ad-text);
}

.apex-discovery__layout {
  position: relative;
  align-items: flex-start;
  min-height: calc(100vh - var(--apex-sticky-top, 0px));
  overflow: visible !important;
}

.apex-discovery__results-pane {
  flex: 0 0 60% !important;
  min-width: 0;
  background: var(--ad-bg);
  z-index: 2;
}

.apex-discovery__map-pane {
  /*
   * Sticks flush to the top of the viewport (or just under a genuinely fixed
   * header - discovery.js sets --apex-sticky-top). Its natural position is
   * below the site header, so with a normal (non-fixed) header the map simply
   * slides into a full-height position as the page scrolls. No JS resizing of
   * the frozen map is needed.
   */
  position: sticky;
  top: var(--apex-sticky-top, 0px);
  flex: 0 0 40% !important;
  align-self: flex-start;
  height: calc(100vh - var(--apex-sticky-top, 0px));
  height: calc(100dvh - var(--apex-sticky-top, 0px));
  min-height: 520px;
  background: var(--ad-surface);
  border-left: 1px solid var(--ad-border);
}

/* Never fight the frozen map plugin's own fullscreen host (.apex-map-expanded-host). */
.apex-discovery__map-pane #map-container:not(.apex-map-expanded-host),
.apex-discovery__map-pane #map:not(.apex-map-expanded-canvas) {
  width: 100%;
  height: 100% !important;
  margin: 0 !important;
}

/*
 * position: sticky creates a stacking context, which trapped the frozen map's
 * fullscreen host underneath the results pane (z-index: 2) and the site header.
 * While the map is fullscreen, lift the whole pane above everything.
 */
body.apex-map-fullscreen-active .apex-discovery__map-pane {
  z-index: 2147479999 !important;
}

.apex-discovery__header {
  padding: 42px clamp(24px, 4vw, 56px) 18px;
  background: var(--ad-bg);
  border-bottom: 1px solid var(--ad-border);
}

.apex-discovery__heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.apex-discovery__eyebrow {
  display: block;
  margin: 0 0 9px;
  color: var(--ad-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.apex-discovery__header h1 {
  margin: 0;
  color: var(--ad-text);
  font-family: var(--ad-heading);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.apex-discovery__intro {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--ad-muted);
  font-size: 16px;
  line-height: 1.55;
}

.apex-discovery__sports {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  overflow: hidden;
}

.apex-discovery__sports .category-slider {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  gap: 8px;
}

.apex-discovery__sports .nav-button {
  position: static !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ad-border);
  border-radius: 999px;
  background: var(--ad-raised);
  color: var(--ad-text);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

/* Existing Listeo category slider items become quiet sports chips. */
.apex-discovery__sports .category-item,
.apex-discovery__sports .category-slider-item,
.apex-discovery__sports a {
  border-radius: 999px !important;
}

.apex-discovery__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.apex-discovery__summary {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.apex-discovery__summary strong {
  color: var(--ad-text);
  font-size: 15px;
  font-weight: 700;
}

.apex-discovery__summary span {
  color: var(--ad-muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apex-discovery__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.apex-discovery-experience .apex-discovery__filter-trigger,
.apex-discovery__map-trigger {
  position: static !important;
  left: auto !important;
  top: auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 44px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px !important;
  border: 1px solid var(--ad-border) !important;
  border-radius: 999px !important;
  background: var(--ad-raised) !important;
  box-shadow: none !important;
  color: var(--ad-text) !important;
  font-family: var(--ad-body);
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1 !important;
}

body.apex-discovery-experience .apex-discovery__filter-trigger span {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  line-height: 1;
}

body.apex-discovery-experience .apex-discovery__filter-trigger i,
body.apex-discovery-experience .apex-discovery__filter-trigger .enable-filters-button-icon {
  display: none !important;
}

.apex-discovery__filter-icon { font-size: 16px; }
.apex-discovery__map-trigger { display: none; }

.apex-discovery__sort .select2-container,
.apex-discovery__sort select {
  min-width: 150px;
}

.apex-discovery__sort .select2-selection,
.apex-discovery__sort select {
  height: 44px !important;
  border: 1px solid var(--ad-border) !important;
  border-radius: 999px !important;
  background: var(--ad-raised) !important;
  color: var(--ad-text) !important;
}

.apex-discovery__listing-section {
  padding: 24px clamp(24px, 4vw, 56px) 56px !important;
}

body.apex-discovery-experience #listeo-listings-container.apex-discovery__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.apex-discovery-experience #listeo-listings-container > .loader-ajax-container,
body.apex-discovery-experience #listeo-listings-container > .clearfix {
  grid-column: 1 / -1;
}

.apex-spot-card {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ad-text);
}

.apex-spot-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--ad-surface);
}

.apex-spot-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.apex-spot-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.apex-spot-card:hover .apex-spot-card__media img,
.apex-spot-card:focus-within .apex-spot-card__media img {
  transform: scale(1.025);
}

.apex-spot-card__media-top {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.apex-spot-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.apex-spot-card__badge,
.apex-spot-card__sport {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #0B0D0E;
  box-shadow: 0 2px 10px rgba(11,13,14,.08);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.apex-spot-card__badge--sponsored {
  background: #0B0D0E;
  color: #FFFFFF;
}

.apex-spot-card__sport { color: #0F766E; }

.apex-spot-card__favorite {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #0B0D0E;
  box-shadow: 0 4px 16px rgba(11,13,14,.11);
  pointer-events: auto;
}

.apex-spot-card__favorite span {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 17px;
  line-height: 1;
  color: inherit !important;
}

.apex-spot-card__body {
  display: block;
  padding: 14px 2px 2px;
  color: inherit;
  text-decoration: none !important;
}

.apex-spot-card__title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.apex-spot-card__title-row h2 {
  min-width: 0;
  margin: 0;
  color: var(--ad-text);
  font-family: var(--ad-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.018em;
}

.apex-spot-card__verified {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ad-primary);
  color: var(--ad-ink);
  font-size: 11px;
  font-weight: 900;
}

.apex-spot-card__location,
.apex-spot-card__facts {
  margin: 5px 0 0;
  color: var(--ad-muted);
  font-size: 13px;
  line-height: 1.4;
}

.apex-spot-card__facts {
  min-height: 18px;
}

.apex-spot-card__meta {
  min-height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.apex-spot-card__rating,
.apex-spot-card__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ad-text);
  font-size: 13px;
}

.apex-spot-card__rating > span:last-child { color: var(--ad-muted); }
.apex-spot-card__new { color: var(--ad-muted) !important; }
.apex-spot-card__price { margin-left: auto; text-align: right; }
.apex-spot-card__price strong { font-weight: 700; }
.apex-spot-card__price-unit { margin-left: 3px; color: var(--ad-muted); font-size: 12px; font-weight: 500; }
.apex-spot-card__price:empty { display: none; }

.apex-discovery__filters {
  position: fixed !important;
  inset: 0 auto 0 0;
  z-index: 100001;
  display: block;
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: none !important;
  height: 100vh;
  height: 100dvh;
  max-height: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translateX(-104%);
  transition: transform 220ms ease, opacity 160ms ease, visibility 160ms ease;
  /* The aside itself never scrolls; only .apex-discovery__filter-body does. */
  overflow: hidden !important;
  background: var(--ad-raised) !important;
  box-shadow: 24px 0 60px rgba(11,13,14,.20) !important;
}

.apex-discovery__filters.enabled-sidebar {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(0);
}

.apex-discovery__filters-inner {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--ad-raised) !important;
}

.apex-discovery__filter-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px 18px;
  background: var(--ad-raised);
  border-bottom: 1px solid var(--ad-border);
}

.apex-discovery__filter-header h2 {
  margin: 0;
  color: var(--ad-text);
  font-family: var(--ad-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.apex-discovery__filter-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ad-border);
  border-radius: 999px;
  background: var(--ad-bg);
  color: var(--ad-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* The one and only scrolling region inside the drawer. */
.apex-discovery__filter-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  padding: 20px 24px 28px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Neutralise Listeo wrappers that would otherwise create nested scroll areas. */
.apex-discovery__filter-body .sidebar,
.apex-discovery__filter-body .job_filters.in_sidebar,
.apex-discovery__filter-body .listing-widget,
.apex-discovery__filter-body .widget {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: static !important;
  transform: none !important;
  margin-top: 0;
}

.apex-discovery__filter-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--ad-raised);
  border-top: 1px solid var(--ad-border);
}

.apex-discovery__filter-clear {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ad-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.apex-discovery__filter-apply {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ad-primary);
  color: var(--ad-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.apex-discovery__filter-apply:focus-visible,
.apex-discovery__filter-clear:focus-visible,
.apex-discovery__filter-close:focus-visible {
  outline: 3px solid var(--ad-focus);
  outline-offset: 2px;
}

.apex-discovery__scrim {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: block;
  visibility: hidden;
  opacity: 0;
  border: 0;
  background: rgba(11,13,14,.42);
  transition: opacity 160ms ease, visibility 160ms ease;
}

body.apex-filters-open .apex-discovery__scrim {
  visibility: visible;
  opacity: 1;
}

body.apex-filters-open { overflow: hidden !important; }

.apex-discovery__filters .enable-filters-button { display: none !important; }

.apex-discovery__pagination {
  margin: 40px 0 0 !important;
}

.apex-discovery-empty {
  grid-column: 1 / -1;
  max-width: 540px;
  margin: 48px auto;
  padding: 40px 24px;
  text-align: center;
  color: var(--ad-text);
}

.apex-discovery-empty__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ad-primary) 16%, transparent);
  color: var(--ad-text);
  font-size: 26px;
}

.apex-discovery-empty h2 {
  margin: 0;
  font-family: var(--ad-heading);
  font-size: 26px;
  letter-spacing: -.025em;
}

.apex-discovery-empty p {
  max-width: 440px;
  margin: 12px auto 22px;
  color: var(--ad-muted);
  line-height: 1.6;
}

.apex-discovery-empty__clear {
  min-height: 44px;
  border-radius: 999px !important;
}

/* Remove the old archive-only footer/copyright furniture from the product surface. */
body.apex-discovery-experience .copyrights { display: none !important; }

/* The existing frozen map still owns its visual treatment and fullscreen lifecycle. */
body.apex-discovery-experience .apex-map-expand-control { font-family: var(--ad-body); }

@media (max-width: 1360px) {
  .apex-discovery__results-pane { flex-basis: 64% !important; }
  .apex-discovery__map-pane { flex-basis: 36% !important; }
  body.apex-discovery-experience #listeo-listings-container.apex-discovery__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1008px) {
  .apex-discovery__layout {
    display: block !important;
    min-height: 0;
  }

  .apex-discovery__results-pane {
    width: 100%;
    flex: none !important;
  }

  /*
   * Mobile: the inline 120px map strip and Listeo's "Show Map" pill duplicated
   * the toolbar Map button. The pane keeps a real size (so the frozen map
   * initialises correctly) but is invisible and out of flow. Only the frozen
   * fullscreen host is made visible again when the Map button expands it.
   */
  .apex-discovery__map-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* same size Listeo uses for its collapsed mobile map */
    min-height: 0;
    border: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
  }

  .apex-discovery__map-pane #map-container:not(.apex-map-expanded-host) {
    min-height: 0;
  }

  .apex-discovery__map-pane .apex-map-expanded-host,
  .apex-discovery__map-pane .apex-map-expanded-host * {
    visibility: visible;
    pointer-events: auto;
  }

  body.apex-map-fullscreen-active .apex-discovery__map-pane {
    z-index: 2147479999 !important;
  }

  /* Listeo's own mobile map toggle pill is replaced by the Apex toolbar Map button. */
  body.apex-discovery-experience .mobile-map-toggle-btn,
  body.apex-discovery-experience #show-map-button {
    display: none !important;
  }

  .apex-discovery__map-trigger { display: inline-flex; }
  .apex-discovery__sort .select2-container,
  .apex-discovery__sort select { min-width: 132px; }
}

@media (max-width: 720px) {
  .apex-discovery__header {
    padding: 28px 18px 16px;
  }

  .apex-discovery__header h1 {
    font-size: 40px;
  }

  .apex-discovery__intro {
    max-width: 34rem;
    font-size: 15px;
  }

  .apex-discovery__sports { margin-top: 22px; }

  .apex-discovery__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .apex-discovery__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  body.apex-discovery-experience .apex-discovery__filter-trigger,
  .apex-discovery__map-trigger,
  .apex-discovery__sort .select2-container,
  .apex-discovery__sort select {
    width: 100% !important;
    min-width: 0;
  }

  .apex-discovery__listing-section {
    padding: 18px 18px 42px !important;
  }

  body.apex-discovery-experience #listeo-listings-container.apex-discovery__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apex-spot-card__media { border-radius: 16px; }
  .apex-spot-card__title-row h2 { font-size: 18px; }

  .apex-discovery__filters {
    width: 100% !important;
    max-width: 100% !important;
  }

  .apex-discovery__filter-header { padding: 18px 18px 14px; }
  .apex-discovery__filter-body { padding: 16px 18px 24px !important; }
  .apex-discovery__filter-footer { padding-left: 18px; padding-right: 18px; }
  .apex-discovery__filter-apply { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .apex-discovery__filters,
  .apex-discovery__scrim,
  .apex-spot-card__media img {
    transition: none !important;
  }
}


/* ==========================================================
 * LOVABLE DESIGN AUTHORITY — 2026-09-20
 * Visual parity layer for Explore Spots.
 * Keeps Listeo/Apex search, AJAX, map and booking authority intact.
 * ========================================================== */

body.apex-discovery-experience {
  --ad-page: var(--apex-bg, #F7F8F8);
  --ad-card: var(--apex-surface-raised, #FFFFFF);
  --ad-secondary: var(--apex-surface-muted, #F2F4F4);
  --ad-shadow-card: 0 14px 40px rgba(11, 13, 14, .07);
  --ad-shadow-hover: 0 18px 50px rgba(11, 13, 14, .11);
  background: var(--ad-page);
}

.apex-discovery {
  background: var(--ad-page);
}

.apex-discovery__results-pane,
.apex-discovery__header {
  background: var(--ad-page);
}

.apex-discovery__header {
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: 24px;
}

.apex-discovery__eyebrow {
  margin-bottom: 12px;
  color: var(--ad-focus);
  letter-spacing: .09em;
}

.apex-discovery__header h1 {
  max-width: 880px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 800;
}

.apex-discovery__intro {
  max-width: 720px;
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.58;
}

.apex-discovery__searchbar {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  max-width: 980px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 20px;
  background: var(--ad-card);
  box-shadow: var(--ad-shadow-card);
}

.apex-discovery__search-field {
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: 0;
  border-left: 1px solid var(--ad-border);
  background: transparent;
  color: var(--ad-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.apex-discovery__search-field:first-child {
  border-left: 0;
}

.apex-discovery__search-field:hover,
.apex-discovery__search-field:focus-visible {
  background: color-mix(in srgb, var(--ad-primary) 8%, transparent);
}

.apex-discovery__search-field:focus-visible,
.apex-discovery__search-submit:focus-visible {
  outline: 3px solid var(--ad-focus);
  outline-offset: -3px;
}

.apex-discovery__search-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  color: var(--ad-focus);
  font-size: 19px;
}

.apex-discovery__search-field small,
.apex-discovery__search-field strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apex-discovery__search-field small {
  color: var(--ad-muted);
  font-size: 11px;
  font-weight: 700;
}

.apex-discovery__search-field strong {
  margin-top: 2px;
  color: var(--ad-text);
  font-size: 14px;
  font-weight: 700;
}

.apex-discovery__search-submit {
  min-width: 116px;
  min-height: 52px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 10px 8px 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: var(--ad-primary);
  color: var(--ad-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(45, 212, 191, .18);
  transition: transform 150ms ease, opacity 150ms ease;
}

.apex-discovery__search-submit:hover {
  transform: translateY(-1px);
}

.apex-discovery__sports {
  margin-top: 24px;
}

.apex-discovery__sports .category-item,
.apex-discovery__sports .category-slider-item,
.apex-discovery__sports a {
  min-height: 44px !important;
  border: 1px solid var(--ad-border) !important;
  background: var(--ad-card) !important;
  box-shadow: none !important;
  color: var(--ad-text) !important;
  transition: border-color 160ms ease, background-color 160ms ease !important;
}

.apex-discovery__sports .category-item:hover,
.apex-discovery__sports .category-slider-item:hover,
.apex-discovery__sports a:hover,
.apex-discovery__sports .active {
  border-color: var(--ad-primary) !important;
  background: color-mix(in srgb, var(--ad-primary) 10%, var(--ad-card)) !important;
}

.apex-discovery__listing-section {
  background: var(--ad-page);
}

.apex-discovery__map-pane {
  padding: 20px;
  box-sizing: border-box;
  background: var(--ad-page);
}

.apex-discovery__map-pane #map-container:not(.apex-map-expanded-host) {
  height: 100% !important;
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 26px;
  background: var(--ad-surface);
  box-shadow: var(--ad-shadow-card);
}

body.apex-map-fullscreen-active .apex-discovery__map-pane {
  padding: 0;
}

body.apex-map-fullscreen-active .apex-discovery__map-pane #map-container.apex-map-expanded-host {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Lovable SpotCard parity */
.apex-spot-card {
  overflow: hidden;
  border: 1px solid var(--ad-border);
  border-radius: 22px;
  background: var(--ad-card);
  box-shadow: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.apex-spot-card:hover,
.apex-spot-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ad-primary) 55%, var(--ad-border));
  box-shadow: var(--ad-shadow-hover);
}

.apex-spot-card__media {
  border-radius: 0;
}

.apex-spot-card__body {
  display: block;
  padding: 16px 18px 18px;
}

.apex-spot-card__kicker {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.apex-spot-card__sport {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ad-focus);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: none;
}

.apex-spot-card__rating {
  margin-left: auto;
  font-size: 13px;
}

.apex-spot-card__main-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.apex-spot-card__title-row h2 {
  font-size: 18px;
}

.apex-spot-card__location {
  margin-top: 7px;
}

.apex-spot-card__facts {
  margin-top: 12px;
}

.apex-spot-card__price {
  min-height: 22px;
  justify-content: flex-start;
  margin: 18px 0 0;
  text-align: left;
}

.apex-spot-card__price strong {
  font-size: 14px;
}

.apex-spot-card__favorite {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.apex-spot-card__badge {
  min-height: 27px;
  padding: 0 10px;
}

/* Mobile filters behave as a bottom sheet, matching the Lovable authority. */
@media (max-width: 720px) {
  .apex-discovery__header {
    padding: 34px 18px 20px;
  }

  .apex-discovery__header h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .apex-discovery__intro {
    margin-top: 16px;
    font-size: 15px;
  }

  .apex-discovery__searchbar {
    grid-template-columns: 1fr;
    margin-top: 24px;
    border-radius: 18px;
  }

  .apex-discovery__search-field {
    min-height: 62px;
    border-left: 0;
    border-top: 1px solid var(--ad-border);
  }

  .apex-discovery__search-field:first-child {
    border-top: 0;
  }

  .apex-discovery__search-submit {
    width: calc(100% - 16px);
    min-height: 50px;
    margin: 8px;
  }

  .apex-discovery__filters {
    inset: auto 0 0 !important;
    width: 100% !important;
    height: min(88dvh, 780px);
    border-radius: 26px 26px 0 0;
    transform: translateY(104%);
    box-shadow: 0 -24px 60px rgba(11, 13, 14, .22) !important;
  }

  .apex-discovery__filters.enabled-sidebar {
    transform: translateY(0);
  }

  .apex-discovery__filter-header {
    border-radius: 26px 26px 0 0;
  }

  .apex-spot-card {
    border-radius: 20px;
  }

  .apex-spot-card__media {
    aspect-ratio: 4 / 3;
  }

  .apex-spot-card__body {
    padding: 15px 16px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apex-discovery__search-submit,
  .apex-spot-card {
    transition: none !important;
  }
}
