/* ==========================================================================
   Bluefin Travel — flight search
   Extends the marketing site's design system. Every colour, radius, shadow and
   spacing value here comes from a token defined in styles.css, so the two sites
   stay visually identical without duplicating the palette.
   ========================================================================== */

/* ------------------------------------------------------------------- hero */
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(48px, 6vw, 84px) 0; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-copy h1 { color: #fff; }
.hero--route .hero-grid { padding-block: clamp(40px, 5vw, 64px); }

.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.hero-points li { position: relative; padding-left: 28px; color: var(--on-ink); font-size: .98rem; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--aqua); border-bottom: 2.5px solid var(--aqua);
  transform: rotate(-45deg);
}
.split-media .hero-points li { color: var(--on-ink); }

.route-headline { margin-top: 24px; color: var(--on-ink); font-size: 1.05rem; }
.route-headline strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.route-headline span { display: block; margin-top: 4px; font-size: .85rem; color: var(--on-ink-muted); }

/* ------------------------------------------------------------------- form */
.trip-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.trip-toggle label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 999px; cursor: pointer;
  font-size: .88rem; font-weight: 700; color: var(--ink-3);
  background: var(--mist); border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.trip-toggle label:has(input:checked) { background: #fff; border-color: var(--brand); color: var(--brand-dark); }
.trip-toggle input { accent-color: var(--brand); margin: 0; }

.field--check { justify-content: flex-end; }
.check { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

.form-errors { margin: 14px 0 0; padding-left: 20px; color: #B4231C; font-size: .95rem; }
.form-errors li { margin-bottom: 4px; }

/* ---------------------------------------------------------------- results */
.results-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.results-title { margin: 6px 0 0; }
.results-sub { margin-top: 8px; }

.results-layout { display: grid; gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (min-width: 1000px) { .results-layout { grid-template-columns: minmax(0, 1fr) 370px; } }
.results-panels { display: grid; gap: clamp(18px, 2vw, 26px); min-width: 0; }
.results-side { display: grid; gap: 20px; position: sticky; top: 94px; }
@media (max-width: 999px) { .results-side { position: static; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); box-shadow: var(--sh-1); }
.panel--reference { background: var(--mist); box-shadow: none; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.1rem; margin: 0; }
.panel-status { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.panel-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); font-size: .93rem; line-height: 1.55; }
.panel-note strong { display: block; margin-bottom: 3px; }
.panel-note--empty { background: var(--mist-2); color: var(--ink-3); }
.panel-note--error { background: rgba(180, 35, 28, .08); color: #8C1C16; }
.panel-note .link-arrow { display: inline-block; margin-top: 8px; }

.panel-fineprint { margin: 14px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* ----------------------------------------------------------------- offers */
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; padding-top: 16px; }
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.offer:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.offer--best { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 214, .1); }

.offer-legs { flex: 1 1 260px; min-width: 0; display: grid; gap: 8px; }
.leg { display: flex; align-items: center; gap: 14px; }
.leg-time { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.leg-time--end { text-align: right; }
.leg-code { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.leg-time:not(:has(> :not(.leg-code))) .leg-code { font-size: 1rem; letter-spacing: .06em; color: var(--ink); }
.next-day { color: #B4231C; font-size: .68em; font-weight: 700; }
.leg-mid { flex: 1; display: grid; justify-items: center; gap: 3px; min-width: 0; }
.leg-duration, .leg-stops { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.leg-line { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.offer-carriers { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.date-shift { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--amber-ink); background: rgba(255, 176, 32, .2); padding: 3px 9px; border-radius: 999px; }

.offer-buy { display: grid; justify-items: end; gap: 8px; }
.offer-price { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.reference-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-ink); background: rgba(255, 176, 32, .2);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

/* -------------------------------------------------------------- skeletons */
.skeletons { display: grid; gap: 12px; padding-top: 16px; }
.skeleton { height: 74px; border-radius: var(--r); background: linear-gradient(100deg, var(--mist) 30%, var(--mist-2) 50%, var(--mist) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* -------------------------------------------------------------------- cta */
.agent-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.agent-cta--loud { background: var(--fin); border-color: transparent; box-shadow: var(--sh-2); }
.agent-cta__head { margin: 0 0 4px; font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.agent-cta__body { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.agent-cta--loud .agent-cta__head { color: #04121F; }
.agent-cta--loud .agent-cta__body { color: #06283F; }
.agent-cta--loud .btn-primary { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------- misc pages */
.narrow { max-width: 780px; }
.faq-list { margin-top: 30px; display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--sh-1); }
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq-list p { margin: 12px 0 0; color: var(--muted); }
.faq-list + .agent-cta { margin-top: 34px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 34px 0; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 62px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--fin); color: #04121F; font-weight: 800;
}
.steps h3 { margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.steps + .agent-cta { margin-top: 34px; }

.cards { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
a.route .route-price, a.route .route-price small { white-space: nowrap; }
a.route .route-top { gap: 14px; }
a.route .route-city { font-size: 1rem; }
a.route { text-decoration: none; color: inherit; }
