/* Search, clustering, and living preview: one calm Explore discovery system. */
html body .app-shell .map-stage.map-focus .pin-search-results {
  max-height: min(52vh, 430px) !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(186, 239, 226, 0.35) transparent !important;
}

html body .app-shell .map-stage.map-focus .pin-search-result {
  min-height: 56px !important;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease !important;
}

html body .app-shell .map-stage.map-focus .pin-search-result:hover,
html body .app-shell .map-stage.map-focus .pin-search-result:focus-visible,
html body .app-shell .map-stage.map-focus .pin-search-result.is-search-active {
  border-color: rgba(126, 238, 210, 0.42) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  transform: translateX(2px) !important;
}

html body .app-shell .map-stage.map-focus .saved-memory-results-label {
  color: #d8fff4 !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster {
  width: 88px !important;
  min-width: 88px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 999px !important;
  box-shadow:
    0 8px 18px rgba(4, 42, 53, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker) {
  width: 88px !important;
  min-width: 88px !important;
  height: 34px !important;
  min-height: 34px !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  font-size: 0.82rem !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker small,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  font-size: 0.61rem !important;
  font-weight: 780 !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.center-memory-preview {
  cursor: pointer !important;
  box-shadow:
    0 16px 38px rgba(3, 29, 41, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-peek-card.center-memory-preview,
html body .app-shell .map-stage.map-focus.map-zooming .memory-peek-card.center-memory-preview {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.map-focus .pin-search-results {
    max-height: min(50vh, 390px) !important;
  }

  html body .app-shell .map-stage.map-focus .memory-cluster-marker,
  html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster {
    width: 82px !important;
    min-width: 82px !important;
  }

  html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker) {
    width: 82px !important;
    min-width: 82px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .pin-search-result {
    transition: none !important;
  }
}
