/* Experiences — vouchers / coupons (Figma Horizontal_Section 1052:20306) */

#experiences-coupons {
  scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.experiences-coupons {
  position: relative;
  background: var(--color-blue);
  overflow: hidden;
}

.experiences-coupons.section-grid-spotlight {
  --sg-grid-line: var(--color-black-opacity);
}

.experiences-coupons__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  padding: 60px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 80px;
}

/* --- Full-bleed tilted marquees --- */

.experiences-coupons__carousel {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.experiences-coupons__carousel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed var(--color-natural-grey);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.experiences-coupons__carousel-tilt {
  transform-origin: center center;
}

.experiences-coupons__carousel--top .experiences-coupons__carousel-tilt {
  transform: rotate(-1deg);
}

.experiences-coupons__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  /* Room for ticket drop-shadow (0 4px 14px) without clipping top/bottom */
  padding-block: 20px;
  margin-block: -20px;
  box-sizing: border-box;
  direction: ltr;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.experiences-coupons__viewport.is-dragging {
  cursor: grabbing;
}

/* --- Drag hint tooltip (hover) --- */

.experiences-coupons__drag-hint {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow:
    0 2px 8px rgba(19, 24, 26, 0.06),
    0 8px 24px rgba(19, 24, 26, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scale(0.94);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  will-change: transform, opacity, left, top;
}

.experiences-coupons__drag-hint.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.experiences-coupons__drag-hint.is-hiding {
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scale(0.97);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.experiences-coupons__drag-hint-icon {
  display: block;
  width: 22px;
  height: 12px;
  color: var(--color-black);
  animation: experiences-coupons-drag-hint-sway 1.4s ease-in-out infinite;
}

.experiences-coupons__drag-hint-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes experiences-coupons-drag-hint-sway {
  0%,
  100% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .experiences-coupons__drag-hint-icon {
    animation: none;
  }
}

.experiences-coupons__track {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.experiences-coupons__track--js {
  animation: none;
}

.experiences-coupons--reduced-motion .experiences-coupons__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.experiences-coupons--reduced-motion .experiences-coupons__track {
  animation: none;
}

.experiences-coupons--reduced-motion .experiences-coupon {
  scroll-snap-align: start;
}

.experiences-coupons__group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* --- Coupon card (Cupon — scaled from Figma 144.695×207.781) --- */

.experiences-coupon {
  position: relative;
  flex: 0 0 145px;
  width: 145px;
  height: 208px;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

.experiences-coupon__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(19, 24, 26, 0.08));
}

.experiences-coupon__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 115px;
  margin: 14px auto;
  box-sizing: border-box;
}

.experiences-coupon__brand-wrap {
  position: relative;
  width: 100%;
  height: 75px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--color-light-grey);
}

.experiences-coupon__brand-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-light-grey);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.experiences-coupon__brand-skeleton::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 42%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.45) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(8px);
  transform: translateX(-130%);
  animation: experiences-coupon-brand-shimmer 1.35s ease-in-out infinite;
  will-change: transform;
}

.experiences-coupon__brand-wrap.is-loaded .experiences-coupon__brand-skeleton {
  opacity: 0;
}

.experiences-coupon__brand-wrap.is-loaded {
  background: var(--color-white);
}

.experiences-coupon__brand-wrap.is-error .experiences-coupon__brand-skeleton::after {
  animation: none;
  opacity: 0;
}

.experiences-coupon__brand {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.experiences-coupon__brand-wrap.is-loaded .experiences-coupon__brand {
  opacity: 1;
}

@keyframes experiences-coupon-brand-shimmer {
  100% {
    transform: translateX(320%);
  }
}

.experiences-coupon__divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: none;
  border-top: 2px dashed var(--color-natural-grey);
}

.experiences-coupon__info {
  width: 100%;
  text-align: center;
  color: var(--color-black);
  font-size: 14px;
  line-height: normal;
}

.experiences-coupon__name {
  margin: 0;
  font-weight: 400;
}

.experiences-coupon__discount {
  margin: 0;
  font-weight: 700;
}

.experiences-coupon__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 33px;
  padding: 9px 18px;
  border-radius: 9999px;
  background: var(--color-black);
  color: var(--color-bg);
  font-size: var(--font-smallest);
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background var(--transition);
}

.experiences-coupon__cta:hover,
.experiences-coupon__cta:focus-visible {
  background: var(--color-light-black);
  outline: none;
}

/* --- Text block --- */

.experiences-coupons__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--padding);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  color: var(--color-black);
}

.experiences-coupons__title {
  margin: 0;
  font-size: clamp(2rem, 4vw + 1rem, var(--font-display));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.experiences-coupons__body {
  margin: 0;
  max-width: 980px;
  font-size: var(--font-button);
  line-height: 1.5;
}

.experiences-coupons__body p {
  margin: 0;
}

.experiences-coupons__body p + p {
  margin-top: 0.35em;
}

.experiences-coupons__body strong {
  font-weight: 700;
}

.experiences-coupons__actions {
  display: flex;
  justify-content: center;
}

.experiences-coupons__section-cta {
  direction: ltr;
}

.experiences-coupons__section-cta .hero__action-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .experiences-coupon__inner {
    justify-content: flex-start;
    margin-block: 12px 16px;
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .experiences-coupons__wrap {
    padding: 44px 0;
    gap: 56px;
  }

  .experiences-coupons__body {
    font-size: var(--font-body);
  }

  .experiences-coupon {
    flex-basis: 128px;
    width: 128px;
    height: 196px;
  }

  .experiences-coupon__inner {
    width: 102px;
    margin-block: 10px 20px;
    gap: 7px;
    padding-bottom: 14px;
  }

  .experiences-coupon__brand-wrap {
    height: 64px;
  }

  .experiences-coupon__info {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experiences-coupons__track {
    animation: none;
  }

  .experiences-coupon__brand-skeleton::after {
    animation: none;
    opacity: 0;
  }
}
