/* Lumo Events V32 — viewport-centered loader for ALL Discover AJAX requests.
   Keep the existing PHP/AJAX request and pagination behavior unchanged. */

/* V19 placed a tiny pseudo spinner at top-right of the results area.
   Disable it so there is only ONE loading indicator. */
.lumo-catalog.dc-loading .dc-results::before {
  content: none !important;
  display: none !important;
}

/* Mounted directly under body, outside the dimmed results and header.
   Fixed centering works regardless of scroll position or results length. */
.dc-ajax-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(4, 23, 41, 0.12);
  pointer-events: none;
}
.dc-ajax-loading-overlay[hidden] { display: none !important; }
.dc-ajax-loading-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 205px;
  min-height: 74px;
  padding: 16px 22px;
  box-sizing: border-box;
  border: 1px solid #dce9ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(7, 28, 49, 0.18);
  color: #0a233d;
  font: 800 13px/1.4 var(--lumo-font-family);
  white-space: nowrap;
}
.dc-ajax-loading-spinner {
  width: 29px;
  height: 29px;
  flex: none;
  display: inline-block;
  border: 3px solid #d0eced;
  border-top-color: #07888d;
  border-right-color: #07888d;
  border-radius: 50%;
  animation: dc-centered-spin 0.75s linear infinite;
}
@keyframes dc-centered-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dc-ajax-loading-spinner { animation-duration: 1.7s; }
}
@media (max-width: 480px) {
  .dc-ajax-loading-card { min-width: 184px; min-height: 66px; padding: 13px 16px; font-size: 12px; }
  .dc-ajax-loading-spinner { width: 25px; height: 25px; }
}
