/* Shared styles for deals_directory.html (region/city link directory),
   deals_country.html (per-country deal tables), and deals_city.html
   (single-route SEO page). Reuses design tokens already defined in site.css. */

/* ─── SHARED HERO CHROME (breadcrumb) ────────────────────────────────── */
.archive-crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: oklch(65% 0.01 72); margin-bottom: 28px; }
.archive-crumbs a:hover { color: var(--terra); }
.archive-crumbs .sep { color: oklch(40% 0.01 72); }
.archive-crumbs [aria-current] { color: oklch(85% 0.01 72); font-weight: 600; }

.region-block { padding: 44px clamp(20px, 5vw, 48px) 8px; }

.city-block { margin-bottom: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.city-head { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); background: var(--bg-warm); flex-wrap: wrap; }
.city-head h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.city-head h3 a:hover { color: var(--terra); }
.city-head .iata { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--ink-3); margin-left: 6px; }
.city-mini-stats { display: flex; gap: 22px; margin-left: auto; }
.city-full-link { font-size: 12.5px; font-weight: 700; color: var(--terra); white-space: nowrap; }
.city-full-link:hover { color: var(--terra-dark); }

.archive-cta {
  margin: 40px clamp(20px, 5vw, 48px) 56px; background: var(--ink); color: oklch(96% 0.01 72);
  border-radius: var(--r-lg); padding: 32px 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.archive-cta h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.4px; margin-bottom: 4px; }
.archive-cta p { font-size: 13.5px; color: oklch(75% 0.01 72); }
.archive-cta a {
  flex-shrink: 0; font-size: 14px; font-weight: 700; background: var(--terra); color: #fff;
  padding: 13px 26px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap;
}
.archive-cta a:hover { background: var(--terra-dark); }

/* ─── STAT BLOCKS (shared: hero stats + city mini-stats) ────────────── */
.stat-num { font-family: var(--font-serif); font-weight: 700; color: var(--ink); letter-spacing: -0.8px; line-height: 1; margin-bottom: 4px; font-size: 17px; }
.stat-num.on-dark { color: #fff; }
.stat-num.green { color: var(--green); }
.stat-num.on-dark.green { color: oklch(72% 0.11 155); }
.stat-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }
.stat-lbl.on-dark { color: oklch(60% 0.01 72); }
.city-mini-stats div { text-align: right; }

/* ─── TABLE (shared: archive index city tables + single-route table) ── */
.deals-table-wrap { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.deals-table-wrap thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3);
  text-align: left; padding: 12px 20px; background: var(--bg-warm); border-bottom: 1px solid var(--border);
}
.deals-table-wrap tbody td { padding: 15px 20px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--ink-2); }
.deals-table-wrap tbody tr:last-child td { border-bottom: none; }
.deals-table-wrap tbody tr:hover { background: var(--bg-warm); }
.deals-table-wrap td.t-price { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.4px; }
.deals-table-wrap td.t-price a { color: inherit; text-decoration: none; }
.deals-table-wrap td.t-price a:hover { text-decoration: underline; }
.deals-table-wrap td.t-save { color: var(--green); font-weight: 700; font-size: 12.5px; }
.deals-table-wrap tr.expired td { color: var(--ink-3); }
.deals-table-wrap tr.expired td.t-price { color: var(--ink-3); }
.deals-table-wrap tr.expired td.t-save { color: var(--ink-3); font-weight: 500; }

.status-pill.active, .badge-active {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--green); background: var(--green-light);
  padding: 3px 9px; border-radius: 20px; line-height: 1.5;
}
.badge-expired {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); background: var(--bg-warm);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; line-height: 1.5;
}
.badge-expired::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; }

/* ─── MONTHLY PRICE CHART (single-route page only) ───────────────────── */
.chart {
  background: oklch(24% 0.015 52);
  border: 1px solid oklch(32% 0.015 52);
  border-radius: var(--r-lg);
  padding: 20px 22px 14px;
}
.chart-title { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: oklch(60% 0.01 72); margin-bottom: 8px; }
.chart-legend { display: flex; gap: 14px; margin-bottom: 16px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: oklch(70% 0.01 72); }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; background: oklch(45% 0.06 36); }
.legend-swatch.avg { background: oklch(55% 0.02 250); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 108px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-value { font-size: 9px; font-weight: 700; color: oklch(75% 0.01 72); margin-bottom: 6px; white-space: nowrap; }
.bar-value.best { color: oklch(70% 0.14 155); }
.bar-track-group { width: 100%; height: 84px; display: flex; align-items: flex-end; gap: 2px; }
.bar-track { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-fill {
  width: 100%; border-radius: 3px 3px 0 0;
  background: oklch(45% 0.06 36);
  min-height: 8px;
}
.bar-fill.hot { background: var(--terra); }
.bar-fill.best { background: oklch(60% 0.12 155); }
.bar-fill.avg { background: oklch(55% 0.02 250); }
.bar-labels { display: flex; gap: 7px; margin-top: 8px; }
.bar-labels i { flex: 1; font-style: normal; font-size: 9px; font-weight: 600; text-align: center; color: oklch(55% 0.01 72); text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── HERO (shared: deals_archive.html index/region + deals_city.html) ─ */
.route-hero { background: var(--ink); color: oklch(96% 0.01 72); padding: 48px clamp(20px, 5vw, 48px) 44px; }
.route-hero .archive-crumbs { margin-bottom: 28px; }
.route-hero-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: end;
  max-width: 1100px; margin: 0 auto;
}
.route-hero-grid.single-col { grid-template-columns: 1fr; }
.route-hero h1 {
  font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.1;
  letter-spacing: -1.1px; margin-bottom: 12px; color: #fff;
}
.route-hero h1 em { font-style: italic; color: oklch(78% 0.10 36); }
.route-hero-sub { font-size: 14.5px; color: oklch(72% 0.01 72); max-width: 520px; margin-bottom: 24px; }
.route-hero-grid.single-col .route-hero-sub { max-width: 620px; }
.route-hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.route-hero-stats .stat-num { font-size: 28px; }

@media (max-width: 860px) {
  .route-hero-grid { grid-template-columns: 1fr; }
}

.route-table-wrap { padding: 40px clamp(20px, 5vw, 48px) 48px; max-width: 1100px; margin: 0 auto; width: 100%; }
.route-table-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.route-table-head h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); }
.route-table-head span { font-size: 12.5px; color: var(--ink-3); }
.route-table-wrap .archive-cta { margin: 28px 0 0; }
