/* ═══════════════════════════════════════════════════════════════════════════
   lane-focus.css: the Focus lane, the listing (docs/plans/desktop/slice.md,
   unit F). Page: desktop/pages/Details.php. Script: desktop/pages/js/Details.js.

   The page is composed from kit parts (kit.css section 14b: .k-split,
   .k-mosaic, .k-titleblock, .k-facts, .k-story, .k-reviews, .k-ring, .k-buy,
   .k-keeper). This sheet adds what the kit does not draw (prefix lf-) and
   re-lays the parts for the three forms the lane takes:

     Every form    THE HERO: the lead photo across the main column at about two
                    fifths of the lane's height, the rest beside it, the bottom cut
                    by the phone's wave, the title set large over it (sections 2, 4)
     Stage, wide    (46rem and up) the story in the main column, the price panel and the
                    Keeper in a corner that stays on screen; from 76rem the words run in
                    one readable column with the other things in a second (section 5)
     Stage or List, narrow
                    one column: photo, title, price panel, story, Keeper
     Booking        (data-lf-booking: the Act lane is booking this listing)
                    the same column, read-only: no button, no lines, one summary

   FLUID: no viewport media query. A part changes form because the LANE is
   narrow (@container lane) or by intrinsic layout (auto-fit, columns, wrap).
   The vh values size the hero and cap a photo to the window; they are sizes,
   not breakpoints.

   NOT IN THE KIT (added here, each prefixed lf-):
     lf-mosaic[data-count]  the hero: the mosaic for 1, 2, 3 and 4 photos, and none;
                            the wave (--lf-wave); a small photo framed (data-lf-framed)
     lf-title-text          the title over the hero, with the phone's glow
     lf-buy-sum, lf-buy-ff, lf-buy-tax
                            the exact sum, what may join it, the one tax sentence
     lf-story-text / -side  the words in one column, the other things beside them
     lf-viewer              the photo viewer the mosaic grows into, in the lane
     lf-chip                a fact as a chip (the kit's .k-facts are plain words)
     lf-keeperline          the Keeper in one line, under the title
     lf-share-box           share, opened in place: the QR and the link
     lf-rows / lf-row       a list of things (package parts, add-ons, tiles)
     lf-value               an option value shown, not chosen
     lf-map, lf-pin         the map box and its pin
     lf-steps               the two step cancellation line
     lf-review-zoom         a review's photo, opened inside its card
     and the dress for the shared review card (rt_review_card), whose markup
     is the phone's

   Every rule is scoped under .lf-details, and is complete by itself: the old
   components.css still carries .page-details rules for the page this one
   replaced, and nothing here depends on them.
   ═══════════════════════════════════════════════════════════════════════════ */

.desktop-surface .lf-details {
    display: block;
    min-width: 0;
}

.desktop-surface .lf-details a { text-decoration: none; }
.desktop-surface .lf-details small { font-size: var(--type-meta); font-weight: normal; }
.desktop-surface .lf-details .lf-ink { color: var(--ink-blue); }
.desktop-surface .lf-details [hidden] { display: none; }


/* ─── 1. THE SPLIT ────────────────────────────────────────────────────────── */
/* Three arrangements, chosen by the lane's own width:
     under 46rem   one column. The main column and the corner dissolve
                   (display: contents) so their children take the order a
                   narrow lane needs: photo, title, price, story, Keeper
     46rem and up  the photos and the story in the main column, the price
                   panel and the Keeper in a corner that stays on screen
     76rem and up  the same, and the story splits: the words in one readable
                   column, the other things (add-ons, where, the map, hours)
                   in a second (section 5)
   The hero (section 2) is the gallery row in every arrangement. While the
   viewer is open the gallery takes the whole row. */

.desktop-surface .lf-split { gap: var(--space-lg); }
.desktop-surface .lf-gallery,
.desktop-surface .lf-main,
.desktop-surface .lf-corner { min-width: 0; }

@container lane (width >= 46rem) {
    .desktop-surface .lf-split {
        grid-template-columns: minmax(0, 1fr) clamp(17rem, 33cqi, 26rem);
        grid-template-rows: auto 1fr;
        grid-template-areas: "gallery corner" "main corner";
    }

    .desktop-surface .lf-gallery { grid-area: gallery; }
    .desktop-surface .lf-main { grid-area: main; }

    /* The kit makes the corner stay on screen from 50rem; this lane starts a little sooner. */
    .desktop-surface .lf-corner {
        grid-area: corner;
        order: 0;
        position: sticky;
        top: var(--space-md);
    }

    .desktop-surface .lf-details[data-lf-viewing] .lf-split { grid-template-areas: "gallery gallery" "main corner"; }

    /* The corner stays put only while it fits the lane's height (Details.js measures). */
    .desktop-surface .lf-corner.is-tall { position: static; }
}

@container lane (width < 46rem) {
    .desktop-surface .lf-split { grid-template-columns: minmax(0, 1fr); }

    .desktop-surface .lf-main,
    .desktop-surface .lf-corner { display: contents; }

    .desktop-surface .lf-gallery { order: 0; }
    .desktop-surface .lf-details .lf-title,   /* scoped: the results board has an .lf-title of its own */
    .desktop-surface .lf-owner { order: 1; }
    .desktop-surface .lf-buy { order: 2; }
    .desktop-surface .lf-story { order: 3; }
    .desktop-surface .lf-keeper { order: 4; }
    .desktop-surface .lf-reviews { order: 5; }
}


/* ─── 2. THE HERO: THE PHOTOS ─────────────────────────────────────────────── */
/* The phone's defining move: the photo runs the column at a generous height
   and its bottom is cut by the wave, with the title set large over it
   (section 4). Here the lead photo runs the main column's width at about two
   fifths of the lane's height (never the whole stage); the rest sit beside it
   as a mosaic. Every photo fills its tile (cover, held a little above centre
   so a face is not the part that goes). A lead photo whose pixels would be
   blown up (Details.js: under 60% of the width it is drawn at) is FRAMED on a
   blur of itself instead (data-lf-framed). The vh value is a size, not a
   breakpoint: the lane is as tall as the window. */

.desktop-surface .lf-details {
    --lf-hero-h: clamp(14rem, 41vh, 46rem);
    /* The wave: the phone's ellipse cut (style.css #img-cont), eased for a wide block so the
       right edge loses about a sixth and the left edge none. */
    --lf-wave: ellipse(140% 102% at 22% 0%);
}

/* One column (the corner under the title): a little shorter, so the price and the button
   are on the first screen too. */
@container lane (width < 46rem) {
    .desktop-surface .lf-details { --lf-hero-h: clamp(13rem, 37vh, 40rem); }
}

.desktop-surface .lf-mosaic { width: 100%; }

.desktop-surface .lf-mosaic > .k-mosaic-photo {
    overflow: hidden;
    background-position: center 35%;
    transition: filter var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lf-mosaic > .k-mosaic-photo:hover { filter: brightness(1.08); }
}

/* A narrow lane (the List form) shows the lead photo alone, wider than tall, so the title
   and the price are still on the first screen; the wave cuts it as on the phone. */
.desktop-surface .lf-mosaic > .k-mosaic-photo:first-child { aspect-ratio: 16 / 10; }
.desktop-surface .lf-details:not([data-lf-viewing]) .lf-mosaic { clip-path: var(--lf-wave); }

/* Video: the silent preview fills its tile, a play mark says what it is. */
.desktop-surface .lf-tile-video > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.desktop-surface .lf-play {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--glass-bg-dark);
    color: #fff;
    font-size: 0.8rem;
}

.desktop-surface .lf-mosaic > .is-swapped > video,
.desktop-surface .lf-mosaic > .is-swapped > .lf-play { display: none; }

/* The counts sit at the top of their tile: the wave owns the bottom edge. */
.desktop-surface .lf-mosaic > .k-mosaic-photo > .k-pill { top: 0.6rem; bottom: auto; z-index: 1; }

@container lane (width >= 34rem) {
    /* The hero: a fixed share of the lane's height, the lead photo the widest tile. */
    .desktop-surface .lf-mosaic {
        height: var(--lf-hero-h);
        aspect-ratio: auto;
    }

    .desktop-surface .lf-mosaic > .k-mosaic-photo:first-child { aspect-ratio: auto; }   /* the block has the shape; the tile fills it */

    /* Fewer than five: each count has its own arrangement, none leaves a hole. */
    .desktop-surface .lf-mosaic[data-count="1"] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .desktop-surface .lf-mosaic[data-count="2"] {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .desktop-surface .lf-mosaic[data-count="3"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .desktop-surface .lf-mosaic[data-count="4"] > .k-mosaic-photo:nth-child(2) { grid-column: 2 / -1; }
}

/* Beside the corner in a lane of middling width the main column is slim: the lead photo
   and two small, and the count on the lead says there are more. */
@container lane (width >= 46rem) and (width < 62rem) {
    .desktop-surface .lf-mosaic:not([data-count="1"], [data-count="2"]) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .desktop-surface .lf-mosaic > .k-mosaic-photo:nth-child(n + 4) { display: none; }
    .desktop-surface .lf-mosaic[data-count="4"] > .k-mosaic-photo:nth-child(2) { grid-column: auto; }
    .desktop-surface .lf-mosaic.lf-mosaic--over3 > .k-mosaic-photo:first-child > .lf-count { display: inline-flex; }
}

/* A lead photo too small for the hero: shown whole at the size its pixels carry, framed on a
   soft blur of itself that fills the tile. Never blown up into mush. */
.desktop-surface .lf-details[data-lf-framed] .lf-mosaic > [data-travel-target] {
    isolation: isolate;
    background: var(--rt-ink);
}

.desktop-surface .lf-details[data-lf-framed] .lf-mosaic > [data-travel-target]::before {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background: var(--k-photo, none) center / cover no-repeat;
    filter: blur(30px) saturate(1.15) brightness(0.62);
}

.desktop-surface .lf-details[data-lf-framed] .lf-mosaic > [data-travel-target]::after {
    content: "";
    position: absolute;
    inset: var(--space-sm) var(--space-md) calc(var(--space-sm) + 12%);
    background: var(--k-photo, none) center / contain no-repeat;
    filter: drop-shadow(0 0.5rem 1.25rem rgba(0, 0, 0, 0.35));
}

/* No photos yet: a calm box in the listing's place, never a broken image. */
.desktop-surface .lf-nophotos {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--space-xs);
    aspect-ratio: 21 / 9;
    max-height: 30vh;
    width: 100%;
    border-radius: var(--r-panel);
    background: var(--ghost-pink), rgba(255, 255, 255, 0.6);
    color: var(--ink-pink);
    font-size: 2.5rem;
    clip-path: var(--lf-wave);
}

.desktop-surface .lf-nophotos > .k-meta { color: var(--text-soft); margin-bottom: 2.5rem; }


/* ─── 3. PHOTOS: THE VIEWER ───────────────────────────────────────────────── */
/* The mosaic grown in place. It is part of the lane's flow: it takes the row,
   the story moves down, nothing is covered. */

.desktop-surface .lf-viewer {
    display: grid;
    gap: var(--space-sm);
    min-width: 0;
}

.desktop-surface .lf-viewer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-md);
}

.desktop-surface .lf-viewer-count {
    font-size: var(--type-body);
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}

.desktop-surface .lf-viewer-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-xs);
    height: clamp(17rem, 62cqi, 72vh);
    padding: var(--space-xs);
    border-radius: var(--r-panel);
    background: var(--rt-ink);
    overflow: hidden;
}

.desktop-surface .lf-viewer-stage:focus-visible { outline: 4px solid var(--rt-blue); outline-offset: 2px; }

.desktop-surface .lf-viewer-media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: calc(var(--r-panel) - var(--space-xs));
    overflow: hidden;
}

/* The photo sits on a soft blur of itself that fills the whole box, arrows included. */
.desktop-surface .lf-viewer-stage::before {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background: var(--lf-backdrop, none) center / cover no-repeat;
    filter: blur(32px) saturate(1.2) brightness(0.55);
}

.desktop-surface .lf-viewer-media > :is(img, video) {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.desktop-surface .lf-viewer[data-single] .lf-viewer-nav,
.desktop-surface .lf-viewer[data-single] .lf-viewer-strip { display: none; }

.desktop-surface .lf-viewer-strip {
    display: flex;
    gap: 0.4rem;
    padding: 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.desktop-surface .lf-thumb {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: clamp(4rem, 9cqi, 6.5rem);
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: var(--r-tile);
    background: var(--rt-ink) var(--k-photo, none) center / cover no-repeat;
    color: #fff;
    opacity: 0.62;
    cursor: pointer;
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}

.desktop-surface .lf-thumb[aria-current="true"] {
    opacity: 1;
    outline: 3px solid var(--rt-pink);
    outline-offset: -3px;
}

.desktop-surface .lf-thumb:focus-visible { opacity: 1; outline: 3px solid var(--rt-blue); outline-offset: 1px; }

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lf-thumb:hover { opacity: 1; transform: translateY(-2px); }
}

@container lane (width < 34rem) {
    .desktop-surface .lf-viewer-nav { width: 2.125rem; height: 2.125rem; font-size: 0.9rem; }
}


/* ─── 4. THE TITLE BLOCK ──────────────────────────────────────────────────── */
/* The title is set large over the bottom of the hero, in heavy Soehne with the
   phone's white glow (style.css .details-title), the first line on the photo.
   ONE size per form, whatever else is going on: the hero size wherever the
   lane is 30rem or wider, the list size in a List-width lane (booking or not). */

.desktop-surface .lf-details { --lf-title-size: clamp(2.25rem, 1.2rem + 3.2cqi, 5rem); }

@container lane (width < 30rem) {
    .desktop-surface .lf-details { --lf-title-size: clamp(1.625rem, 0.9rem + 3.6cqi, 2.125rem); }
}

.desktop-surface .lf-details .lf-title {   /* scoped: the results board's .lf-title is not the listing's */
    position: relative;
    z-index: 1;
    gap: var(--space-xs) var(--space-md);
    /* Up over the photo by the gap and about two thirds of a line. */
    margin-top: calc(-1 * (var(--space-lg) + 0.66 * var(--lf-title-size)));
}

.desktop-surface .lf-details[data-lf-viewing] .lf-title { margin-top: 0; }

.desktop-surface .lf-title > .lf-title-text {
    font-size: var(--lf-title-size);
    line-height: 1.04;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    text-shadow:
        0 0 0.21em #fff,
        0 0 0.35em #fff,
        0 0 0.52em #fff,
        0 0 0.65em color-mix(in srgb, var(--rt-pink-lt) 55%, transparent);
}

/* Save and share sit on the hero's edge, beside the title. */
.desktop-surface .lf-title > .k-titleblock-acts { grid-row: 1; align-self: start; }
/* Save and share sit beside the number and the title only; everything under them takes the full width. */
.desktop-surface .lf-title > :is(.k-rating, .lf-chips, .lf-keeperline) { grid-column: 1 / -1; }
.desktop-surface .lf-id { color: var(--text-soft); }

.desktop-surface .lf-rating {
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.desktop-surface .lf-rating:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 3px; border-radius: 0.4rem; }
.desktop-surface .lf-rating-score { color: var(--ink-pink); font-family: var(--font-head); }
.desktop-surface .lf-rating-score > small { color: var(--text-soft); font-family: var(--font-text); }
.desktop-surface .lf-rating-n { font-family: var(--font-text); }

/* The facts as chips: a tinted pill each, icon in the tone, word in ink. */
.desktop-surface .lf-chips {
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.desktop-surface .lf-chips > .lf-chip {
    --_ink: var(--tone-ink, var(--ink-blue));
    align-items: center;
    gap: 0.4em;
    padding: 0.3em 0.75em;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--tone-slt, var(--rt-blue-slt)) 78%, #fff);
    color: var(--text);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.3;
}

.desktop-surface .lf-chips > .lf-chip > :is(i, svg) { color: var(--_ink); font-size: 0.95em; }

/* The Keeper, in one line, where the lane has no corner for the card. */
.desktop-surface .lf-keeperline {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    max-width: 100%;
    margin-top: var(--space-xs);
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    border-radius: var(--r-pill);
    background: linear-gradient(160deg, rgba(224, 237, 255, 0.95), rgba(232, 223, 255, 0.8));
    outline: var(--glass-outline);
    color: var(--text);
    font-size: var(--type-body);
    line-height: 1.2;
}

.desktop-surface .lf-keeperline:hover { color: var(--text); }
.desktop-surface .lf-keeperline:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lf-keeperline > .k-avatar { --k-size: 2.5rem; box-shadow: none; }

.desktop-surface .lf-keeperline-text {
    flex: 0 1 auto;
    display: grid;
    min-width: 0;
}

.desktop-surface .lf-keeperline > .k-badge { flex: none; }

.desktop-surface .lf-keeperline-text > small { color: var(--text-soft); line-height: 1.25; }

.desktop-surface .lf-keeperline-text > .k-strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* With a corner the Keeper card is right there: the line is for the lane that has none. */
@container lane (width >= 46rem) {
    .desktop-surface .lf-details .lf-keeperline { display: none; }
}

/* Share: opens under the title and pushes the story down. */
.desktop-surface .lf-title > .lf-share { grid-column: 1 / -1; }

.desktop-surface .lf-share-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-md) var(--space-lg);
    margin-top: var(--space-sm);
    padding: var(--pad-panel);
    border-radius: var(--r-ctl);
    background: var(--ghost-purple), rgba(255, 255, 255, 0.7);
    outline: var(--glass-outline);
}

.desktop-surface .lf-share-qr {
    display: block;
    width: clamp(7.5rem, 16cqi, 10rem);
    height: auto;
    aspect-ratio: 1;
    padding: 0.6rem;
    border-radius: var(--r-tile);
    /* The code is drawn light, for the phone's dark share frame: the same frame here, the
       listing's own photo darkened behind it. */
    background: linear-gradient(rgba(10, 20, 40, 0.78), rgba(10, 20, 40, 0.78)), var(--lf-backdrop, none) center / cover no-repeat, var(--rt-navy-2);
    box-shadow: var(--shadow-ctl);
}

.desktop-surface .lf-share-ways {
    display: grid;
    justify-items: start;
    gap: var(--space-sm);
    min-width: 0;
}

.desktop-surface .lf-share-ways > * { margin: 0; }

.desktop-surface .lf-share-link {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    width: 100%;
}

.desktop-surface .lf-share-link > .k-input { flex: 1 1 12rem; min-width: 0; }
.desktop-surface .lf-share-link > .k-btn { flex: none; }

@container lane (width < 34rem) {
    .desktop-surface .lf-share-box { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .desktop-surface .lf-share-ways { justify-items: stretch; }
}

/* The owner's strip: quiet, one line, one door. */
.desktop-surface .lf-owner { align-items: center; flex-wrap: wrap; }
.desktop-surface .lf-owner > .lf-owner-text { flex: 1 1 14rem; min-width: 0; }
.desktop-surface .lf-owner > .k-btn { flex: none; }


/* ─── 5. THE STORY ────────────────────────────────────────────────────────── */

.desktop-surface .lf-story .k-story-sec > .k-section > .k-badge { vertical-align: middle; font-size: var(--type-meta); }

/* Prose is never set in newspaper columns. The words (what's included, the Keeper's own
   description, options, cancellation) run in ONE column at a readable measure; where the
   main column has room for more, the other things (add-ons, where it is and its map, open
   hours, what is offered at a place) take a second column beside them. In a narrower lane
   the two groups dissolve into one column, cancellation last, as before. */
.desktop-surface .lf-story-text,
.desktop-surface .lf-story-side { display: contents; }
.desktop-surface .lf-story .lf-cancel { order: 9; }

@container lane (width >= 76rem) {
    .desktop-surface .lf-story {
        grid-template-columns: minmax(0, 52ch) minmax(14rem, 1fr);
        align-items: start;
        column-gap: var(--space-xl);
    }

    .desktop-surface .lf-story-text,
    .desktop-surface .lf-story-side {
        display: grid;
        align-content: start;
        gap: var(--space-lg);
        min-width: 0;
    }

    .desktop-surface .lf-story .lf-cancel { order: 0; }
}

/* The Keeper's own words. Their markup is theirs; it is kept inside a readable measure
   (52ch is about seventy characters of Soehne buch). */
.desktop-surface .lf-prose,
.desktop-surface .lf-details .k-story-sec > .lf-prose {
    max-width: 52ch;
    overflow-wrap: anywhere;
}

.desktop-surface .lf-prose > :first-child { margin-top: 0; }
.desktop-surface .lf-prose > :last-child { margin-bottom: 0; }
.desktop-surface .lf-prose :is(p, ul, ol) { margin: 0 0 0.85em; }
.desktop-surface .lf-prose :is(img, video, iframe, table) { max-width: 100%; height: auto; }
.desktop-surface .lf-prose :is(h1, h2, h3, h4, h5, h6) {
    margin: 1em 0 0.4em;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-lead);
    line-height: 1.25;
}

/* A list of things: what a package holds, add-ons, what is offered at a place. */
.desktop-surface .lf-rows {
    display: grid;
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-surface .lf-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-ctl);
    color: var(--text);
}

.desktop-surface .lf-row--link { transition: transform var(--dur-base) var(--ease-spring); }
.desktop-surface .lf-row--link:hover { color: var(--text); }
.desktop-surface .lf-row--link:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lf-row--link:hover { transform: translateX(3px); }
}

.desktop-surface .lf-row-thumb {
    flex: none;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.6rem;
    background: var(--rt-blue-slt) center / cover no-repeat;
    color: var(--ink-blue);
}

.desktop-surface .lf-row-text {
    flex: 1 1 auto;
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.desktop-surface .lf-row-text > * { margin: 0; }
.desktop-surface .lf-row-text > .k-strong { font-size: var(--type-body); line-height: 1.3; }
.desktop-surface .lf-row-extra > :is(i, svg) { color: var(--ink-teal); }

.desktop-surface .lf-row-end {
    flex: none;
    margin: 0;
    font-size: var(--type-body);
    text-align: right;
    white-space: nowrap;
}

.desktop-surface .lf-row-end > small { font-family: var(--font-text); color: var(--text-soft); }
.desktop-surface .lf-rows-note { padding: var(--space-xs) var(--space-md) 0; }

/* Option values: shown here, chosen in the booking lane. One with its own photo is a
   button that shows the photo. */
.desktop-surface .lf-optionset { display: grid; gap: var(--space-xs); }
.desktop-surface .lf-optionset + .lf-optionset { margin-top: var(--space-sm); }
.desktop-surface .lf-optionset > * { margin: 0; }
.desktop-surface .lf-optionset > .k-strong { font-size: var(--type-body); }
.desktop-surface .lf-optionset > .k-strong > small { margin-left: 0.5em; font-family: var(--font-text); }

.desktop-surface .lf-values {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: 0;
    list-style: none;
}

.desktop-surface .lf-value {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 2.125rem;
    padding: 0.25em 0.85em;
    border: 0;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--rt-purple-slt) 80%, #fff);
    color: var(--text);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.25;
}

.desktop-surface .lf-value > small { font-family: var(--font-text); color: var(--text-soft); }

.desktop-surface .lf-value--photo {
    box-shadow: inset 0 0 0 2px var(--ink-purple);
    color: var(--ink-purple);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-spring);
}

.desktop-surface .lf-value--photo:active { transform: scale(0.96); }
.desktop-surface .lf-value--photo:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--ink-purple); }

/* Where it is */
.desktop-surface .lf-fulfil { flex-direction: column; gap: var(--space-xs); }

.desktop-surface .lf-map {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 13rem;
    max-height: 26rem;
    border-radius: var(--r-ctl);
    background: var(--rt-blue-slt);
    overflow: hidden;
}

.desktop-surface .lf-pin {
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--rt-pink);
    box-shadow: 0 0 0 3px #fff, 0 0 0 0.9rem color-mix(in srgb, var(--rt-pink) 28%, transparent);
    transform: translateY(50%);
}

/* Open hours: today reads first */
.desktop-surface .lf-hours .k-line { padding: 0.35rem 0; }
.desktop-surface .lf-hours .lf-today > dt,
.desktop-surface .lf-hours .lf-today > dd { color: var(--text); font-family: var(--font-head); }

/* Cancellation: two points on one line */
.desktop-surface .lf-steps {
    display: grid;
    gap: var(--space-md);
    margin: 0 0 0 0.6rem;
    padding: 0 0 0 1.4rem;
    border-left: 2px solid var(--line-strong);
    list-style: none;
}

.desktop-surface .lf-step { position: relative; }
.desktop-surface .lf-step > * { margin: 0; }
.desktop-surface .lf-step > .k-strong { font-size: var(--type-body); }

.desktop-surface .lf-step::before {
    content: "";
    position: absolute;
    left: calc(-1.4rem - 1px);
    top: 0.3em;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 3px var(--text-faint);
    transform: translateX(-50%);
}

.desktop-surface .lf-step--good::before { background: var(--rt-blue); box-shadow: 0 0 0 3px var(--rt-blue-slt); }
.desktop-surface .lf-step--good > .k-strong { color: var(--ink-blue); }


/* ─── 6. REVIEWS ──────────────────────────────────────────────────────────── */

.desktop-surface .lf-reviews-sum { display: grid; gap: 0.1rem; }
.desktop-surface .lf-reviews-sum > * { margin: 0; }

.desktop-surface .lf-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: 0;
}

.desktop-surface .lf-review-badges > .k-badge { padding: 0.3em 0.7em; }
.desktop-surface .lf-review-more { justify-content: center; }
.desktop-surface .lf-review-none { padding: var(--space-md); text-align: center; }

.desktop-surface .lf-noreviews {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-ctl);
}

.desktop-surface .lf-noreviews p { margin: 0; }
.desktop-surface .lf-noreviews .k-strong > :is(i, svg) { color: var(--rt-amber-md); }

/* The cards flow in as many columns as fit. */
.desktop-surface .lf-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
    align-items: start;
    gap: var(--space-md);
    min-width: 0;
    transition: opacity var(--dur-fast) var(--ease-out);
}

.desktop-surface .lf-review-list[aria-busy="true"] { opacity: 0.55; }
.desktop-surface .lf-review-list > hr { display: none; }
.desktop-surface .lf-review-list > .lf-review-none { grid-column: 1 / -1; }

/* The shared review card (rt_review_card: .row.reviewItem > .col + .col-9), dressed as
   the kit's .k-review. Bootstrap's row and column mechanics are released. */
.desktop-surface .lf-details .reviewItem {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: start;
    gap: var(--space-md);
    margin: 0;
    padding: var(--space-md);
    border: 0;
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-ctl);
    color: var(--text);
    font-size: var(--type-body);
    line-height: 1.5;
}

.desktop-surface .lf-details .reviewItem > .col,
.desktop-surface .lf-details .reviewItem > .col-9 {
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.desktop-surface .lf-details .reviewItem > .col {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.2rem;
    text-align: center;
}

.desktop-surface .lf-details .reviewItem p { margin: 0; }

.desktop-surface .lf-details .reviewItem .avatar,
.desktop-surface .lf-details .reviewItem .w-40 {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 0.2rem;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    outline: var(--glass-outline);
    box-shadow: var(--shadow-ctl);
}

.desktop-surface .lf-details .reviewItem ._600 { font-family: var(--font-head); font-weight: normal; }
.desktop-surface .lf-details .reviewItem .text-brand { color: var(--ink-pink); }
.desktop-surface .lf-details .reviewItem .text-warn { color: var(--ink-purple); }
.desktop-surface .lf-details .reviewItem .text-theme { color: var(--text-soft); }
.desktop-surface .lf-details .reviewItem .text-warning { color: var(--rt-amber-ink); }
.desktop-surface .lf-details .reviewItem .text-white-dk { color: var(--text-soft); }
.desktop-surface .lf-details .reviewItem .text-muted { color: var(--text-soft) !important; }   /* Bootstrap's is prioritised */

.desktop-surface .lf-details .reviewItem .small,
.desktop-surface .lf-details .reviewItem .text-xs,
.desktop-surface .lf-details .reviewItem .text-sm {
    font-size: var(--type-meta);
    line-height: 1.35;
}

.desktop-surface .lf-details .reviewItem .small { color: var(--text-soft); }

.desktop-surface .lf-details .reviewItem h6 {
    margin: 0 0 0.15rem;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-lead);
    line-height: 1.2;
    letter-spacing: var(--track-snug);
}

.desktop-surface .lf-details .reviewItem h6 > span { font-family: var(--font-head); letter-spacing: 0; }

.desktop-surface .lf-details .review-text {
    color: var(--text);
    font-size: var(--type-body);
    line-height: 1.5;
}

.desktop-surface .lf-details .review-text > :is(i, svg) { font-size: 0.8em; }

.desktop-surface .lf-details .review-gallery {
    display: flex;
    gap: 0.4rem;
    margin-top: var(--space-sm);
    padding-bottom: 0.2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.desktop-surface .lf-details .review-gallery > a {
    flex: none;
    width: 5rem;
    height: 5rem;
    border-radius: var(--r-tile);
    overflow: hidden;
}

.desktop-surface .lf-details .review-gallery > a:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

/* A review's photo, opened inside its own card (press it to fold it). */
.desktop-surface .lf-review-zoom {
    display: block;
    width: 100%;
    margin-top: var(--space-sm);
    padding: 0;
    border: 0;
    border-radius: var(--r-ctl);
    background: var(--rt-ink);
    overflow: hidden;
    cursor: zoom-out;
}

.desktop-surface .lf-review-zoom > :is(img, video) {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

/* Helpful, Report and the tally */
.desktop-surface .lf-details .rt-chip,
.desktop-surface .lf-details .rt-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(30, 40, 53, 0.07);
    color: var(--text-soft);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.2;
}

.desktop-surface .lf-details .rt-chip {
    min-height: 2.125rem;
    margin-top: var(--space-sm);
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.desktop-surface .lf-details .rt-pill { padding: 0.2rem 0.55rem; }
.desktop-surface .lf-details .rt-chip:hover { background: var(--rt-blue-slt); color: var(--text); }
.desktop-surface .lf-details .rt-chip.active { background: var(--rt-blue); color: #fff; }
.desktop-surface .lf-details .rt-chip:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }
.desktop-surface .lf-details .rt-pill.helpfulCountPill :is(i, svg) { color: var(--ink-blue); }

/* Read more, Edit, Respond: the card's own small buttons */
.desktop-surface .lf-details .reviewItem .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 2.125rem;
    margin-top: var(--space-sm);
    padding: 0.3rem 0.85rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--ghost-blue), rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 2px var(--line-strong);
    color: var(--text-soft);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.25;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.desktop-surface .lf-details .reviewItem .btn:hover { box-shadow: inset 0 0 0 2px var(--text); color: var(--text); }
.desktop-surface .lf-details .reviewItem .btn.btn-outline-primary { box-shadow: inset 0 0 0 2px var(--ink-blue); color: var(--ink-blue); }
.desktop-surface .lf-details .reviewItem .btn.btn-outline-warning { box-shadow: inset 0 0 0 2px var(--ink-amber); color: var(--ink-amber); }
.desktop-surface .lf-details .reviewItem .btn.primary { background: var(--fill-blue); box-shadow: none; color: #fff; }

.desktop-surface .lf-details .keeper-respond-cont,
.desktop-surface .lf-details .respond-form { margin-top: var(--space-sm); }

.desktop-surface .lf-details .respond-textarea {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--line-strong);
    border-radius: var(--r-ctl);
    background: #fff;
    color: var(--text);
    font: inherit;
    resize: vertical;
    outline: none;
}

.desktop-surface .lf-details .respond-textarea:focus { border-color: var(--rt-blue); box-shadow: 0 0 0 4px var(--rt-blue-slt); }

@container lane (width < 34rem) {
    .desktop-surface .lf-details .reviewItem { grid-template-columns: 4.25rem minmax(0, 1fr); gap: var(--space-sm); }
}


/* ─── 7. THE CORNER: THE PRICE PANEL AND THE KEEPER ───────────────────────── */

.desktop-surface .lf-corner { gap: var(--space-lg); }

.desktop-surface .lf-buy > .k-panel-body { gap: var(--space-sm); }
.desktop-surface .lf-buy .k-buy-top { align-items: center; }
.desktop-surface .lf-buy .k-status { white-space: normal; }
.desktop-surface .lf-price--words { font-size: clamp(1.75rem, 1.4rem + 2cqi, 2.5rem); white-space: normal; }
.desktop-surface .lf-buy-note { margin: 0; }
.desktop-surface .lf-buy .lf-cta { margin-block: var(--space-xs); }

/* What the price is made of, before any choice: what the smallest booking is ("2 hours minimum"),
   then quiet lines under the big number that multiply ("2 x $120.00 listing price"). */
.desktop-surface .lf-buy-min { margin: 0 0 -0.35rem; padding-top: var(--space-xs); border-top: 1px solid var(--line); color: var(--text); }
.desktop-surface .lf-buy-min + .lf-buy-lines { border-top: 0; }
.desktop-surface .lf-buy-lines { padding: var(--space-xs) 0; border-block: 1px solid var(--line); }
.desktop-surface .lf-buy-lines > .k-line { padding: 0.3rem 0; font-size: var(--type-meta); }
.desktop-surface .lf-buy-lines > .k-line > dt > small { margin-left: 0.4em; color: var(--text-soft); }
.desktop-surface .lf-buy-lines > .k-line > dd { font-size: var(--type-body); }

/* The ONE fee sentence, word for word the booking lane's (desktop/partials/_price-words.php). */
.desktop-surface .lf-fee-sentence { margin: 0; color: var(--text); font-size: var(--type-meta); line-height: 1.45; }

/* The exact sum, when the big number is rounded: the lines add up to it, to the cent. */
.desktop-surface .lf-buy-lines > .lf-buy-sum {
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--line-strong);
}

.desktop-surface .lf-buy-lines > .lf-buy-sum > dt { color: var(--text); font-family: var(--font-head); }
.desktop-surface .lf-buy-lines > .lf-buy-sum > dd { font-family: var(--font-head); letter-spacing: var(--track-snug); }

/* What may join the price once chosen in the order: its own short list, outside the sum. */
.desktop-surface .lf-buy-ff { display: grid; gap: 0.1rem; }
.desktop-surface .lf-buy-ff > .k-meta { margin: 0; }
.desktop-surface .lf-buy-ff .k-line { padding: 0.2rem 0; font-size: var(--type-meta); }
.desktop-surface .lf-buy-ff .k-line > dt > small { margin-left: 0.4em; color: var(--text-soft); }

/* The one tax sentence (the same fact the booking lane's total is built from). */
.desktop-surface .lf-buy-tax { margin: 0; color: var(--text-soft); }
.desktop-surface .lf-buy-tax[data-taxed="0"] { color: var(--ink-green); font-family: var(--font-head); }

/* Booking in progress: shown in place of the button while the Act lane has this listing. */
.desktop-surface .lf-progress { display: none; gap: var(--space-sm); }
.desktop-surface .lf-progress > * { margin: 0; }
.desktop-surface .lf-progress-state { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.desktop-surface .lf-progress [data-lf-progress-sent] { display: none; }
.desktop-surface .lf-details[data-lf-sent] .lf-progress [data-lf-progress-live] { display: none; }
.desktop-surface .lf-details[data-lf-sent] .lf-progress [data-lf-progress-sent] { display: inline-flex; }
.desktop-surface .lf-chosen-line { display: block; }

.desktop-surface .lf-chosen-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: 0.3rem;
    font-family: var(--font-head);
    font-size: var(--type-lead);
    letter-spacing: var(--track-snug);
}

.desktop-surface .lf-chosen-total > small { font-family: var(--font-head); color: var(--text-soft); letter-spacing: 0; }
.desktop-surface .lf-chosen-line[hidden] + .lf-chosen-total { margin-top: 0; }

/* What the booking lane says was chosen: one quiet line. */
.desktop-surface .lf-chosen {
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--r-ctl);
    background: var(--rt-purple-slt);
    color: var(--text);
    font-family: var(--font-head);
    font-size: var(--type-body);
    line-height: 1.35;
}

.desktop-surface .lf-buy-facts {
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--type-meta);
    color: var(--text);
}

.desktop-surface .lf-buy-facts > li {
    display: grid;
    grid-template-columns: 1.35em minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5em;
}

.desktop-surface .lf-recurring {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45em;
    color: var(--ink-blue);
    font-family: var(--font-head);
    font-size: var(--type-meta);
    line-height: 1.35;
}

.desktop-surface .lf-recurring:hover { color: var(--ink-blue); text-decoration: underline; }
.desktop-surface .lf-recurring:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 3px; border-radius: 0.3rem; }

.desktop-surface .lf-keeper {
    display: grid;
    gap: var(--space-sm);
    min-width: 0;
}

.desktop-surface .lf-keeper > .k-section { margin: 0; }
.desktop-surface .lf-keeper .k-avatar { --k-size: clamp(3.5rem, 2.9rem + 2cqi, 4.5rem); }
.desktop-surface .lf-keeper .k-keeper-id > * { margin: 0; }
/* The two doors sit side by side only where each keeps its words on one line. */
.desktop-surface .lf-keeper .k-keeper-acts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.desktop-surface .lf-keeper-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
}


/* ─── 8. BOOKING: THE LANE GOES QUIET ─────────────────────────────────────── */
/* The Act lane is booking this listing (Details.js reads it from the stage).
   What the Seeker is choosing, and every line of its price, lives there; here
   the listing stays as a calm reference: photo, title, the Keeper line, the
   price, and ONE summary (what Act says is chosen and its total, as given).
   The title keeps the size of the form the lane is in (section 4). */

.desktop-surface .lf-details[data-lf-booking] .lf-progress { display: grid; }
.desktop-surface .lf-details[data-lf-booking] :is(.lf-cta, .lf-recurring, .lf-options, .lf-addons, .lf-reviews, .lf-map, [data-lf-share-open], .lf-share) { display: none; }
.desktop-surface .lf-details[data-lf-booking] :is(.lf-buy-min, .lf-buy-lines, .lf-fee-sentence, .lf-buy-ff, .lf-buy-tax, [data-lf-status]) { display: none; }
.desktop-surface .lf-details[data-lf-booking] .lf-buy { box-shadow: var(--shadow-ctl); }
.desktop-surface .lf-details[data-lf-booking] .lf-keeper > .k-section { display: none; }
.desktop-surface .lf-details[data-lf-booking] .k-keeper-acts > .k-btn:nth-child(2) { display: none; }


/* ─── 9. NOT HERE ─────────────────────────────────────────────────────────── */

.desktop-surface .lf-missing {
    align-content: center;
    min-height: min(34rem, 70vh);
}
