/* Live Flights board (/live-flights/). Reuses site tokens from style.css. */

.lf { width: 100%; }

/* ── Control deck ─────────────────────────────────────────────────────────────
   Sits in the shared dark-glass .lead-bento (style.css), the same strip the Trip
   Planner uses for its controls (#planner-header-bento in planner.css). Its
   styling is scoped to that id, so the matching tokens are mirrored here instead
   of loading all of planner.css: orange (--tertiary) labels, pale pill controls,
   glass-pill segments, 1px rgba(255,255,255,.25) borders. */
.lf-deck { align-items: stretch; padding: 1.5rem 2rem; gap: 1.1rem; }
/* The white panel under the deck is a .bento-single-tier (3rem base padding, only the top is trimmed to 1.5rem by
   `.lead-bento + .bento-single-tier`), so it was 48px left/right/bottom vs 24px everywhere else. Article pages, section
   indexes and the homepage card all use 1.5rem on every side; match them. Phones are already 0.75rem via style.css. */
.lf-deck + .bento-single-tier { padding: 1.5rem; }
.lf-deck__lead {
    margin: 0; text-align: center; color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem; line-height: 1.5;
}
.lf-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: flex-end; margin: 0; }
.lf-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.lf-field--airport { flex: 1 1 300px; }   /* grows to absorb the row's slack, so wrapped rows start and end flush */
.lf-field--search { flex: 1 1 180px; }
.lf-search-row { display: flex; gap: 0.6rem; align-items: stretch; }
.lf-go.btn {
    padding: 0.45rem 1.4rem; min-height: 44px; font-size: 0.9rem; font-weight: 800; cursor: pointer;
    background: var(--tertiary, #fd9d1a); border: 1px solid var(--tertiary, #fd9d1a); color: #1d1b19;
}
.lf-go.btn:hover { background: #fff; border-color: #fff; color: #1d1b19; }
.lf-go.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lf-go.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lf-fieldset { border: 0; padding: 0; margin: 0; }
.lf-fieldset > .lf-label { margin-bottom: 0.35rem; }   /* a <legend> ignores the flex gap, so give it the same label-to-control space as the other fields */
.lf-label {
    font-family: var(--font-label); font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--tertiary, #fd9d1a); padding: 0;
}
.lf-input {
    background: #fff; border: 1.5px solid rgba(0, 0, 0, 0.15); color: #0f172a;
    padding: 0.55rem 1rem; border-radius: 9999px; font-family: var(--font-body); font-size: 0.95rem;
    width: 100%; min-height: 44px; box-sizing: border-box; outline: none;
}
select.lf-input { text-overflow: ellipsis; }
.lf-input:disabled { opacity: 0.6; cursor: not-allowed; }
.lf-input:focus-visible { border-color: var(--tertiary, #fd9d1a); outline: 2px solid var(--tertiary, #fd9d1a); outline-offset: 2px; }

.lf-seg {
    display: inline-flex; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px; padding: 3px; min-height: 44px; box-sizing: border-box;
}
.lf-seg__opt { position: relative; border-radius: 9999px; cursor: pointer; display: flex; }
.lf-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lf-seg__opt span {
    display: flex; align-items: center; padding: 0 0.9rem; border-radius: 9999px; font-size: 0.9rem;
    font-weight: 700; color: rgba(255, 255, 255, 0.85); white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.lf-seg__opt input:disabled { cursor: not-allowed; }
.lf-seg__opt input:disabled + span { opacity: 0.4; }   /* direction the selected airport does not offer */
.lf-seg__opt:hover span { background: rgba(255, 255, 255, 0.12); }
.lf-seg__opt input:checked + span { background: var(--tertiary, #fd9d1a); color: #1d1b19; }
.lf-seg__opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }
/* Today / Tomorrow: the chosen day also gets a tick, so selection never rests on the orange fill alone. Its space is
   reserved on both options (hidden, not absent), so toggling never changes the control's width or re-flows the row. */
.lf-seg--date .lf-seg__opt span::before { content: '\2713'; content: '\2713' / ''; visibility: hidden; margin-right: 0.3em; font-size: 0.8em; }
.lf-seg--date .lf-seg__opt input:checked + span::before { visibility: visible; }

/* Desktop: two rows (airport / direction / date, then window / times / cancelled / search). Every control grows to
   share its row's width and its pills stretch with it (as on phones), so a row is always full edge to edge: no
   gaps, and Search is a compact box beside the other controls rather than a row of its own. Wraps only if a row
   cannot fit (below ~1100px). Phones: see the max-width block below, where the rows dissolve (display: contents). */
@media (min-width: 901px) {
    .lf-controls { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .lf-controls__row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: flex-end; }
    .lf-field { flex: 1 1 auto; }
    .lf-field--airport { flex: 1.6 1 300px; }
    .lf-field--search { flex: 1 1 180px; }
    .lf-seg { display: flex; }
    .lf-seg__opt { flex: 1; }
    .lf-seg__opt span { width: 100%; justify-content: center; }
    /* Three short words (Show / Hide / Only): tighter pills keep ~1100px laptops on two rows. */
    .lf-field--cancelled .lf-seg__opt span { padding: 0 0.7rem; }
}

/* ── Board heading row + hide/show past toggle ────────────────────────────────
   Pink matches the Trip Planner Calendar button (.planner-calendar-btn in planner.css,
   #ec1e79 / hover #c8125f); built on the shared .btn pill from style.css. */
/* Heading left, freshness centred across the row, toggle right. */
.lf-board-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.lf-board-head .loc-index-section-h2 { grid-column: 1; justify-self: start; }
.lf-board-head .lf-meta { grid-column: 2; }
.lf-board-head .lf-past-toggle { grid-column: 3; justify-self: end; }
.lf-board-head .loc-index-section-h2 { margin-bottom: 0; }
.lf-past-toggle.btn {
    gap: 0.4rem; padding: 0.45rem 0.95rem; min-height: 44px; font-size: 0.85rem; font-weight: 700; cursor: pointer;
    background: #ec1e79; border: 1px solid #ec1e79; color: #fff; box-shadow: 0 2px 8px rgba(236, 30, 121, 0.28);
}
.lf-past-toggle.btn[hidden] { display: none; }
.lf-past-toggle.btn:hover { background: #c8125f; border-color: #c8125f; color: #fff; }
.lf-past-toggle.btn:focus-visible { outline: 2px solid #1d1b19; outline-offset: 2px; }
.lf-hide-past .lf-row--past { display: none !important; }
.lf-hide-cancelled .lf-row--cancelled { display: none !important; }
.lf-only-cancelled .lf-row:not(.lf-row--cancelled) { display: none !important; }

/* Rows hidden by the search box (client-side filter of the rendered fragment). */
.lf-table tbody tr.lf-filtered { display: none !important; }
.lf-loading { padding: 2rem 1rem; text-align: center; color: var(--on-surface-variant); }

/* Context line above the table: LOCATION · AIRPORT · DIRECTION. A quiet sub-heading, not a control. */
.lf-context {
    margin: 0 0 1.25rem; padding: 1rem 0.5rem 0; border-top: 1px solid rgba(0, 0, 0, 0.08); text-align: center;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere;
    color: var(--on-surface-variant);
}
.lf-context[hidden] { display: none; }
.lf-context__loc { font-weight: 800; color: var(--on-surface); }
.lf-context__ap { font-weight: 600; }
.lf-context__dir { font-weight: 800; color: var(--tertiary, #fd9d1a); }
.lf-context__sep { margin: 0 0.55em; opacity: 0.6; }

/* ── Meta / notices ───────────────────────────────────────────────────────── */
.lf-meta { display: flex; gap: 0.5rem; align-items: center; justify-content: center; text-align: center; font-size: 0.85rem; color: var(--on-surface-variant); }
.lf-updated { font-weight: 700; color: var(--on-surface); }
.lf-refreshing { font-style: italic; opacity: 0.8; }
.lf-notice {
    margin: 0 0 1rem; padding: 0.65rem 1rem; border-radius: 0.75rem; font-size: 0.9rem;
    background: rgba(255, 118, 18, 0.12); border: 1px solid rgba(255, 118, 18, 0.35); color: var(--on-surface);
}
.lf-empty { padding: 2rem 1rem; text-align: center; color: var(--on-surface-variant); }
.lf-foot { margin-top: 1.25rem; font-size: 0.8rem; color: var(--on-surface-variant); }
.lf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Desktop table ────────────────────────────────────────────────────────── */
.lf-table-wrap { overflow-x: auto; }
.lf-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lf-table th {
    text-align: left; font-family: var(--font-label); font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--on-surface-variant); padding: 0.6rem 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1); white-space: nowrap;
}
.lf-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.07); vertical-align: middle; }
@media (min-width: 901px) {
    .lf-table tbody tr:hover { background: rgba(0, 0, 0, 0.025); }
    .lf-row--cancelled .lf-flight__no, .lf-row--cancelled .lf-time__main { text-decoration: line-through; text-decoration-thickness: 1px; }
}
.lf-hide-terminal .lf-col-terminal, .lf-hide-terminal th:nth-child(7),
.lf-hide-gate .lf-col-gate, .lf-hide-gate th:nth-child(8),
.lf-hide-extra .lf-col-extra, .lf-hide-extra th:nth-child(9) { display: none; }

.lf-time { display: inline-flex; flex-direction: column; line-height: 1.25; }
.lf-time__main { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.lf-time__date, .lf-time__basis { font-size: 0.7rem; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.06em; }
.lf-flight { display: inline-flex; flex-direction: column; line-height: 1.25; }
.lf-flight__no { font-weight: 800; white-space: nowrap; }
.lf-flight__cs { font-size: 0.72rem; color: var(--on-surface-variant); }
.lf-airline { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.lf-airline__name { font-size: 0.85rem; line-height: 1.25; }
.lf-logo { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; border-radius: 6px; background: #fff; }
.lf-logo--fallback {
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800;
    background: var(--surface-container-high); color: var(--on-surface-variant);
}
.lf-place { display: inline-flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lf-place__code { font-weight: 800; letter-spacing: 0.04em; }
.lf-place__name { font-size: 0.8rem; color: var(--on-surface-variant); }
.lf-status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lf-status__dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--on-surface-variant); flex: 0 0 auto; }
.lf-mv--late { color: #b94700; font-weight: 700; }
.lf-mv--early { color: #1c7a4d; font-weight: 700; }
.lf-mv--cancelled { color: #b3261e; font-weight: 700; }

/* ── Past/future split + NOW divider ──────────────────────────────────────────
   Past rows carry a clearly muted warm tint (text stays full-strength so status,
   movement and cancelled styling are unaffected); future rows keep the clean
   default surface. The divider is a dedicated, roomy break row. */
.lf-row--past { background: rgba(130, 108, 72, 0.14); }
@media (min-width: 901px) { .lf-table tbody tr.lf-row--past:hover { background: rgba(130, 108, 72, 0.20); } }
.lf-row--past td { border-bottom-color: rgba(130, 108, 72, 0.18); }

.lf-now-row, .lf-now-row:hover { background: transparent !important; }
.lf-now-row td.lf-now-cell { padding: 1.25rem 0.75rem; border-bottom: 0; text-align: center; }
.lf-now { display: flex; align-items: center; justify-content: center; gap: 1rem; width: 100%; }
.lf-now::before, .lf-now::after {
    content: ''; flex: 1 1 auto; height: 2px; border-radius: 2px;
    background: var(--tertiary, #fd9d1a); opacity: 0.85;
}
.lf-now__pill {
    background: var(--tertiary, #fd9d1a); color: #1d1b19; font-family: var(--font-label); font-size: 0.78rem;
    font-weight: 800; letter-spacing: 0.14em; padding: 0.3rem 0.85rem; border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(253, 157, 26, 0.35);
}
.lf-now__pill { display: inline-flex; align-items: center; white-space: pre; }
.lf-now__time { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

/* ── Row hover: charcoal row, light text ──────────────────────────────────────
   Whole-row (set on the <tr>, cells inherit), desktop/tablet pointer hover only.
   Status dots keep their API colour; movement colours are brightened to stay
   readable on charcoal. The NOW divider row is excluded. */
.lf-table tbody tr.lf-row,
.lf-table tbody tr.lf-row td,
.lf-table tbody tr.lf-row td * {
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
@media (hover: hover) and (min-width: 901px) {
    .lf-table tbody tr.lf-row:hover,
    .lf-table tbody tr.lf-row--past:hover {
        background: #2b2f36;
        color: #f5f6f8;
    }
    .lf-table tbody tr.lf-row:hover td { color: #f5f6f8; border-bottom-color: rgba(255, 255, 255, 0.12); }
    .lf-table tbody tr.lf-row:hover .lf-time__date,
    .lf-table tbody tr.lf-row:hover .lf-time__basis,
    .lf-table tbody tr.lf-row:hover .lf-flight__cs,
    .lf-table tbody tr.lf-row:hover .lf-place__name { color: #b9bec7; }
    .lf-table tbody tr.lf-row:hover .lf-mv--late { color: #ffa066; }
    .lf-table tbody tr.lf-row:hover .lf-mv--early { color: #5fd69a; }
    .lf-table tbody tr.lf-row:hover .lf-mv--cancelled { color: #ff8f86; }
}

/* The site has a single 768px breakpoint; cards also cover narrow tablets so the
   9-column table never has to squeeze below ~900px. */
@media (max-width: 900px) {
    .lf-board-head { grid-template-columns: 1fr auto; }
    .lf-board-head .lf-meta { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; text-align: left; }
    .lf-board-head .lf-past-toggle { grid-column: 2; grid-row: 1; }
    .lf-deck { padding: 1.25rem 1rem; }
    .lf-controls { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
    .lf-controls__row { display: contents; }
    .lf-field--airport, .lf-field--search { flex: 0 0 auto; }
    /* Mobile priority: airport, direction, search, window, timezone */
    .lf-field--airport { order: 1; }
    .lf-field--direction { order: 2; }
    .lf-field--date { order: 3; }
    .lf-field--search { order: 4; }
    .lf-field--window { order: 5; }
    .lf-field--tz { order: 6; }
    .lf-field--cancelled { order: 7; }
    .lf-seg { display: flex; }
    .lf-seg__opt { flex: 1; }
    .lf-seg__opt span { width: 100%; justify-content: center; padding: 0 0.4rem; }
    /* "Tomorrow (21 Oct)" may not fit one line on a narrow phone: let that control wrap instead of overflowing. */
    .lf-seg--date .lf-seg__opt { min-width: 0; }
    .lf-seg--date .lf-seg__opt span { white-space: normal; text-align: center; line-height: 1.15; padding: 0.2rem 0.4rem; }
}

/* Phones: heading on its own line, then toggle (left) and freshness text (right) share
   the second line, so the header stays two compact rows instead of three. */
@media (max-width: 600px) {
    .lf-board-head { grid-template-columns: auto 1fr; gap: 0.6rem 0.75rem; }
    .lf-board-head .loc-index-section-h2 { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; width: 100%; text-align: center; }
    .lf-board-head .lf-past-toggle { grid-column: 1; grid-row: 2; justify-self: start; }
    .lf-board-head .lf-meta { grid-column: 2; grid-row: 2; justify-content: flex-end; text-align: right; flex-wrap: wrap; }
    .lf-board-head:has(.lf-past-toggle[hidden]) .lf-meta { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
}

/* ── Clickable rows ───────────────────────────────────────────────────────────
   The whole row opens the details modal; the existing charcoal row hover is the desktop affordance. */
.lf-table tbody tr.lf-row { cursor: pointer; }
.lf-table tbody tr.lf-row:focus-visible { outline: 2px solid #ec1e79; outline-offset: -2px; }

/* ── Phones / small tablets: the SAME <tr> restyled as a card ─────────────────
   One element per flight in the HTML. Below 901px the table is flattened (block/flex) and each row becomes a card:
   line 1 time · flight · status, line 2 route · movement, line 3 airline, then terminal/gate/belt as labelled facts
   (empty ones omitted via .lf-na). The header row stays for screen readers only. The two pseudo-elements are layout
   helpers: ::before forces the line break after the status, ::after soaks up the free space so the facts pack left. */
@media (max-width: 900px) {
    .lf-table, .lf-table tbody { display: block; }
    .lf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .lf-table tbody { display: flex; flex-direction: column; gap: 0.75rem; }
    .lf-table tbody tr.lf-row {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 0.75rem;
        background-color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 1rem;
        padding: 0.85rem 1.9rem 0.85rem 1rem; -webkit-tap-highlight-color: rgba(236, 30, 121, 0.12);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 1l5 4-5 4' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 0.8rem;
    }
    .lf-table tbody tr.lf-row--cancelled { border-color: rgba(179, 38, 30, 0.35); }
    .lf-table tbody tr.lf-row--past { background-color: rgba(226, 216, 198, 0.85); border-color: rgba(130, 108, 72, 0.22); }
    .lf-table tbody tr.lf-row:active { background-color: rgba(255, 255, 255, 0.9); }
    .lf-table tbody tr.lf-row::before { content: ''; order: 4; flex: 0 0 100%; }
    .lf-table tbody tr.lf-row::after { content: ''; order: 11; flex: 1 1 0; }
    .lf-table tbody tr.lf-row td { display: block; padding: 0; border: 0; }
    .lf-table tbody tr.lf-row td.lf-na { display: none; }
    .lf-table tbody tr.lf-row .lf-col-time { order: 1; }
    .lf-table tbody tr.lf-row .lf-col-flight { order: 2; }
    .lf-table tbody tr.lf-row .lf-col-status { order: 3; }
    .lf-table tbody tr.lf-row .lf-col-place { order: 5; flex: 1 1 0; min-width: 0; align-self: flex-start; margin-top: 0.5rem; }
    .lf-table tbody tr.lf-row .lf-col-move { order: 6; align-self: flex-start; margin-top: 0.5rem; font-size: 0.9rem; white-space: nowrap; }
    .lf-table tbody tr.lf-row .lf-col-airline { order: 7; flex: 0 0 100%; margin-top: 0.5rem; }
    .lf-table tbody tr.lf-row .lf-col-terminal, .lf-table tbody tr.lf-row .lf-col-gate, .lf-table tbody tr.lf-row .lf-col-extra {
        display: flex; gap: 0.35rem; margin: 0.5rem 0.5rem 0 0; font-size: 0.85rem; font-weight: 700;
    }
    .lf-table tbody tr.lf-row .lf-col-terminal { order: 8; }
    .lf-table tbody tr.lf-row .lf-col-gate { order: 9; }
    .lf-table tbody tr.lf-row .lf-col-extra { order: 10; }
    .lf-table tbody tr.lf-row .lf-col-terminal::before { content: 'Terminal'; }
    .lf-table tbody tr.lf-row .lf-col-gate::before { content: 'Gate'; }
    .lf-table--arrivals tbody tr.lf-row .lf-col-extra::before { content: 'Belt'; }
    .lf-table--departures tbody tr.lf-row .lf-col-extra::before { content: 'Check-in'; }
    .lf-table tbody tr.lf-row .lf-col-terminal::before, .lf-table tbody tr.lf-row .lf-col-gate::before, .lf-table tbody tr.lf-row .lf-col-extra::before {
        font-weight: 400; color: var(--on-surface-variant);
    }
    .lf-table tbody tr.lf-now-row { display: block; }
    .lf-table tbody tr.lf-now-row td.lf-now-cell { display: block; padding: 1rem 0; }
}

/* ── Flight details modal (native <dialog>) ───────────────────────────────────
   Charcoal header + pale body, pink accents: same palette as the board's hover row and past-toggle. Bottom sheet on phones. */
html.lf-modal-open { overflow: hidden; }
.lf-modal {
    margin: auto; padding: 0; border: 0; background: transparent; color: #1d1b19; width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: visible;
}
.lf-modal::backdrop { background: rgba(15, 17, 21, 0.62); backdrop-filter: blur(3px); }
.lf-modal__panel {
    position: relative; background: #f6f3ee; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column;
}
.lf-modal__close {
    position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1); color: #fff;
}
.lf-modal__close:hover { background: #ec1e79; border-color: #ec1e79; }
.lf-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lf-modal__body { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }

.lf-dm__head {
    display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding: 1.25rem 4rem 1.1rem 1.4rem;
    background: #2b2f36; color: #f5f6f8;
}
.lf-dm__head .lf-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 10px; font-size: 0.8rem; }
.lf-dm__id { min-width: 0; flex: 1 1 8rem; }
.lf-dm__no { margin: 0; font-size: 1.6rem; line-height: 1.1; font-weight: 800; letter-spacing: 0.01em; color: #fff; }
.lf-dm__airline { margin: 0.15rem 0 0; font-size: 0.9rem; color: #b9bec7; }
.lf-dm__head .lf-status {
    padding: 0.3rem 0.75rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.75rem;
}

.lf-dm__route { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 1.3rem 1.4rem 0.4rem; }
.lf-dm__end { display: flex; flex-direction: column; gap: 0.2rem; flex: 1 1 0; min-width: 0; }
.lf-dm__end:last-child { text-align: right; align-items: flex-end; }
.lf-dm__code { font-size: 2.1rem; line-height: 1; font-weight: 800; letter-spacing: 0.04em; }
.lf-dm__ap { font-size: 0.85rem; line-height: 1.3; color: var(--on-surface-variant, #55524e); overflow-wrap: anywhere; }
.lf-dm__arrow { font-size: 1.6rem; line-height: 1.15; color: #ec1e79; font-weight: 800; flex: 0 0 auto; }

.lf-dm__journey { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0.9rem 1.4rem 0; }
.lf-dm__stage { background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 1rem; padding: 0.85rem 1rem; min-width: 0; }
.lf-dm__stage-h {
    margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-family: var(--font-label); font-size: 0.72rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #ec1e79;
}
.lf-dm__stage-place { margin: 0.25rem 0 0.55rem; font-size: 0.82rem; color: var(--on-surface-variant, #55524e); overflow-wrap: anywhere; }
.lf-dm__stage-place strong { color: #1d1b19; }
.lf-dm__times { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.lf-dm__t { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.lf-dm__t dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-surface-variant, #55524e); }
.lf-dm__t dd { margin: 0; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.lf-dm__t--actual dd { color: #1c7a4d; }
.lf-dm__date { margin-left: 0.4rem; font-size: 0.7rem; font-weight: 700; color: var(--on-surface-variant, #55524e); text-transform: uppercase; }
.lf-dm__mv { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
.lf-dm__mv.lf-mv--ontime { color: var(--on-surface-variant, #55524e); }
.lf-dm__cancelled { margin: 0.9rem 1.4rem 0; padding: 0.6rem 0.9rem; border-radius: 0.75rem; font-weight: 700; color: #b3261e; background: rgba(179, 38, 30, 0.09); border: 1px solid rgba(179, 38, 30, 0.3); }

.lf-dm__facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0.9rem 1.4rem 0; }
.lf-dm__fact { flex: 1 1 5rem; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 0.85rem; padding: 0.55rem 0.8rem; }
.lf-dm__fact dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-surface-variant, #55524e); }
.lf-dm__fact dd { margin: 0.1rem 0 0; font-weight: 800; font-size: 1.15rem; }

.lf-dm__block { padding: 0.9rem 1.4rem 0; }
.lf-dm__h { margin: 0 0 0.35rem; font-family: var(--font-label); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-surface-variant, #55524e); }
.lf-dm__aircraft, .lf-dm__chips { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.lf-dm__chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 9999px; background: #2b2f36; color: #f5f6f8; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.lf-dm__chip--more { background: rgba(0, 0, 0, 0.08); color: #1d1b19; }
.lf-modal__body > :last-child { margin-bottom: 1.4rem; }

@media (max-width: 600px) {
    .lf-modal { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92vh; max-height: 92dvh; }
    .lf-modal__panel { border-radius: 1.25rem 1.25rem 0 0; max-height: 92vh; max-height: 92dvh; }
    .lf-dm__head { padding: 1.1rem 3.8rem 1rem 1.1rem; }
    .lf-dm__route { padding: 1.1rem 1.1rem 0.3rem; }
    .lf-dm__code { font-size: 1.9rem; }
    .lf-dm__journey { grid-template-columns: 1fr; padding: 0.8rem 1.1rem 0; }
    .lf-dm__facts, .lf-dm__block { padding-left: 1.1rem; padding-right: 1.1rem; }
    .lf-dm__cancelled { margin-left: 1.1rem; margin-right: 1.1rem; }
}
