/* ==========================================================================
   8. Turismo (Design System 7.10: card de turismo)
   Fundo cream-50 · 3 cards iguais: imagem no topo + H4 + descrição completa
   + botão secundário "Saiba mais!".
   ========================================================================== */

.nes-turismo {
  background: var(--nes-cream-50);
  color: var(--nes-ink);
}

.nes-turismo__head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.nes-turismo__eyebrow {
  color: var(--nes-red-600);
}

.nes-turismo__heading {
  color: var(--nes-red-600);
}

.nes-turismo__intro {
  color: var(--nes-muted);
}

.nes-turismo__grid {
  display: grid;
  gap: var(--nes-space-5);
}

.nes-turismo__card {
  height: 100%;
  transition: transform var(--nes-dur) var(--nes-ease), box-shadow var(--nes-dur) var(--nes-ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .nes-turismo__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nes-shadow-md);
  }
}

.nes-turismo__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--nes-night-900);
}

.nes-turismo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nes-turismo__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--nes-space-5);
}

.nes-turismo__title {
  font-family: var(--nes-font-serif);
  color: var(--nes-night-900);
}

.nes-turismo__text {
  margin-top: var(--nes-space-2);
  margin-bottom: var(--nes-space-5);
  color: var(--nes-muted);
}

/* botão sempre no pé do card, alinhado entre os três */
.nes-turismo__btn {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Tablet: 2 colunas (o terceiro centralizado) · Desktop: 3 colunas
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nes-turismo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nes-gutter);
  }

  .nes-turismo__grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--nes-gutter) / 2);
  }
}

@media (min-width: 1024px) {
  .nes-turismo__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nes-turismo__grid > li:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }
}
