/* Popular Destinations carousel — after hero */
.dg-destinations {
  width: min(1222px, calc(100% - 28px));
  margin: 0 auto 28px;
  font-family: "Better Together", "Godwit", sans-serif;
  color: #1C2127;
  position: relative;
  z-index: 2;
}
.dg-destinations__head {
  position: relative;
  margin-bottom: 10px;
}
.dg-destinations__titles {
  text-align: center;
}
.dg-destinations__title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}
.dg-destinations__title {
  grid-column: 2;
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.dg-destinations__all {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid #FF5E1F;
  border-radius: 999px;
  color: #FF5E1F;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.dg-destinations__eyebrow {
  margin: 0 0 6px;
  font-family: "Satisfy", cursive;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #D1913C;
  background: #D1913C;
  background: -webkit-linear-gradient(to right, #FFD194, #D1913C);
  background: linear-gradient(to right, #FFD194, #D1913C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.dg-destinations__all:hover {
  background: #FF5E1F;
  color: #fff;
}

/* Rail: arrows sit on outermost card edges, vertically centered on card media */
.dg-destinations__rail {
  position: relative;
  display: block;
  padding: 0 8px;
  container-type: inline-size;
  container-name: dg-dest-rail;
}
.dg-destinations__nav {
  --dg-side-card-w: calc((100cqw - var(--dg-dest-gap, 18px) * 4) / var(--dg-dest-units, 5.2));
  position: absolute;
  top: auto;
  /* viewport pb + track pb + half media − half button */
  bottom: calc(16px + 8px + (var(--dg-side-card-w) * 16 / 9 / 2) - 22px);
  z-index: 6;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #D5DADF;
  background: #fff;
  color: #FF5E1F;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 33, 39, 0.14);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dg-destinations__nav--prev {
  left: 8px;
  transform: translateX(-50%);
}
.dg-destinations__nav--next {
  right: 8px;
  transform: translateX(50%);
}
.dg-destinations__nav:hover {
  border-color: #FF5E1F;
  box-shadow: 0 8px 22px rgba(255, 94, 31, 0.2);
}
.dg-destinations__nav--prev:hover {
  transform: translateX(-50%) scale(1.05);
}
.dg-destinations__nav--next:hover {
  transform: translateX(50%) scale(1.05);
}
.dg-destinations__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.dg-destinations__nav i,
.dg-destinations__nav svg {
  width: 20px;
  height: 20px;
}

.dg-destinations__viewport {
  width: 100%;
  min-width: 0;
  overflow: visible;
  /* Room for featured lift + hover so tops are not cropped */
  padding: 28px 0 16px;
  box-sizing: border-box;
}
.dg-destinations__track {
  --dg-dest-gap: 18px;
  --dg-dest-units: 5.2; /* 4×1 + featured 1.2 */
  display: flex;
  gap: var(--dg-dest-gap);
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: visible;
  padding: 4px 0 8px;
  box-sizing: border-box;
  scrollbar-width: none;
}
.dg-destinations__track::-webkit-scrollbar { display: none; }

/* Equal gap between every card (scale removed — it ate into gaps) */
.dg-dest-card {
  flex: 0 0 calc((100% - var(--dg-dest-gap) * 4) / var(--dg-dest-units));
  width: calc((100% - var(--dg-dest-gap) * 4) / var(--dg-dest-units));
  max-width: calc((100% - var(--dg-dest-gap) * 4) / var(--dg-dest-units));
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(0);
  transition:
    transform .45s cubic-bezier(0.22, 1, 0.36, 1),
    filter .3s ease,
    flex-basis .55s cubic-bezier(0.22, 1, 0.36, 1),
    width .55s cubic-bezier(0.22, 1, 0.36, 1),
    max-width .55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .45s ease;
  will-change: transform, translate;
}
.dg-destinations__track.is-sliding .dg-dest-card {
  /* During FLIP slide, drive motion via translate only */
  transition:
    translate .55s cubic-bezier(0.22, 1, 0.36, 1),
    flex-basis .55s cubic-bezier(0.22, 1, 0.36, 1),
    width .55s cubic-bezier(0.22, 1, 0.36, 1),
    max-width .55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .45s ease !important;
  pointer-events: none;
}
/* Media: 9:16 photo fills content box — no gold frame */
.dg-dest-card__media {
  --dg-gold-border: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  box-sizing: border-box;
  border: none;
  background-color: #1C2127;
  background-image: none;
  box-shadow: 0 14px 30px rgba(28, 33, 39, 0.14);
  transition: box-shadow .3s ease;
}
.dg-dest-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  z-index: 0;
  transition: transform .45s ease;
  /* Keep destination photos bright — no darkening filters */
  filter: brightness(1.06) contrast(1.02);
}
/* No dark wash — photo stays bright; label uses text-shadow for contrast */
.dg-dest-card__media::after {
  content: none !important;
  display: none !important;
}
/* Soft edge fade on outermost left / right cards — transparent dissolve */
.dg-dest-card:first-child {
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.88) 58%,
    #000 82%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.88) 58%,
    #000 82%
  );
}
.dg-dest-card:last-child {
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(
    270deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.88) 58%,
    #000 82%
  );
  mask-image: linear-gradient(
    270deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.88) 58%,
    #000 82%
  );
}
.dg-dest-card:first-child .dg-dest-card__media::after,
.dg-dest-card:last-child .dg-dest-card__media::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
/* Gold hover overlay — full photo area */
.dg-dest-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #D1913C;
  background: -webkit-linear-gradient(to right, rgba(255, 209, 148, 0.5), rgba(209, 145, 60, 0.5));
  background: linear-gradient(to right, rgba(255, 209, 148, 0.5), rgba(209, 145, 60, 0.5));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.dg-dest-card:hover {
  transform: translateY(-14px);
  z-index: 2;
}
.dg-dest-card.is-raised {
  transform: translateY(-22px);
}
.dg-dest-card.is-raised:hover {
  transform: translateY(-32px);
}
.dg-dest-card:hover .dg-dest-card__media {
  box-shadow:
    0 0 16px rgba(255, 209, 148, 0.4),
    0 22px 40px rgba(28, 33, 39, 0.22);
}
.dg-dest-card:hover .dg-dest-card__media::before {
  opacity: 1;
}
.dg-dest-card:hover .dg-dest-card__media img {
  transform: scale(1.03);
}
.dg-dest-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(8, 12, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
.dg-dest-card__flag img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transform: none !important;
}
.dg-dest-card__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 3;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.dg-dest-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.dg-dest-card__en {
  display: block;
  font-family: "Better Together", "Godwit", sans-serif;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dg-dest-card__meta {
  margin: 0;
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.dg-dest-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.dg-dest-card__cta i,
.dg-dest-card__cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.dg-dest-card:hover .dg-dest-card__cta {
  background: rgba(12, 16, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
}
.dg-dest-card__price {
  display: none;
}
/* Featured: wider in layout (keeps gap equal) + lift — no scale */
.dg-dest-card.is-featured {
  flex-basis: calc((100% - var(--dg-dest-gap) * 4) / var(--dg-dest-units) * 1.2);
  width: calc((100% - var(--dg-dest-gap) * 4) / var(--dg-dest-units) * 1.2);
  max-width: calc((100% - var(--dg-dest-gap) * 4) / var(--dg-dest-units) * 1.2);
  transform: translateY(-18px);
  z-index: 3;
}
.dg-dest-card.is-featured:hover {
  transform: translateY(-28px);
}
.dg-dest-card.is-featured .dg-dest-card__media {
  box-shadow:
    0 0 18px rgba(209, 145, 60, 0.4),
    0 18px 36px rgba(28, 33, 39, 0.2);
}
.dg-dest-card.is-featured:hover .dg-dest-card__media {
  box-shadow:
    0 0 22px rgba(255, 209, 148, 0.5),
    0 24px 44px rgba(28, 33, 39, 0.26);
}
.dg-dest-card__badge {
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px 0 14px;
  background: #D1913C;
  background: -webkit-linear-gradient(to right, #FFD194, #D1913C);
  background: linear-gradient(to right, #FFD194, #D1913C);
  color: #3A2A00;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px 0 0 999px;
  box-shadow: 0 6px 14px rgba(209, 145, 60, 0.35);
}

@media (max-width: 900px) {
  .dg-destinations__title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .dg-destinations__title {
    white-space: normal;
  }
  .dg-destinations__all {
    justify-self: center;
  }
  .dg-destinations__nav {
    display: none;
  }
  .dg-destinations__track {
    gap: 12px;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 16px 4px 10px;
  }
  .dg-dest-card,
  .dg-dest-card.is-featured,
  .dg-dest-card.is-raised {
    flex: 0 0 168px;
    width: 168px;
    max-width: 168px;
    scroll-snap-align: center;
    transform: none;
  }
  .dg-dest-card:hover,
  .dg-dest-card.is-featured:hover,
  .dg-dest-card.is-raised:hover {
    transform: translateY(-10px);
  }
}
