/* The search page: flight panel, results, fare ladders, modals. */
/* ---------- search panel ---------- */
.fs-panel { position: relative; z-index: 2; margin-top: 2rem; background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 20px; box-shadow: 0 8px 28px rgb(16 24 40 / .06); }
/* No overflow clipping on the panel or the hero: the airport list under
   From/To must be able to hang below both. Only the photo is clipped. */
.fs-products-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem 0; border-bottom: 1px solid var(--fs-line); margin: 0 1.1rem; padding-left: 0; padding-right: 0; }
.fs-products { display: flex; gap: .15rem; overflow-x: auto; }
.fs-product { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem .85rem; border: 0; background: none; font-size: .9rem; font-weight: 600; color: var(--fs-muted); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; border-radius: 10px 10px 0 0; }
.fs-product[aria-current="page"] { color: var(--fs-accent); border-bottom-color: var(--fs-accent); background: rgb(245 50 91 / .06); }
.fs-product[disabled] { cursor: not-allowed; }
.fs-product svg { width: 20px; height: 20px; }
.fs-badge { display: inline-flex; align-items: center; gap: .7rem; flex: none; margin-bottom: .55rem; padding: .55rem .9rem .55rem .6rem; border-radius: 14px; background: linear-gradient(90deg, #fff1f4, #fff7f8); color: var(--fs-ink); font-size: .8rem; }
.dark .fs-badge { background: rgb(245 50 91 / .12); }
.fs-badge-icon { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--fs-accent); color: #fff; flex: none; }
.fs-badge-icon svg { width: 18px; height: 18px; }
.fs-badge b { display: block; font-size: .85rem; }
.fs-badge span { color: var(--fs-muted); font-size: .74rem; }
.fs-badge .fs-chev { color: var(--fs-accent); }

.fs-trip { display: flex; gap: .5rem; padding: 1rem 1.1rem .35rem; flex-wrap: wrap; }
.fs-pill { border: 1px solid var(--fs-line); border-radius: 999px; padding: .55rem 1.35rem; font-size: .88rem; font-weight: 600; background: var(--fs-surface); color: var(--fs-ink); cursor: pointer; }
.fs-pill[aria-pressed="true"] { background: var(--fs-accent); border-color: var(--fs-accent); color: var(--fs-accent-ink); }
.fs-pill[disabled] { opacity: .5; cursor: not-allowed; }

.fs-query { display: grid; grid-template-columns: 1fr auto 1fr 1.05fr 1.1fr auto; gap: .6rem; align-items: stretch; padding: .75rem 1.1rem 0; }
.fs-query.is-second { grid-template-columns: 1.35fr 1fr 1fr; padding-bottom: 1.1rem; }
.fs-legs { display: grid; gap: .5rem; padding: 0 1.1rem; }
.fs-query.is-leg { grid-template-columns: 28px 1.3fr 1.3fr 1fr 32px; padding: .4rem 0; align-items: center; }
.fs-leg-no { width: 28px; height: 28px; border-radius: 50%; background: var(--fs-accent); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.fs-leg-remove { border: 1px solid var(--fs-line); background: var(--fs-surface); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--fs-muted); font-size: 1.1rem; line-height: 1; }
.fs-legs-actions { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; padding: .4rem 0 .8rem; }
/* In a centred flex row the button has no height of its own to stretch into. */
.fs-legs-actions .fs-search { padding-top: .8rem; padding-bottom: .8rem; }
.fs-error { color: #d92d20; font-size: .82rem; }
.fs-query.is-leg .fs-error { grid-column: 2 / -1; }
.fs-rt-grid.is-multi { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 860px) { .fs-query.is-leg { grid-template-columns: 1fr 1fr; } .fs-leg-no { display: none; } }
.fs-field { position: relative; display: flex; align-items: center; gap: .65rem; background: var(--fs-sunk); border: 1px solid transparent; border-radius: var(--fs-radius); padding: .75rem 1rem; min-width: 0; }
.fs-field:focus-within { border-color: var(--fs-accent); background: var(--fs-surface); }
.fs-field > svg { width: 20px; height: 20px; color: var(--fs-muted); flex: none; }
.fs-field label { position: absolute; top: .45rem; left: 2.7rem; font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fs-faint); }
.fs-field.has-label { padding-top: 1.35rem; padding-bottom: .55rem; }
.fs-field input, .fs-field select { border: 0; background: none; padding: 0; width: 100%; min-width: 0; font-size: 1rem; font-weight: 600; color: var(--fs-ink); outline: none; }
.fs-field input::placeholder { color: var(--fs-faint); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.fs-field input[type="text"] { text-transform: uppercase; }
.fs-field select { appearance: none; -webkit-appearance: none; padding-right: 1.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .1rem center; background-size: 16px; }
.fs-hint { position: absolute; left: 2.7rem; right: .8rem; bottom: .3rem; font-size: .68rem; color: var(--fs-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-ac { position: absolute; z-index: 40; top: calc(100% + .35rem); left: 0; right: 0; background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 12px; box-shadow: 0 12px 32px rgb(16 24 40 / .14); overflow: hidden; max-height: 320px; overflow-y: auto; }
.fs-ac-head { padding: .5rem .8rem .25rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fs-faint); }
.fs-ac-head + .fs-ac-head { display: none; }
.fs-ac button { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: none; text-align: left; padding: .55rem .8rem; cursor: pointer; color: var(--fs-ink); }
.fs-ac button:hover, .fs-ac button:focus-visible { background: var(--fs-sunk); }
.fs-ac .fs-ac-code { font-size: .72rem; font-weight: 800; letter-spacing: .03em; background: var(--fs-sunk); border-radius: 6px; padding: .2rem .4rem; flex: none; }
.fs-ac .fs-ac-text { min-width: 0; }
.fs-ac .fs-ac-city { display: block; font-size: .85rem; font-weight: 600; line-height: 1.2; }
.fs-ac .fs-ac-name { display: block; font-size: .72rem; color: var(--fs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-resolved { position: absolute; left: 2.7rem; right: .8rem; bottom: .3rem; font-size: .68rem; color: var(--fs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-field.has-resolved, .fs-field.has-hint { padding-bottom: 1.15rem; }
[x-cloak] { display: none !important; }
.fs-swap { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--fs-line); background: var(--fs-surface); color: var(--fs-accent); cursor: pointer; box-shadow: 0 2px 8px rgb(16 24 40 / .08); }
.fs-swap:hover { border-color: var(--fs-accent); }
.fs-swap svg { width: 18px; height: 18px; }
.fs-date { display: flex; align-items: center; gap: .5rem; width: 100%; }
.fs-date input { flex: 1; }
.fs-date > svg:last-child { width: 18px; height: 18px; color: var(--fs-muted); flex: none; }
.fs-search { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: var(--fs-radius); background: var(--fs-accent); color: var(--fs-accent-ink); font-size: 1.05rem; font-weight: 700; padding: 0 2.3rem; cursor: pointer; box-shadow: 0 8px 20px rgb(245 50 91 / .3); }
.fs-search svg { width: 20px; height: 20px; }
.fs-search:disabled { opacity: .6; cursor: progress; }
.fs-pax { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; }
.fs-pax-cell { display: flex; flex-direction: column; gap: .15rem; }
.fs-pax-cell > span { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fs-faint); }
.fs-step { display: inline-flex; align-items: center; gap: .3rem; }
.fs-step input { width: 2.2rem; text-align: center; -moz-appearance: textfield; }
.fs-step input::-webkit-outer-spin-button, .fs-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fs-step-btns { display: inline-flex; flex-direction: column; border: 1px solid var(--fs-line); border-radius: 6px; overflow: hidden; background: var(--fs-surface); }
.fs-step-btns button { border: 0; background: none; width: 20px; height: 13px; display: grid; place-items: center; cursor: pointer; color: var(--fs-muted); padding: 0; }
.fs-step-btns button + button { border-top: 1px solid var(--fs-line); }
.fs-step-btns svg { width: 10px; height: 10px; }
.fs-errors { padding: 0 1.1rem 1rem; color: #d92d20; font-size: .82rem; }
.fs-errors li { list-style: disc; margin-left: 1.1rem; }


/* ---------- results ---------- */
.fs-results { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; align-items: start; }
.fs-side { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 16px; padding: 1.1rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.fs-side h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .1rem; }
.fs-side h4 { font-size: .82rem; font-weight: 700; margin: 1.25rem 0 .55rem; }
.fs-side hr { border: 0; border-top: 1px solid var(--fs-line); margin: 1.1rem 0 0; }
.fs-sub { font-size: .72rem; color: var(--fs-muted); margin: 0 0 .5rem; }
.fs-chipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.fs-chip { border: 1px solid var(--fs-line); border-radius: 10px; background: var(--fs-surface); padding: .5rem .35rem; font-size: .76rem; font-weight: 600; color: var(--fs-ink); cursor: pointer; text-align: center; line-height: 1.25; }
.fs-chip small { display: block; font-weight: 600; color: var(--fs-muted); font-size: .7rem; }
.fs-chip[aria-pressed="true"] { border-color: var(--fs-accent); box-shadow: inset 0 0 0 1px var(--fs-accent); color: var(--fs-accent); }
.fs-chip[aria-pressed="true"] small { color: var(--fs-accent); }
.fs-check { display: flex; align-items: center; gap: .5rem; font-size: .8rem; padding: .3rem 0; cursor: pointer; }
.fs-check input { accent-color: var(--fs-accent); width: 15px; height: 15px; }
.fs-check .fs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-check .fs-from { color: var(--fs-muted); font-variant-numeric: tabular-nums; }
.fs-range { width: 100%; accent-color: var(--fs-accent); }
.fs-rangerow { display: flex; justify-content: space-between; font-size: .74rem; color: var(--fs-muted); }
.fs-clear { border: 0; background: none; color: var(--fs-accent); font-size: .76rem; font-weight: 700; cursor: pointer; padding: 0; }

.fs-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fs-sorts { display: flex; gap: .5rem; }
.fs-sort { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--fs-line); background: var(--fs-surface); border-radius: 10px; padding: .55rem 1rem; font-size: .85rem; font-weight: 700; color: var(--fs-muted); cursor: pointer; }
.fs-sort svg { width: 16px; height: 16px; }
.fs-sort[aria-pressed="true"][data-kind="best_value"] { color: #b54708; border-color: #f79009; }
.fs-sort[aria-pressed="true"][data-kind="cheapest"] { background: var(--fs-ok); border-color: var(--fs-ok); color: #fff; }
.fs-sort[aria-pressed="true"][data-kind="fastest"] { color: #175cd3; border-color: #2e90fa; }
.fs-count { font-size: .85rem; color: var(--fs-muted); }

.fs-card { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 16px; padding: .8rem 1.15rem; margin-bottom: .75rem; }
.fs-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px; gap: 1.25rem; align-items: center; }
.fs-airline { display: flex; align-items: center; gap: .6rem; min-width: 0; }

/* The fare-family ladder under a card. */
.fs-cta.is-view { background: var(--fs-accent); }
.fs-cta.is-outline { background: transparent; color: var(--fs-ink); border: 1px solid var(--fs-line); }
.fs-fares { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--fs-line); }
.fs-fare { border: 1px solid var(--fs-line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
/* The ladder's stand-in while "View fare" is fetching it: one placeholder per
   fare family, so the card grows to its final shape at once. */
.fs-fares.is-skeleton { display: none; }
.fs-bone { border-radius: 8px; background: linear-gradient(90deg, var(--fs-sunk) 25%, color-mix(in srgb, var(--fs-sunk) 60%, var(--fs-surface)) 50%, var(--fs-sunk) 75%); background-size: 400% 100%; animation: fs-shimmer 1.3s ease-in-out infinite; }
.fs-bone.name { height: 18px; width: 55%; }
.fs-bone.price { height: 26px; width: 70%; margin-top: .5rem; }
.fs-bone.line { height: 12px; }
.fs-bone.line.short { width: 60%; }
.fs-bone.btn { height: 38px; border-radius: 10px; margin-top: auto; }
/* The details block and the fare-rules dialog have the same stand-ins. */
.fs-detail-skel { display: none; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--fs-line); }
.fs-detail-skel .fs-bone { margin-bottom: .55rem; }
.fs-backdrop.is-skeleton { display: none; }
.fs-rules-wait { font-size: .8rem; color: var(--fs-muted); }
.fs-rule .fs-bone { margin-bottom: .5rem; }
.fs-rule .fs-bone.name { width: 35%; }
@keyframes fs-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .fs-bone { animation: none; } }
.fs-fare.is-cheapest { border-color: color-mix(in srgb, var(--fs-accent) 45%, var(--fs-line)); }
.fs-fare header { border-bottom: 1px dashed var(--fs-line); padding-bottom: .7rem; }
.fs-fare-name { color: #1d4ed8; font-weight: 700; font-size: 1.05rem; }
.fs-fare-price { font-size: 1.35rem; font-weight: 800; margin-top: .2rem; }
.fs-fare-price small { font-size: .78rem; font-weight: 400; color: var(--fs-muted); margin-left: .3rem; }
.fs-fare-each { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .78rem; color: var(--fs-muted); }
.fs-fare-each b { font-weight: 600; color: var(--fs-ink); }
.fs-fare dl { margin: 0; display: grid; gap: .6rem; font-size: .84rem; flex: 1; }
.fs-fare dt { font-weight: 700; }
.fs-fare dd { margin: 0 0 0 .1rem; color: var(--fs-muted); line-height: 1.5; }
.fs-fare dd b { color: #1d4ed8; }
.fs-logo { width: 34px; height: 34px; border-radius: 8px; flex: none; }
/* The code tile is the fallback: no logo held for this carrier. */
.fs-logo.is-code { display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }
/* Logos arrive letterboxed on a transparent square, so contain, never crop. */
img.fs-logo { object-fit: contain; background: #fff; border: 1px solid var(--fs-line); padding: 2px; }
/* In the filter list the mark is an aid to scanning, not the label. */
.fs-check .fs-logo { width: 20px; height: 20px; border-radius: 5px; font-size: .55rem; padding: 1px; }
.fs-airline b { display: block; font-size: .92rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-airline span { font-size: .75rem; color: var(--fs-muted); }
.fs-leg { display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center; }
.fs-time { font-size: 1.18rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fs-place { font-size: .78rem; color: var(--fs-muted); }
.fs-nextday { font-size: .7rem; font-weight: 700; color: #175cd3; }
.fs-path { text-align: center; }
.fs-path .fs-dur { font-size: .78rem; color: var(--fs-muted); }
.fs-line { position: relative; height: 14px; }
.fs-line::before { content: ""; position: absolute; inset: 6px 0 auto; border-top: 1px dashed var(--fs-line); }
.fs-line svg { position: absolute; right: -2px; top: 0; width: 14px; height: 14px; color: var(--fs-faint); }
.fs-line i { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 999px; background: #2e90fa; }
.fs-stops { font-size: .74rem; color: var(--fs-muted); }
.fs-seats { text-align: center; font-size: .72rem; color: var(--fs-warn); font-weight: 600; }
.fs-pricecol { text-align: right; display: grid; gap: .35rem; justify-items: end; align-content: center; }
/* Amount and currency on one line; "from" is a quiet prefix, not part of the number. */
.fs-price { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.15; }
.fs-price small { font-size: .74rem; font-weight: 600; color: var(--fs-muted); margin-right: .2rem; }
/* Under a sell price: what the partner pays. */
.fs-net { display: block; font-size: .74rem; font-weight: 600; color: var(--fs-muted); margin-top: -.15rem; }
.fs-meta-row { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
/* `.fs-pax` is also the travellers grid in the panel; here it is a plain label. */
.fs-meta-row .fs-pax { display: inline; width: auto; }
.fs-links { display: inline-flex; align-items: center; gap: .9rem; }
.fs-cta { border: 0; border-radius: 10px; background: var(--fs-accent); color: #fff; font-weight: 700; font-size: .9rem; padding: .6rem 1.4rem; cursor: pointer; white-space: nowrap; }
.fs-cta.is-ghost { background: var(--fs-surface); border: 1px solid var(--fs-line); color: var(--fs-muted); }
.fs-details { border: 0; background: none; color: #2e90fa; font-size: .78rem; font-weight: 600; cursor: pointer; padding: 0; }
.fs-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.fs-tag { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: .18rem .6rem; background: var(--fs-sunk); color: var(--fs-muted); }
.fs-tag.is-brand { background: rgb(245 50 91 / .1); color: var(--fs-accent); }
.fs-tag.is-supplier { background: rgb(46 144 250 / .12); color: #175cd3; font-size: .68rem; letter-spacing: .02em; }
.fs-modal.fs-rules { width: min(860px, 100%); max-height: 88vh; display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; overflow: hidden; }
.fs-rules-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--fs-line); }
.fs-rules-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.fs-rules-head button { border: 0; background: var(--fs-sunk); border-radius: 8px; padding: .4rem .7rem; cursor: pointer; color: var(--fs-ink); font-weight: 600; }
.fs-rules-body { overflow: auto; padding: 1rem 1.25rem; }
.fs-rule + .fs-rule { margin-top: 1rem; border-top: 1px dashed var(--fs-line); padding-top: 1rem; }
.fs-rule h3 { font-size: .8rem; font-weight: 800; margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .03em; }
.fs-rule pre { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.5; margin: 0; color: var(--fs-ink); }
.fs-tag.is-yes { background: rgb(18 183 106 / .12); color: #027a48; }
.fs-tag.is-no { background: rgb(217 45 32 / .1); color: #b42318; }
.fs-note { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--fs-line); font-size: .78rem; color: var(--fs-muted); }
.fs-seg { display: grid; grid-template-columns: 90px 1fr; gap: .75rem; padding: .5rem 0; font-size: .8rem; border-bottom: 1px dashed var(--fs-line); }
.fs-seg:last-child { border-bottom: 0; }
.fs-was { font-size: .8rem; color: var(--fs-muted); text-decoration: line-through; }
.fs-offerid { float: right; font-family: ui-monospace, monospace; font-size: .72rem; color: var(--fs-faint); }
.fs-detail-head { font-weight: 700; color: var(--fs-ink); margin: .5rem 0 .2rem; }
.fs-pax { font-size: .72rem; color: var(--fs-muted); letter-spacing: .02em; }
.fs-breakdown { width: 100%; border-collapse: collapse; margin-top: .35rem; font-size: .78rem; }
.fs-breakdown th { text-align: left; font-weight: 600; color: var(--fs-faint); padding: .3rem .5rem; border-bottom: 1px solid var(--fs-line); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.fs-breakdown td { padding: .35rem .5rem; border-bottom: 1px dashed var(--fs-line); }
.fs-breakdown tfoot td { border-bottom: 0; border-top: 1px solid var(--fs-line); font-weight: 700; color: var(--fs-ink); }
.fs-breakdown .fs-num { text-align: right; font-variant-numeric: tabular-nums; }
.fs-pax-name { color: var(--fs-faint); }
.fs-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--fs-line); font-size: .78rem; color: var(--fs-muted); }
.fs-strip-icon { width: 16px; height: 16px; flex: none; color: #2e90fa; }
.fs-strip-item { display: inline-flex; align-items: center; gap: .35rem; }
.fs-strip-item svg { width: 15px; height: 15px; flex: none; }
.fs-strip-item b { font-weight: 700; color: var(--fs-ink); }
.fs-strip-item.is-yes { color: #027a48; }
.fs-strip-item.is-no { color: #b42318; }

.fs-card.is-return { padding: 0; overflow: hidden; }
.fs-card.is-return > .fs-strip { padding: .7rem 1.15rem 1rem; margin-top: 0; }
.fs-card.is-return .fs-note { padding: 0 1.15rem 1rem; margin-top: 0; }
.fs-rt-side .fs-strip { margin: 0; padding: 0 1.15rem 1rem; border-top: 0; }
.fs-card.is-return .fs-note { padding-top: .7rem; margin: 0 1.15rem 1rem; }
.fs-rt-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; }
.fs-rt-carriers { display: flex; align-items: center; gap: 1rem; min-width: 0; flex-wrap: wrap; }
.fs-rt-carriers .fs-airline + .fs-airline { border-left: 2px solid #2e90fa; padding-left: 1rem; }
.fs-rt-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--fs-line); }
.fs-rt-side + .fs-rt-side { border-left: 1px solid var(--fs-line); }
.fs-rt-label { background: #eff8ff; padding: .5rem 1.15rem; font-size: .85rem; color: var(--fs-ink); display: flex; gap: .4rem; flex-wrap: wrap; }
.dark .fs-rt-label { background: rgb(46 144 250 / .12); }
.fs-rt-label span { color: var(--fs-muted); }
.fs-rt-side .fs-leg { padding: .9rem 1.15rem .6rem; }
.fs-card { position: relative; }
.fs-checking { display: none; position: absolute; inset: 0; z-index: 5; border-radius: 16px; align-items: center; justify-content: center; gap: .8rem; background: color-mix(in srgb, var(--fs-surface) 88%, transparent); backdrop-filter: blur(1.5px); font-size: .9rem; }
.fs-checking b { display: block; color: var(--fs-ink); }
.fs-checking small { color: var(--fs-muted); }
.fs-spinner { width: 26px; height: 26px; border-radius: 999px; border: 3px solid var(--fs-line); border-top-color: var(--fs-accent); animation: fs-spin .7s linear infinite; flex: none; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-spinner.is-inline { width: 18px; height: 18px; border-width: 2px; border-color: rgb(255 255 255 / .35); border-top-color: #fff; }
.fs-search-skel { margin-top: 1.5rem; }
/* A placeholder card: looks like .fs-card, but is not one, so nothing that counts cards counts it. */
.fs-card-skel { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: 16px; padding: .8rem 1.15rem; margin-bottom: .75rem; }

.fs-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(16 24 40 / .45); }
.fs-modal { background: var(--fs-surface); border-radius: 18px; box-shadow: 0 24px 64px rgb(16 24 40 / .3); width: min(460px, 100%); padding: 1.5rem; }
.fs-modal h2 { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 800; color: var(--fs-ink); }
.fs-modal p { margin: 0 0 1rem; font-size: .88rem; color: var(--fs-muted); }
.fs-modal-icon { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: #fffaeb; color: #b54708; margin-bottom: .9rem; }
.dark .fs-modal-icon { background: rgb(181 71 8 / .2); }
.fs-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; text-align: center; background: var(--fs-sunk); border-radius: 12px; padding: .9rem; margin-bottom: 1rem; }
.fs-compare span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fs-faint); }
.fs-compare b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fs-compare .fs-old b { text-decoration: line-through; color: var(--fs-muted); font-weight: 600; }
.fs-compare .fs-new b { color: var(--fs-ink); }
.fs-delta { font-size: .82rem; font-weight: 700; text-align: center; margin: -.5rem 0 1rem; }
.fs-delta.up { color: #b42318; }
.fs-delta.down { color: #027a48; }
.fs-modal-actions { display: flex; gap: .6rem; }
.fs-modal-actions button { flex: 1; border-radius: 10px; padding: .7rem 1rem; font-weight: 700; font-size: .9rem; cursor: pointer; border: 1px solid var(--fs-line); background: var(--fs-surface); color: var(--fs-ink); }
.fs-modal-actions .is-primary { border-color: var(--fs-accent); background: var(--fs-accent); color: #fff; }
.fs-empty { background: var(--fs-surface); border: 1px dashed var(--fs-line); border-radius: 16px; padding: 3rem 1rem; text-align: center; color: var(--fs-muted); }
.fs-warn { background: #fffaeb; border: 1px solid #fedf89; color: #b54708; border-radius: 10px; padding: .6rem .85rem; font-size: .8rem; margin-bottom: 1rem; }
.dark .fs-warn { background: rgb(181 71 8 / .15); }

@media (max-width: 1100px) {
.fs-query, .fs-query.is-second { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fs-products-row { flex-direction: column; align-items: stretch; }
.fs-badge { display: none; }
.fs-swap { justify-self: center; }
.fs-results { grid-template-columns: 1fr; }
.fs-side { position: static; max-height: none; }
.fs-row { grid-template-columns: 1fr; gap: .75rem; }
.fs-pricecol { justify-items: start; text-align: left; }
}
/* Phone: everything stacks, the button runs the full width. */
@media (max-width: 640px) {
.fs-panel { margin-top: 1.25rem; border-radius: 16px; }
.fs-products-row { margin: 0 .8rem; }
.fs-product { padding: .6rem .7rem .75rem; font-size: .82rem; }
.fs-trip { padding: .8rem .8rem .2rem; }
.fs-query, .fs-query.is-second, .fs-query.is-leg { grid-template-columns: minmax(0, 1fr); padding-left: .8rem; padding-right: .8rem; }
.fs-legs { padding: 0 .8rem; }
.fs-swap { display: none; }
.fs-search { width: 100%; padding: .9rem 1rem; }
.fs-legs-actions { flex-direction: column; align-items: stretch; }
.fs-errors { padding: 0 .8rem 1rem; }
.fs-toolbar, .fs-sorts { flex-wrap: wrap; }
.fs-sort { padding: .5rem .8rem; font-size: .8rem; }
.fs-card { padding: .85rem; }
.fs-fares { grid-template-columns: 1fr; }
.fs-rt-grid { grid-template-columns: 1fr; }
.fs-rt-side + .fs-rt-side { border-left: 0; border-top: 1px solid var(--fs-line); }
}
