/* 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: 32px clamp(20px, 5vw, 48px) 48px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.archive-cta h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 2px; }
.archive-cta p { font-size: 13px; color: var(--ink-2); max-width: 60ch; }
.archive-cta a {
  flex-shrink: 0; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--bg);
  padding: 10px 20px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap;
}
.archive-cta a:hover { background: var(--green); }

/* ─── 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; }
/* Stretched link: the price anchor covers the whole row so the entire row is clickable */
.deals-table-wrap tbody tr { position: relative; }
.deals-table-wrap td.t-price a::after { content: ''; position: absolute; inset: 0; }
.deals-table-wrap tbody tr:has(td.t-price a) { cursor: pointer; }
.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; }

/* ─── HERO (shared: deals_archive.html index/region + deals_city.html) ─ */
/* Light header matching the Open Jaw page (.oj-head): page background, hairline rule, dark text. */
.route-hero { background: var(--bg); color: var(--ink); padding: 32px clamp(20px, 5vw, 48px) 36px; border-bottom: 1px solid var(--border); }
.route-hero .archive-crumbs { margin-bottom: 22px; color: var(--ink-3); }
.route-hero .archive-crumbs .sep { color: var(--ink-3); opacity: 0.6; }
.route-hero .archive-crumbs [aria-current] { color: var(--ink); }
.route-hero .archive-crumbs a:hover { color: var(--terra); }
.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, 4.4vw, 44px); font-weight: 700; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 10px; color: var(--ink); text-wrap: balance;
}
.route-hero h1 em { font-style: normal; font-weight: 600; color: var(--terra); }
.route-hero-sub { font-size: 16px; color: var(--ink-2); max-width: 520px; margin-bottom: 14px; }
.route-hero-grid.single-col .route-hero-sub { max-width: 620px; }
.route-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.route-hero-stats .stat-num { font-size: 22px; }
.route-hero .stat-num.on-dark { color: var(--ink); }
.route-hero .stat-num.on-dark.green { color: var(--green); }
.route-hero .stat-lbl.on-dark { color: var(--ink-3); }

@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; }

/* ─── ROUTE FAQ (single-route page) ─────────────────────────────────── */
/* Same presentation as the Open Jaw pair page FAQ (.oj-faq): collapsible rows with a +/- marker. */
.route-faq { border-top: 1px solid var(--border); margin-top: 56px; }
.route-faq__heading { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin: 32px 0 14px; }
.route-faq__item { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.route-faq__question { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; color: var(--ink); }
.route-faq__question::-webkit-details-marker { display: none; }
.route-faq__question::after { content: '+'; font-size: 22px; line-height: 1; color: var(--terra); font-weight: 400; }
.route-faq__item[open] .route-faq__question::after { content: '-'; }
.route-faq__answer { margin: 10px 0 0; color: var(--ink-2); max-width: 720px; }

/* ─── WHEN-TO-FLY PRICE CHART (deals_city.html, inline SVG) ──────────── */
.price-chart { margin-top: 40px; }
.price-chart__heading { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 6px; }
.price-chart__note { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; max-width: 70ch; }
.price-chart__svg { display: block; width: 100%; height: auto; max-width: 720px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.price-chart__grid { stroke: var(--border-soft); stroke-width: 1; }
.price-chart__label { font-size: 11px; fill: var(--ink-3); }
.price-chart__line { fill: none; stroke: var(--terra); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.price-chart__low { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.price-chart__avg { stroke: oklch(55% 0.15 150); stroke-width: 1.5; stroke-dasharray: 5 4; }
.price-chart__avg-label { font-size: 11px; font-weight: 700; fill: oklch(45% 0.15 150); stroke: var(--surface); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
.price-chart__deal { fill: oklch(60% 0.17 150); stroke: var(--surface); stroke-width: 2; }
.price-chart__arrow { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.price-chart__arrowhead { fill: var(--ink-3); }
.price-chart__callout { font-size: 11px; fill: var(--ink-3); stroke: var(--surface); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
.price-chart__callout-strong { font-weight: 700; fill: var(--ink); }
.price-chart__caption { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; max-width: 70ch; }

/* ─── PRICE BREAKDOWN: month / weekday / trip length (city page) ───── */
.price-breakdown { margin-top: 40px; }
.price-breakdown__heading { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 6px; }
.price-breakdown__note { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; max-width: 70ch; }
.price-breakdown__summary { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 12px; max-width: 70ch; }
.price-breakdown__table, .report-table { width: 100%; max-width: 720px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.price-breakdown__table thead th, .report-table thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3);
  text-align: left; padding: 11px 16px; background: var(--bg-warm); border-bottom: 1px solid var(--border);
}
.price-breakdown__table tbody td, .report-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--ink-2); }
.price-breakdown__table tbody tr:last-child td, .report-table tbody tr:last-child td { border-bottom: none; }
.price-breakdown__row--best td { background: var(--green-light); color: var(--ink); font-weight: 700; }
.price-breakdown__diff { font-weight: 700; font-size: 12.5px; }
.price-breakdown__diff--lower { color: var(--green); }
.price-breakdown__diff--higher { color: var(--ink-3); }

/* ─── RELATED DESTINATIONS (city page) ─────────────────────────────── */
.related-destinations { margin: 40px 0; }
.related-destinations__heading { font-size: 20px; margin-bottom: 12px; }
.related-destinations .browse-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  column-gap: 24px;
}

/* ─── HOLIDAY PAGE LINKS (city, browse and holiday pages) ───────────── */
.holiday-links { margin: 40px 0; }
.holiday-links__heading { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 12px; }
.holiday-links .browse-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  column-gap: 24px;
}

/* ─── CITY SUMMARY PARAGRAPH ───────────────────────────────────────── */
.city-summary { margin: 0 0 28px; }
.city-summary__text { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0; }
