/* Flight Compare — frontend styles
 *
 * The widget owns its layout and inputs end-to-end so we sidestep
 * cross-cutting Tailwind utilities (especially the forms-plugin defaults
 * that paint inputs white on white). The only theme tokens we keep are
 * #e9c176 (secondary / gold), #1d2022 (surface-container) and the like.
 */

/* ============================================================ widget shell */
.fc-widget { width: 100%; }
.fc-widget * { box-sizing: border-box; }

/* ============================================================ tabs */
.fc-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(29, 32, 34, 0.7);
    border: 1px solid rgba(69, 70, 77, 0.4);
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
}
.fc-widget--hero .fc-tabs { margin-left: auto; margin-right: auto; }
.fc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #c6c6cd;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.fc-tab:hover { color: #ffdea5; }
.fc-tab .material-symbols-outlined { font-size: 18px; }
.fc-tab.is-active {
    background: #e9c176;
    color: #412d00;
    box-shadow: 0 6px 14px rgba(233, 193, 118, 0.25);
}
/* Mobile: keep the icon-and-label design (the "categories" look the user
 * liked), but stack icon-on-top-of-label inside each tab so all three
 * pills fit on a 360-410px row without text wrapping or strip overflow.
 * Tabs share the row equally via flex:1 1 0 with min-width:0. The tab
 * strip's pill background is preserved because the outer .fc-tabs rule
 * still applies. */
@media (max-width: 600px) {
    .fc-widget .fc-tabs {
        width: 100%;
        justify-content: stretch;
        gap: 2px;
    }
    .fc-widget .fc-tabs .fc-tab {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
        padding: 8px 6px;
        justify-content: center;
        align-items: center;
        line-height: 1.1;
    }
    .fc-widget .fc-tabs .fc-tab > .material-symbols-outlined {
        font-size: 18px;
        display: inline-block;
    }
    .fc-widget .fc-tabs .fc-tab > span:not(.material-symbols-outlined) {
        font-size: 10px;
        letter-spacing: 0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}
/* Sub-360: nothing to shrink further safely; rely on text-overflow ellipsis. */

/* ============================================================ trip-mode visibility */
.fc-add-leg-row,
.fc-bottom-return { display: none; }
.fc-widget[data-fc-trip="roundtrip"] .fc-bottom-return { display: block; }
.fc-widget[data-fc-trip="multi"] .fc-add-leg-row { display: flex; }
/* Hide every leg beyond the first when not in multi mode. */
.fc-widget:not([data-fc-trip="multi"]) [data-fc-leg]:not([data-fc-leg="0"]) { display: none; }
/* Multi-leg: stack legs, full-width rows. */
.fc-widget[data-fc-trip="multi"] .fc-legs { display: flex; flex-direction: column; gap: 18px; }

/* ============================================================ leg rows
 * Three-column shared grid: from / to / date(+button on bottom row).
 * The third column has the same fixed width on both rows so the date field
 * (leg) and the submit button (bottom) line up vertically — the date sits
 * "at the top of the button" exactly. */
.fc-leg { min-width: 0; }
.fc-leg-fields,
.fc-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: end;
}
@media (max-width: 900px) {
    .fc-leg-fields, .fc-bottom-row { grid-template-columns: 1fr; }
}

.fc-leg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.fc-leg-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e9c176;
}
.fc-leg-remove {
    background: transparent;
    border: 1px solid rgba(144, 144, 151, 0.4);
    color: #909097;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.fc-leg-remove:hover { color: #ffb4ab; border-color: rgba(255, 180, 171, 0.5); }
.fc-leg-remove .material-symbols-outlined { font-size: 16px; }

.fc-return-row { margin-top: 18px; }

/* ============================================================ add leg button */
.fc-add-leg-row { margin-top: 16px; }
.fc-add-leg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px dashed rgba(233, 193, 118, 0.5);
    color: #e9c176;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.fc-add-leg:hover { background: rgba(233, 193, 118, 0.08); border-color: #e9c176; }
.fc-add-leg .material-symbols-outlined { font-size: 18px; }

/* ============================================================ bottom row layout
 * Three-column grid mirroring the leg row above.
 *  - Default (oneway / multi):  passengers col 1 · button col 3 (under date)
 *  - Roundtrip:                 passengers col 1 · return-date col 3 (under
 *                               outbound date) · button on a third row
 *                               aligned right (still under the date column).
 * Bottom margin tightened so passengers and button don't feel detached. */
.fc-bottom-row { margin-top: 24px; row-gap: 16px; }
.fc-bottom-row .fc-field--select { grid-column: 1; grid-row: 1; min-width: 0; }
.fc-bottom-return                 { grid-column: 3; grid-row: 1; }
.fc-bottom-row .fc-actions        { grid-column: 3; grid-row: 1; justify-self: end; align-self: end; }
.fc-widget[data-fc-trip="roundtrip"] .fc-bottom-row .fc-actions {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 4px;
}

/* Responsive: switch the bottom row from grid to a simple flex column so
 * desktop grid placement (grid-row, grid-column) doesn't leak into mobile.
 * Visual order:
 *   roundtrip   → date · date retour · passengers · button
 *   oneway/multi → date · passengers · button
 * `order: -1` on the return slot pulls it above passengers (DOM has it
 * after). Row gaps are tightened so passengers and button sit near each
 * other (request 3 + 4). */
@media (max-width: 900px) {
    /* Within a leg: from / to packed close, a clear breath before the date
     * field so the user sees three groups (départ / arrivée / when). */
    .fc-leg-fields { gap: 14px; }
    .fc-leg-fields .fc-field--datetime { margin-top: 18px; }

    .fc-bottom-row {
        display: flex;
        flex-direction: column;
        gap: 0;        /* per-item margins instead — different gaps per slot */
        margin-top: 0;
    }
    .fc-bottom-row .fc-field--select,
    .fc-bottom-return,
    .fc-bottom-row .fc-actions { width: 100%; }
    .fc-bottom-return                       { order: -1; }
    .fc-bottom-row .fc-actions .fc-submit   { width: 100%; justify-content: center; }

    /* Roundtrip return: sits close to the outbound date (it's the same concept). */
    .fc-bottom-return                       { margin-top: 14px; }
    /* Clear breath before passengers and before the button. */
    .fc-bottom-row .fc-field--select        { margin-top: 28px; }
    .fc-bottom-row .fc-actions              { margin-top: 24px; }

    /* Cancel desktop roundtrip-only placement on mobile. */
    .fc-widget[data-fc-trip="roundtrip"] .fc-bottom-row .fc-actions { margin-top: 24px; }
}

/* ============================================================ datetime field
 * One field, one label. The date side keeps the established overlay trick
 * (transparent native input on top of a formatted display). The time side
 * shows a real, visible <input type="time"> styled to match — clicking it
 * opens the browser's native time picker. The time block is pushed to the
 * right of the field with a thin separator so the user reads two values
 * but understands they belong together. */
.fc-field--datetime .fc-control { gap: 10px; }
.fc-dt-part--date {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    min-width: 0;
    flex: 1 1 auto;
}
.fc-dt-time {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid rgba(144, 144, 151, 0.35);
    flex-shrink: 0;
}
.fc-icon--time {
    font-size: 18px;
    color: #909097;
    transition: color 0.2s ease;
}
.fc-field--datetime.fc-filled .fc-icon--time { color: #e9c176; }

/* Time picker — fully custom dropdown so we can pin the menu to the time
 * field, scroll inside a constrained max-height, and avoid the native
 * select's full-screen behavior on small viewports. */
.fc-dt-time { position: relative; padding-right: 22px; }
.fc-time-btn {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-feature-settings: "tnum";
    cursor: pointer;
    outline: none;
    line-height: 1.4;
}
.fc-time-btn:focus-visible { color: #e9c176; }
.fc-chevron-time {
    position: absolute;
    right: 0;
    pointer-events: none;
    font-size: 20px;
    color: #909097;
    transition: color 0.2s ease, transform 0.18s ease;
}
.fc-field--datetime.fc-filled .fc-chevron-time { color: #e9c176; }
[data-fc-time-btn][aria-expanded="true"] ~ .fc-chevron-time { transform: rotate(180deg); color: #e9c176; }

.fc-time-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 96px;
    max-height: 240px;
    overflow-y: auto;
    background: #1d2022;
    border: 1px solid rgba(69, 70, 77, 0.7);
    border-radius: 6px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 60;
    overscroll-behavior: contain;
}
.fc-time-opt {
    padding: 9px 18px;
    color: #e0e3e5;
    font-size: 15px;
    font-feature-settings: "tnum";
    cursor: pointer;
    line-height: 1.2;
}
.fc-time-opt:hover { background: #272a2c; color: #ffdea5; }
.fc-time-opt.is-selected {
    background: rgba(233, 193, 118, 0.10);
    color: #e9c176;
    font-weight: 600;
}

.fc-widget--hero {
    max-width: 64rem;
    margin: 0 auto;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.fc-widget--inline {
    background: transparent;
}

.fc-form {
    display: flex;
    flex-direction: column;
}
.fc-widget--inline .fc-form {
    background: #1d2022;
    border: 1px solid rgba(69, 70, 77, 0.3);
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}
.fc-widget--inline .fc-actions .fc-submit { padding-block: 14px; }
@media (max-width: 600px) {
    .fc-widget--inline .fc-actions { justify-content: stretch; }
    .fc-widget--inline .fc-actions .fc-submit { width: 100%; }
}

/* ============================================================ field */
.fc-field { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c6c6cd;
}
.fc-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid rgba(144, 144, 151, 0.55);
    transition: border-color 0.2s ease;
}
.fc-icon {
    flex-shrink: 0;
    font-size: 22px;
    color: #909097;
    transition: color 0.2s ease;
}

/* Inputs — strip Tailwind forms baseline + browser defaults entirely. */
.fc-widget input,
.fc-widget select,
.fc-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0;
    margin: 0;
    color: #ffffff !important;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.fc-input::placeholder { color: #909097; opacity: 1; }

/* Kill every focus / autofill artifact (Tailwind forms plugin focus ring,
 * Chrome blue outline, autofill yellow background, native segment selection
 * background on date inputs, …). */
.fc-widget input:focus,
.fc-widget select:focus,
.fc-input:focus,
.fc-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 transparent !important;
    --tw-ring-offset-shadow: 0 0 transparent !important;
    --tw-ring-color: transparent !important;
    border-color: transparent !important;
}
.fc-widget input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Selects: keep our own chevron; hide the native arrow. */
.fc-select {
    padding-right: 24px;
    cursor: pointer;
}
.fc-select option { background: #1d2022; color: #e0e3e5; }
.fc-chevron {
    position: absolute;
    right: 0;
    pointer-events: none;
    font-size: 22px;
    color: #909097;
}

/* Date field — the native <input type="date"> is rendered fully invisible
 * and overlaid on the field as a transparent click target. The visible
 * label ("Date" or the formatted value) lives in .fc-date-display, kept in
 * sync by JS on every change. This sidesteps Chromium's
 * jj/mm/aaaa segments, the blue selection rectangle and the second
 * calendar icon entirely.
 */
.fc-field--date .fc-control,
.fc-field--datetime .fc-control { cursor: pointer; }
/* The native date input is invisible and absolutely overlaid; the click is
 * captured by its parent wrapper (`.fc-dt-part--date`), which calls
 * showPicker() in JS. `pointer-events: none` ensures clicks bubble to the
 * wrapper instead of being swallowed by the input itself (which would put
 * the input into edit mode without opening the picker). */
.fc-date {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    pointer-events: none;
    color: transparent !important;
}
.fc-date::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.fc-date::-webkit-datetime-edit,
.fc-date::-webkit-datetime-edit-fields-wrapper,
.fc-date::-webkit-datetime-edit-month-field,
.fc-date::-webkit-datetime-edit-day-field,
.fc-date::-webkit-datetime-edit-year-field { color: transparent !important; background: transparent !important; }

.fc-date-display {
    flex: 1;
    color: #909097;
    font-size: 16px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.fc-field.fc-filled .fc-date-display { color: #ffffff; }

/* ============================================================ filled / focused state */
.fc-control:focus-within { border-bottom-color: #e9c176; }
.fc-control:focus-within .fc-icon { color: #e9c176; }

.fc-field.fc-filled .fc-control { border-bottom-color: #e9c176; }
.fc-field.fc-filled .fc-icon    { color: #e9c176; }
.fc-field.fc-filled .fc-chevron { color: #e9c176; }

.fc-field.fc-filled .fc-date { color: #ffffff !important; }
.fc-field.fc-filled .fc-date::-webkit-datetime-edit,
.fc-field.fc-filled .fc-date::-webkit-datetime-edit-fields-wrapper { color: #ffffff; }
.fc-field.fc-filled .fc-date-placeholder { display: none; }

/* ============================================================ submit button */
.fc-actions { display: flex; align-items: stretch; }
.fc-actions--center { display: flex; justify-content: center; margin-top: 32px; }
.fc-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e9c176;
    color: #412d00 !important;
    border: 0;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.fc-submit:hover { background: #ffdea5; }
.fc-submit:disabled { opacity: 0.6; cursor: wait; }
.fc-submit--lg { padding: 16px 40px; font-size: 13px; }

/* ============================================================ typeahead */
.fc-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    /* In a narrow column the field width isn't enough to display airport
     * names like "Paris-Charles-de-Gaulle (CDG)" — let the dropdown be at
     * least 320 px wide and grow to fit content, while staying inside the
     * viewport. */
    min-width: 320px;
    width: max-content;
    max-width: min(480px, calc(100vw - 32px));
    z-index: 50;
    background: #1d2022;
    border: 1px solid rgba(69, 70, 77, 0.7);
    border-radius: 6px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
    max-height: 320px;
    overflow-y: auto;
}
/* When the dropdown would overflow the right edge of the viewport (rightmost
 * column on narrow desktops), pin it to the right of the field instead. */
.fc-field--align-right .fc-suggest { left: auto; right: 0; }
.fc-suggest-empty { padding: 14px 16px; color: #909097; font-size: 14px; }
.fc-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    cursor: pointer;
    color: #ffffff;
    border-bottom: 1px solid rgba(69, 70, 77, 0.3);
}
.fc-suggest-item:last-child { border-bottom: none; }
.fc-suggest-item:hover,
.fc-suggest-item.is-active { background: #272a2c; color: #ffdea5; }
.fc-suggest-icon { font-size: 18px; color: #e9c176; flex-shrink: 0; }
.fc-suggest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-suggest-label {
    font-size: 15px; line-height: 1.2; color: #ffffff; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-suggest-sub { font-size: 12px; color: #b0b1b8; line-height: 1.2; }

/* ============================================================ results */
.fc-results { margin-top: 32px; }
.fc-error,
.fc-loading {
    padding: 16px 20px;
    background: rgba(105, 0, 5, 0.15);
    border: 1px solid rgba(255, 180, 171, 0.35);
    border-radius: 6px;
    color: #ffb4ab;
    font-size: 14px;
}
.fc-loading {
    background: rgba(233, 193, 118, 0.08);
    border-color: rgba(233, 193, 118, 0.2);
    color: #c6c6cd;
}

.fc-best {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid rgba(233, 193, 118, 0.45);
    background: linear-gradient(135deg, rgba(233, 193, 118, 0.08), rgba(29, 32, 34, 0.6));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 28px;
}
@media (min-width: 768px) {
    .fc-best { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
.fc-best-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e9c176;
    margin-bottom: 6px;
}
.fc-best-title {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 28px;
    line-height: 1.15;
    color: #e0e3e5;
    margin: 0 0 6px 0;
}
.fc-best-title .fc-arrow { color: #e9c176; padding: 0 6px; }
.fc-best-sub { color: #c6c6cd; font-size: 14px; margin: 0; }
.fc-best-action { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex-shrink: 0; }
@media (min-width: 768px) { .fc-best-action { align-items: flex-end; } }
.fc-best-price {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 24px;
    color: #e9c176;
}
.fc-best-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e9c176;
    color: #412d00 !important;
    padding: 14px 26px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fc-best-cta:hover { background: #ffdea5; transform: translateY(-1px); }
.fc-best-cta .material-symbols-outlined { font-size: 18px; }

.fc-results-table {
    overflow-x: auto;
    background: #1d2022;
    border: 1px solid rgba(69, 70, 77, 0.4);
    border-radius: 6px;
}
.fc-results-table table {
    width: 100%;
    border-collapse: collapse;
    color: #e0e3e5;
    font-size: 14px;
}
.fc-results-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #909097;
    border-bottom: 1px solid rgba(69, 70, 77, 0.6);
    white-space: nowrap;
}
.fc-results-table tbody td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(69, 70, 77, 0.3);
    vertical-align: middle;
}
.fc-results-table tbody tr:last-child td { border-bottom: none; }
.fc-results-table tbody tr:hover { background: rgba(39, 42, 44, 0.6); }

.fc-prov-link {
    color: #e0e3e5 !important;
    font-weight: 500;
    text-decoration: none !important;
    font-size: 16px;
}
.fc-prov-link:hover { color: #e9c176 !important; }
.fc-prov-model {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #909097;
    margin-top: 4px;
}
.fc-cell-mid   { color: #c6c6cd; white-space: nowrap; }
.fc-cell-right { text-align: right; white-space: nowrap; }
.fc-star { color: #e9c176; font-size: 14px; vertical-align: -2px; }
.fc-price {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 18px;
    color: #e9c176;
    margin-right: 12px;
}
.fc-row-cta {
    display: inline-block;
    padding: 8px 16px;
    background: #e9c176;
    color: #412d00 !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
}
.fc-row-cta:hover { background: #ffdea5; }
.fc-row-cta--alt {
    background: transparent;
    color: #e9c176 !important;
    border: 1px solid rgba(233, 193, 118, 0.5);
}
.fc-row-cta--alt:hover { border-color: #e9c176; background: rgba(233, 193, 118, 0.08); }

/* ---- Mobile result cards (hidden ≥ 768px) ---- */
.fc-results-cards { display: none; }
@media (max-width: 767px) {
    .fc-results-table { display: none; }
    .fc-results-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .fc-card {
        background: #1d2022;
        border: 1px solid rgba(69, 70, 77, 0.4);
        border-radius: 8px;
        padding: 14px;
        list-style: none;
    }
    .fc-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }
    .fc-card-id { min-width: 0; }
    .fc-card-name {
        display: block;
        color: #e0e3e5 !important;
        font-weight: 500;
        font-size: 15px;
        line-height: 1.2;
        text-decoration: none !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fc-card-name:hover { color: #e9c176 !important; }
    .fc-card-rating {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #e9c176;
        font-size: 12px;
        margin-top: 4px;
    }
    .fc-card-price {
        font-family: "Noto Serif", Georgia, serif;
        font-size: 18px;
        color: #e9c176;
        white-space: nowrap;
        flex-shrink: 0;
        line-height: 1.2;
    }
    .fc-card-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .fc-card-avail {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #c6c6cd;
        font-size: 12px;
        min-width: 0;
    }
    .fc-card-avail-icon {
        color: #e9c176;
        font-size: 18px;
        flex-shrink: 0;
    }
    .fc-card-avail-txt {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fc-card-cta {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 8px 14px;
        background: #e9c176;
        color: #412d00 !important;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .fc-card-cta:hover { background: #ffdea5; }
    .fc-card-cta .material-symbols-outlined { font-size: 14px; }
    .fc-card-cta--alt {
        background: transparent;
        color: #e9c176 !important;
        border: 1px solid rgba(233, 193, 118, 0.5);
    }
}

.fc-no-flight {
    padding: 32px 28px;
    border: 1px dashed rgba(69, 70, 77, 0.7);
    border-radius: 6px;
    color: #c6c6cd;
    text-align: center;
}
.fc-no-flight-sub { color: #909097; font-size: 13px; margin-top: 6px; }
.fc-no-flight-cta { margin-top: 24px; display: flex; justify-content: center; }
.fc-partner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e9c176;
    color: #412d00 !important;
    padding: 18px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 14px 28px rgba(233, 193, 118, 0.18);
}
.fc-partner-cta:hover { background: #ffdea5; transform: translateY(-1px); }
.fc-partner-cta .material-symbols-outlined { font-size: 20px; }
.fc-partner-cta .fc-arrow-right { transition: transform 0.2s ease; }
.fc-partner-cta:hover .fc-arrow-right { transform: translateX(3px); }

/* ============================================================ multi-leg recap */
.fc-recap {
    padding: 28px 32px;
    border-radius: 10px;
    border: 1px solid rgba(233, 193, 118, 0.45);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(233, 193, 118, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(29, 32, 34, 0.92), rgba(29, 32, 34, 0.7));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 28px;
}
.fc-recap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.fc-recap-eyebrow {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 22px;
    color: #e0e3e5;
    letter-spacing: -0.01em;
}
.fc-recap-available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(46, 160, 67, 0.14);
    border: 1px solid rgba(46, 160, 67, 0.55);
    border-radius: 999px;
    color: #5fd47a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.fc-recap-available .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 1;
}
.fc-recap-legs {
    list-style: none;
    margin: 0 0 22px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fc-recap-leg {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(15, 17, 19, 0.55);
    border: 1px solid rgba(69, 70, 77, 0.4);
    border-radius: 6px;
}
.fc-recap-num {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e9c176;
    color: #412d00;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.fc-recap-route {
    display: inline-flex; align-items: center; gap: 10px;
    color: #e0e3e5;
    font-size: 15px;
    min-width: 0;
    flex-wrap: wrap;
}
.fc-recap-city { font-weight: 500; }
.fc-recap-arrow { color: #e9c176; font-size: 18px; }
.fc-recap-when {
    color: #c6c6cd;
    font-size: 13px;
    white-space: nowrap;
}
.fc-recap-cta-wrap { display: flex; justify-content: flex-end; }
.fc-recap-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e9c176;
    color: #412d00 !important;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 14px 30px rgba(233, 193, 118, 0.22);
}
.fc-recap-cta:hover { background: #ffdea5; transform: translateY(-1px); }
.fc-recap-cta .material-symbols-outlined { font-size: 18px; }
@media (max-width: 600px) {
    .fc-recap { padding: 22px 18px; }
    .fc-recap-leg { grid-template-columns: 28px 1fr; }
    .fc-recap-when { grid-column: 2; }
    .fc-recap-cta-wrap { justify-content: stretch; }
    .fc-recap-cta { width: 100%; justify-content: center; }
}
