/* Navigation cards use the supplied artwork unchanged. */
body > header {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-block: 28px 22px;
  text-align: center;
}
body > header > .brand {
  justify-content: center;
  width: min(100%, 760px);
  line-height: 0;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}
body > header > nav {
  justify-content: center;
}
.card-carousel {
  --card-width: clamp(190px, 26vw, 300px);
  --card-shift: clamp(175px, 29vw, 330px);
  padding: 34px 0 24px;
  text-align: center;
}
.card-heading {
  margin: 0 20px 8px;
  font-size: clamp(24px, 3vw, 36px);
}
.card-instructions {
  margin: 0 18px;
  color: #acbfd4;
  font-size: 13px;
}
.card-stage {
  position: relative;
  width: 100%;
  height: calc(var(--card-width) * 1.25 + 70px);
  overflow: hidden;
  perspective: 1400px;
  isolation: isolate;
  animation: cards-arrive 700ms ease-out both;
}
.destination-card {
  display: block;
  position: absolute;
  top: 30px;
  left: 50%;
  width: var(--card-width);
  border-radius: 8px;
  outline-offset: 6px;
  transform: translateX(-50%);
  transition:
    transform 700ms cubic-bezier(0.22, 0.8, 0.2, 1),
    filter 500ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.destination-card[data-position="center"] {
  z-index: 3;
  transform: translateX(-50%) scale(1.04);
  filter: drop-shadow(0 12px 24px #000a) drop-shadow(0 0 13px #69bffb33);
}
.destination-card[data-position="left"] {
  z-index: 1;
  transform: translateX(calc(-50% - var(--card-shift))) translateY(24px)
    rotate(-7deg) scale(0.8);
  filter: brightness(0.72) drop-shadow(0 10px 15px #0009);
}
.destination-card[data-position="right"] {
  z-index: 1;
  transform: translateX(calc(-50% + var(--card-shift))) translateY(24px)
    rotate(7deg) scale(0.8);
  filter: brightness(0.72) drop-shadow(0 10px 15px #0009);
}
.card-art {
  display: block;
  transform-style: preserve-3d;
}
.card-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  user-select: none;
}
.destination-card.is-spinning .card-art {
  animation: destination-spin 850ms cubic-bezier(0.25, 0.65, 0.25, 1) both;
}
@keyframes destination-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
@keyframes cards-arrive {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.carousel-arrow {
  min-width: 46px;
  min-height: 44px;
  padding: 8px 14px;
  border-color: #67b6e366;
  color: #9ed9ff;
  font-size: 22px;
}
.carousel-picks {
  display: flex;
  gap: 10px;
}
.carousel-pick {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: #0b1d32;
  color: #9bb7d1;
  border: 1px solid #467094;
  font-size: 12px;
}
.carousel-pick[aria-pressed="true"] {
  color: #d4efff;
  border-color: #80cfff;
  background: #173c61;
}
.card-caption {
  min-height: 72px;
  margin: 16px 20px 0;
}
.card-caption p {
  margin: 0 0 9px;
  font-size: 14px;
}
.card-caption .text-link {
  color: #90d4ff;
}
@media (max-width: 600px) {
  body > header {
    padding-block: 22px 16px;
  }
  .card-carousel {
    --card-width: min(58vw, 265px);
    --card-shift: 35vw;
    padding-top: 28px;
  }
  .card-stage {
    height: calc(var(--card-width) * 1.25 + 70px);
  }
  .carousel-controls {
    gap: 14px;
  }
  .card-instructions {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-stage,
  .destination-card.is-spinning .card-art {
    animation: none;
  }
  .destination-card {
    transition: none;
  }
}
