/* Popular Destinations Carousel — v1.3 GSAP coverflow */
.pdc-widget,
.pdc-widget * {
  box-sizing: border-box;
}

.pdc-widget {
  --pdc-aspect: 3 / 4;
  --pdc-card-width: 340px;
  --pdc-step: 300px;
  --pdc-side-scale: 0.82;
  --pdc-side-opacity: 0.55;
  --pdc-side-blur: 6px;
  --pdc-far-scale: 0.68;
  --pdc-far-opacity: 0.25;
  --pdc-far-blur: 10px;
  --pdc-tilt: 0deg;
  --pdc-perspective: 1600px;
  --pdc-zoom: 1.06;
  --pdc-hover-duration: 550ms;
  --pdc-sweep-color: rgba(255, 255, 255, 0.45);
  --pdc-sweep-angle: 18deg;
  --pdc-stage-height: 520px;

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 60px 0 74px;
  background: #fff;
}

.pdc-heading {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  text-align: center;
}

.pdc-heading__eyebrow {
  margin: 0 0 2px;
  color: #3d3d3d;
  font-family: cursive;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.05;
}

.pdc-heading__title {
  margin: 0 0 44px;
  color: #073f49;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.pdc-carousel-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.pdc-stage {
  position: relative;
  width: 100%;
  height: var(--pdc-stage-height);
  perspective: var(--pdc-perspective);
  overflow: hidden;
}

.pdc-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.pdc-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--pdc-card-width);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity, filter;
  transform-origin: center center;
  pointer-events: none;
  opacity: 0;
}

.pdc-slide.is-active {
  pointer-events: auto;
}

.pdc-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--pdc-aspect);
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: linear-gradient(135deg, #9edce7, #0b6573);
  text-decoration: none !important;
  box-shadow: 0 20px 40px rgba(5, 35, 41, 0.22);
  backface-visibility: hidden;
}

.pdc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 64, 72, 0.72) 100%);
}

.pdc-card__image {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform var(--pdc-hover-duration) cubic-bezier(0.22, 1, 0.36, 1),
    filter var(--pdc-hover-duration) ease;
}

.pdc-card__sweep {
  position: absolute;
  inset: -22% auto -22% -70%;
  z-index: 3;
  width: 42%;
  pointer-events: none;
  transform: translateX(0) skewX(calc(-1 * var(--pdc-sweep-angle)));
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pdc-sweep-color) 48%, transparent 100%);
  transition: transform var(--pdc-hover-duration) ease, opacity 220ms ease;
}

.pdc-card__content {
  position: absolute;
  inset: auto 28px 26px 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  color: #fff;
}

.pdc-card__title {
  margin: 0 0 5px !important;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pdc-card__subtitle {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.pdc-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.pdc-card__button-arrow {
  font-size: 20px;
  line-height: 0;
}

.pdc-card__button:hover {
  background: rgba(7, 63, 73, 0.84);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateX(2px);
}

.pdc-slide.is-active .pdc-card:hover .pdc-card__image {
  transform: scale(var(--pdc-zoom));
}

.pdc-slide.is-active .pdc-card:hover .pdc-card__sweep {
  opacity: 1;
  transform: translateX(430%) skewX(calc(-1 * var(--pdc-sweep-angle)));
}

.pdc-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(7, 63, 73, 0.18);
  border-radius: 50%;
  background: #fff;
  color: #073f49;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 25px rgba(5, 35, 41, 0.13);
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.pdc-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: #073f49;
  color: #fff;
}

.pdc-arrow--prev { left: 24px; }
.pdc-arrow--next { right: 24px; }

.pdc-arrow svg,
.pdc-arrow i {
  display: block;
  width: 1em;
  height: 1em;
  font-size: 18px;
}

.pdc-dots {
  position: relative;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.pdc-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 63, 73, 0.25);
  cursor: pointer;
  transition: background 220ms ease, width 220ms ease;
}

.pdc-dot.is-active {
  width: 24px;
  background: #073f49;
}

.elementor-editor-active .pdc-widget,
.elementor-editor-preview .pdc-widget {
  min-height: 420px;
}

@media (max-width: 1024px) {
  .pdc-widget { --pdc-card-width: 300px; --pdc-step: 240px; --pdc-stage-height: 460px; }
  .pdc-heading__title { font-size: 36px; }
  .pdc-heading__eyebrow { font-size: 29px; }
}

@media (max-width: 767px) {
  .pdc-widget {
    padding: 42px 0 56px;
    --pdc-card-width: 260px;
    --pdc-step: 200px;
    --pdc-stage-height: 400px;
  }
  .pdc-heading__title { margin-bottom: 28px; font-size: 31px; }
  .pdc-heading__eyebrow { font-size: 26px; }
  .pdc-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pdc-card__image,
  .pdc-card__sweep,
  .pdc-arrow { transition: none !important; }
}
