/* Merlot planner — results add-ons (2026-10-21): indicative fares, big
   Skyscanner CTA, 1-stop connection cards, filter bar / mobile sheet.
   Same Sky Postcard tokens as planner.css; no inline styles anywhere. */

/* ---------- filter bar ---------- */
.ptp-x-filterbar { position: relative; }
.ptp-x-filter-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ptp-x-filter-toggle { display: none; align-items: center; gap: 8px; font: 700 14px var(--font-body); color: var(--color-navy); background: var(--color-white); border: 1.5px solid var(--color-navy-10); border-radius: var(--radius-pill); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.ptp-x-filter-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ptp-x-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-navy); color: var(--color-white); font-size: 12px; }
.ptp-x-filter-count[hidden] { display: none; }
.ptp-x-sort-label { display: inline-flex; }
.ptp-x-result-count { margin: 0 0 0 auto; font-size: 13px; color: var(--color-navy-muted); font-weight: 600; }

.ptp-x-filter-panel { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); align-items: flex-start; }
.ptp-x-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.ptp-x-fs[hidden] { display: none; }
.ptp-x-fs legend { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-navy-muted); padding: 0; margin-bottom: 6px; }
.ptp-x-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ptp-x-chips .ptp-filter-chip { min-height: 36px; }
.ptp-x-sub { font-weight: 500; font-size: 11px; opacity: .85; }
.ptp-x-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; min-height: 36px; cursor: pointer; }
.ptp-x-switch input { width: 20px; height: 20px; accent-color: var(--color-navy); }
.ptp-x-range-row { display: flex; align-items: center; gap: var(--space-2); }
.ptp-x-range-row input[type="range"] { width: 180px; accent-color: var(--color-navy); }
.ptp-x-range-row output { font-size: 13px; font-weight: 700; min-width: 72px; }
.ptp-x-fs-note { font-size: 11px; color: var(--color-navy-muted); margin: 4px 0 0; max-width: 260px; }
.ptp-x-sheet-head, .ptp-x-sheet-foot { display: none; }
.ptp-x-reset { background: none; border: 0; color: var(--color-navy); text-decoration: underline; font: 600 13px var(--font-body); cursor: pointer; padding: 8px 4px; }

/* ---------- groups / states ---------- */
.ptp-x-route-fare { background: var(--color-cloud-dim); border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; margin: 0 0 var(--space-4); }
.ptp-x-group-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: var(--space-5) 0 var(--space-3); display: flex; align-items: center; gap: 10px; }
.ptp-x-group-title:first-child { margin-top: 0; }
.ptp-x-group-n { font: 700 13px var(--font-body); background: var(--color-navy-10); border-radius: var(--radius-pill); padding: 2px 10px; }
.ptp-x-none { font-size: 14px; color: var(--color-navy-muted); margin: 0 0 var(--space-4); }
.ptp-x-loading { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-navy-muted); margin: 0 0 var(--space-4); }
.ptp-x-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--color-sky-soft); border-top-color: var(--color-navy); animation: ptp-x-spin .9s linear infinite; flex: none; }
@keyframes ptp-x-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptp-x-spinner { animation-duration: 3s; } }
.ptp-x-more, .ptp-x-showall { font: 700 14px var(--font-body); color: var(--color-navy); background: var(--color-white); border: 1.5px solid var(--color-navy); border-radius: var(--radius-pill); padding: 10px 20px; min-height: 44px; cursor: pointer; margin: calc(-1 * var(--space-3)) 0 var(--space-5); }
.ptp-x-hidden-note { background: var(--color-white); border: 1.5px dashed var(--color-navy-10); border-radius: var(--radius-md); padding: var(--space-3); margin: 0 0 var(--space-5); font-size: 14px; }
.ptp-x-hidden-note p { margin: 0 0 var(--space-2); }
.ptp-x-hidden-note .ptp-x-showall { margin: 0; }

/* ---------- price + big CTA ---------- */
.ptp-x-price-slot { width: 100%; }
.ptp-x-price-slot:empty { display: none; }
.ptp-x-price { display: flex; flex-direction: column; gap: 2px; }
.ptp-x-price-amt { font-size: 22px; font-weight: 800; color: var(--color-navy); line-height: 1.15; }
.ptp-x-price-note { font-size: 12px; color: var(--color-navy-muted); }
.ptp-x-price-loading { display: inline-block; font-size: 12px; color: var(--color-navy-muted); }
.ptp a.ptp-skyscanner-cta.ptp-x-cta-big { font-size: 16px; padding: 14px 24px; min-height: 52px; justify-content: center; box-shadow: var(--shadow-sm); }
.ptp a.ptp-skyscanner-cta.ptp-x-cta-big:focus-visible { outline: 3px solid var(--color-coral); outline-offset: 3px; }

/* ---------- connection card ---------- */
.ptp-x-stop-chip { font-size: 12px; font-weight: 700; background: var(--color-sunny); color: var(--color-navy); padding: 3px 10px; border-radius: var(--radius-pill); }
.ptp-x-layover { font-size: 13px; margin: 0 0 var(--space-2); color: var(--color-navy-muted); }
.ptp-x-legs { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-2); }
.ptp-x-leg { display: flex; gap: var(--space-2); align-items: flex-start; background: var(--color-cloud); border-radius: var(--radius-md); padding: 10px 12px; }
.ptp-x-leg .ptp-fin-icon { flex: none; margin-top: 2px; }
.ptp-x-leg-body p { margin: 0; }
.ptp-x-leg-line { font-size: 15px; }
.ptp-x-leg-meta { font-size: 12px; color: var(--color-navy-muted); }
.ptp-x-leg-verdict { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-top: 2px !important; }
.ptp-x-conn-status { font-weight: 700; font-size: 14px; margin: var(--space-2) 0; }
.ptp-x-conn-status.is-ok { color: var(--verdict-ok); }
.ptp-x-conn-status.is-no { color: var(--color-coral-text); }
.ptp-x-notes { font-size: 13px; margin: 0 0 var(--space-2); }
.ptp-x-notes summary { cursor: pointer; font-weight: 700; min-height: 32px; display: list-item; }

/* ---------- mobile: compact bar + bottom sheet ---------- */
@media (max-width: 760px) {
  .ptp-x-filter-toggle { display: inline-flex; }
  .ptp-x-result-count { width: 100%; margin: 0; }
  .ptp-x-filter-panel { display: none; }
  .ptp-x-filterbar.is-sheet-open .ptp-x-filter-panel {
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: var(--space-3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; margin: 0;
    max-height: 85vh; overflow-y: auto; background: var(--color-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .ptp-x-filterbar.is-sheet-open::before { content: ""; position: fixed; inset: 0; z-index: 999; background: rgba(29,58,95,0.45); }
  .ptp-x-sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .ptp-x-sheet-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
  .ptp-x-sheet-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--color-cloud-dim); color: var(--color-navy); font-size: 18px; cursor: pointer; }
  .ptp-x-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); position: sticky; bottom: calc(-1 * var(--space-3)); background: var(--color-white); padding: var(--space-2) 0; }
  .ptp-x-apply { flex: 1; }
  .ptp-x-range-row input[type="range"] { width: 100%; }
  .ptp-x-range-row { width: 100%; }
  .ptp a.ptp-skyscanner-cta.ptp-x-cta-big { width: 100%; }
  .ptp-x-group-title { font-size: 21px; }
}
html.ptp-x-noscroll, html.ptp-x-noscroll body { overflow: hidden; }
@media (max-width: 760px) {
  .ptp-x-filter-top { gap: var(--space-2); }
  .ptp-x-sort-label .ptp-select-sort { max-width: 172px; padding: 10px 12px; }
}
.ptp-x-rule-note { background: #FFF6D6; border-left: 4px solid var(--color-sunny); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: 0 0 var(--space-4); }
@media (min-width: 761px) { .ptp-results-head.ptp-x-head { position: static; } }
@media (max-width: 760px) {
  .ptp a.ptp-skyscanner-cta.ptp-x-cta-big { font-size: 15px; padding: 14px 16px; }
}
.ptp-x-conn-hint { background: #E8F6EE; border-left: 4px solid var(--verdict-ok); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: var(--space-2) 0 var(--space-3); }
.ptp-x-conn-hint a { color: var(--color-navy); font-weight: 700; }
#ptpXConnOther .ptp-other-group { margin-top: var(--space-3); }
