﻿body { display: flex; flex-direction: column; min-height: 100vh; }

/* Hero */
.deal-hero {
  position: relative;
  height: clamp(280px, 42vh, 420px);
  overflow: hidden;
  background: var(--bg-warm);
  flex-shrink: 0;
}
.deal-hero-img {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&q=80') center/cover no-repeat;
}
.deal-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, oklch(0% 0 0 / 0.1) 0%, oklch(0% 0 0 / 0.65) 100%);
}
/* jinja: {% if not city_image %} — use placeholder stripes */
.deal-hero-ph {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, oklch(88% 0.015 120) 0px, oklch(88% 0.015 120) 1px, transparent 1px, transparent 14px);
}

.deal-back-link {
  position: absolute;
  top: 18px; left: 28px;
  z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: oklch(100% 0 0 / 0.7);
  display: flex; align-items: center; gap: 5px;
  transition: color 0.15s;
}
.deal-back-link:hover { color: #fff; }

.deal-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 40px 28px;
  z-index: 2;
}
.deal-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: oklch(100% 0 0 / 0.6);
  margin-bottom: 6px;
}
/* jinja: {{ deal.origin_iata }} · {{ deal.destination_iata }} */
.deal-h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700; font-style: italic;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 14px oklch(0% 0 0 / 0.4);
}
/* jinja: {{ deal.route_name_fr if lang == 'fr' else deal.route_name_en }} */
.deal-photo-credit {
  position: absolute; bottom: 10px; right: 16px; z-index: 3;
  font-size: 10px; color: oklch(100% 0 0 / 0.45);
}
.deal-photo-credit a { color: inherit; }
.deal-photo-credit a:hover { color: oklch(100% 0 0 / 0.75); }

/* Content area */
.deal-content {
  flex: 1;
  padding: 36px clamp(20px, 5vw, 60px) 60px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.deal-crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 18px; flex-wrap: wrap; }
.deal-crumbs a:hover { color: var(--terra); }
.deal-crumbs .sep { color: var(--border); }
.deal-crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* Left: price + details */
.deal-price-block {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.deal-price-row {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px;
}
.deal-was { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
/* jinja: ${{ "%.0f"|format(deal.normal_price) }} */
.deal-price {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 64px);
  font-weight: 700; letter-spacing: -3px;
  color: var(--ink); line-height: 1;
}
/* jinja: ${{ "%.0f"|format(show_price) }} */
.deal-currency { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--ink-3); padding-bottom: 8px; }
.deal-savings {
  display: inline-flex; align-items: center;
  background: var(--green-light); color: var(--green);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
/* jinja: {{ deal.discount_percentage|int }}% {{ tr('deal_off') }} */

.deal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.deal-table tr { border-bottom: 1px solid var(--border-soft); }
.deal-table tr:last-child { border-bottom: none; }
.deal-table td { padding: 10px 0; vertical-align: top; }
.deal-table td:first-child {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--ink-3); width: 140px; padding-right: 16px;
}

/* Inline trips list — primary booking surface */
.deal-trips-section {
  margin-top: 28px;
}
.deal-trips-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.deal-trips-h2 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--ink); margin: 0;
}
.deal-trips-count {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-3);
}
.deal-trips-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.deal-trip-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 4px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none; color: var(--ink);
  transition: padding 0.15s, background 0.15s;
}
.deal-trip-row:hover { padding-left: 12px; padding-right: 12px; background: var(--bg-warm); }
.deal-trip-info {
  display: flex; align-items: baseline; gap: 10px;
  min-width: 0; flex: 1 1 auto;
}
.deal-trip-info > span + span::before { content: '·'; margin-right: 10px; color: var(--border); }
.deal-trip-range {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex-shrink: 1;
}
.deal-trip-nights {
  font-size: 12px; color: var(--ink-3); letter-spacing: 0.3px;
  white-space: nowrap; flex-shrink: 0;
}
.deal-trip-stops {
  font-size: 12px; color: var(--ink-3);
  white-space: nowrap; flex-shrink: 0;
}
.deal-trip-cta {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 10px 16px;
  background: var(--terra); color: #fff;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  box-shadow: 0 2px 8px oklch(58% 0.13 36 / 0.25);
  transition: background 0.15s, transform 0.12s;
}
.deal-trip-cta .deal-trip-price {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 800;
  color: #fff;
}
.deal-trip-row:hover .deal-trip-cta { background: var(--terra-dark); transform: translateY(-1px); }
.deal-trip-arrow { transition: transform 0.15s; }
.deal-trip-row:hover .deal-trip-arrow { transform: translate(2px, -2px); }
.deal-trip-row--no-link { cursor: default; }
.deal-trip-row--no-link:hover { padding-left: 4px; padding-right: 4px; background: none; }
.deal-trip-cta--muted {
  background: var(--bg-warm); color: var(--ink-3);
  box-shadow: none; font-weight: 600; font-size: 12px;
  text-align: right; max-width: 240px; white-space: normal;
}
.deal-trip-cta--muted .deal-trip-price { color: var(--ink); }
/* Expired deal: dates stay visible for reference, booking is disabled */
.deal-trip-row--expired .deal-trip-info { opacity: 0.55; }
.deal-trip-row--expired .deal-trip-cta--muted { text-transform: uppercase; letter-spacing: 0.06em; }
/* Multi-airline trip: one button per separate booking */
.deal-trip-row--multi { flex-wrap: wrap; }
.deal-trip-row--multi:hover { padding-left: 4px; padding-right: 4px; background: none; }
.deal-trip-row--multi:hover .deal-trip-cta { transform: none; }
.deal-trip-ctas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.deal-trip-ctas a.deal-trip-cta { text-decoration: none; }
.deal-trip-ctas a.deal-trip-cta:hover { background: var(--terra-dark); transform: translateY(-1px); }
.deal-trip-multi-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--ink-3); }
.deal-trips-note { font-size: 12px; color: var(--ink-3); margin-top: 14px; text-align: center; }

@media (max-width: 700px) {
  .deal-content { grid-template-columns: 1fr; }
  .deal-hero-overlay { padding: 16px 20px 22px; }
  .deal-back-link { left: 16px; top: 14px; }
}

/* Receipt thumbnail (subscribers): click to enlarge, click anywhere to close. Checkbox-driven, no JS. */
.deal-receipt {
  position: absolute; top: 0; right: 0; width: 150px;
  cursor: zoom-in; text-align: center;
}
.deal-receipt__thumb {
  display: block; width: 100%; max-height: 110px; object-fit: cover; object-position: top;
  border: 1px solid var(--border); border-radius: 6px;
}
.deal-receipt__caption { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.deal-receipt__overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.8); cursor: zoom-out;
  align-items: center; justify-content: center; padding: 20px;
}
.deal-receipt__toggle:checked ~ .deal-receipt__overlay { display: flex; }
.deal-receipt__full { max-width: 100%; max-height: 100%; border-radius: 6px; background: #fff; }
@media (max-width: 700px) {
  .deal-receipt { width: 96px; }
  .deal-receipt__thumb { max-height: 72px; }
}

/* ─── PRICE INSIGHTS LINKS (to the city data page) ─────────────────── */
.deal-insights { margin: 20px 0 8px; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 8px; }
.deal-insights__heading { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.deal-insights__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.deal-insights__list a { color: var(--terra); }
.deal-insights__list a:hover { text-decoration: underline; }
