/* Flight search results reveal (FLIGHT-UX-04): split-flap departure board.
   Only transform/opacity animate. Independent from the cinematic intro (#loader) and flight-results.css. */
.fsb-wrap { max-width: 1320px; margin: 28px auto 0; padding: 0 20px; box-sizing: border-box; font-family: 'Manrope', system-ui, sans-serif; text-align: left; }
.fsb-wrap[hidden] { display: none !important; }
.fsb-panel { padding: 26px 28px; border: 1px solid rgba(217,182,94,.18); border-radius: 22px; background: #0E0D0A; color: #D6CDBB; animation: fsb-in .35s ease both; }
.fsb-wrap.is-closing .fsb-panel { animation: fsb-out .3s ease both; }
@keyframes fsb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fsb-out { from { opacity: 1; } to { opacity: 0; } }

.fsb-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 22px; }
.fsb-heading { min-width: 0; }
.fsb-title { margin: 0 0 6px; color: #F4EDE0; font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
.fsb-meta { margin: 0; color: #A39C8E; font-size: 14px; line-height: 1.5; }
.fsb-counter { display: grid; justify-items: end; gap: 4px; }
.fsb-count { min-height: 40px; display: flex; align-items: center; color: #E6C774; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.fsb-count-label { color: #A39C8E; font-size: 12px; }

/* Board scrolls inside its own box on narrow screens; the page never overflows. */
.fsb-board { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(217,182,94,.3) transparent; }
.fsb-board:focus-visible,.fsb-skip:focus-visible { outline: 2px solid #D9B65E; outline-offset: 2px; }
.fsb-row { display: flex; gap: 18px; width: max-content; }
.fsb-labels { margin-bottom: 8px; }
.fsb-labels:not(:first-child) { margin-top: 22px; }
.fsb-result { margin-top: 8px; animation: fsb-in .25s ease both; }
.fsb-label { flex: none; box-sizing: border-box; width: calc(var(--fsb-cells) * 25px + 5px); padding: 0 4px; color: #A39C8E; font-size: 11px; font-weight: 600; line-height: 1.3; }
.fsb-label.is-right { text-align: right; }
.fsb-col { flex: none; display: flex; gap: 3px; padding: 3px; border: 1px solid transparent; border-radius: 7px; }
.fsb-flap { position: relative; width: 22px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 4px; background: linear-gradient(180deg,#221E17 0 50%,#1A1712 50% 100%); color: #F4EDE0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; font-weight: 700; line-height: 1; transform-origin: center; }
.fsb-flap::after { content: ''; position: absolute; top: 50%; right: 0; left: 0; height: 1px; margin-top: -.5px; background: rgba(0,0,0,.65); }
.fsb-col.is-gold .fsb-flap { color: #E6C774; }
.fsb-status { border-color: rgba(217,182,94,.55); }
.fsb-status.is-done .fsb-flap { background: linear-gradient(180deg,#E6C774 0 50%,#D9B65E 50% 100%); color: #0A0907; }
/* GZ-I18N-FLIGHT-01: Arabic, Chinese, Japanese and Korean words sit in the cell as plain text next to the flipped code;
   the column keeps the width of its label. The Arabic board reads right to left; each flap group stays left to right. */
.fsb-col.has-plain { box-sizing: border-box; min-width: calc(var(--fsb-cells) * 25px + 5px); align-items: center; }
.fsb-plain { display: flex; align-items: center; min-height: 34px; padding: 0 8px; border-radius: 4px; background: #1E1A14; color: #F4EDE0; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.fsb-status.is-done .fsb-plain { background: #E6C774; color: #0A0907; }
.fsb-wrap[dir="rtl"] { text-align: right; }
.fsb-wrap[dir="rtl"] .fsb-label.is-right { text-align: left; }

.fsb-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.fsb-skip { height: 32px; padding: 0 14px; border: 1px solid rgba(217,182,94,.4); border-radius: 999px; background: transparent; color: #E6C774; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fsb-skip:hover { background: rgba(217,182,94,.1); }
.fsb-skip[hidden] { display: none; }

/* Search button while searching: same treatment as the hotel search button. */
.btn-search.fsb-busy { position: relative; overflow: hidden; gap: 10px; opacity: 1; cursor: progress; }
.btn-search.fsb-busy::after { content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent); transform: translateX(-100%); animation: fsb-shine 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes fsb-shine { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
.fsb-spinner { width: 16px; height: 16px; flex: none; box-sizing: border-box; border: 2px solid rgba(10,9,7,.25); border-top-color: #0A0907; border-radius: 50%; animation: fsb-spin .9s linear infinite; }
@keyframes fsb-spin { to { transform: rotate(360deg); } }

/* Result cards enter one after another once the board closes (same motion as hotel cards). */
.fsb-card-enter { animation: fsb-card-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fsb-card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .fsb-wrap { padding: 0 16px; }
    .fsb-panel { padding: 22px 18px; }
    .fsb-title { font-size: 22px; }
    .fsb-counter { justify-items: start; }
    .fsb-count { min-height: 32px; font-size: 32px; }
    .fsb-row { gap: 12px; }
    .fsb-col { gap: 2px; }
    .fsb-label { width: calc(var(--fsb-cells) * 18px + 6px); }
    .fsb-flap { width: 16px; height: 26px; font-size: 12px; }
    .fsb-col.has-plain { min-width: calc(var(--fsb-cells) * 18px + 6px); }
    .fsb-plain { min-height: 26px; padding: 0 6px; font-size: 12px; }
}

.fsb-wrap.is-static *,.fsb-wrap.is-static *::before,.fsb-wrap.is-static *::after { animation: none !important; transition: none !important; }
/* Calm mode (GZ-A11Y-01): reduced-motion users without html.gz-motion-full get no motion at all. */
@media (prefers-reduced-motion: reduce) {
    html:not(.gz-motion-full) .fsb-wrap *,
    html:not(.gz-motion-full) .fsb-wrap *::before,
    html:not(.gz-motion-full) .fsb-wrap *::after,
    html:not(.gz-motion-full) .fsb-card-enter { animation: none !important; transition: none !important; }
    html:not(.gz-motion-full) .fsb-spinner,
    html:not(.gz-motion-full) .btn-search.fsb-busy::after { display: none; }
}
