/* ============================================================
   ESTILO GERAL: PACOTES (PRINCIPAL) E ROTEIROS (INTERNOS)
   ============================================================ */

/* ------------------------------------------------------------
   1. HEROS (TOPO) - CORRIGIDO
   ------------------------------------------------------------ */
.hero-bg-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  overflow: hidden;
}

/* --- A CORREÇÃO ESTÁ AQUI --- */
/* Isso força a tag <picture> a ter o tamanho real da tela, 
   impedindo que a imagem seja achatada */
.hero-bg-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg-container img {
  width: 100% !important;
  height: 100% !important;
  /* O object-fit: cover é quem corta as bordas excedentes 
     para manter a proporção original da foto (1920x1080) */
  object-fit: cover !important;
  object-position: center top !important; /* Foca no topo da foto */
  display: block !important;
}

/* HERO PRINCIPAL (PACOTES) */
.packages-hero {
  position: relative;
  height: 800px; /* Mantive sua altura original */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -80px;
  color: #fff;
  overflow: hidden;
}

/* HERO INTERNO (ROTEIROS) */
.roteiro-hero {
  position: relative;
  height: 65vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -80px;
  color: #fff;
  overflow: hidden;
}

.packages-hero .overlay,
.roteiro-hero .overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(15, 23, 42, 0.3) 100%
  );
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.packages-hero h1,
.roteiro-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-weight: 700;
}

.packages-hero p {
  font-size: 1.3rem;
  color: #e2e8f0;
  font-weight: 300;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.roteiro-hero .eyebrow {
  color: #d4af37;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------
   2. BARRA DE FILTROS & OUTROS
   ------------------------------------------------------------ */
.filter-bar-container {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.filter-bar {
  background: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  background: transparent;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.filter-btn:hover,
.filter-btn.active {
  background: #d4af37;
  color: #fff;
}

.section-padding {
  padding: 80px 0;
}
.section-label {
  text-align: center;
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #d4af37;
  margin-bottom: 30px;
  font-weight: 700;
}

/* CARDS DESTAQUE (HOME PACOTES) */
.featured-card {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}
.featured-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.date-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.date-badge span {
  display: block;
  line-height: 1;
}
.date-badge .day {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
}
.date-badge .month {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d4af37;
  margin: 5px 0;
}
.date-badge .year {
  font-size: 0.8rem;
  color: #666;
}

.featured-info {
  flex: 1;
  padding: 50px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.package-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.package-meta span {
  font-size: 0.9rem;
  color: #666;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.2;
}
.featured-info .description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.highlights {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}
.highlights h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.highlights ul {
  list-style: none;
  padding: 0;
}
.highlights li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.highlights i {
  color: #d4af37;
}

.btn-primary {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  text-align: center;
}
.btn-primary:hover {
  background: #d4af37;
  transform: translateY(-3px);
}

/* LISTA DE ROTEIROS (CASCATA) */
.list-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1a1a1a;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}
.roteiros-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.roteiro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  background: #fff;
  transition: all 0.3s ease;
}
.roteiro-item:hover {
  background: #fdfaf3;
  padding-left: 35px;
}
.roteiro-data {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: #d4af37;
  width: 120px;
  font-size: 0.9rem;
}
.roteiro-nome {
  flex: 1;
}
.roteiro-nome h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin: 0 0 5px 0;
  color: #1a1a1a;
}
.roteiro-nome span {
  font-size: 0.95rem;
  color: #777;
}
.roteiro-seta {
  color: #d4af37;
  font-size: 1.2rem;
}

/* ------------------------------------------------------------
   5. LAYOUT INTERNO DOS ROTEIROS (Grid + Sidebar)
   ------------------------------------------------------------ */
.roteiro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}
.roteiro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
.roteiro-texto h2 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 20px;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
}
.roteiro-texto p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.roteiro-sidebar {
  position: relative;
}
.resumo-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  position: sticky;
  top: 100px;
}
.preco-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.preco-valor {
  font-size: 2.5rem;
  color: #0f172a;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  display: block;
  margin-bottom: 20px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.info-item i {
  font-size: 1.5rem;
  color: #d4af37;
}
.info-texto span {
  display: block;
  font-size: 0.8rem;
  color: #888;
}
.info-texto strong {
  font-size: 1rem;
  color: #334155;
}
.btn-comprar {
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  width: 100%;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
}
.btn-comprar:hover {
  background-color: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* --- LISTA DE DESTAQUES (Estilo Padrão Desktop) --- */
.destaques-lista {
  list-style: none;
  margin: 30px 0;
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.destaques-lista li {
  margin-bottom: 15px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.destaques-lista li i {
  color: #d4af37;
  font-size: 1.1rem;
  margin-top: 5px;
  flex-shrink: 0;
}
/* No PC, o texto comporta-se normalmente */
.destaques-lista .texto-destaque {
  flex: 1;
}

/* ------------------------------------------------------------
   6. RESPONSIVIDADE (MOBILE)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .roteiro-grid {
    grid-template-columns: 1fr;
  }
  .resumo-card {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  /* Hero e Menu */
  .packages-hero,
  .roteiro-hero {
    height: 75vh;
  }
  .hero-content {
    padding-top: 140px;
    padding-bottom: 40px;
  }
  .packages-hero h1,
  .roteiro-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  .featured-card {
    flex-direction: column;
  }
  .roteiro-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .roteiro-seta {
    display: none;
  }

  /* --- MÁGICA DOS DESTAQUES NO MOBILE (ESTILO CARTÃO) --- */

  .destaques-lista {
    background: transparent; /* Remove o fundo cinza geral */
    padding: 0;
    border: none;
  }

  .destaques-lista li {
    display: flex;
    flex-direction: column; /* Coloca o ícone EM CIMA */
    align-items: center; /* Centraliza tudo horizontalmente */

    background: #fff; /* Fundo Branco */
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee; /* Borda fininha */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); /* Sombra suave */
    margin-bottom: 20px;
  }

  /* O Ícone */
  .destaques-lista li i {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4af37; /* O Sublinhado Dourado */
    width: 40px;
    text-align: center;
  }

  /* O Texto (agora dentro da div, obedece ao alinhamento) */
  .destaques-lista .texto-destaque {
    text-align: justify; /* Texto justificado */
    width: 100%;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
  }
}

/* ============================================================
   NOVA SEÇÃO HUB (GRID DE CONTINENTES) - VERSÃO MAPAS
   ============================================================ */

.categories-section {
  padding: 80px 0;
  background-color: #fff;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centraliza os cartões (3 cima, 2 baixo) */
  gap: 30px; /* Espaço entre os cartões */
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  /* Cálculo matemático para caber 3 por linha perfeitamente */
  flex: 0 1 calc(33.333% - 20px);
  height: 500px; /* Altura alta e imponente */
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;

  /* Estilo especial para MAPAS (Fundo cinza e borda) */
  background-color: #eeeeee;
  border: 1px solid #ddd;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px); /* Sobe ao passar o mouse */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: #d4af37; /* Borda fica dourada no hover */
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que o mapa preencha tudo */
  transition: transform 0.5s ease;
  display: block;
}

.category-card:hover img {
  transform: scale(1.05); /* Zoom suave */
}

/* O Gradiente Preto embaixo para o texto aparecer */
.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente mais forte no rodapé para leitura */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end; /* Texto cola no rodapé */
  justify-content: center;
  padding-bottom: 40px;
}

.category-title {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* RESPONSIVIDADE (Ajuste para Celular e Tablet) */
@media (max-width: 992px) {
  .category-card {
    flex: 0 1 calc(50% - 15px); /* Tablet: 2 por linha */
    height: 400px;
  }
}

@media (max-width: 768px) {
  .category-card {
    flex: 0 1 100%; /* Celular: 1 por linha (Ocupa tudo) */
    height: 350px;
  }
}

/* ============================================================
   EFEITO MAPA MUNDI OVAL (VIGNETA)
   ============================================================ */

/* 1. Ajuste na Imagem para focar no Mapa */
.hero-mapa img {
  object-fit: cover;
  object-position: center center; /* Garante que o mapa fique no meio */
  transform: scale(1.1); /* Um leve zoom para cortar bordas desnecessárias */
}

/* 2. O Segredo do Oval: Uma sombra radial */
.overlay-mapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Isso cria um círculo transparente no meio e preto nas bordas.
     Mude 'rgba(0,0,0,0.8)' para a cor que quiser nas bordas.
  */
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.2) 0%,
    /* Centro (Claro) */ rgba(0, 0, 0, 0.4) 50%,
    /* Meio termo */ rgba(0, 0, 0, 0.9) 100% /* Bordas (Escuro/Oval) */
  );
}
