/* ============================================================
   DreamzYatra – Hero Banner Slider  (banner.css)
   Lightweight: no library, pure CSS + minimal JS
   ============================================================ */

/* ── Banner wrapper ──────────────────────────────────────── */
.dz-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1628;
  /* Height: 60vh mobile → 90vh desktop */
  height: 60vh;
  min-height: 380px;
  max-height: 700px;
}
@media (min-width: 768px)  { .dz-banner { height: 75vh; } }
@media (min-width: 1024px) { .dz-banner { height: 90vh; max-height: 860px; } }

/* ── Slides track ────────────────────────────────────────── */
.dz-banner__track {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* ── Single slide ────────────────────────────────────────── */
.dz-banner__slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Media (image or video) fills slide ──────────────────── */
.dz-banner__img,
.dz-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Ken Burns subtle zoom on active slide */
  transform: scale(1.05);
  transition: transform 7s ease;
}
.dz-banner__slide.is-active .dz-banner__img,
.dz-banner__slide.is-active .dz-banner__video {
  transform: scale(1);
}

/* ── Gradient overlay ────────────────────────────────────── */
.dz-banner__overlay {
  position: absolute;
  inset: 0;
  /* Stronger at bottom for text readability */
  background: linear-gradient(
    to right,
    rgba(10,22,40,0.72) 0%,
    rgba(10,22,40,0.40) 55%,
    rgba(10,22,40,0.10) 100%
  );
  z-index: 1;
}
/* Extra bottom gradient on mobile */
@media (max-width: 767px) {
  .dz-banner__overlay {
    background: linear-gradient(
      to top,
      rgba(10,22,40,0.85) 0%,
      rgba(10,22,40,0.45) 50%,
      rgba(10,22,40,0.15) 100%
    );
  }
}

/* ── Slide content ───────────────────────────────────────── */
.dz-banner__content {
  position: absolute;
  z-index: 2;
  bottom: 6rem;
  left: 0; right: 0;
  padding: 0 1.25rem;
  /* Hidden by default, animated in on active */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.dz-banner__slide.is-active .dz-banner__content {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 768px) {
  .dz-banner__content {
    bottom: 5rem;
    padding: 0 3rem;
    max-width: 620px;
  }
}
@media (min-width: 1024px) {
  .dz-banner__content {
    bottom: 6rem;
    left: calc((100vw - 1280px) / 2 + 2.5rem);
    padding: 0;
    max-width: 580px;
  }
}

.dz-banner__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dz-gold, #f5a623);
  font-style: italic;
  margin-bottom: 0.625rem;
}
.dz-banner__title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.875rem, 6vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.dz-banner__title span { color: var(--dz-gold, #f5a623); }
.dz-banner__desc {
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.375rem;
  max-width: 420px;
}
.dz-banner__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Prev / Next arrows ──────────────────────────────────── */
.dz-banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  /* Hidden on mobile, shown md+ */
  display: none;
}
.dz-banner__arrow:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.08);
}
.dz-banner__arrow--prev { left: 1.25rem; }
.dz-banner__arrow--next { right: 1.25rem; }
@media (min-width: 768px) { .dz-banner__arrow { display: flex; } }

/* ── Dot indicators ──────────────────────────────────────── */
.dz-banner__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.dz-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.3s, border-radius 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.dz-banner__dot.is-active {
  background: var(--dz-gold, #f5a623);
  width: 24px;
  border-radius: 4px;
}

/* ── Progress bar (auto-play timer) ─────────────────────── */
.dz-banner__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--dz-gold, #f5a623);
  z-index: 10;
  width: 0%;
  transition: width linear;
}

/* ── Video mute toggle ───────────────────────────────────── */
.dz-banner__mute {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: none; /* shown only when video slide is active */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.dz-banner__mute:hover { background: rgba(0,0,0,0.6); }
.dz-banner__mute.is-visible { display: flex; }
