/* sections/flights.css: the public flight board (sito/pages/flights.php, lib/flight_board.php), 30 Sep 2026. */
.gs-fb-head { margin-bottom: 24px; }
.gs-fb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 18px; }
.gs-fb-airports { margin: 0; }
.gs-fb-airports .gs-chip.is-active, .gs-fb-airports .gs-chip.is-active:hover { background: var(--gs-magenta); border-color: var(--gs-magenta); color: #fff; }
.gs-fb-airports .gs-chip.is-active .gs-fb-iata { color: rgba(255, 255, 255, .8); }
.gs-fb-dir > a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius-pill); font-weight: 600; color: var(--color-text-secondary); text-decoration: none; }
.gs-fb-dir > a.is-active { background: #fff; color: var(--gs-ink); box-shadow: var(--shadow-sm); }
.gs-fb-dir > a:last-child svg { transform: scaleY(-1); }
.gs-fb-iata { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--color-text-muted); }
.gs-fb-meta { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4px 20px; align-items: end; margin: 0 0 12px; }
.gs-fb-h { font-size: 22px; margin: 0; grid-column: 1; }
.gs-fb-upd { margin: 0; font-size: 14px; color: var(--color-text-muted); grid-column: 1; }
.gs-fb-search { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.gs-fb { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--color-border-primary); border-radius: var(--radius-xl); overflow: hidden; font-size: 15px; }
.gs-fb th { background: var(--gs-ink); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; text-align: left; }
.gs-fb td { padding: 11px 14px; border-top: 1px solid var(--color-border-light); vertical-align: middle; }
.gs-fb tbody tr:nth-child(even) td { background: var(--gs-ivory); }
.gs-fb-time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; }
.gs-fb-old { color: var(--color-text-muted); text-decoration: line-through; font-weight: 500; font-size: 14px; margin-right: 6px; }
.gs-fb-new { color: #B45309; }
.gs-fb-tmr { display: block; font-size: 11px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.gs-fb-no { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.gs-fb-al { color: var(--color-text-secondary); }
.gs-fb-al-m { display: none; }
.gs-fb-st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--color-bg-gray-light); color: var(--color-text-secondary); }
.gs-fb-st.is-ok { background: #E7F6EC; color: #166534; }
.gs-fb-st.is-done { background: #E8EEFF; color: #1E3A8A; }
.gs-fb-st.is-late { background: #FEF3C7; color: #92400E; }
.gs-fb-st.is-bad { background: #FDE8E8; color: #9B1C1C; }
/* Bologna's airport statuses (lib/flight_official.php): now = boarding / last call (solid, pulsing dot), go = boarding closed / gate closed */
.gs-fb-st { gap: 6px; }
.gs-fb-st.is-now { background: #15803D; color: #fff; }
.gs-fb-st.is-go { background: #FFEDD5; color: #9A3412; }
.gs-fb-st-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: gs-fb-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gs-fb-st-dot { animation: none; } }
.gs-fb-row.is-bad .gs-fb-time > span:first-child { text-decoration: line-through; color: var(--color-text-muted); }
.gs-fb-gate { display: block; margin-top: 3px; font-size: 12px; color: var(--color-text-muted); }
.gs-fb-empty { padding: 28px 20px; margin: 0; text-align: center; background: #fff; border: 1px solid var(--color-border-primary); border-radius: var(--radius-xl); color: var(--color-text-secondary); }
.gs-fb-note { margin: 14px 0 0; font-size: 13px; color: var(--color-text-muted); }
.gs-fb-why { max-width: 760px; }
@media (max-width: 767px) {
  .gs-fb-bar { flex-direction: column; align-items: stretch; }
  .gs-fb-dir { display: grid; grid-template-columns: 1fr 1fr; }
  .gs-fb-dir > a { justify-content: center; }
  .gs-fb-meta { grid-template-columns: 1fr; }
  .gs-fb-search { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .gs-fb thead, .gs-fb .gs-fb-al { display: none; }
  .gs-fb, .gs-fb tbody { display: block; }
  .gs-fb-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "time place st" "time no st"; gap: 2px 12px; padding: 10px 12px; border-top: 1px solid var(--color-border-light); }
  .gs-fb tbody tr:first-child { border-top: 0; }
  .gs-fb tbody tr:nth-child(even) { background: var(--gs-ivory); }
  .gs-fb td { display: block; padding: 0; border: 0; background: none !important; }
  .gs-fb-time { grid-area: time; font-size: 16px; }
  .gs-fb-old { display: block; margin: 0; font-size: 12px; }
  .gs-fb-place { grid-area: place; min-width: 0; }
  .gs-fb-no { grid-area: no; font-size: 13px; color: var(--color-text-secondary); }
  .gs-fb-row > td:last-child { grid-area: st; text-align: right; }
  .gs-fb-al-m { display: block; font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.gs-fb-row[hidden], .gs-fb[hidden] { display: none !important; }
/* Live column of the arrivals (sito/lib/flight_live.php, 30 Sep 2026): wait tag, "Vedi live" button, ATTERRATO tag. */
.gs-fb-live { width: 1%; white-space: nowrap; text-align: right; }
.gs-fb-live-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--gs-ink); color: var(--gs-ink); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gs-fb-live-btn:hover, .gs-fb-live-btn:focus-visible { background: var(--gs-ink); color: #fff; }
.gs-fb-live-btn.is-live { background: var(--gs-magenta); border-color: var(--gs-magenta); color: #fff; }
.gs-fb-live-btn.is-live:hover, .gs-fb-live-btn.is-live:focus-visible { filter: brightness(.9); }
.gs-fb-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: gs-fb-pulse 1.4s ease-in-out infinite; }
@keyframes gs-fb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .gs-fb-live-dot { animation: none; } }
.gs-fb-live-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.gs-fb-live-tag.is-wait { color: var(--color-text-muted); background: var(--color-bg-gray-light); }
.gs-fb-live-tag.is-landed { color: #1E3A8A; background: #E8EEFF; letter-spacing: .04em; }
@media (max-width: 767px) {
  .gs-fb-row:has(.gs-fb-live) { grid-template-areas: "time place st" "time no live"; }
  .gs-fb-row > td.gs-fb-live { grid-area: live; text-align: right; align-self: end; justify-self: end; width: auto; }
  .gs-fb-live-btn, .gs-fb-live-tag { height: 28px; padding: 0 10px; font-size: 12px; gap: 6px; }
  .gs-fb-row > td.gs-fb-live:empty { display: none; }
  .gs-fb-row:has(.gs-fb-live) > td:nth-last-child(2) { grid-area: st; text-align: right; }
}
