.destinations {
  padding: 72px 0 80px;
  background: var(--color-white);
  overflow: hidden;
}

.destinations__header {
  text-align: center;
  margin-bottom: 48px;
}

.destinations__title {
  display: inline-block;
  color: var(--color-primary);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-gold);
}

/* ── Slider shell ── */
.destinations__slider {
  position: relative;
}

.destinations__slider--carousel {
  padding: 0 52px;
}

.destinations__viewport {
  overflow: hidden;
}

.destinations__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.destinations__slider--carousel .destinations__track {
  display: flex;
  gap: 20px;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.destinations__slider--carousel .destinations__slide {
  flex: 0 0 auto;
}

/* ── Card ── */
.destinations__card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(2, 29, 62, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.destinations__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(2, 29, 62, 0.18);
}

.destinations__card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.destinations__card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.destinations__card:hover .destinations__card-image {
  transform: scale(1.07);
}

.destinations__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 29, 62, 0) 0%,
    rgba(2, 29, 62, 0.1) 35%,
    rgba(2, 29, 62, 0.55) 65%,
    rgba(2, 29, 62, 0.9) 100%
  );
}

.destinations__card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px 72px 24px 24px;
  color: var(--color-white);
}

.destinations__card-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.destinations__card-price {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  overflow-wrap: anywhere;
}

.destinations__card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.destinations__card:hover .destinations__card-arrow {
  background: var(--color-gold-light);
  transform: scale(1.08);
}

/* ── Nav ── */
.destinations__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(2, 29, 62, 0.15);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.destinations__nav:hover:not(:disabled) {
  background: var(--color-gold);
  box-shadow: 0 6px 20px rgba(2, 29, 62, 0.2);
  transform: scale(1.06);
}

.destinations__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.destinations__nav--prev {
  left: 0;
}

.destinations__nav--next {
  right: 0;
}

/* ── Dots ── */
.destinations__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.destinations__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(2, 29, 62, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.destinations__dot.is-active {
  background: var(--color-gold);
  transform: scale(1.15);
}

/* ── Motion ── */
@keyframes destinations-fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.destinations__header,
.destinations__slide {
  opacity: 0;
  transform: translateY(32px);
}

.destinations.is-visible .destinations__header {
  animation: destinations-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.destinations.is-visible .destinations__slide:nth-child(1) {
  animation: destinations-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.destinations.is-visible .destinations__slide:nth-child(2) {
  animation: destinations-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.destinations.is-visible .destinations__slide:nth-child(3) {
  animation: destinations-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

.destinations.is-visible .destinations__slide:nth-child(4) {
  animation: destinations-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.destinations.is-visible .destinations__slide:nth-child(n+5) {
  animation: destinations-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* ── Modal ── */
body.destination-modal-open {
  overflow: hidden;
}

.destination-modal[hidden] {
  display: none !important;
}

.destination-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.destination-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 29, 62, 0.72);
  backdrop-filter: blur(6px);
}

.destination-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(2, 29, 62, 0.35);
  animation: destinationModalIn 0.28s ease-out;
}

@keyframes destinationModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.destination-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #6B7280;
  background: rgba(243, 244, 246, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition);
}

.destination-modal__close:hover {
  color: var(--color-primary);
  background: #E5E7EB;
}

.destination-modal__body {
  padding: 0 0 24px;
}

.destination-modal__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.destination-modal__content {
  padding: 24px 28px 0;
}

.destination-modal__title {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
}

.destination-modal__price {
  color: var(--color-gold);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
}

.destination-modal__text {
  color: #4B5563;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1200px) {
  .destinations__track:not(.destinations__slider--carousel .destinations__track) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .destinations__card {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .destinations {
    padding: 56px 0 64px;
  }

  .destinations__header {
    margin-bottom: 36px;
  }

  .destinations__slider--carousel {
    padding: 0 36px;
  }

  .destinations__nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .destinations__card {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .destinations__slider--carousel {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    grid-template-areas:
      "viewport viewport viewport"
      "prev dots next";
    gap: 14px 10px;
    padding: 0;
    align-items: center;
  }

  .destinations__slider--carousel .destinations__track {
    gap: 0;
  }

  .destinations__viewport {
    grid-area: viewport;
    width: 100%;
    min-width: 0;
  }

  .destinations__nav {
    display: flex;
    position: static;
    margin: 0;
    width: 44px;
    height: 44px;
    justify-self: center;
  }

  .destinations__nav--prev {
    grid-area: prev;
    left: auto;
  }

  .destinations__nav--next {
    grid-area: next;
    right: auto;
  }

  .destinations__dots {
    grid-area: dots;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }

  .destinations__card {
    min-height: 300px;
  }

  .destinations__card:hover {
    transform: none;
  }

  .destinations__card-content {
    padding: 20px 60px 20px 18px;
  }
}

@media (max-width: 640px) {
  .destinations {
    padding: 48px 0 56px;
  }

  .destinations__slider--carousel {
    grid-template-columns: 42px 1fr 42px;
    gap: 12px 8px;
  }

  .destinations__nav {
    width: 40px;
    height: 40px;
  }

  .destinations__card {
    min-height: 280px;
  }

  .destinations__card-title {
    font-size: 18px;
  }

  .destinations__card-price {
    font-size: 13px;
  }

  .destinations__card-content {
    padding: 18px 56px 18px 16px;
  }

  .destinations__card-arrow {
    width: 38px;
    height: 38px;
    right: 14px;
    bottom: 14px;
  }

  .destinations__dots {
    margin-top: 0;
  }

  .destination-modal__content {
    padding: 20px 20px 0;
  }

  .destination-modal__title {
    font-size: 20px;
  }

  .destination-modal__text {
    font-size: 14px;
  }
}
