/* ── Overlay ───────────────────────────────────────────────────────── */
#hotelSearchLoader, #packageSearchLoader , #tourSearchLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
#hotelSearchLoader.hsl-visible, #packageSearchLoader.hsl-visible , #tourSearchLoader.hsl-visible {
  opacity: 1;
  pointer-events: all;
}

.hsl-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(4,14,35,.82) 0%, rgba(12,32,60,.86) 100%);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
}

/* ── Card ──────────────────────────────────────────────────────────── */
.hsl-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 400px;
  box-shadow:
    0 40px 100px rgba(0,0,0,.32),
    0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(28px) scale(.96);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
#hotelSearchLoader.hsl-visible .hsl-card, #packageSearchLoader.hsl-visible .hsl-card , #tourSearchLoader.hsl-visible .hsl-card{
  transform: translateY(0) scale(1);
}

/* shimmer top stripe */
.hsl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #8b5cf6 40%, var(--brand) 80%, #8b5cf6 100%);
  background-size: 300% 100%;
  animation: hslShimmer 2.4s linear infinite;
}
@keyframes hslShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* ── Logo ──────────────────────────────────────────────────────────── */
.hsl-logo-wrap {
  margin-bottom: 20px;
}
.hsl-logo {
  height: 64px;
  width: auto;
  display: block;
}

/* ── Divider ───────────────────────────────────────────────────────── */
.hsl-divider {
  width: 100%;
  height: 1px;
  background: #f1f2f4;
  margin-bottom: 20px;
}

/* ── Search chips ──────────────────────────────────────────────────── */
.hsl-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}
.hsl-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fb;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.hsl-chip span {
  font-size: 12px;
  font-weight: 600;
  color: #1a202c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.hsl-ic {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* ── Icon ring ─────────────────────────────────────────────────────── */
.hsl-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3effe 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}
.hsl-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--brand);
  border-right-color: #8b5cf6;
  animation: hslSpin 1.3s linear infinite;
}
@keyframes hslSpin {
  to { transform: rotate(360deg); }
}
.hsl-icon-wrap svg {
  width: 30px;
  height: 30px;
}

/* ── Text ──────────────────────────────────────────────────────────── */
.hsl-headline {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -.015em;
  text-align: center;
}
.hsl-subtext {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  min-height: 18px;
}
.hsl-subtext span {
  display: block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.hsl-subtext span.hsl-active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Step dots ─────────────────────────────────────────────────────── */
.hsl-steps {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 18px;
}
.hsl-step {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: background .3s, transform .3s, width .3s;
}
.hsl-step.hsl-step-active {
  background: var(--brand);
  transform: scale(1.4);
  width: 20px;
  border-radius: 99px;
}
.hsl-step.hsl-step-done {
  background: #8b5cf6;
}

/* ── Progress track ────────────────────────────────────────────────── */
.hsl-track {
  width: 100%;
  height: 4px;
  background: #f0f1f3;
  border-radius: 99px;
  overflow: hidden;
}
.hsl-track-fill {
  height: 100%;
  width: 42%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #8b5cf6, var(--brand));
  background-size: 200% 100%;
  animation: hslSlide 1.9s ease-in-out infinite, hslShimmer 1.5s linear infinite;
}
@keyframes hslSlide {
  0%   { margin-left: -42%; }
  100% { margin-left: 100%; }
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 460px) {
  .hsl-card { width: calc(100vw - 32px); padding: 32px 22px 36px; }
  .hsl-chips { grid-template-columns: 1fr; }
}