/* ==============================
 * PÁGINA DE DESTINO (TAXONOMIA)
 * Design Editorial Clean - MESMO PADRÃO DA HOME
 * ============================== */

/* Reset completo para taxonomy-destino.php */
body.tax-destino,
body.tax-destino #primary,
body.tax-destino #content,
body.tax-destino .entry-content,
body.tax-destino main.site-main,
body.tax-destino .site-content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tax-destino .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Reset para article principal */
body.tax-destino > #content > article {
  margin: 0 !important;
  padding: 0 !important;
}

/* Container centralizado (igual home) */
.destino-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==============================
 * HERO HEADER (igual home)
 * ============================== */
.destino-header {
  position: relative;
  height: 65vh;
  min-height: 500px;
  max-height: 700px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.destino-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.destino-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.destino-title {
  font-size: 4.5em;
  font-weight: 800;
  margin: 15px 0 24px 0;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -1.5px;
  font-family: 'Museo Sans Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.destino-description {
  font-size: 1.3em;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.destino-stats {
  margin-top: 30px;
}

.destino-count {
  display: inline-block;
  background: #FFEB00;
  color: #000000;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 235, 0, 0.3);
  text-transform: lowercase;
}


/* ==============================
 * SEÇÃO DE PROGRAMAS (igual home)
 * ============================== */
.destino-programas {
  padding: 100px 0 120px;
  background: #F7F7F7;
  position: relative;
}

/* Header da seção de programas */
.section-header-programas {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.section-title-programas {
  font-size: 2.5em;
  font-weight: 800;
  color: #000000;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  font-family: 'Museo Sans Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.section-subtitle-programas {
  font-size: 1.15em;
  color: #666666;
  line-height: 1.6;
  font-weight: 400;
}

/* Grid de 3 colunas (IGUAL HOME) */
.destino-page .programas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==============================
 * CARDS DE PROGRAMAS (IGUAL HOME - SEM SOMBRA)
 * ============================== */
.destino-page .programa-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.destino-page .programa-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ebebeb;
}

.destino-page .programa-card-link:hover .programa-card {
  transform: translateY(-6px);
  border-color: #0051A5;
  box-shadow: 0 16px 48px rgba(0, 81, 165, 0.18);
}

/* Imagem do programa (IGUAL HOME) */
.destino-page .programa-imagem {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f0f0f0;
}

.destino-page .programa-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.destino-page .programa-card-link:hover .programa-imagem img {
  transform: scale(1.05);
}

/* Overlay na imagem (aparece no hover) */
.destino-page .programa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.destino-page .programa-card:hover .programa-overlay {
  opacity: 1;
}

/* Info do programa */
.destino-page .programa-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.destino-page .programa-destino {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666666;
  font-size: 0.85em;
  margin-bottom: 10px;
  font-weight: 500;
}

.destino-page .programa-destino i {
  color: #0051A5;
  font-size: 0.9em;
}

.destino-page .programa-titulo {
  font-size: 1.35em;
  font-weight: 800;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  min-height: 50px;
  font-family: 'Museo Sans Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.destino-page .programa-resumo {
  color: #666666;
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Meta info (duração) */
.destino-page .programa-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666666;
  font-size: 0.85em;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.destino-page .programa-meta i {
  color: #0051A5;
}

/* Botão Ver Detalhes (aparece no hover) */
.destino-page .programa-cta {
  margin-top: auto;
  padding-top: 16px;
}

.destino-page .btn-ver-detalhes {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #0051A5;
  letter-spacing: 0.3px;
}

.destino-page .programa-card-link:hover .btn-ver-detalhes {
  background: #0051A5;
  color: #fff;
  border-color: #0051A5;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 81, 165, 0.25);
}

.destino-page .btn-ver-detalhes i {
  font-size: 0.85em;
  transition: transform 0.3s ease;
}

.destino-page .programa-card-link:hover .btn-ver-detalhes i {
  transform: translateX(3px);
}

/* ==============================
 * ESTADO VAZIO
 * ============================== */
.destino-page .no-programas {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.destino-page .no-programas h3 {
  color: #000000;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: 700;
}

.destino-page .no-programas p {
  color: #666666;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.7;
}

.destino-page .no-programas .btn-primary {
  background: #3BAE49;
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-size: 1em;
}

.destino-page .no-programas .btn-primary:hover {
  background: #2d8a38;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 174, 73, 0.3);
}

/* ==============================
 * RESPONSIVIDADE (IGUAL HOME)
 * ============================== */

/* Tablet */
@media (max-width: 1024px) {
  .destino-page .programas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 30px;
  }
  
  .destino-page .container {
    padding: 0 30px;
  }
  
  .destino-header-content {
    padding: 0 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .destino-header {
    height: 50vh;
    min-height: 350px;
  }
  
  .destino-title {
    font-size: 2.2em;
    letter-spacing: -0.5px;
  }
  
  .destino-description {
    font-size: 1.1em;
  }
  
  .destino-programas {
    padding: 60px 0;
  }
  
  .section-header-programas {
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  .section-title-programas {
    font-size: 1.8em;
    margin-bottom: 12px;
  }
  
  .section-subtitle-programas {
    font-size: 1em;
  }
  
  .destino-page .programas-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }
  
  .destino-page .container {
    padding: 0 20px;
  }
  
  .destino-header-content {
    padding: 0 20px;
  }
  
  .destino-page .programa-imagem {
    height: 220px;
  }
  
  .destino-page .programa-info {
    padding: 20px;
  }
  
  .destino-page .programa-titulo {
    font-size: 1.2em;
    min-height: auto;
  }
  
  .destino-page .programa-rodape {
    flex-direction: column;
  }
  
  .destino-page .btn {
    width: 100%;
  }
}
