/* =============================================================================
   Global navigation / booking loader.

   Live TBO calls are genuinely slow — a flight search or a Book+Ticket round
   trip can run 15-30s — so a click can look like nothing happened. This gives
   every slow transition a visible, branded "we're working on it" state.

   Deliberately NOT shown while the Razorpay modal is open: it renders in its
   own overlay and covering it would trap the traveller mid-payment.
   ============================================================================= */

.ppl-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000; /* above sticky bars and modals, below Razorpay's own layer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 20, 39, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.ppl-overlay.is-on {
  opacity: 1;
  visibility: visible;
}

.ppl-card {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 30px 26px 26px;
  text-align: center;
  transform: translateY(6px);
  transition: transform 0.18s ease;
}

.ppl-overlay.is-on .ppl-card {
  transform: translateY(0);
}

/* ---- The mark: a plane tracing a circular route ---- */
.ppl-mark {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
}

.ppl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #e7ebf3;
  border-top-color: var(--brand-gold, #a9791a);
  animation: ppl-spin 0.9s linear infinite;
}

.ppl-mark .icon,
.ppl-mark svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  color: var(--brand-navy, #0b1f3a);
}

.ppl-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-navy, #0b1f3a);
  margin: 0 0 6px;
}

.ppl-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

/* Progress track — indeterminate, because we cannot know how long TBO will
   take. It signals "still working" rather than promising a completion point. */
.ppl-track {
  position: relative;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}

.ppl-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-gold, #a9791a), var(--brand-gold-bright, #e6c565));
  animation: ppl-slide 1.15s ease-in-out infinite;
}

/* Only surfaces if a step is taking unusually long, so the traveller knows the
   page is still alive rather than assuming it has hung. */
.ppl-slow {
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
}

@keyframes ppl-spin {
  to { transform: rotate(360deg); }
}

@keyframes ppl-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* A booking in flight must not look cancellable — no backdrop click affordance. */
.ppl-overlay.is-critical {
  cursor: progress;
}

@media (max-width: 767.98px) {
  .ppl-card {
    max-width: 300px;
    padding: 26px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppl-overlay,
  .ppl-card {
    transition: none;
  }

  .ppl-ring {
    animation-duration: 2.4s;
  }

  .ppl-track span {
    animation: none;
    left: 0;
    width: 100%;
    opacity: 0.55;
  }
}
