/* ============================================================
   GoChinaBudget — Itinerary list & detail styles
   Extends styles.css (landing page)
   ============================================================ */

.header-nav { display: inline-flex; gap: 6px; }
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 120ms ease, background 120ms ease;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link.is-active { color: var(--accent); }

/* ---- Page hero ---- */
.page-hero { padding: 64px 0 28px; }
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.page-title {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 900px;
}
.page-sub {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.4vw, 17px);
  margin: 0;
  max-width: 700px;
}

/* ---- Filters ---- */
.filters {
  padding: 24px 0 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.4);
}
.filter-inner {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-row { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.filter-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.filter-select, .filter-input {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.filter-select:focus, .filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.18);
}
.filter-reset {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.filter-reset:hover { color: var(--text-primary); border-color: var(--accent); }
.filter-status {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Card grid ---- */
.list { padding: 40px 0 96px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.route-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--bg-elev);
}
.route-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.route-id {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.route-cost {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.32);
  padding: 4px 10px;
  border-radius: 999px;
}
.route-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.route-path {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route-path::before {
  content: "\2192";
  color: var(--accent);
  font-weight: 700;
}
.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.meta-pill {
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.meta-pill.is-accent { color: var(--accent); border-color: rgba(0, 255, 136, 0.32); }

/* ---- Empty / loading ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state p { margin: 0 0 16px; }
.loading { color: var(--text-muted); padding: 40px 0; }

/* ---- Detail page ---- */
.back-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 13px;
  margin: 32px 0 16px;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.route-detail {
  padding-bottom: 80px;
}
.route-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.route-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.route-head .route-path { font-size: 16px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}
.fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fact-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.fact-value {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 36px 0 16px;
}
.day-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
}
.day-item strong {
  color: var(--accent);
  display: inline-block;
  min-width: 80px;
  margin-right: 10px;
  font-weight: 700;
}

.affiliate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.affiliate-cta:hover { transform: translateY(-1px); border-color: var(--accent); }
.affiliate-cta.is-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.affiliate-cta.is-primary:hover { background: #33ff9f; }
.affiliate-anchor {
  color: var(--text-muted);
  font-size: 12px;
  margin: 8px 0 0;
  font-style: italic;
}

.tiktok-hook {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 112, 243, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
}
.tiktok-hook::before {
  content: "\D83C\DFA5 ";
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page-hero { padding: 40px 0 20px; }
  .filter-status { width: 100%; margin-left: 0; }
  .affiliate-row { grid-template-columns: 1fr; }
  .header-nav { gap: 0; }
  .nav-link { padding: 4px 8px; font-size: 12px; }
}
