/* ═══════════════════════════════════════════════════════════════════════════
   lane-nearby.css — Nearby: the Browse lane with a map inside it, and a place
   in the Focus lane (the fan-out's Nearby unit; audit/seeker-discover.md 3.6).

   Pages: desktop/pages/Nearby.php (.lf-nb, script js/Nearby.js) and
   desktop/pages/Nearby-Place.php (.lf-np, script js/Nearby-Place.js, content
   from desktop/partials/place-details.php through api/place-details.php).

   ONE DOM per page at every width; the forms come from the lane's own width:
     .lf-nb  Stage    the header over the card column on the left, the map
                      filling the rest
             < 44rem  (a List lane, or a narrow Stage) the map is a BAND across
                      the top, a third of the lane, in its own grid row: it
                      pushes the header and the cards down and never lies over
                      them; the cards scroll in their own scroller under the
                      header. Nothing in the lane is sticky over content.
             < 12rem  (the live Spine) the filmstrip alone
   Each card's cell is its OWN `lane` container (container-name lane), so the
   kit's card forms (kit-card.css, `@container lane`) read the cell, not the
   lane: the cards are always the row form beside a map (one column of rows,
   two when the strip-topped lane is wide enough), a filmstrip at Spine.
   The map is one element the script never rebuilds; it only changes size.

   Prefix lf-nb- (the map lane) and lf-np- (the place). No viewport media
   query: prefers-reduced-motion is the only media block. No font-weight
   (Soehne swaps family). Ported looks: the phone's map pins and centre pulse
   (assets/css/style.css .custom-marker-*). Not copied from components.css.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── The map lane: frame ─────────────────────────────────────────────────── */

.desktop-surface .lf-nb {
    --nb-col: clamp(20rem, 12rem + 18cqi, 28rem);   /* its cells stay under the row line (26.5rem) at every width */
    --nb-gap: clamp(0.5rem, 0.3rem + 0.6cqi, 0.875rem);
    --nb-pad: clamp(0.875rem, 0.6rem + 1.2cqi, 1.5rem);
    position: relative;
    display: grid;
    grid-template-columns: var(--nb-col) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "head map" "col map";
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.desktop-surface .lf-nb [hidden] { display: none !important; }

/* The cards: their own scroller. A soft top edge, so a card scrolling away
   slips under a line rather than being cut off under the header. */
.desktop-surface .lf-nb-col {
    grid-area: col;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
    min-height: 0;
    padding: 0.75rem var(--nb-pad) var(--space-xl);
    overflow: hidden auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scroll-padding: 0.75rem var(--nb-pad);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 0.7rem);
    mask-image: linear-gradient(to bottom, transparent 0, #000 0.7rem);
}

/* ONE state at a time (Nearby.js writes data-nb-board on the root) */
.desktop-surface .lf-nb[data-nb-board="loading"] :is(.lf-nb-cards, .lf-nb-count, .lf-nb-state) { display: none !important; }
.desktop-surface .lf-nb:not([data-nb-board="loading"]) .lf-nb-skels { display: none !important; }
.desktop-surface .lf-nb:is([data-nb-board="empty"], [data-nb-board="error"]) .lf-nb-cards { display: none !important; }

/* The header: where (the form's words), how far, from where, how many. Its
   own grid row, never in the scroller and never over the cards. */
.desktop-surface .lf-nb-head {
    grid-area: head;
    container: nbhead / inline-size;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-md);
    min-width: 0;
    padding: var(--nb-pad) var(--nb-pad) 0;
}

.desktop-surface .lf-nb-from {
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.3;
    color: var(--text);
}

.desktop-surface .lf-nb-from > i { color: var(--ink-blue); font-size: 0.85em; }

.desktop-surface .lf-nb-head-main {
    flex: 1 1 auto;
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.desktop-surface .lf-nb-eyebrow { color: var(--ink-pink); }
.desktop-surface .lf-nb-eyebrow:empty { display: none; }   /* the whole territory: the title says it */

.desktop-surface .lf-nb-title {
    font-size: clamp(1.6rem, 0.95rem + 3.2cqi, 2.45rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.desktop-surface .lf-nb-sub {
    margin: 0;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.35;
    color: var(--text-soft);
}

.desktop-surface .lf-nb-sub:empty { display: none; }

.desktop-surface .lf-nb-count {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    margin: 0;
    white-space: nowrap;
}

.desktop-surface .lf-nb-count-n {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: clamp(2rem, 1.3rem + 3.4cqi, 2.9rem);
    line-height: 0.9;
    letter-spacing: var(--track-tight);
    color: var(--rt-pink-dk);
}

.desktop-surface .lf-nb-count-word {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    color: var(--text-soft);
}

/* The facts after the distance keep the kit's row rules (the first may end in "...", the rest are
   whole or not shown), and when the room between the distance and the price is too small for a word
   they are not shown at all, never a stub like "I..." (their box is a container of its own) */
.desktop-surface .lf-nb-cards .result-title2 > .flex-grow-1 { container: nbfacts / inline-size; }

@container nbfacts (width < 5.5rem) {
    .desktop-surface .lf-nb-cards .highlights-cont { visibility: hidden; }
}

/* A long price steps down in a row (the distance has its own slot, .lf-nb-dist) */
@container lane (width < 26.5rem) {
    .desktop-surface .lf-nb-cards .lf-nb-longprice .result-title2 h3 { font-size: calc(1.15rem + var(--up)); }
    .desktop-surface .lf-nb-cards .lf-nb-longprice .result-title2 h3 + p { max-width: 4.75rem; white-space: normal; line-height: 1.1; }
}

/* Rows, never posters: every cell is a `lane` of its own, never wider than the row line (26.5rem) */
.desktop-surface .lf-nb-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 0.55rem;
}

.desktop-surface .lf-nb-cards > .col-12 { container: lane / inline-size; }

/* The skeleton is the board's own column: a row each, a thumbnail at Spine */
.desktop-surface .lf-nb-skel { min-width: 0; }
.desktop-surface .lf-nb-skel-thumb { display: none; aspect-ratio: 1; border-radius: 0.8rem; }

.desktop-surface .lf-nb-empty { padding: clamp(1.5rem, 1rem + 3cqi, 3rem) 0.5rem; }
.desktop-surface .lf-nb-empty .k-empty-art { width: clamp(5.5rem, 4rem + 8cqi, 7rem); }
.desktop-surface .lf-nb-empty > .k-btns { justify-content: center; }


/* ─── A place among the cards ─────────────────────────────────────────────── */
/* The shared card, dressed by Nearby.js: no heart, a count on the thumbnail,
   and the thumbnail drawn as a little stack of photos (several listings). */

.desktop-surface .lf-nb-cards .searchResult.lf-nb-place .result-img::before {
    box-shadow:
        0.28rem 0.28rem 0 -0.05rem rgba(255, 255, 255, 0.6),
        0.56rem 0.56rem 0 -0.1rem rgba(255, 255, 255, 0.32);
}

.desktop-surface .lf-nb-stack {
    position: absolute;
    z-index: 3;
    top: 0.75rem;
    right: 0.75rem;   /* the poster form (not used beside a map): where a listing's heart sits */
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.2em 0.55em;
    border-radius: var(--r-pill);
    background: var(--fill-amber);
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.85);
    color: var(--rt-ink);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.1;
    pointer-events: none;
}

.desktop-surface .lf-nb-stack > i { font-size: 0.85em; }

/* The row form: the count sits on the thumbnail's foot */
@container lane (width < 26.5rem) {
    .desktop-surface .lf-nb-cards .lf-nb-stack {
        top: calc(0.5rem + var(--_thumb, 5.5rem) - 1.75rem);
        right: auto;
        left: 0.8rem;
    }
}

.desktop-surface .lf-nb-cards .lf-nb-claimed { color: var(--rt-success-lt); font-size: 0.75em; vertical-align: 0.1em; }

/* The DISTANCE in a slot of its own (Nearby.js _dressPlaces, fixer W item N3): the first thing in
   the card's foot row, outside the facts line, sized to its content and never shrunk. The facts
   beside it give way first (they wrap out of their one-line box), the price keeps its place, and
   the title keeps the card's whole width. It is the fact a map's card is for. */
.desktop-surface .lf-nb-cards .result-title2 > .lf-nb-dist {
    flex: none;
    align-self: flex-end;
    min-width: max-content;
    margin-right: 0.7rem;
    white-space: nowrap;
    font-family: var(--font-head);
    font-weight: normal;
    line-height: 1.4;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.desktop-surface .lf-nb-cards .result-title2 > .lf-nb-dist > i { font-size: 0.85em; margin-right: 0.15em; }

/* A place's town line, under its name */
.desktop-surface .lf-nb-cards .lf-nb-line {
    margin: 0.15rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.82);
}

/* A card and its pin warm together, in ONE colour (the phone's active green),
   whichever of the two the pointer or the keyboard is on */
.desktop-surface .lf-nb-cards .searchResult.is-hot {
    box-shadow: 0 0 0 3px var(--rt-success), 0 0.75rem 1.25rem -0.5rem rgba(0, 0, 0, 0.4);
    transform: translateX(3px);
    opacity: 1;
}


/* ─── The map ─────────────────────────────────────────────────────────────── */

.desktop-surface .lf-nb-mapwrap {
    grid-area: map;
    container: nbmap / inline-size;   /* its own controls fold by the map's width, not the lane's */
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 0;
    margin: var(--nb-gap) var(--nb-gap) var(--nb-gap) 0;
    border-radius: calc(var(--r-feature, 1.75rem) - var(--nb-gap));
    background: #DDE7EF linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(44, 117, 222, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 1.25rem 2.5rem -1.75rem rgba(30, 40, 53, 0.45);
    overflow: hidden;
    overflow: clip;
}

.desktop-surface .lf-nb-map {
    position: absolute;
    inset: 0;
}

/* Every control sits ON the map's edge, never over the cards */
.desktop-surface .lf-nb-area {
    position: absolute;
    z-index: 3;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 0.4rem 1.1rem rgba(30, 40, 53, 0.28);
}

.desktop-surface .lf-nb-area > i { color: var(--ink-pink); }

.desktop-surface .lf-nb-ctl {
    position: absolute;
    z-index: 2;
    left: 0.85rem;
    bottom: 2rem;                   /* above the map's own logo and attribution line */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 5rem);   /* clear of the map's own zoom control, bottom right */
}

.desktop-surface .lf-nb-locate > i { color: var(--ink-blue); }

.desktop-surface .lf-nb-radius {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0.1rem;
    min-height: 2.125rem;
    padding: 0.15rem;
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
}

.desktop-surface .lf-nb-radius-btn {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}

.desktop-surface .lf-nb-radius-btn:active { transform: scale(0.88); transition-duration: var(--dur-press); }
.desktop-surface .lf-nb-radius-btn:focus-visible { outline: 3px solid var(--rt-purple); outline-offset: -2px; }
.desktop-surface .lf-nb-radius-btn:disabled { color: #B9C0C9; cursor: not-allowed; }

.desktop-surface .lf-nb-radius-val {
    min-width: 4.4rem;
    text-align: center;
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-body);
    line-height: 1;
    color: var(--rt-purple-deep);
    font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-surface .lf-nb-radius-btn:not(:disabled):hover { background: var(--rt-purple-slt); }
}

.desktop-surface .lf-nb-mapnote {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    width: fit-content;
    max-width: calc(100% - 1.7rem);
    margin: 0 auto;
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.18);
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1.3;
    color: var(--text);
    text-align: center;
}

/* A narrow map keeps its controls to their icons */
@container nbmap (width < 30rem) {
    .desktop-surface .lf-nb-locate-word { display: none; }
    .desktop-surface .lf-nb-locate { padding-inline: 0.75em; }
}

/* The pins: the phone's dots. AdvancedMarkerElement pins its content by the
   bottom centre, so each dot is moved down by half to sit ON its point. */
.desktop-surface .lf-nb-pin {
    position: relative;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--rt-blue);
    outline: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    transform: translateY(50%);
    transition: transform 260ms var(--ease-spring), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.desktop-surface .lf-nb-pin--place {
    width: 1.75rem;
    height: 1.75rem;
    background: var(--rt-amber-ink, #B86A00);
}

.desktop-surface .lf-nb-pin-n {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-meta);
    line-height: 1;
    pointer-events: none;
}

/* Lifted: the card under the pointer or the keyboard (the phone's active green) */
.desktop-surface .lf-nb-pin.is-hot {
    background: var(--rt-success);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    transform: translateY(50%) scale(1.4);
}

/* Open beside the map: the brand pink, with the phone's ripple */
.desktop-surface .lf-nb-pin.is-selected {
    background: var(--rt-pink);
    box-shadow: 0 4px 12px rgba(235, 93, 143, 0.55);
    transform: translateY(50%) scale(1.3);
}

.desktop-surface .lf-nb-pin.is-selected.is-hot { transform: translateY(50%) scale(1.45); }

.desktop-surface .lf-nb-pin.is-selected::after,
.desktop-surface .lf-nb-me::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--rt-pink);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    animation: lf-nb-ripple 3s infinite;
    pointer-events: none;
}

/* The centre of the search: the phone's pulsing pink dot */
.desktop-surface .lf-nb-me {
    position: relative;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--rt-pink);
    outline: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: translateY(50%);
    pointer-events: none;
}

.desktop-surface .lf-nb-me::after { width: 5rem; height: 5rem; animation-play-state: paused; }
.desktop-surface .lf-nb-me.is-run::after { animation-play-state: running; }

@keyframes lf-nb-ripple {
    10%  { opacity: 0.5; transform: translate(-50%, -50%) scale(0.2); }
    70%  { opacity: 0;   transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(1); }
}


/* ─── A wide Stage: two columns of FULL rows beside the map ────────────────── */
/* Over 100rem of lane (a 2560 window) the cards take two columns of rows at
   their full width, each cell just under the row line (26.5rem: about 25.5rem
   of card), and the map takes what is left, about half the lane (fixer W, N3:
   the cards were squeezed to 19rem while the map held 63%). */
@container lane (width >= 100rem) {
    .desktop-surface .lf-nb { --nb-col: clamp(48rem, 20rem + 30cqi, 56rem); }
    .desktop-surface .lf-nb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ─── The map as a band: a List lane, or a narrow Stage ───────────────────── */
/* Three rows: the band (a third of what is left once the header has its
   height), the header, the card scroller (two thirds). The band is a grid row
   of its own, so it pushes everything under it down and covers nothing. The
   script keeps the wide map's area in it (Nearby.js _frame). */

@container lane (width < 44rem) {
    .desktop-surface .lf-nb {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(9rem, 1fr) auto minmax(0, 2fr);
        grid-template-areas: "map" "head" "col";
    }

    .desktop-surface .lf-nb-mapwrap { margin: var(--nb-gap) var(--nb-gap) 0; }
    /* a hairline under the header: the cards scroll under a line, never under words */
    .desktop-surface .lf-nb-head { padding-top: var(--space-md); padding-bottom: 0.6rem; margin-inline: var(--nb-pad); padding-inline: 0; border-bottom: 1px solid var(--line); }
    .desktop-surface .lf-nb-title { font-size: clamp(1.45rem, 0.9rem + 3cqi, 2.1rem); }
}

/* Beside a listing or a place the band is a map to read, not to drive: the
   radius and location controls wait for the lane to widen again (the header
   says the radius; Search this area stays) */
.desktop-surface .lane[data-w="list"] .lf-nb-ctl { display: none; }
.desktop-surface .lane[data-w="list"] .lf-nb-sub { display: none; }

/* The radius is said ONCE on screen (fixer W, N2): the map's own control wherever it shows; the
   header's eyebrow ("Within 25 mi") only at List, where that control is put away */
.desktop-surface .lane:not([data-w="list"]) .lf-nb-eyebrow { display: none; }


/* ─── Spine: the filmstrip alone (the live Spine, under 12rem) ────────────── */

@container lane (width < 12rem) {
    .desktop-surface .lf-nb {
        grid-template-rows: minmax(0, 1fr);
        grid-template-areas: "col";
    }

    .desktop-surface .lf-nb-mapwrap { display: none; }
    .desktop-surface .lf-nb-col { padding: 0.25rem 0.15rem var(--space-md); gap: 0.5rem; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
    .desktop-surface .lf-nb-head,
    .desktop-surface .lf-nb-state { display: none !important; }
    .desktop-surface .lf-nb-skel > .k-skel-row { display: none; }
    .desktop-surface .lf-nb-skel > .lf-nb-skel-thumb { display: block; }
    .desktop-surface .lf-nb-cards .lf-nb-stack { display: none; }
    .desktop-surface .lf-nb-cards :is(.lf-nb-dist, .lf-nb-line) { display: none; }
}


/* ═══ A PLACE IN THE FOCUS LANE (.lf-np) ═════════════════════════════════════ */
/* What a Seeker does at a place (fixer N): see it, see where it is, open one
   of the things offered there. One column, top to bottom: ONE hero, the name,
   "What's here" (a panel per Keeper: its header and its cards together, so a
   header is never apart from what it heads), the hours, one quiet claim line.
   The cards are the boards' own (kit-card.css), so they take the gallery form
   in a wide lane and the row form in a narrow one, by themselves. */

.desktop-surface .lf-np {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    align-content: start;
    min-width: 0;
    min-height: 100%;
    padding-bottom: var(--space-xl);
}

.desktop-surface .lf-np [hidden] { display: none !important; }

.desktop-surface .lf-np-body,
.desktop-surface .lf-np-place {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 0.7rem + 1.2cqi, 1.75rem);
    align-content: start;
    min-width: 0;
}

/* The hero: up to four DISTINCT photos of the listings here, composed like the
   listing's own mosaic (one large, the rest beside it); never a pattern */
.desktop-surface .lf-np-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.4rem;
    height: clamp(11rem, 6rem + 15cqi, 21rem);
    border-radius: var(--r-panel);
    background: var(--rt-ink);
    box-shadow: var(--shadow-cont-sm-lt);
    overflow: hidden;
    overflow: clip;
}

.desktop-surface .lf-np-hero[data-np-shots="2"] { grid-template-columns: 1fr 1fr; }
.desktop-surface .lf-np-hero[data-np-shots="3"] { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.desktop-surface .lf-np-hero[data-np-shots="4"] { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.desktop-surface .lf-np-hero:is([data-np-shots="3"], [data-np-shots="4"]) > .lf-np-shot:first-child { grid-row: 1 / -1; }
.desktop-surface .lf-np-hero[data-np-shots="4"] > .lf-np-shot:nth-child(2) { grid-column: 2 / -1; }

.desktop-surface .lf-np-shot {
    min-width: 0;
    min-height: 0;
    background-image: var(--k-photo, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* A narrow lane shows the first photo alone */
@container lane (width < 30rem) {
    .desktop-surface .lf-np-hero[data-np-shots] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
    .desktop-surface .lf-np-hero[data-np-shots] > .lf-np-shot:not(:first-child) { display: none; }
    .desktop-surface .lf-np-hero[data-np-shots] > .lf-np-shot:first-child { grid-row: auto; }
}

/* The name, and where it is */
.desktop-surface .lf-np-head {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.desktop-surface .lf-np-head > * { margin: 0; }
.desktop-surface .lf-np-eyebrow { color: var(--ink-pink); }
.desktop-surface .lf-np-eyebrow > i { margin-right: 0.3em; }

.desktop-surface .lf-np-title {
    font-size: clamp(2rem, 1.15rem + 3.2cqi, calc(3.5rem + 4 * var(--up)));
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.desktop-surface .lf-np-rename { vertical-align: middle; margin-left: 0.25rem; }
.desktop-surface .lf-np-facts { align-items: center; }
.desktop-surface .lf-np-see { margin-left: auto; }   /* a one-listing place's pink primary, at the head of What's here */

.desktop-surface .lf-np-renamer-body {
    display: grid;
    gap: var(--space-sm);
    padding: var(--pad-panel);
}

.desktop-surface .lf-np-renamer-err { color: var(--rt-danger); }

.desktop-surface .lf-np-door { margin-top: 0.35rem; }   /* after .lf-np-head > *, so it wins */
.desktop-surface .lf-np-door > .k-btn { max-width: 100%; }
.desktop-surface .lf-np-door > .k-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* What's here: a panel per Keeper, the Keeper line heading its own cards. A
   Keeper with one listing here takes one column, so several of them share a
   row in a wide lane (auto-fit: they share out the row, no empty track); a
   Keeper with more takes the whole row, and their cards share it out. */
.desktop-surface .lf-np-here {
    display: grid;
    gap: var(--space-md);
    min-width: 0;
}

.desktop-surface .lf-np-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: var(--space-md);
    align-items: start;
    min-width: 0;
}

.desktop-surface .lf-np-group:not([data-np-n="1"]) { grid-column: 1 / -1; }

.desktop-surface .lf-np-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--k-card-min)), 1fr));
}

.desktop-surface .lf-np-group {
    display: grid;
    gap: var(--space-md);
    min-width: 0;
    padding: var(--pad-panel);
    border-radius: var(--r-panel);
    background: linear-gradient(160deg, rgba(224, 237, 255, 0.95), rgba(232, 223, 255, 0.8));   /* the listing's "Meet your Keeper" panel */
    outline: var(--glass-outline);
}

.desktop-surface .lf-np-ghead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    min-width: 0;
}

.desktop-surface .lf-np-gid {
    flex: 1 1 11rem;
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.desktop-surface .lf-np-gid > p { margin: 0; }
.desktop-surface .lf-np-sf { flex: none; }

/* The hours, when the place has them */
.desktop-surface .lf-np-hours { display: grid; gap: var(--space-sm); min-width: 0; }
.desktop-surface .lf-np-hours > h3 { margin: 0; }

/* The claim state: one quiet line at the foot */
.desktop-surface .lf-np-foot {
    padding-top: var(--space-md);
    border-top: 1px solid var(--line);
}

.desktop-surface .lf-np-note { margin: 0; font-size: var(--type-meta); color: var(--text-soft); }
.desktop-surface .lf-np-note > i { margin-right: 0.4em; }

/* The frame while the place loads, and the no-place states */
.desktop-surface .lf-np-skel { display: grid; gap: var(--space-md); min-width: 0; }
.desktop-surface .lf-np-skel-hero { height: clamp(9.5rem, 6rem + 12cqi, 16rem); border-radius: var(--r-panel); }

.desktop-surface .lf-np-skel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.desktop-surface .lf-np-skel-card { height: 18rem; border-radius: var(--r-feature); }
.desktop-surface .lf-np-none { padding-block: clamp(2rem, 1rem + 4cqi, 5rem); }
.desktop-surface .lf-np-none > .k-btns { justify-content: center; }


/* ─── Reduced motion: everything in place, nothing drifting or rippling ───── */

@media (prefers-reduced-motion: reduce) {
    .desktop-surface .lf-nb-pin,
    .desktop-surface .lf-nb-radius-btn { transition: none; }
    .desktop-surface .lf-nb-pin.is-selected::after,
    .desktop-surface .lf-nb-me::after { animation: none; }
    .desktop-surface .lf-nb-cards .searchResult.is-hot { transform: none; }
}
