/* Open-jaw pair + hub pages and the city-page block. Uses the site tokens from site.css
   and the hero / FAQ classes from deals_archive.css. */
.oj-page { font-family: var(--font-sans); color: var(--ink); }
.oj-page__heading { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.4px; margin: 40px 0 14px; }
.oj-page__lead { font-size: 15px; line-height: 1.65; color: var(--ink-2, var(--ink)); max-width: 70ch; margin: 0 0 12px; }
.oj-page__note { color: var(--ink-3); font-size: 13px; margin-top: 10px; }
.oj-page__button { display: inline-block; padding: 13px 26px; background: var(--terra); color: #fff; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; font-size: 14px; }
.oj-page__button:hover { background: var(--terra-dark); }
.oj-page__links { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; font-size: 14px; font-weight: 600; }
.oj-page__links a { color: var(--terra); }
.oj-page__links a:hover { color: var(--terra-dark); }
.oj-page__summary { margin-top: 24px; }





.oj-page__gate, .oj-page__book { margin-top: 32px; }

.oj-hub { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.oj-hub__item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.oj-hub__item:last-child { border-bottom: 0; }
.oj-hub__item:hover { background: var(--bg-warm); }
.oj-hub__link { font-weight: 600; }
.oj-hub__link:hover { color: var(--terra); }
.oj-hub__price { font-family: var(--font-serif); font-weight: 700; white-space: nowrap; }

.open-jaw-block { margin: 40px 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.open-jaw-block__heading { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.3px; margin: 0 0 10px; }
.open-jaw-block__list { list-style: none; padding: 0; margin: 0; }
.open-jaw-block__item { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; }
.open-jaw-block__link { font-weight: 600; color: var(--ink); }
.open-jaw-block__link:hover { text-decoration: underline; }
.open-jaw-block__price { color: var(--ink-3); white-space: nowrap; }


/* Pair page (Claude Design "Open Jaw Page"): head, trip-length pills, map + timeline card, comparison cards, FAQ */
.oj-wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.oj-head { padding: 32px 0 36px; border-bottom: 1px solid var(--border); }
.oj-head .archive-crumbs { margin-bottom: 22px; }
.oj-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.oj-head__title { font-family: var(--font-serif); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -1px; font-weight: 700; max-width: 640px; text-wrap: balance; margin: 0; }
.oj-head__title em { color: var(--terra); font-weight: 600; }
.oj-head__sub { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; max-width: 520px; }
.oj-head__total { text-align: right; }
.oj-head__total-label { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.oj-head__total-num { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -1.5px; line-height: 1; color: var(--terra-dark); }
.oj-head__total-sub { display: block; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 820px) { .oj-head__total { text-align: left; } }

.oj-ctrl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 8px; }
.oj-ctrl__label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.oj-ctrl__note { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--bg-warm); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; }
.oj-ctrl__legend { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.oj-ctrl__swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--green); }
.oj-ctrl__swatch--sel { background: var(--terra); }
.oj-chart { display: flex; align-items: flex-end; gap: 2px; height: 220px; padding: 34px 12px 30px 0; margin-top: 8px; }
.oj-bar { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.oj-bar__col { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: var(--border); transition: background 0.12s; }
.oj-bar:hover .oj-bar__col { background: var(--ink-3); }
.oj-bar--low .oj-bar__col { background: oklch(72% 0.13 155); }
.oj-bar--low:hover .oj-bar__col { background: var(--green); }
.oj-bar--on .oj-bar__col { background: var(--terra); }
.oj-bar--on.oj-bar--low .oj-bar__col { background: var(--green); outline: 2px solid var(--ink); outline-offset: 1px; }
.oj-bar__label { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); border-radius: 12px; padding: 1px 8px; white-space: nowrap; }
.oj-bar--tick .oj-bar__label { display: block; }
.oj-bar--on .oj-bar__label { display: block; background: var(--ink); color: var(--bg); z-index: 2; }
.oj-bar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.1s; z-index: 5; }
.oj-bar:hover::after, .oj-bar:focus-visible::after { opacity: 1; }

.oj-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
@media (max-width: 820px) { .oj-card { grid-template-columns: 1fr; } }
.oj-card__map { position: relative; border-right: 1px solid var(--border-soft); min-height: 300px; }
.oj-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.oj-map__sea-top { stop-color: oklch(93% 0.022 225); }
.oj-map__sea-bottom { stop-color: oklch(88% 0.035 230); }
.oj-map__land { fill: oklch(91% 0.03 95); stroke: oklch(80% 0.04 90); stroke-linejoin: round; }
.oj-map__arc { fill: none; stroke: var(--terra); stroke-linecap: round; }
.oj-map__arc--back { stroke: var(--green); }
.oj-map__ground { fill: none; stroke: var(--ink-2, var(--ink)); stroke-linecap: round; }
.oj-map__plane { fill: var(--ink); stroke: oklch(95% 0.02 95); stroke-width: 1.2px; }
.oj-map__dot { fill: var(--ink); stroke: #fff; stroke-width: 2px; }
.oj-map__dot--home { fill: var(--terra); }
.oj-map__label { font-family: var(--font-sans); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: oklch(95% 0.02 95); stroke-linejoin: round; }
.oj-map__price { font-family: var(--font-serif); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: oklch(95% 0.02 95); stroke-linejoin: round; }

.oj-timeline { padding: 28px 30px; display: flex; flex-direction: column; }
.oj-leg { display: grid; grid-template-columns: 22px 1fr auto; gap: 0 14px; position: relative; }
.oj-leg::before { content: ''; position: absolute; left: 10.5px; top: 18px; bottom: -18px; border-left: 2px solid var(--border); }
.oj-leg--own::before { border-left-style: dashed; }
.oj-leg--back::before { display: none; }
.oj-leg__dot { width: 12px; height: 12px; border-radius: 50%; margin: 6px 0 0 5px; background: var(--terra); position: relative; z-index: 1; }
.oj-leg--back .oj-leg__dot { background: var(--green); }
.oj-leg--own .oj-leg__dot { background: var(--surface); border: 2px solid var(--ink-3); }
.oj-leg__main { padding-bottom: 26px; }
.oj-leg__title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0; }
.oj-leg--own .oj-leg__title { font-weight: 500; color: var(--ink-2); }
.oj-leg__date { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.oj-leg__price { font-family: var(--font-serif); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.oj-leg__btn { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--terra-dark); border: 1px solid var(--terra-light); background: var(--terra-light); padding: 6px 12px; border-radius: var(--r-sm); }
.oj-leg__btn:hover { background: var(--terra); color: #fff; }
.oj-timeline__sum { margin-top: auto; border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.oj-timeline__book { background: var(--terra); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: var(--r-sm); box-shadow: 0 2px 8px oklch(58% 0.13 36 / 0.28); }
.oj-timeline__book:hover { background: var(--terra-dark); color: #fff; }

.oj-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.oj-opt { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-lg); padding: 26px 28px; }
.oj-opt__label { display: block; margin-bottom: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.oj-opt__num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.oj-opt--na .oj-opt__num { font-size: 20px; color: var(--ink-3); font-weight: 600; letter-spacing: -0.3px; line-height: 1.4; }
.oj-opt__days { font-family: var(--font-sans); color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.oj-opt__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.oj-opt__link:hover { color: var(--terra-dark); }
.oj-opt__badge { position: absolute; top: 22px; right: 24px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

.oj-faq { border-top: 1px solid var(--border); margin-top: 56px; }
.oj-faq .oj-page__heading { margin-top: 32px; }
.oj-faq__item { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.oj-faq__question { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; }
.oj-faq__question::-webkit-details-marker { display: none; }
.oj-faq__question::after { content: '+'; font-size: 22px; line-height: 1; color: var(--terra); font-weight: 400; }
.oj-faq__item[open] .oj-faq__question::after { content: '-'; }
.oj-faq__answer { margin: 10px 0 0; color: var(--ink-2); max-width: 720px; }
.oj-rel { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 56px; }
.oj-rel__link { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: 9px 18px; }
.oj-rel__link:hover { border-color: var(--terra); color: var(--terra-dark); }

/* Open-jaw Explorer */
.oje-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 18px;
}
/* Wide screens: every filter and the buttons on one row (arrive, home, dates, trip days, km, price, actions) */
@media (min-width: 1100px) {
  .oje-filters { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.7fr) auto; }
  .oje-filters__route { grid-column: auto; }
}
/* Arrive + swap button + home: one cell so the button sits between the two country pickers */
.oje-filters__route { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.oje-filters__swap {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink-2, var(--ink));
  font-size: 16px; line-height: 1; text-decoration: none;
}
.oje-filters__swap:hover { background: var(--bg-warm); color: var(--ink); }
.oje-filters__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oje-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.oje-list__head, .oje-row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 14px; align-items: center; padding: 14px 20px;
}
.oje-list__head { background: var(--bg-warm); border-bottom: 1px solid var(--border); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.oje-row { border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--ink-2, var(--ink)); }
.oje-row:last-child { border-bottom: 0; }
.oje-row:hover { background: var(--bg-warm); }
.oje-row__cities { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; }
.oje-row__cities:hover { color: var(--terra); }
.oje-row__arrow { color: var(--terra); }
.oje-row__flights { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.oje-row__meta, .oje-row__legs { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.oje-row__amount { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.4px; }
.oje-row__road { font-variant-numeric: tabular-nums; }
.oje-row__dates { display: flex; flex-direction: column; gap: 2px; }
.oje-row__date { font-size: 13px; color: var(--ink); }
.oje-row__date--return { font-size: 12px; color: var(--ink-3); }
.oje-row__action { text-align: right; }
@media (max-width: 860px) {
  .oje-list__head { display: none; }
  .oje-row { grid-template-columns: 1fr 1fr; }
  .oje-row__trip { grid-column: 1 / -1; }
}
