/* ============================================================
   DESIGN SYSTEM — FAHRENHEITOUR
   Paleta: azul da marca, dourados e terracotas de pôr do sol.
   ============================================================ */

/* Fontes do Google removidas: o visual novo usa a fonte do sistema (ver modern.css) */

:root {
  --azul-fahrenheit:   #0B3D91;
  --amarelo-fahrenheit: #FFD200;

  --marrom-escuro:  #2F241E;
  --marrom-terra:   #5A4030;
  --terracota:      #9A6245;

  --dourado:        #C69A4A;
  --areia-dourada:  #D8B878;

  --bege:           #E4D5BE;
  --creme:          #F5EFE3;

  /* Aliases usados nos componentes abaixo, para manter o restante do CSS legível */
  --ink-navy:      var(--marrom-escuro);
  --ink-navy-80:   var(--marrom-terra);
  --paper-cream:   var(--creme);
  --paper-cream-2: var(--bege);
  --horizon-teal:  var(--azul-fahrenheit);
  --sunset-clay:   var(--dourado);
  --compass-gold:  var(--areia-dourada);
  --charcoal:      var(--marrom-escuro);
  --line:          rgba(47, 36, 30, 0.16);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Montserrat', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius: 4px;
  --shadow-card: 0 10px 30px rgba(47, 36, 30, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper-cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--marrom-escuro);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul-fahrenheit);
  display: inline-block;
  margin-bottom: 0.6em;
}

/* ---------------- HEADER ---------------- */
.site-header {
  background: var(--marrom-escuro);
  color: var(--creme);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216,184,120,0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--creme);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .stamp-mini {
  width: 30px; height: 30px;
  border: 1.5px solid var(--amarelo-fahrenheit);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amarelo-fahrenheit);
}

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(245,239,227,0.85);
  transition: color .15s;
}
.main-nav a:hover { color: var(--amarelo-fahrenheit); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--amarelo-fahrenheit); color: var(--marrom-escuro); }
.btn-primary:hover { transform: translateY(-1px); background: var(--dourado); }
.btn-outline { border-color: rgba(245,239,227,0.45); color: var(--creme); }
.btn-outline:hover { border-color: var(--amarelo-fahrenheit); color: var(--amarelo-fahrenheit); }
.btn-dark { background: var(--marrom-escuro); color: var(--creme); }

/* ---------------- HERO ---------------- */
.hero {
  background:
    linear-gradient(100deg, rgba(47,36,30,0.93) 0%, rgba(47,36,30,0.72) 35%, rgba(47,36,30,0.35) 70%, rgba(47,36,30,0.10) 100%),
    url('https://images.unsplash.com/photo-1563789031959-4c02bcb41319?fm=jpg&q=80&w=2000&auto=format&fit=crop') center 65% / cover no-repeat;
  color: var(--creme);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-flightpaths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-plane {
  position: absolute;
  top: 0; left: 0;
  font-size: 22px;
  offset-rotate: auto;
  offset-distance: 4%;
  transition: offset-distance 1.6s cubic-bezier(.4,0,.2,1);
  z-index: 2;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
  pointer-events: auto;
  cursor: pointer;
}
.hero-plane-1 { offset-path: path('M 100 130 Q 480 30 940 160'); }
.hero-plane-2 { offset-path: path('M 60 330 Q 340 260 660 320 T 1140 280'); }

.hero:hover .hero-plane-1 { offset-distance: 97%; }
.hero:hover .hero-plane-2 { offset-distance: 94%; }

@media (max-width: 860px) {
  .hero-plane, .hero-flightpaths { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero p.lede {
  font-size: 1.1rem;
  color: rgba(245,239,227,0.82);
  max-width: 46ch;
  margin-bottom: 2em;
}

.hero-actions { display: flex; gap: 14px; }

.hero-stat-card {
  background: var(--creme);
  color: var(--marrom-escuro);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  border: 2px solid var(--dourado);
}
.hero-stat-card .stat-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}
.hero-stat-card .stat-row:last-child { border-bottom: none; }
.hero-stat-card .stat-value { font-weight: 700; color: var(--terracota); }

.hero .eyebrow, .pais-hero .eyebrow, .pais-hero .continente-tag { color: var(--amarelo-fahrenheit); }

/* ---------------- TICKET DIVIDER (elemento assinatura) ---------------- */
.ticket-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}
.ticket-divider .dots {
  flex: 1;
  border-top: 2px dotted var(--areia-dourada);
}
.ticket-divider .plane {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--azul-fahrenheit);
  letter-spacing: 0.1em;
}

/* ---------------- SEÇÃO PAÍSES (carimbos de passaporte) ---------------- */
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-head p { color: rgba(47,36,30,0.65); max-width: 50ch; }

.paises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.pais-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform .2s;
  border: 1px solid var(--bege);
}
.pais-card:hover { transform: translateY(-4px); }

.pais-card .img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--marrom-terra); }
.pais-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.stamp {
  position: absolute;
  top: 14px; right: 14px;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--amarelo-fahrenheit);
  background: rgba(47,36,30,0.55);
  backdrop-filter: blur(2px);
  color: var(--creme);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em;
  transform: rotate(-8deg);
}

.pais-card .body { padding: 22px; }
.pais-card .continente {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--azul-fahrenheit); margin-bottom: 6px; display: block;
}
.pais-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.pais-card p { font-size: 0.92rem; color: rgba(47,36,30,0.7); margin-bottom: 18px; }
.pais-card .ver-mais { font-weight: 700; font-size: 0.88rem; color: var(--terracota); display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- PÁGINA DO PAÍS ---------------- */
.pais-hero {
  background: var(--marrom-escuro);
  color: var(--creme);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.mapa-container {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.leaflet-popup-content-wrapper {
  font-family: var(--font-body);
  border-radius: var(--radius);
}
.popup-destino h4 { margin: 0 0 4px; font-size: 1rem; font-family: var(--font-display); }
.popup-destino p { margin: 0; font-size: 0.85rem; color: #555; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.galeria-grid img {
  width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius);
  cursor: pointer; transition: opacity .15s;
}
.galeria-grid img:hover { opacity: 0.85; }

.pacote-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-bottom: 16px; flex-wrap: wrap;
  border: 1px solid var(--bege);
}
.pacote-card .preco { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--terracota); }
.pacote-card .preco small { display: block; font-size: 0.7rem; font-weight: 400; color: #888; font-family: var(--font-body); }

/* ---------------- FORMULÁRIOS ---------------- */
.form-card {
  background: #fff; max-width: 480px; margin: 60px auto; padding: 40px;
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  border: 1px solid var(--bege);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--marrom-escuro); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--creme);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--azul-fahrenheit);
}
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 18px; }
.alert-erro { background: #FBE7E1; color: #8A3A1E; border: 1px solid #E3B79E; }
.alert-sucesso { background: #EFF1E1; color: #4B5A1E; border: 1px solid #C9D19E; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--marrom-escuro); color: rgba(245,239,227,0.68);
  padding: 50px 0 30px; margin-top: 60px; font-size: 0.88rem;
}
.site-footer a:hover { color: var(--amarelo-fahrenheit); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(216,184,120,0.18); }

/* ---------------- ADMIN ---------------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bege); }
.admin-sidebar { width: 240px; background: var(--marrom-escuro); color: var(--creme); padding: 26px 18px; flex-shrink: 0; }
.admin-sidebar .brand { margin-bottom: 34px; }
.admin-sidebar nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.9rem; color: rgba(245,239,227,0.78); margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.ativo { background: rgba(245,239,227,0.09); color: var(--amarelo-fahrenheit); }
.admin-main { flex: 1; padding: 36px 42px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

.tabela { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.tabela th, .tabela td { padding: 13px 16px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.tabela th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--azul-fahrenheit); background: var(--creme); }
.tabela tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-ativo { background: #EFF1E1; color: #4B5A1E; }
.badge-inativo { background: #F1E4E4; color: #8A2C2C; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
.hero h1 {
  color: var(--creme);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.transporte-bloco { margin-top: 30px; }

.transporte-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.transporte-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--areia-dourada);
  background: #fff;
  color: var(--marrom-escuro);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.transporte-tab:hover { border-color: var(--dourado); }
.transporte-tab.ativo {
  background: var(--marrom-escuro);
  border-color: var(--marrom-escuro);
  color: var(--amarelo-fahrenheit);
}

.lista-conexoes { display: flex; flex-direction: column; gap: 12px; }

.conexao-item {
  background: #fff;
  border: 1px solid var(--bege);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}
.conexao-rota { font-family: var(--font-display); font-size: 1.05rem; color: var(--marrom-escuro); }
.conexao-meta {
  display: flex; gap: 14px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--terracota);
}
.conexao-obs { margin: 8px 0 0; font-size: 0.88rem; color: #666; }
.conexoes-vazio { color: #888; font-size: 0.9rem; font-style: italic; 
}

/* ---------------- Botão "Buscar passagem" dentro do card de conexão ---------------- */
.conexao-btn-busca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--amarelo-fahrenheit);
  color: var(--marrom-escuro);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background .15s, transform .15s;
}
.conexao-btn-busca:hover { background: var(--dourado); transform: translateY(-1px); 
}
.conexao-btn-contato {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--azul-fahrenheit);
  color: var(--azul-fahrenheit);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background .15s, color .15s, transform .15s;
}
.conexao-btn-contato:hover { background: var(--azul-fahrenheit); color: #fff; transform: translateY(-1px); 
}
.relatos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.relato-card {
  background: #fff;
  border: 1px solid var(--bege);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.relato-foto { height: 190px; overflow: hidden; background: var(--marrom-terra); }
.relato-foto img { width: 100%; height: 100%; object-fit: cover; }
.relato-body { padding: 20px; }
.relato-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.relato-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--azul-fahrenheit);
  margin-bottom: 10px;
}
.relato-body p { font-size: 0.92rem; color: #555; margin-bottom: 10px; }
.relato-video-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--terracota);
}

.relato-form-wrap {
  background: #fff;
  border: 1px solid var(--bege);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px;
  max-width: 560px;
}
.relato-foto-clicavel { position: relative; cursor: pointer; }
.relato-foto-zoom {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(47,36,30,0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .15s;
}
.relato-foto-clicavel:hover .relato-foto-zoom { opacity: 1; }

.relato-video-abrir {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--terracota);
  cursor: pointer;
}
.relato-video-abrir:hover { text-decoration: underline; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(47,36,30,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox-overlay.aberto { display: flex; }

.lightbox-fechar {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-conteudo {
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-imagem {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}
.lightbox-video-wrap iframe {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

#lightbox-video-fallback {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
}
#lightbox-video-fallback a { color: var(--terracota); font-weight: 700;
}
.brand img.logo-header {
  height: 34px;
  width: auto;
  display: block;
}

/* ---- Navegação: mais espaçada, uppercase, estilo editorial ---- */
.main-nav a {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.main-nav { gap: 32px; }

/* "Criar conta" vira botão contornado (mais discreto/moderno), preenche no hover */
.main-nav .btn-primary {
  background: transparent;
  border: 1.5px solid var(--amarelo-fahrenheit);
  color: var(--amarelo-fahrenheit);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
.main-nav .btn-primary:hover {
  background: var(--amarelo-fahrenheit);
  color: var(--marrom-escuro);
}

/* ---- Hero: headline maior, card de destaque flutuando por cima da foto ---- */
.hero { overflow: visible; }

.hero-grid {
  grid-template-columns: 1fr;
  padding-bottom: 70px;
}
.hero-grid > div:first-child { max-width: 680px; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
}

.hero-stat-card {
  position: absolute;
  right: 0;
  bottom: -56px;
  width: 300px;
  z-index: 6;
}

@media (max-width: 860px) {
  .hero-stat-card { position: static; width: 100%; margin-top: 30px; }
  .hero-grid { padding-bottom: 0; }
}

/* ---- Logo real no menu lateral do admin ---- */
.admin-sidebar .brand img.logo-header { height: 28px; 
}
