/* TRAVELRAYZ — Critical loader styles (inlined or linked before main.css to prevent flash) */
html.is-loading,
html.is-loading body {
  overflow: hidden !important;
  height: 100%;
}

html.is-loading .site-shell {
  overflow: hidden !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 42%, rgba(56, 189, 248, 0.28), transparent 55%), #0b132b;
}

.page-loader-inner {
  position: relative;
  width: min(38vw, 148px);
  height: min(38vw, 148px);
  display: grid;
  place-items: center;
}

.page-loader-ring {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: rgba(56, 189, 248, 0.35);
  border-bottom-color: transparent;
  border-left-color: rgba(245, 158, 11, 0.2);
  animation: loaderSpin 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
}

.page-loader-ring::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(245, 130, 32, 0.55);
  border-left-color: rgba(245, 130, 32, 0.25);
  animation: loaderSpin 1.8s linear infinite reverse;
}

.page-loader-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 50%;
  animation: loaderPulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(22, 166, 201, 0.35));
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 14px rgba(22, 166, 201, 0.25));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 28px rgba(22, 166, 201, 0.55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-ring,
  .page-loader-ring::after,
  .page-loader-logo {
    animation: none;
  }
}
