/**
 * Hero v2 — BromoHub-style hero
 * Prefix: hero-v2-*
 */

/* ── Tour card carousel — horizontal row, no overlap ── */
.hero-v2-cards {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.hero-v2-card {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  width: 72px;
  height: 200px;
  opacity: 0.85;
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
}

.hero-v2-card img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.hero-v2-card.is-active {
  width: 180px;
  height: 260px;
  opacity: 1;
}

/* Caption — glass strip, visible on active card */
.hero-v2-card-caption {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-v2-card.is-active .hero-v2-card-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop hover — expand hovered card, shrink others */
@media (hover: hover) and (min-width: 768px) {
  .hero-v2-cards:hover .hero-v2-card {
    width: 72px;
    height: 200px;
    opacity: 0.85;
  }

  .hero-v2-cards:hover .hero-v2-card.is-active {
    width: 72px;
    height: 200px;
    opacity: 0.85;
  }

  .hero-v2-cards:hover .hero-v2-card.is-active .hero-v2-card-caption {
    opacity: 0;
    transform: translateY(10px);
  }

  .hero-v2-cards:hover .hero-v2-card:hover {
    width: 180px;
    height: 260px;
    opacity: 1;
  }

  .hero-v2-cards:hover .hero-v2-card:hover .hero-v2-card-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .hero-v2-cards {
    gap: 12px;
  }

  .hero-v2-card {
    width: 150px;
    height: 220px;
    border-radius: 1.5rem;
  }

  .hero-v2-card.is-active {
    width: 200px;
    height: 280px;
  }

  @media (hover: hover) {
    .hero-v2-cards:hover .hero-v2-card {
      width: 150px;
      height: 220px;
    }

    .hero-v2-cards:hover .hero-v2-card:hover {
      width: 200px;
      height: 280px;
    }
  }
}

@media (max-width: 767px) {
  .hero-v2-cards {
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 8px;
  }

  .hero-v2-cards::-webkit-scrollbar {
    display: none;
  }

  .hero-v2-card {
    width: 64px;
    height: 180px;
  }

  .hero-v2-card.is-active {
    width: 160px;
    height: 220px;
  }
}
