/* Polaroid Deck · QuotaTrip row layout */
.wg-dest-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: 1;
}

.wg-dest-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .wg-dest-row {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .wg-dest-row--flip {
    grid-template-columns: 1fr minmax(240px, 340px);
  }

  .wg-dest-row--flip .wg-dest-row__visual { order: 2; }
  .wg-dest-row--flip .wg-dest-row__copy { order: 1; text-align: right; }
  .wg-dest-row--flip .wg-dest-row__copy .wg-dest-row__actions { justify-content: flex-end; }
  .wg-dest-row--flip .wg-dest-row__meta { justify-content: flex-end; }
}

.wg-dest-row__visual {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wg-dest-row__shape {
  position: absolute;
  width: 78%;
  height: 72%;
  border-radius: 28px;
  transform: rotate(-8deg);
  z-index: 0;
}

.wg-dest-row__shape--sky { background: rgba(77, 184, 232, 0.35); }
.wg-dest-row__shape--teal { background: rgba(184, 148, 26, 0.28); }
.wg-dest-row__shape--gold { background: rgba(232, 197, 71, 0.28); }

.wg-dest-row__deck {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 260px;
  height: 300px;
}

.wg-polaroid-stack {
  position: relative;
  height: 100%;
  perspective: 900px;
  touch-action: pan-y pinch-zoom;
}

.wg-polaroid {
  position: absolute;
  left: 50%;
  width: 100%;
  background: var(--wg-polaroid-bg);
  padding: 8px 8px 36px;
  border-radius: 16px;
  border: 1px solid var(--wg-border);
  box-shadow: none;
  filter: none;
  transform-origin: center bottom;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s;
  cursor: grab;
  overflow: hidden;
}

.wg-polaroid:nth-child(1) { z-index: 3; transform: translateX(-50%) rotate(-4deg); }
.wg-polaroid:nth-child(2) { z-index: 2; transform: translateX(-50%) rotate(3deg) translateY(8px) scale(0.96); }
.wg-polaroid:nth-child(3) { z-index: 1; transform: translateX(-50%) rotate(-1deg) translateY(16px) scale(0.92); }

.wg-polaroid.is-exit-left {
  transform: translateX(-180%) rotate(-18deg) !important;
  opacity: 0;
}

.wg-polaroid.is-exit-right {
  transform: translateX(80%) rotate(18deg) !important;
  opacity: 0;
}

.wg-polaroid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  pointer-events: none;
}

.wg-polaroid__cap {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-family: var(--wg-font-sans);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.wg-dest-row__deck-nav {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.wg-dest-row__deck-nav button {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--wg-border);
  border-radius: 8px;
  background: var(--wg-surface-elevated);
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--wg-text);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.wg-dest-row__deck-nav button:hover {
  background: var(--wg-gold);
  border-color: var(--wg-gold);
  color: #fff;
}

.wg-dest-row__copy {
  max-width: 28rem;
}

.wg-dest-row--flip .wg-dest-row__copy {
  margin-left: auto;
}

.wg-dest-row__lead {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--wg-text-dim);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.wg-dest-row__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--wg-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.wg-dest-row__desc {
  font-size: 0.92rem;
  color: var(--wg-text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.15rem;
}

.wg-dest-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wg-dest-row__chip {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
}

.wg-dest-row__chip--gold { background: var(--wg-gold-dim); color: var(--wg-gold-olive); }
.wg-dest-row__chip--teal { background: rgba(184, 148, 26, 0.12); color: var(--wg-gold-olive); }
.wg-dest-row__chip--sky { background: rgba(77, 184, 232, 0.12); color: #2a7aad; }

.wg-dest-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

/* ── Landing: horizontal autoscroll row ── */
.wg-dest-carousel {
  position: relative;
  z-index: 1;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 2rem));
  padding: 0.5rem 0 1rem;
}

.wg-dest-carousel__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wg-dest-carousel__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.5rem clamp(1rem, 4vw, 2rem);
  animation: wgDestAutoscroll 88s linear infinite;
}

.wg-dest-carousel:hover .wg-dest-carousel__track {
  animation-play-state: paused;
}

@keyframes wgDestAutoscroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes wgDestCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .wg-dest-card__slides {
    clip-path: none !important;
    transition: none !important;
  }

  .wg-dest-carousel__track {
    animation: none;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

}

/* Destination cards – compact overlay */
.wg-inspire--dest .wg-dest-card {
  flex: none;
  width: 100%;
}

/* Homepage carousel – full-bleed cards, no beige frame */
.wg-inspire--dest .wg-dest-card__media {
  padding: 0;
  background: none;
  border-radius: 12px;
}

.wg-inspire--dest .wg-dest-card__slides {
  inset: 0;
  border-radius: 12px;
}

.wg-inspire--dest .wg-dest-card__shade {
  inset: 0;
  border-radius: 12px;
}

.wg-inspire--dest .wg-dest-card__panel {
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 12px 12px;
}

.wg-inspire--dest .wg-dest-card__mark,
.wg-inspire--dest .wg-dest-card__indicators {
  top: 0.85rem;
}

.wg-inspire--dest .wg-dest-card__mark {
  right: 0.85rem;
}

.wg-inspire--dest .wg-dest-card__indicators {
  left: 0.85rem;
}

.wg-dest-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s var(--wg-ease);
}

.wg-dest-card--clickable {
  cursor: pointer;
}

.wg-dest-card:hover {
  transform: translateY(-2px);
}

.wg-dest-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 340px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff9e8 0%, #f3e6c4 100%);
  padding: 0.55rem;
  border-radius: 18px;
}

.wg-dest-card__slides {
  position: absolute;
  inset: 0.55rem;
  border-radius: 14px;
  overflow: hidden;
}

.wg-circuit-grid .wg-dest-card,
.wg-dest-continue .wg-dest-card {
  width: 100%;
}

.wg-circuit-grid .wg-dest-card__media,
.wg-dest-continue .wg-dest-card__media {
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: 470px;
}

.wg-circuit-grid .wg-dest-card__slide img,
.wg-dest-continue .wg-dest-card__slide img {
  filter: none !important;
  image-rendering: auto;
}

.wg-dest-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  image-rendering: auto;
  filter: none !important;
}

.wg-dest-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.05s cubic-bezier(0.4, 0, 0.2, 1);
}

.wg-dest-card__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.wg-dest-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 1.35s cubic-bezier(0.33, 1, 0.38, 1);
}

.wg-dest-card__slide.is-active img {
  transform: scale(1);
}

.wg-dest-card__shade {
  position: absolute;
  inset: 0.55rem;
  z-index: 2;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(120, 90, 20, 0.38) 0%,
    rgba(184, 148, 26, 0.2) 30%,
    rgba(232, 197, 71, 0.07) 56%,
    transparent 78%
  );
}

.wg-dest-card__mark {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 4;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.82);
  color: var(--wg-gold-lt);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  transition: background 0.3s var(--wg-ease), color 0.3s var(--wg-ease), border-color 0.3s, transform 0.25s;
}

.wg-dest-card__mark:hover {
  background: var(--wg-gold-lt);
  border-color: var(--wg-gold-lt);
  color: #2a2418;
  transform: scale(1.05);
}

.wg-dest-card__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  backdrop-filter: none;
  pointer-events: none;
}

.wg-dest-card__panel a,
.wg-dest-card__panel button {
  pointer-events: auto;
}

.wg-dest-card__theme {
  font-family: var(--wg-font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wg-gold-lt);
  line-height: 1.3;
  margin: 0;
}

.wg-dest-card__tours {
  font-family: var(--wg-font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(245, 236, 210, 0.88);
  margin: 0;
  line-height: 1.3;
}

.wg-dest-card__title {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.05rem, 1.95vw, 1.28rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  margin: 0.1rem 0 0;
}

.wg-dest-card__title--long {
  font-size: clamp(0.95rem, 1.75vw, 1.15rem);
  line-height: 1.02;
}

.wg-inspire__item--featured .wg-dest-card__title {
  font-size: clamp(1.12rem, 2.05vw, 1.35rem);
}

.wg-inspire__item--featured .wg-dest-card__title--long {
  font-size: clamp(1rem, 1.85vw, 1.2rem);
}

.wg-dest-card__tease {
  font-family: var(--wg-font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wg-dest-card__actions {
  margin-top: 0.65rem;
}

.wg-dest-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--wg-font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.3s var(--wg-ease), gap 0.3s var(--wg-ease), opacity 0.3s;
}

.wg-dest-card__link-arrow {
  display: inline-block;
  font-size: 0.95em;
  transform: translateX(0);
  transition: transform 0.3s var(--wg-ease);
}

.wg-dest-card:hover .wg-dest-card__link,
.wg-dest-card__link:hover {
  color: #ffffff;
  gap: 0.58rem;
}

.wg-dest-card:hover .wg-dest-card__link-arrow,
.wg-dest-card__link:hover .wg-dest-card__link-arrow {
  transform: translateX(3px);
}

.wg-dest-card:hover .wg-dest-card__tease {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.wg-dest-card:hover .wg-dest-card__shade {
  background: linear-gradient(
    to top,
    rgba(40, 32, 12, 0.78) 0%,
    rgba(72, 52, 8, 0.52) 38%,
    rgba(120, 90, 20, 0.18) 62%,
    transparent 88%
  );
}

.wg-dest-card__indicators {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.wg-dest-card__indicators > * {
  pointer-events: auto;
}

.wg-dest-card__dots {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.wg-dest-card__dot {
  width: 5px;
  height: 5px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.wg-dest-card__dot.is-active {
  background: var(--wg-gold-lt);
  transform: scale(1.2);
}

.wg-dest-card__next {
  width: auto;
  height: auto;
  min-width: 1.25rem;
  min-height: 1.25rem;
  padding: 0.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--wg-ease), color 0.3s, opacity 0.3s;
}

.wg-dest-card__next:hover {
  transform: translateX(2px);
  color: #ffffff;
}

/* Decorative animated glyphs – varied per card, sync with slideshow */
.wg-card-decor.is-decor-paused,
.wg-card-decor.is-decor-paused * {
  animation-play-state: paused !important;
}

.wg-card-decor {
  position: absolute;
  inset: 0.55rem;
  z-index: 3;
  border-radius: 14px;
  pointer-events: none;
  overflow: hidden;
  animation-play-state: paused;
}

.wg-dest-card:hover .wg-card-decor,
.wg-dest-card:focus-within .wg-card-decor,
.wg-pkg-card:hover .wg-card-decor,
.wg-pkg-card:focus-within .wg-card-decor {
  animation-play-state: running;
}

.wg-dest-card:hover .wg-card-decor *,
.wg-dest-card:focus-within .wg-card-decor *,
.wg-pkg-card:hover .wg-card-decor *,
.wg-pkg-card:focus-within .wg-card-decor * {
  animation-play-state: running;
}

.wg-card-decor__glyph {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(255, 252, 240, 0.42);
  transition: color 0.45s var(--wg-ease), opacity 0.45s var(--wg-ease);
}

.wg-card-decor__glyph--main {
  top: 50%;
  left: 50%;
  width: clamp(2.4rem, 6vw, 3.2rem);
  height: clamp(2.4rem, 6vw, 3.2rem);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  transform: translate(-50%, -50%);
  animation: wgDecorFloatMain 5.2s ease-in-out infinite;
  animation-delay: var(--wg-decor-delay, 0s);
}

.wg-card-decor__glyph--a {
  top: 14%;
  left: 12%;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.72rem;
  opacity: 0.5;
  animation: wgDecorDriftA 6.8s ease-in-out infinite;
  animation-delay: var(--wg-decor-delay, 0s);
}

.wg-card-decor__glyph--b {
  bottom: 18%;
  right: 11%;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.65rem;
  opacity: 0.45;
  animation: wgDecorDriftB 7.4s ease-in-out infinite;
  animation-delay: var(--wg-decor-delay, 0s);
}

.wg-card-decor__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(3.5rem, 8vw, 4.5rem);
  height: clamp(3.5rem, 8vw, 4.5rem);
  border: 1px solid rgba(255, 252, 240, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: wgDecorRingSpin 18s linear infinite;
}

.wg-card-decor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 252, 240, 0.5);
}

.wg-card-decor__dot--tl {
  top: 20%;
  left: 18%;
  animation: wgDecorDotPulse 3.6s ease-in-out infinite;
}

.wg-card-decor__dot--br {
  bottom: 24%;
  right: 16%;
  animation: wgDecorDotPulse 4.1s ease-in-out 0.8s infinite;
}

.wg-card-decor--1 .wg-card-decor__glyph--main { animation-delay: -1.2s; }
.wg-card-decor--2 .wg-card-decor__glyph--a { animation-delay: -2s; }
.wg-card-decor--3 .wg-card-decor__ring { animation-direction: reverse; }
.wg-card-decor--3 .wg-card-decor__glyph--b { animation-delay: -1.5s; }
.wg-card-decor--1 .wg-card-decor__glyph--main { top: 61%; left: 64%; }
.wg-card-decor--1 .wg-card-decor__ring { top: 61%; left: 64%; width: 3.7rem; height: 3.7rem; }
.wg-card-decor--2 .wg-card-decor__glyph--main { top: 39%; left: 37%; }
.wg-card-decor--2 .wg-card-decor__ring { top: 39%; left: 37%; width: 5rem; height: 5rem; }
.wg-card-decor--3 .wg-card-decor__glyph--main { top: 62%; left: 38%; }
.wg-card-decor--3 .wg-card-decor__ring { top: 62%; left: 38%; width: 4rem; height: 4rem; }
.wg-card-decor--4 .wg-card-decor__glyph--main { top: 39%; left: 65%; }
.wg-card-decor--4 .wg-card-decor__ring { top: 39%; left: 65%; width: 5.1rem; height: 5.1rem; }
.wg-card-decor--5 .wg-card-decor__glyph--main { top: 65%; left: 70%; }
.wg-card-decor--5 .wg-card-decor__ring { top: 65%; left: 70%; width: 3.5rem; height: 3.5rem; }
.wg-card-decor--6 .wg-card-decor__glyph--main { top: 34%; left: 35%; }
.wg-card-decor--6 .wg-card-decor__ring { top: 34%; left: 35%; width: 4.8rem; height: 4.8rem; }
.wg-card-decor--7 .wg-card-decor__glyph--main { top: 58%; left: 48%; }
.wg-card-decor--7 .wg-card-decor__ring { top: 58%; left: 48%; width: 4.2rem; height: 4.2rem; }

.wg-card-decor.is-slide-pulse .wg-card-decor__glyph--main {
  animation: wgDecorSlidePop 0.72s var(--wg-ease);
}

.wg-card-decor.is-slide-pulse .wg-card-decor__glyph--a,
.wg-card-decor.is-slide-pulse .wg-card-decor__glyph--b {
  animation: wgDecorSlideWiggle 0.72s var(--wg-ease);
}

.wg-dest-card:hover .wg-card-decor__glyph,
.wg-pkg-card:hover .wg-card-decor__glyph {
  color: rgba(255, 252, 240, 0.58);
}

@keyframes wgDecorFloatMain {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-7px) rotate(4deg); }
}

@keyframes wgDecorDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.42; }
  50% { transform: translate(5px, -9px) scale(1.1); opacity: 0.62; }
}

@keyframes wgDecorDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.38; }
  50% { transform: translate(-6px, 8px) scale(1.08); opacity: 0.58; }
}

@keyframes wgDecorRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes wgDecorDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.35); opacity: 0.85; }
}

@keyframes wgDecorSlidePop {
  0% { transform: translate(-50%, -50%) scale(0.78); opacity: 0.25; }
  45% { transform: translate(-50%, -50%) scale(1.14); opacity: 0.72; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
}

@keyframes wgDecorSlideWiggle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(3px, -4px) rotate(-8deg); }
  70% { transform: translate(-2px, 3px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wg-card-decor__glyph,
  .wg-card-decor__ring,
  .wg-card-decor__dot {
    animation: none !important;
  }

  .wg-card-decor.is-slide-pulse .wg-card-decor__glyph--main {
    animation: none !important;
    opacity: 0.5;
  }
}

.wg-dest-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

.wg-inspire__item .wg-dest-card {
  content-visibility: visible;
}
