/* ==========================================================================
   destinos.css — Seção "Próximos Destinos": grid de cards de exemplo
   Importar APÓS como-funciona.css e ANTES de animations.css.
   ========================================================================== */


/* ==========================================================================
   1. Fundo da seção — branco (alternando com o marfim do como-funciona)
   ========================================================================== */

#destinos {
  background-color: var(--branco);
}


/* ==========================================================================
   2. Cabeçalho da seção
   ========================================================================== */

.dest-cabecalho {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.dest-pre-titulo {
  display: block;
  margin-bottom: 0.75rem;
}

.dest-titulo {
  text-wrap: balance;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.dest-subtitulo {
  font-size: clamp(0.9375rem, 0.5vw + 0.85rem, 1.0625rem);
  line-height: 1.75;
  color: var(--texto-suave);
  max-width: 62ch;
  margin-inline: auto;
  text-wrap: pretty;
}


/* ==========================================================================
   3. Grid de cards — 4 colunas (desktop), 2 (tablet), 1 (mobile)
   ========================================================================== */

.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}


/* ==========================================================================
   4. Card — estrutura e layout
   ========================================================================== */

.dest-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--raio);
  background-color: var(--branco);
  border: 1px solid rgba(22, 168, 201, 0.18);
  box-shadow: 0 6px 28px -10px rgba(12, 59, 90, 0.12);
  overflow: hidden;
  transition:
    transform 260ms cubic-bezier(.25, .46, .45, .94),
    box-shadow 260ms cubic-bezier(.25, .46, .45, .94);
}

.dest-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 48px -12px rgba(12, 59, 90, 0.22);
}


/* ==========================================================================
   5. Frame da imagem — contém a foto e o label tag
   ========================================================================== */

.dest-card__img-frame {
  position: relative;
  overflow: hidden;
  /* aspect-ratio aplicado aqui para que o img preencha inteiro */
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.dest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 400ms cubic-bezier(.25, .46, .45, .94);
}

.dest-card:hover .dest-card__img {
  transform: scale(1.05);
}


/* ==========================================================================
   6. Label pill — tag de status sobre a imagem
   ========================================================================== */

.dest-card__tag {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  font-family: var(--fonte-titulo);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.3125rem 0.75rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* Garante que fique acima da imagem mas abaixo de foco */
  z-index: 1;
}

/* "Em breve" — pill escura translúcida */
.dest-card__tag--breve {
  background-color: rgba(12, 59, 90, 0.72);
  color: rgba(255, 255, 255, 0.92);
}

/* "Vagas abertas" — pill turquesa viva para indicar disponibilidade */
.dest-card__tag--abertas {
  background-color: var(--turquesa);
  color: var(--branco);
  box-shadow: 0 2px 8px -2px rgba(22, 168, 201, 0.55);
}


/* ==========================================================================
   7. Corpo do card — nome, estado e botão
   ========================================================================== */

.dest-card__corpo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.25rem 1.375rem 1.5rem;
  flex: 1;
}

.dest-card__nome {
  font-family: var(--fonte-titulo);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--azul-profundo);
  line-height: 1.2;
  margin: 0;
  max-width: none;
}

.dest-card__estado {
  font-family: var(--fonte-texto);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-suave);
  line-height: 1.3;
  margin: 0 0 0.875rem;
  max-width: none;
}

/* Botão de WhatsApp alinhado ao fundo para uniformidade entre cards */
.dest-card__corpo .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}


/* ==========================================================================
   8. Acessibilidade — prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .dest-card,
  .dest-card__img {
    transition: none;
  }

  .dest-card:hover .dest-card__img {
    transform: none;
  }
}
