/* ── HOMEPAGE CAMPAIGN SLIDESHOW ─────────────────────────────────────────
   Replaces the single Explore Destinations banner. Slides are stacked and
   cross-fade; the active image slowly zooms (Ken Burns) for the length of the
   interval. Sizes are in px because the site root font is 10px. */

.cs-slider {
  --cs-interval: 6500ms;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: 440px;
  border-radius: var(--r-xl, 28px);
  overflow: hidden;
  isolation: isolate;
  background: #1a1b13;
  box-shadow: 0 16px 48px rgba(26, 27, 19, 0.14);
  font-family: 'Montserrat', sans-serif;
  transition: box-shadow 0.3s ease;
}
.cs-slider:hover { box-shadow: 0 24px 64px rgba(26, 27, 19, 0.22); }

.cs-track { position: absolute; inset: 0; }

.cs-slide {
  position: absolute; inset: 0;
  display: block;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.9s;
  z-index: 1;
}
.cs-slide:hover, .cs-slide:focus { text-decoration: none; color: #fff; }
.cs-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
  z-index: 2;
}
.cs-slide:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: inherit; }

.cs-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transform-origin: 70% 50%;
  will-change: transform;
}
.cs-slide.is-active .cs-img {
  animation: cs-kenburns calc(var(--cs-interval) + 1500ms) ease-out forwards;
}
@keyframes cs-kenburns { from { transform: scale(1.0); } to { transform: scale(1.07); } }

.cs-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10, 12, 8, 0.78) 0%, rgba(10, 12, 8, 0.5) 38%, rgba(10, 12, 8, 0.08) 72%, transparent 100%),
    linear-gradient(to top, rgba(10, 12, 8, 0.45) 0%, transparent 35%);
}

.cs-content {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 48px 78px;
  max-width: 640px;
  z-index: 2;
}

/* Text rises in, staggered, each time a slide becomes active. */
.cs-content > * {
  flex-shrink: 0;                       /* clamped title/desc must not be squeezed */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-slide.is-active .cs-content > * { opacity: 1; transform: none; }
.cs-slide.is-active .cs-content > *:nth-child(1) { transition-delay: 0.25s; }
.cs-slide.is-active .cs-content > *:nth-child(2) { transition-delay: 0.35s; }
.cs-slide.is-active .cs-content > *:nth-child(3) { transition-delay: 0.45s; }
.cs-slide.is-active .cs-content > *:nth-child(4) { transition-delay: 0.55s; }
.cs-slide.is-active .cs-content > *:nth-child(5) { transition-delay: 0.65s; }

.cs-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.cs-badge {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 13px; font-weight: 900; letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}
.cs-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.cs-plain-eyebrow {
  font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.cs-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  padding-bottom: 0.08em;              /* line-clamp's overflow:hidden otherwise clips g/y descenders */
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-title--xl { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 26px; -webkit-line-clamp: unset; }

.cs-desc {
  font-size: 15.5px; line-height: 1.5; font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
  max-width: 500px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cs-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cs-chip, .cs-ends {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cs-ends.is-urgent { background: rgba(251, 191, 36, 0.22); border-color: rgba(251, 191, 36, 0.55); color: #fde68a; }

.cs-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: #fff;
  color: var(--text-dk, #1a1b13);
  border-radius: var(--r-md, 14px);
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.cs-btn svg { transition: transform 0.25s ease; }
.cs-slide:hover .cs-btn svg { transform: translateX(4px); }
.cs-slide.is-active:hover .cs-btn { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32); }

/* ── Controls: story-style progress bars, counter, pause, prev/next ── */
.cs-controls {
  position: absolute;
  left: 48px; right: 28px; bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  z-index: 5;
  pointer-events: none;
}
.cs-controls > * { pointer-events: auto; }

.cs-progress { display: flex; gap: 6px; flex: 0 1 auto; }
.cs-dot {
  position: relative;
  width: 34px; height: 18px;            /* tall hit area, thin visible bar */
  padding: 0; margin: 0;
  border: 0; background: none;
  cursor: pointer;
}
.cs-dot::before, .cs-dot-fill {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; margin-top: -2px;
  border-radius: 4px;
}
.cs-dot::before { background: rgba(255, 255, 255, 0.35); }
.cs-dot-fill { background: #fff; transform: scaleX(0); transform-origin: left center; }
.cs-dot.is-done .cs-dot-fill { transform: scaleX(1); }
.cs-dot.is-active .cs-dot-fill { animation: cs-fill var(--cs-interval) linear forwards; }
.cs-dot:hover::before { background: rgba(255, 255, 255, 0.6); }
.cs-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
@keyframes cs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cs-slider.is-paused .cs-dot.is-active .cs-dot-fill,
.cs-slider.is-paused .cs-slide.is-active .cs-img { animation-play-state: paused; }

.cs-count {
  margin-left: auto;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}
.cs-count b { color: #fff; font-weight: 800; }

.cs-nav {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.cs-nav:hover { background: #fff; color: #1a1b13; transform: translateY(-1px); }
.cs-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-pause { width: 36px; height: 36px; }
.cs-pause .i-play { display: none; }
.cs-slider.is-user-paused .cs-pause .i-play { display: block; }
.cs-slider.is-user-paused .cs-pause .i-pause { display: none; }

@media (max-width: 768px) {
  .cs-slider { height: 360px; border-radius: 20px; }
  .cs-content { padding: 22px 22px 66px; max-width: 100%; }
  .cs-overlay {
    background:
      linear-gradient(to right, rgba(10, 12, 8, 0.75) 0%, rgba(10, 12, 8, 0.45) 70%, rgba(10, 12, 8, 0.2) 100%),
      linear-gradient(to top, rgba(10, 12, 8, 0.55) 0%, transparent 40%);
  }
  .cs-desc { font-size: 14px; -webkit-line-clamp: 2; margin-bottom: 12px; }
  .cs-meta { margin-bottom: 16px; }
  .cs-btn { padding: 12px 20px; font-size: 14px; }
  .cs-controls { left: 22px; right: 16px; bottom: 16px; gap: 8px; }
  .cs-dot { width: 22px; }
  .cs-count, .cs-prev, .cs-next { display: none; }   /* swipe on phones */
  .cs-pause { margin-left: auto; }
}
@media (max-width: 420px) {
  .cs-slider { height: 400px; }
  .cs-kicker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-slide, .cs-slide.is-active { transition: opacity 0.2s linear, visibility 0s; }
  .cs-slide.is-active .cs-img { animation: none; }
  .cs-content > * { transition: none; opacity: 1; transform: none; }
}
