.travels-months-wrapper {
  position: relative;
}

.departure-months {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #f8f9fa;
  scroll-behavior: smooth;
}

/* Fade effect */
.scroll-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.departure-months::-webkit-scrollbar {
  height: 6px;
}

.departure-months::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.departure-months::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.departure-months li {
  white-space: nowrap;
}

.departure-months li a {
  display: inline-block;
  padding: 8px 12px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.departure-months li a:hover {
  background: var(--color-primary-dark);
}


/* Media Query for Desktop */
@media (min-width: 1024px) {
  .departure-months {
    flex-wrap: wrap; /* Allow items to wrap on desktop */
  }

  .scroll-indicator {
    display: none; /* Hide the scroll indicator on larger screens */
  }
}
