/* ============================================================
   TOURS PAGE — Catalog + Scroll-driven video sections
   Mama Tava Travel
   ============================================================ */

/* ── Page hero ──────────────────────────────────────────────── */
.tours-hero {
  position: relative;
  z-index: 5;          /* above fixed canvas (z-index:0) */
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 94vh;
  min-height: 340px;
  overflow: visible;
  background: #040c1c;
}

/* Wave divider at bottom of hero */
.tours-hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 10;
}
.tours-hero__wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 7vw, 96px);
}

.tours-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url('../HEROS.jpg') center / cover no-repeat;
}

/* ── Catalog section ────────────────────────────────────────── */
.tours-catalog {
  position: relative;
  z-index: 5;          /* above fixed canvas (z-index:0) */
  background: #C8E1E1;
  padding: clamp(60px, 10vh, 100px) clamp(24px, 5vw, 72px);
}

.tours-catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(40px, 6vh, 64px);
  gap: 24px;
  flex-wrap: wrap;
}

.tours-catalog__title {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  margin: 0 0 4px;
}
.tours-catalog__title-top {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #344262;
}
.tours-catalog__title-bottom {
  font-family: 'Bangond', Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  text-transform: uppercase;
  color: #344262;
  letter-spacing: 0.02em;
  line-height: 0.85;
}

.tours-catalog__sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: rgba(52, 66, 98, 0.55);
  margin: 6px 0 0;
}

/* ── Tour cards grid ────────────────────────────────────────── */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Featured first two cards span more */
.tours-grid .tc:nth-child(1) { grid-column: span 2; }
.tours-grid .tc:nth-child(2) { grid-column: span 1; }

@media (max-width: 900px) {
  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tours-grid .tc:nth-child(1),
  .tours-grid .tc:nth-child(2) { grid-column: span 1; }
}

@media (max-width: 560px) {
  .tours-grid { grid-template-columns: 1fr; }
  .tours-grid .tc { grid-column: span 1 !important; }
}

/* ── Individual tour card ───────────────────────────────────── */
.tc {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: #0a1628;
}

/* Card 01 (span 2) sets the row height via aspect-ratio;
   card 02 stretches to match — no gap */
.tours-grid .tc:nth-child(1) {
  aspect-ratio: 16/8;
}
.tours-grid .tc:nth-child(2) {
  aspect-ratio: unset;
  align-self: stretch;
}

.tc__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.tc__video.playing {
  opacity: 1;
}

.tc__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity   0.6s ease;
}

.tc:hover .tc__poster {
  transform: scale(1.04);
  opacity: 0;
}

/* Gradient overlay */
.tc__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(6, 13, 24, 0.92) 0%,
      rgba(6, 13, 24, 0.40) 45%,
      rgba(6, 13, 24, 0.10) 100%
    );
  z-index: 1;
  transition: background 0.4s ease;
}

.tc:hover .tc__overlay {
  background:
    linear-gradient(to top,
      rgba(6, 13, 24, 0.85) 0%,
      rgba(6, 13, 24, 0.20) 55%,
      rgba(6, 13, 24, 0.05) 100%
    );
}

/* Content */
.tc__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(16px, 3vw, 28px);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tc__num {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #83C1C6;
  margin-bottom: 6px;
  opacity: 0.8;
}

.tc__name {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 6px;
}

.tc__desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  line-height: 1.6;
  color: rgba(200, 225, 225, 0.72);
  margin: 0 0 14px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.tc:hover .tc__desc {
  opacity: 1;
  transform: translateY(0);
}

.tc__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tc__tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(131, 193, 198, 0.12);
  border: 1px solid rgba(131, 193, 198, 0.30);
  border-radius: 9999px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #83C1C6;
}

.tc__duration {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  color: rgba(200, 225, 225, 0.50);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tc__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #83C1C6;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s, color 0.2s;
}

.tc:hover .tc__cta {
  opacity: 1;
  transform: translateX(0);
}

.tc__cta svg {
  transition: transform 0.2s ease;
}

.tc:hover .tc__cta svg {
  transform: translateX(4px);
}

/* Playing badge */
.tc__playing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(6, 13, 24, 0.60);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(131, 193, 198, 0.25);
  border-radius: 9999px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #83C1C6;
  opacity: 0;
  transition: opacity 0.3s;
}

.tc__playing-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83C1C6;
  animation: badge-pulse 1.4s ease-in-out infinite;
}

.tc:hover .tc__playing-badge {
  opacity: 1;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Scroll-to-explore divider ──────────────────────────────── */
.tours-divider {
  position: relative;
  z-index: 5;          /* above fixed canvas (z-index:0) */
  background: #C8E1E1;
  padding: clamp(40px, 7vh, 72px) clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(77, 123, 123, 0.20);
}

.tours-divider__copy {
  max-width: 560px;
}

.tours-divider__label {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4D7B7B;
  margin-bottom: 12px;
}

.tours-divider__heading {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  margin: 0;
}
.tours-divider__heading-top {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 300;
  text-transform: uppercase;
  color: #344262;
  letter-spacing: 0.04em;
}
.tours-divider__heading-bottom {
  font-family: 'Bangond', Georgia, serif;
  font-size: clamp(2.2rem, 4.8vw, 5.2rem);
  text-transform: uppercase;
  color: #344262;
  letter-spacing: 0.02em;
  line-height: 0.85;
}

.tours-divider__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(77, 123, 123, 0.60);
  animation: divider-bob 2.4s ease-in-out infinite;
}

.tours-divider__hint span {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tours-divider__arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes divider-bob {
  0%, 100% { transform: translateY(0);   opacity: 0.50; }
  55%       { transform: translateY(8px); opacity: 0.80; }
}

/* ── Single fixed canvas (shared by all tour sections) ──────── */
.tours-canvas-fixed {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
  visibility: hidden;
}

.tours-canvas-fixed.active {
  opacity: 1;
  visibility: visible;
}

.tours-vignette-fixed {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  background:
    linear-gradient(to bottom,
      rgba(6,13,24,0.65) 0%,
      rgba(6,13,24,0.10) 25%,
      rgba(6,13,24,0.10) 65%,
      rgba(6,13,24,0.80) 100%
    ),
    radial-gradient(ellipse 120% 100% at 50% 50%,
      transparent 40%,
      rgba(6,13,24,0.40) 100%
    );
}

.tours-vignette-fixed.active {
  opacity: 1;
  visibility: visible;
}

.tours-global-loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #060d18;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.tours-global-loader.hidden {
  opacity: 0;
}

/* ── Scroll video sections ──────────────────────────────────── */
.tour-scroll {
  position: relative;
  height: 350vh;
}

.tour-scroll__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

/* Tour info overlay */
.tour-scroll__info {
  position: absolute;
  z-index: 2;
  bottom: clamp(48px, 9vh, 88px);
  left: clamp(24px, 5vw, 72px);
  max-width: 600px;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tour-scroll__info.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.tour-scroll__num {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #83C1C6;
  margin-bottom: 10px;
}

.tour-scroll__name {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 6.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.92;
  margin: 0 0 16px;
}

.tour-scroll__desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.84rem, 1.4vw, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.70);
  margin: 0 0 22px;
  max-width: 440px;
}

.tour-scroll__tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tour-scroll__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(131, 193, 198, 0.10);
  border: 1px solid rgba(131, 193, 198, 0.30);
  border-radius: 9999px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #83C1C6;
}

/* Progress bar at bottom */
.tour-scroll__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 2px;
  background: rgba(131, 193, 198, 0.12);
}

.tour-scroll__progress-fill {
  height: 100%;
  background: linear-gradient(to right, #83C1C6, #C8E1E1);
  width: 0%;
  transition: width 0.05s linear;
}

/* Tour counter badge */
.tour-scroll__counter {
  position: absolute;
  top: clamp(88px, 12vh, 110px);
  right: clamp(24px, 4vw, 56px);
  z-index: 2;
  text-align: right;
  pointer-events: none;
}

.tour-scroll__counter-current {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: 1;
  color: rgba(131, 193, 198, 0.15);
  letter-spacing: -0.02em;
  transition: color 0.4s ease;
}

.tour-scroll__sticky:hover .tour-scroll__counter-current {
  color: rgba(131, 193, 198, 0.25);
}

.tour-scroll__counter-total {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(131, 193, 198, 0.25);
  text-transform: uppercase;
}

/* Loading skeleton */
.tour-scroll__loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #060d18;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.tour-scroll__loader.hidden {
  opacity: 0;
}

.tour-scroll__loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tour-scroll__loader-bar {
  width: 120px;
  height: 1px;
  background: rgba(131, 193, 198, 0.12);
  position: relative;
  overflow: hidden;
}

.tour-scroll__loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, #83C1C6, transparent);
  animation: loader-sweep 1.4s ease-in-out infinite;
}

@keyframes loader-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%);  }
}

.tour-scroll__loader-text {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(131, 193, 198, 0.40);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tour-scroll { height: 300vh; }
  .tour-scroll__name { font-size: clamp(2rem, 9vw, 3.5rem); }
  .tours-divider { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .tour-scroll { height: 260vh; }
  .tours-catalog { padding: 40px 20px; }
}
