.nelson-travel-periods {
  --ntp-pin: #4a403a;
  --ntp-muted: #6a6258;
  --ntp-ecume: #f7f4ee;
  --ntp-lagon: #9ebca4;
  --ntp-recif: #8a9a68;
  --ntp-blanc: #f7f4ee;
  --ntp-marron: #4a403a;

  background: #f7f4ee;
  color: var(--ntp-pin);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.nelson-travel-periods::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(158 188 164 / 70%) 20%,
    rgb(158 188 164 / 70%) 80%,
    transparent
  );
  pointer-events: none;
}

.nelson-travel-periods .padding-global {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 2rem 0;
}

.nelson-travel-periods__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.nelson-travel-periods__header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.nelson-travel-periods__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ntp-recif);
}

.nelson-travel-periods__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: inherit;
}

.nelson-travel-periods__line {
  width: min(12rem, 40vw);
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--ntp-lagon);
  opacity: 0.65;
}

.nelson-travel-periods__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ntp-muted);
}

.nelson-travel-periods__switcher {
  display: flex;
  gap: 0.5rem;
  max-width: 52rem;
  margin: 0 auto 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.nelson-travel-periods__switcher::-webkit-scrollbar {
  display: none;
}

.nelson-travel-periods__pill {
  flex: 0 0 auto;
  border: 1px solid #8a9a68;
  border-radius: 999px;
  background: transparent;
  color: #4a403a;
  padding: 0.5rem 1rem;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nelson-travel-periods__pill.is-active,
.nelson-travel-periods__pill:hover {
  background: #8a9a68;
  border-color: #8a9a68;
  color: #4a403a;
}

.nelson-travel-periods__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgb(110 115 68 / 28%);
  border-radius: 1.7rem;
  animation: nelson-travel-periods-in 0.35s ease;
}

@media (min-width: 800px) {
  .nelson-travel-periods__switcher {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .nelson-travel-periods__panel {
    padding: 2rem;
  }
}

.nelson-travel-periods__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nelson-travel-periods__arrow {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #8a9a68;
  border-radius: 999px;
  background: transparent;
  color: #4a403a;
  font-size: 1rem;
  cursor: pointer;
}

.nelson-travel-periods__arrow:hover {
  background: #8a9a68;
  border-color: #8a9a68;
  color: #4a403a;
}

.nelson-travel-periods__name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-align: center;
  color: #4a403a;
}

.nelson-travel-periods__hint {
  margin: 1rem 0 0;
  text-align: center;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #6a625b;
}

.nelson-travel-periods__open {
  display: inline-flex;
  align-items: center;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  border: 1px solid #8a9a68;
  border-radius: 999px;
  background: #8a9a68;
  color: #4a403a;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.nelson-travel-periods__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nelson-travel-periods__open:hover {
  background: #748456;
  color: #4a403a;
}

.nelson-travel-periods__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .nelson-travel-periods__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nelson-travel-periods__dest {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  border-radius: 1.7rem;
  color: #efefe5;
  text-decoration: none;
}

.nelson-travel-periods__dest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.nelson-travel-periods__dest:hover img {
  transform: scale(1.04);
}

.nelson-travel-periods__dest span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgb(47 41 37 / 72%));
}

.nelson-travel-periods__dest strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.nelson-travel-periods__dest em {
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes nelson-travel-periods-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nelson-travel-periods__panel {
    animation: none;
  }
}
