/* ═══════════════════════════════════════════════════════════════════════════
   lane-bookings.css: the bookings lane family (desktop fan-out unit BOOKINGS;
   the lane map's "Seeker bookings" and "Keeper bookings" rows). Linked by the
   layout.

   Two pages, both composed from the kit (kit.css, prefix k-):
     lfb-  desktop/pages/Booking-Details.php, the booking in FOCUS: the state as
           the headline, the listing as the phone's colour hero (the photo's own
           palette as a radial wash), the other person, the fact grid, the
           timeline; the next step, the money and the terms in the corner
     lfa-  desktop/pages/Booking-Action.php, one decision in ACT at List width:
           the consequences beside the one pink button, the quote composer,
           the done state

   Rules (kit.css): every selector starts .desktop-surface; no font-weight for
   emphasis (swap the family); fills are full background shorthands; no viewport
   media queries (forms change because THE LANE is narrow: @container lane);
   nothing is fixed or floats over anything.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Booking-Details ─────────────────────────────────────────────────────── */

.desktop-surface .lfb {
    display: grid;
    gap: var(--space-lg);
    align-content: start;
    min-width: 0;
}

.desktop-surface .lfb--state { min-height: 60%; align-content: center; }
.desktop-surface .lfb-state { justify-items: center; text-align: center; }

.desktop-surface .lfb-back { display: flex; }
.desktop-surface .lfb-back[hidden] { display: none; }

/* The head: the state in words, big, as the phone's heavy headlines */
.desktop-surface .lfb-head { display: grid; gap: 0.45rem; min-width: 0; }
.desktop-surface .lfb-head .k-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.desktop-surface .lfb-headline {
    font-size: clamp(1.9rem, 1.2rem + 2.6cqi, 3.4rem);
    line-height: 1.02;
    color: var(--ink-navy, var(--text));
    overflow-wrap: anywhere;
    transition: color var(--dur-base, 300ms) var(--ease-out, ease);
}
.desktop-surface .lfb-headline.is-fresh { color: var(--rt-pink); }
.desktop-surface .lfb-summary { max-width: 62ch; }

.desktop-surface .lfb-verify { text-decoration: none; }
.desktop-surface .lfb-verify:hover { text-decoration: none; }

/* The listing as the phone's colour hero: the cover photo and its palette. The
   wash is the photo's five dominant colours (--lfb-c1..5, from listing_media),
   so every booking's hero is its own. */
.desktop-surface .lfb-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    border-radius: var(--r-feature, var(--r-panel));
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--lfb-c1, #3c6cc9) 92%, transparent) 0, transparent 46%),
        radial-gradient(circle at 88% 22%, color-mix(in srgb, var(--lfb-c2, #5b3fb8) 88%, transparent) 0, transparent 44%),
        radial-gradient(circle at 70% 92%, color-mix(in srgb, var(--lfb-c3, #eb5d8f) 85%, transparent) 0, transparent 48%),
        radial-gradient(circle at 18% 88%, color-mix(in srgb, var(--lfb-c4, #2c9a96) 85%, transparent) 0, transparent 46%),
        linear-gradient(135deg, var(--lfb-c5, #1d2f52), var(--rt-navy-1, #10203a));
    box-shadow: var(--shadow-cont);
}

.desktop-surface .lfb-hero-photo {
    display: block;
    min-width: 0;
    aspect-ratio: 16 / 9;
    max-height: 22rem;
    overflow: hidden;
}

.desktop-surface .lfb-hero-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow, 520ms) var(--ease-out, ease);
}

.desktop-surface .lfb-hero-photo:hover > img,
.desktop-surface .lfb-hero-photo:focus-visible > img { transform: scale(1.03); }

.desktop-surface .lfb-hero-text {
    display: grid;
    gap: 0.6rem;
    align-content: center;
    padding: var(--space-lg) var(--pad-panel);
    min-width: 0;
    background: linear-gradient(180deg, rgba(8, 18, 38, 0.08), rgba(8, 18, 38, 0.38));
}

.desktop-surface .lfb-hero-title {
    font-size: clamp(1.5rem, 1rem + 1.6cqi, 2.4rem);
    color: #fff;
    text-shadow: var(--shadow-text, 0 1px 2px rgba(0, 0, 0, 0.35));
    overflow-wrap: anywhere;
}

.desktop-surface .lfb-hero-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.desktop-surface .lfb-hero-door { justify-self: start; }

@container lane (width >= 44rem) {
    /* Photo and words side by side; the words set the height (within a band), the photo fills it */
    .desktop-surface .lfb-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 1fr);
        min-height: clamp(15rem, 18cqi, 21rem);
    }
    .desktop-surface .lfb-hero-photo { position: relative; aspect-ratio: auto; max-height: none; }
    .desktop-surface .lfb-hero-photo > img { position: absolute; inset: 0; }
    .desktop-surface .lfb-hero-text { background: none; }
}

/* The other person: the kit's Keeper card, the phone's ID and presence badges */
.desktop-surface .lfb-avatar { width: 4.25rem; height: 4.25rem; }
.desktop-surface .lfb-person-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.25rem 0; }

/* The fact grid: the phone's selection boxes as tiles that pack to the width */
.desktop-surface .lfb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 0.6rem;
    margin: 0;
}

.desktop-surface .lfb-cell {
    display: grid;
    gap: 0.2rem;
    align-content: start;
    padding: 0.75rem 0.9rem;
    border-radius: var(--r-ctl);
    background: var(--glass-bg-soft, rgba(255, 255, 255, 0.6));
    box-shadow: inset 0 0 0 1px var(--glass-rule, rgba(20, 40, 80, 0.08));
    min-width: 0;
}

.desktop-surface .lfb-cell--wide { grid-column: 1 / -1; }
.desktop-surface .lfb-cell > dt { font-family: var(--font-text); font-weight: normal; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lfb-cell > dd {
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    color: var(--text);
    overflow-wrap: anywhere;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* The phone's status colours as ink */
.desktop-surface .lfb-ink-green  { color: var(--ink-green); }
.desktop-surface .lfb-ink-blue   { color: var(--ink-blue); }
.desktop-surface .lfb-ink-amber  { color: var(--ink-amber); }
.desktop-surface .lfb-ink-pink   { color: var(--ink-pink); }
.desktop-surface .lfb-ink-purple { color: var(--ink-purple); }
.desktop-surface .lfb-ink-navy   { color: var(--ink-navy); }
.desktop-surface .lfb-ink-slate  { color: var(--text-soft); }

.desktop-surface .lfb-pre { white-space: pre-line; overflow-wrap: anywhere; }
.desktop-surface .lfb-package-of { display: flex; gap: 0.5rem; align-items: baseline; }

/* Invoices: one row each, the amount and its state at the end */
.desktop-surface .lfb-invoice {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-rule);
    color: inherit;
    text-decoration: none;
}
.desktop-surface .lfb-invoice-what { display: grid; gap: 0.1rem; min-width: 0; }
.desktop-surface .lfb-invoice-amt { display: flex; gap: 0.5rem; align-items: center; }

/* The timeline: the phone's narrative, a rail with a dot per step */
.desktop-surface .lfb-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.desktop-surface .lfb-tl-node {
    position: relative;
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0 0 1.05rem;
}
.desktop-surface .lfb-tl-node::before {
    content: "";
    position: absolute;
    left: calc(0.8rem - 1px);
    top: 1.55rem;
    bottom: 0.1rem;
    width: 2px;
    background: var(--glass-rule, rgba(20, 40, 80, 0.12));
}
.desktop-surface .lfb-tl-node:last-child::before { display: none; }
.desktop-surface .lfb-tl-node:last-child { padding-bottom: 0; }
.desktop-surface .lfb-tl-icon { font-size: 1.35rem; line-height: 1.3; text-align: center; color: var(--tone, var(--rt-slate-solid)); }
.desktop-surface .lfb-tl-label { margin: 0; font-family: var(--font-text); font-weight: normal; font-size: var(--type-body); color: var(--text); }
.desktop-surface .lfb-tl-node.is-now .lfb-tl-label { font-family: var(--font-head); letter-spacing: var(--track-snug); color: var(--tone-ink, var(--text)); }
.desktop-surface .lfb-tl-node.is-future { opacity: 0.55; }

/* The corner: the next step, the money, the terms */
.desktop-surface .lfb-next .k-panel-body { display: grid; gap: 0.75rem; }
.desktop-surface .lfb-note { margin: 0; font-family: var(--font-head); font-weight: normal; font-size: var(--type-body); line-height: 1.35; }
.desktop-surface .lfb-quote-msg { margin: 0; padding-left: 0.9rem; border-left: 3px solid var(--rt-purple-lt, #c9b8f0); color: var(--text-soft); }
.desktop-surface .lfb-decide { display: grid; gap: 0.6rem; }
.desktop-surface .lfb-later { display: flex; gap: 0.5rem; align-items: baseline; }
.desktop-surface .lfb-doors { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.desktop-surface .lfb-doors > .k-chip { text-decoration: none; }

.desktop-surface .lfb-cancel {
    justify-self: start;
    font-family: var(--font-text);
    font-size: var(--type-meta);
    color: var(--ink-pink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* While the decision is open beside the booking, the booking's own primary
   steps back: the screen keeps ONE pink button, the decision's. The open
   action is marked. */
.desktop-surface .lfb.is-acting .lfb-primary {
    background: var(--_ghost);
    box-shadow: inset 0 0 0 2px var(--_ink);
    color: var(--_ink);
}
.desktop-surface .lfb.is-acting [data-lfb-act][aria-current="true"] {
    box-shadow: inset 0 0 0 2px var(--rt-pink), 0 0 0 4px var(--ghost-pink, rgba(235, 93, 143, 0.18));
    color: var(--ink-pink);
}
.desktop-surface .lfb-cancel[aria-current="true"] { box-shadow: none; text-decoration-thickness: 2px; }

.desktop-surface .lfb-receive > dt,
.desktop-surface .lfb-receive > dd { color: var(--ink-green); font-family: var(--font-head); }

/* ── Booking-Action ─────────────────────────────────────────────────────── */

.desktop-surface .lfa {
    display: grid;
    gap: var(--space-lg);
    align-content: start;
    min-width: 0;
}

.desktop-surface .lfa--state { min-height: 60%; align-content: center; }
.desktop-surface .lfa-state { justify-items: center; text-align: center; }

.desktop-surface .lfa-ask { display: grid; gap: var(--space-md); min-width: 0; }
.desktop-surface .lfa-ask[hidden] { display: none; }
.desktop-surface .lfa-head { display: grid; gap: 0.35rem; }
.desktop-surface .lfa-title { font-size: clamp(1.6rem, 1.1rem + 2.2cqi, 2.4rem); line-height: 1.05; overflow-wrap: anywhere; }

/* What happens: who is told, what money moves, what cannot be undone */
.desktop-surface .lfa-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.desktop-surface .lfa-lines > li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
    font-family: var(--font-text);
    font-size: var(--type-body);
    line-height: 1.4;
    color: var(--text);
}
.desktop-surface .lfa-lines > li > i { color: var(--rt-blue); text-align: center; margin-top: 0.15em; }
.desktop-surface .lfa-lines > li > i.fa-triangle-exclamation { color: var(--rt-amber-md, #e8a33a); }
.desktop-surface .lfa-lines > li > i.fa-lock { color: var(--ink-pink); }

.desktop-surface .lfa-reason { display: grid; gap: 0.35rem; }
.desktop-surface .lfa-error[hidden] { display: none; }

/* The one pink button, and the quiet way out under it */
.desktop-surface .lfa-go { display: grid; gap: 0.5rem; }
.desktop-surface .lfa[data-state="busy"] .lfa-go [data-lfa-go] { cursor: progress; }

/* The quote composer: inputs in a grid that packs to the lane, the breakdown under */
.desktop-surface .lfa-quote .k-panel-body { display: grid; gap: var(--space-md); }
.desktop-surface .lfa-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.desktop-surface .lfa-form .k-field { display: grid; gap: 0.3rem; min-width: 0; }
.desktop-surface .lfa-form .k-field[hidden] { display: none; }
.desktop-surface .lfa-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.desktop-surface .lfa-times .k-input { padding-inline: 0.6rem; min-width: 0; }
.desktop-surface .lfa-amount { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: var(--track-tight); }
.desktop-surface .lfa-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desktop-surface .lfa-pills > .k-seg-btn { display: grid; justify-items: center; gap: 0.05rem; padding-block: 0.45rem; }
.desktop-surface .lfa-pills > .k-seg-btn > .k-meta { font-size: 0.8rem; }
.desktop-surface .lfa-receive > dt,
.desktop-surface .lfa-receive > dd { color: var(--ink-green); font-family: var(--font-head); }

@container lane (width >= 34rem) {
    .desktop-surface .lfa-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desktop-surface .lfa-field--wide { grid-column: 1 / -1; }
}

/* Done: the state in place, then the next request, already focused */
.desktop-surface .lfa-done { justify-items: center; text-align: center; gap: var(--space-md); }
.desktop-surface .lfa-done[hidden] { display: none; }
.desktop-surface .lfa-next { display: grid; gap: 0.4rem; width: min(100%, 26rem); text-align: left; }
.desktop-surface .lfa-next[hidden] { display: none; }
.desktop-surface .lfa-next-row {
    padding: 0.85rem 1rem;
    border-radius: var(--r-card, var(--r-ctl));
    background: var(--glass-bg, #fff);
    box-shadow: inset 0 0 0 2px var(--rt-pink-lt, #f3a6c2), var(--shadow-cont-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
    text-decoration: none;
}
.desktop-surface .lfa-next-row:focus { box-shadow: inset 0 0 0 2px var(--rt-pink), 0 0 0 4px var(--ghost-pink, rgba(235, 93, 143, 0.18)); outline: none; }
.desktop-surface .lfa-next-row:focus-visible { outline: 3px solid var(--rt-pink); outline-offset: 3px; }
