/* =====================================================
   CHINA 2026 — Guia de Viagem
   style.css
   ===================================================== */

:root {
  --red:        #C0392B;
  --red-dark:   #922B21;
  --gold:       #D4AF37;
  --gold-light: #F5E7A0;
  --dark:       #1A1A2E;
  --text:       #2C2C2C;
  --text-muted: #6B6B6B;
  --bg:         #F7F3EE;
  --card:       #FFFFFF;
  --border:     #E5DDD3;
  --green:      #1E8449;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --radius:     12px;
  --nav-h:      64px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--dark);
  display: flex; align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  text-decoration: none; letter-spacing: .02em;
}
.nav-brand span { color: var(--gold); }
.nav-flag { font-size: 1.4rem; }
.nav-links {
  display: flex; gap: .2rem; margin-left: auto; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  padding: .45rem .85rem;
  border-radius: 6px;
  font-size: .88rem; font-weight: 500;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { background: var(--red); color: #fff; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: all .3s; }

/* ── PAGE WRAPPER ── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px;
  display: flex; align-items: flex-end;
  padding: 4rem 2rem 3rem;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55);
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.85) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 4px; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: .8rem;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 560px; margin-bottom: 1.6rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  transition: all .2s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #c9a227; transform: translateY(-1px); text-decoration: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; border-bottom: 3px solid var(--red);
}
.stat-item {
  padding: 1.2rem 2rem; text-align: center; flex: 1; min-width: 120px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-n { font-size: 1.7rem; font-weight: 800; color: var(--gold); display: block; }
.stat-l { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }

/* ── SECTIONS ── */
.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 2.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--dark);
  margin-bottom: .4rem;
}
.section-title span { color: var(--red); }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }
.divider { height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); border: none; border-radius: 2px; margin: .4rem 0 2.5rem; width: 48px; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }

/* ── CARD ── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { height: 180px; background-size: cover; background-position: center; }
.card-body { padding: 1.4rem; }
.card-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-light); color: #7A6E00;
  padding: .2rem .6rem; border-radius: 4px; display: inline-block; margin-bottom: .6rem;
}
.card-tag.red { background: #FDECEA; color: var(--red); }
.card-tag.green { background: #E8F5E9; color: var(--green); }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.card-text { font-size: .9rem; color: var(--text-muted); }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--red); margin-top: .8rem; }
.card-price small { font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.card-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--red), var(--gold));
}
.tl-item { position: relative; margin-bottom: 2.2rem; }
.tl-dot {
  position: absolute; left: -2.5rem; top: .3rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot.gold { background: var(--gold); }
.tl-dot.green { background: var(--green); }
.tl-date { font-size: .78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.tl-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.tl-text { font-size: .9rem; color: var(--text-muted); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
thead th {
  background: var(--dark); color: #fff;
  padding: .9rem 1.1rem; font-size: .82rem;
  text-align: left; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
}
thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius) 0 0; }
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:hover { background: #FFF8F2; }
tbody td { padding: .8rem 1.1rem; font-size: .9rem; }
tbody tr:last-child { border-bottom: none; }
.td-total { font-weight: 800; color: var(--red); font-size: 1rem; }
.td-cat { font-weight: 600; color: var(--dark); }
.td-muted { color: var(--text-muted); font-size: .84rem; }
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 20px;
  font-size: .74rem; font-weight: 700;
}
.badge-ok { background: #E8F5E9; color: var(--green); }
.badge-warn { background: #FFF3E0; color: #E65100; }
.badge-red { background: #FDECEA; color: var(--red); }

/* ── ALERT BOX ── */
.alert {
  border-radius: 10px; padding: 1rem 1.3rem;
  display: flex; gap: .8rem; align-items: flex-start;
  margin-bottom: 1.2rem;
}
.alert-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .05rem; }
.alert-body { font-size: .9rem; }
.alert-body strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.alert-red { background: #FDECEA; border-left: 4px solid var(--red); }
.alert-gold { background: #FFFBEA; border-left: 4px solid var(--gold); }
.alert-green { background: #E8F5E9; border-left: 4px solid var(--green); }

/* ── VERSION TABS ── */
.version-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.vtab {
  padding: .5rem 1.2rem; border-radius: 30px; font-size: .88rem; font-weight: 600;
  border: 2px solid var(--border); background: var(--card); color: var(--text-muted);
  cursor: pointer; transition: all .2s;
}
.vtab.active, .vtab:hover { border-color: var(--red); color: var(--red); background: #FDECEA; }

/* ── CITY HEADER ── */
.city-header {
  background: var(--dark); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 2rem; position: relative;
  min-height: 200px; display: flex; align-items: flex-end;
}
.city-header-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.city-header-content {
  position: relative; z-index: 1;
  padding: 1.8rem 2rem;
}
.city-header-content h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: .3rem; }
.city-nights { color: var(--gold); font-size: .9rem; font-weight: 600; }

/* ── PILL TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.tag {
  background: var(--bg); border: 1px solid var(--border);
  padding: .25rem .7rem; border-radius: 20px;
  font-size: .78rem; color: var(--text-muted);
}

/* ── ROUTE MAP ── */
.route-map {
  background: var(--dark); border-radius: var(--radius);
  padding: 2.5rem 2rem; display: flex;
  align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  overflow: hidden;
}
.route-city {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; flex: 1; min-width: 100px;
}
.route-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; font-weight: 700;
}
.route-city-name { color: #fff; font-size: .82rem; font-weight: 600; text-align: center; }
.route-city-nights { color: var(--gold); font-size: .73rem; text-align: center; }
.route-arrow { color: var(--gold); font-size: 1.4rem; flex-shrink: 0; padding: 0 .2rem; margin-top: -20px; }

/* ── HERO MINI ── */
.hero-mini {
  background: var(--dark); padding: 3rem 2rem 2rem;
  margin-top: var(--nav-h);
}
.hero-mini h1 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: .3rem; }
.hero-mini h1 span { color: var(--gold); }
.hero-mini p { color: rgba(255,255,255,.7); font-size: 1rem; }
.breadcrumb { display: flex; gap: .4rem; align-items: center; margin-bottom: .8rem; font-size: .8rem; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: rgba(255,255,255,.3); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.55);
  padding: 2.5rem 2rem; margin-top: 4rem;
  text-align: center; font-size: .85rem;
}
footer a { color: var(--gold); }
footer strong { color: rgba(255,255,255,.8); }

/* ── LINK LIST ── */
.link-list { list-style: none; }
.link-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.link-list li:last-child { border-bottom: none; }
.link-list .li-icon { font-size: 1rem; flex-shrink: 0; }

/* ── ICON BOXES ── */
.icon-box {
  background: var(--card); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; gap: 1rem; align-items: flex-start;
}
.icon-box-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: #FDECEA; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.icon-box-icon.gold-bg { background: #FFFBEA; }
.icon-box-icon.green-bg { background: #E8F5E9; }
.icon-box-body h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.icon-box-body p { font-size: .88rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--dark); padding: 1rem; gap: .3rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 1.8rem; }
  .stats-bar { gap: 0; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .section { padding: 2.5rem 1.2rem; }
  .route-map { gap: 0; padding: 1.5rem 1rem; }
  .route-arrow { font-size: 1rem; }
  .route-dot { width: 36px; height: 36px; font-size: .9rem; }
  .city-header-content h2 { font-size: 1.5rem; }
}
