/*
 * VisitKashi — Hero Slider v5
 * Tripadvisor-inspired premium design
 * Rollback: restore old hero in index.php, delete this file
 */

/* ═══ SECTION WRAPPER ════════════════════════════════════ */
#vk-hero-slider-section {
  background: #f7f5f2;
  padding: 20px 20px 90px;
  margin-top: 0 !important;
  margin-bottom: 0;
  min-height: auto;
}

/* ═══ CONTAINER ══════════════════════════════════════════ */
.vk-hs-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

/* ═══ SLIDER CARD — the 15px rounded card ════════════════ */
.vk-hs-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 10px 40px rgba(0,0,0,.14),
    0 40px 80px rgba(0,0,0,.08);
  background: #1a1a2e;
  /* Fixed height prevents CLS */
  aspect-ratio: 16/7;
  min-height: 340px;
  max-height: 580px;
  user-select: none;
}

/* ═══ SLIDES TRACK ═══════════════════════════════════════ */
.vk-hs-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .65s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* ═══ SINGLE SLIDE ════════════════════════════════════════ */
.vk-hs-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Background image */
.vk-hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 8s ease;
  will-change: transform;
  pointer-events: none;
}
.vk-hs-slide.vk-active .vk-hs-bg {
  transform: scale(1);
}

/* Cinematic overlay */
.vk-hs-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.15)   0%,
      rgba(0,0,0,.08)  30%,
      rgba(0,0,0,.50)  70%,
      rgba(0,0,0,.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0,0,0,.30)   0%,
      transparent      55%
    );
  z-index: 1;
  pointer-events: none;
}

/* ═══ SLIDE CONTENT ══════════════════════════════════════ */
.vk-hs-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  /* Stagger fade-up on active */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s .2s ease, transform .55s .2s ease;
}
.vk-hs-slide.vk-active .vk-hs-content {
  opacity: 1;
  transform: translateY(0);
}

/* Badge / eyebrow */
.vk-hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,144,10,.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(232,144,10,.45);
}

/* Main title */
.vk-hs-title {
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  margin: 0 0 10px;
  max-width: 640px;
}

/* Subtitle */
.vk-hs-sub {
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin: 0 0 22px;
  max-width: 500px;
  line-height: 1.5;
}

/* CTA button */
.vk-hs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f5a623, #e8900a);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none !important;
  box-shadow: 0 6px 24px rgba(232,144,10,.55),
              inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .2s, box-shadow .2s;
  width: fit-content;
  border: none;
}
.vk-hs-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(232,144,10,.65);
  color: #fff !important;
}
.vk-hs-cta::after {
  content: '→';
  font-size: 16px;
}

/* ═══ ARROWS ═════════════════════════════════════════════ */
.vk-hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  transition: background .2s, transform .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}
.vk-hs-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.vk-hs-prev { left: 20px; }
.vk-hs-next { right: 20px; }

/* ═══ DOTS ════════════════════════════════════════════════ */
.vk-hs-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.vk-hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s, width .25s;
}
.vk-hs-dot.vk-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
  transform: none;
}

/* ═══ PROGRESS BAR ════════════════════════════════════════ */
.vk-hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8900a, #f5c842);
  z-index: 11;
  width: 0%;
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* ═══ SLIDE COUNTER ══════════════════════════════════════ */
.vk-hs-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.15);
  letter-spacing: .5px;
}

/* ═══ TRUST STRIP BELOW SLIDER ═══════════════════════════ */
.vk-hs-trust {
  display: flex;
  gap: 0;
  margin-top: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
}
.vk-hs-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid #f0ede8;
  transition: background .2s;
  cursor: default;
}
.vk-hs-trust-item:last-child { border-right: none; }
.vk-hs-trust-item:hover { background: #faf8f5; }
.vk-hs-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff5e6;
  color: #e8900a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.vk-hs-trust-label {
  font-size: 13px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}
.vk-hs-trust-sub {
  font-size: 11.5px;
  color: #888;
  font-weight: 500;
}

/* ═══ TABLET (900px) ─ mobile-app.css handles ≤991px ════ */
@media (max-width: 900px) {
  #vk-hero-slider-section { padding: 14px 16px 50px; }
  .vk-hs-card {
    aspect-ratio: 16/7;   /* keep wide card on tablet */
    min-height: 300px;
    max-height: 420px;
    border-radius: 18px;
  }
  .vk-hs-content { padding: 24px 28px; }
  .vk-hs-title { font-size: clamp(22px, 5vw, 36px); }
  .vk-hs-cta { padding: 11px 22px; font-size: 13.5px; }
  .vk-hs-arrow { width: 38px; height: 38px; font-size: 18px; }
  .vk-hs-prev { left: 12px; }
  .vk-hs-next { right: 12px; }
  .vk-hs-trust { flex-wrap: wrap; border-radius: 12px; }
  .vk-hs-trust-item { flex: 1 1 48%; border-bottom: 1px solid #f0ede8; padding: 13px 14px; }
  .vk-hs-trust-item:nth-child(2) { border-right: none; }
}

/* ═══ DARK MODE ══════════════════════════════════════════ */
:root.vk-dark #vk-hero-slider-section { background: #0d1117; }

/* Slider background-images → B&W (not <img> so global img rule misses them) */
:root.vk-dark .vk-hs-bg {
  filter: grayscale(100%) brightness(0.78);
  transition: filter 0.4s ease, transform 8s ease;
}


:root.vk-dark .vk-hs-trust { background: #161b22; box-shadow: 0 2px 16px rgba(0,0,0,.3); }
:root.vk-dark .vk-hs-trust-item { border-color: #21262d; }
:root.vk-dark .vk-hs-trust-item:hover { background: #1c2128; }
:root.vk-dark .vk-hs-trust-icon { background: #2d2000; }
:root.vk-dark .vk-hs-trust-label { color: #e6edf3; }

/* ═══ PERFORMANCE ════════════════════════════════════════ */
.vk-hs-bg,
.vk-hs-content,
.vk-hs-slide { contain: layout style; }
