/* ==========================================================
   Related Destinations Slider
   ========================================================== */

/* --- Wrapper --------------------------------------------- */
.rd-slider {
  position: relative;
  max-width: 800px;
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: 0 1rem;
  background: #fff;
  overflow: hidden;
}

/* --- Fade (FAST, STATIONÄR – följer ALDRIG med scroll) --- */
.rd-slider::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    #fff
  );

  opacity: 0;
  transition: opacity 0.25s ease;
}

.rd-slider.has-more::after {
  opacity: 1;
}

/* --- Intro ------------------------------------------------ */
.rd-slider__intro {
  max-width: 620px;
  margin-bottom: 1.25rem;
}

.rd-slider__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.rd-slider__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  opacity: 0.9;
}

/* --- Track wrapper --------------------------------------- */
.rd-slider__track-wrapper {
  overflow-x: auto;
  position: relative;
}

/* --- Track ------------------------------------------------ */
.rd-slider__track {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.75rem;
  cursor: grab;
  user-select: none;
}

.rd-slider.is-dragging .rd-slider__track {
  cursor: grabbing;
}

/* --- Card ------------------------------------------------- */
.rd-slider__card {
  flex: 0 0 260px;
  height: 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rd-slider__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.18);
}

/* --- Image ----------------------------------------------- */
.rd-slider__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.rd-slider__card:hover .rd-slider__image {
  transform: scale(1.06);
}

/* --- Overlay --------------------------------------------- */
.rd-slider__overlay {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0) 100%
  );
}

.rd-slider__card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rd-slider__cta {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* --- Mobile ---------------------------------------------- */
@media (max-width: 640px) {
  .rd-slider__card {
    flex: 0 0 230px;
    height: 340px;
  }

  .rd-slider__title {
    font-size: 1.4rem;
  }
}