/* ═══════════════════════════════════════════════
   INSIGHT VACATIONS — PRELOADER
   File: preloader.css
═══════════════════════════════════════════════ */

#iv-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  /* Transparent frosted glass */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);

  transition: opacity 0.5s ease;
}

#iv-preloader.iv-exit {
  opacity: 0;
  pointer-events: none;
}

/* ── LOGO ── */
.iv-logo-wrap {
  animation: ivPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.iv-logo-wrap img {
  width: 110px;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(255,255,255,0.25));
}

/* ── BRAND NAME ── */
.iv-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: ivFadeUp 0.5s ease 0.3s both;
}

.iv-brand-main {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.iv-brand-sub {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── THIN LOADER LINE ── */
.iv-line-wrap {
  width: 80px;
  height: 1.5px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  animation: ivFadeUp 0.4s ease 0.5s both;
}

.iv-line-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  animation: ivLineSweep 1.5s ease forwards 0.5s;
}

/* ── KEYFRAMES ── */
@keyframes ivPopIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ivFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ivLineSweep {
  to { width: 100%; }
}