/* ──────────────────────────────────────────────────────────
   power10 — site.css is now a thin companion to tailwind.css.
   The dashboard and public layouts both use the Nile Ink design
   tokens compiled into tailwind.css via Styles/input.css.
   This file is kept so pages that reference it don't 404,
   and holds the small print that doesn't belong in the Tailwind
   @theme (print styles, user-agent resets below the base layer).
   ────────────────────────────────────────────────────────── */

html {
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

/* Homepage filter bar — kind pills, Near me, then sort. */
.home-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 0;
    padding: 10px 12px;
    background: var(--color-paper, #fff);
    border: 1px solid var(--color-rail, #e2e8f0);
    border-radius: var(--radius-card, 12px);
    box-shadow: 0 1px 2px var(--color-shadow, rgba(15, 23, 42, 0.06));
}

.home-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.home-filters__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

    .home-filters__meta .page-stats {
        justify-content: flex-start;
    }

.home-geo-status {
    margin: 8px 0 0;
    min-height: 1.1em;
}

.home-tools__kinds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-tools__near {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--color-smile, #b8924a);
    background: var(--color-deep, #0a2540);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

    .home-tools__near:hover {
        background: var(--color-sub-hover, #1a3355);
        color: #fff;
        text-decoration: none;
    }

.home-tools__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

    .home-tools__sort select {
        min-height: 36px;
        border-radius: 999px;
        border-color: var(--color-rail, #e2e8f0);
        background: var(--color-paper-2, #f8fafc);
    }

.card__hero,
.card__placeholder,
.card__placeholder--room,
.card__placeholder--rent,
.media-fallback,
.item__photo,
.gallery__cell,
article img,
.admin-thumb {
    cursor: zoom-in;
}

body.links-only .card__hero,
body.links-only .card__placeholder,
body.links-only .card__placeholder--room,
body.links-only .card__placeholder--rent,
body.links-only .media-fallback,
body.links-only article img {
    cursor: pointer;
}

.zoom-lightbox,
.zoom-lightbox img,
.lightbox,
.lightbox img {
    cursor: default;
}

.zoom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(64px, calc(16px + env(safe-area-inset-top, 0px)))
             max(24px, env(safe-area-inset-right, 0px))
             max(24px, env(safe-area-inset-bottom, 0px))
             max(24px, env(safe-area-inset-left, 0px));
    background: rgba(7, 17, 31, 0.92);
}

.zoom-lightbox__close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    border: 1px solid rgba(196, 164, 106, 0.85);
    border-radius: 999px;
    background: #07111f;
    color: #f8fafc;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
}

    .zoom-lightbox__close:hover {
        background: #163056;
    }

.zoom-lightbox__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 960px);
    max-height: calc(100vh - 96px);
}

    .zoom-lightbox__frame img {
        max-width: min(92vw, 960px);
        max-height: calc(100vh - 96px);
        object-fit: contain;
        background: #07111f;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    }

    .zoom-lightbox__frame .card__placeholder,
    .zoom-lightbox__frame .media-fallback,
    .zoom-lightbox__frame .item__photo {
        position: relative;
        inset: auto;
        width: min(92vw, 720px);
        height: min(70vh, 480px);
        flex: none;
    }

body.zoom-open {
    overflow: hidden;
}

/* For-rent cards: the title stays above the details, and the card grows with its text. */
.card--rent {
    height: auto;
    min-height: 0;
    overflow: visible;
}

    /* Keep rent heroes on the same 10/7 tile as shops/brands so mixed grids stay uniform. */
    .card--rent .card__hero {
        flex: none;
        aspect-ratio: 10 / 7;
        height: auto;
        background: #f5f2f0;
    }

    .card--rent .card__hero img {
        object-fit: cover;
        padding: 0;
    }

    .card--rent .card__body {
        overflow: visible;
        gap: 4px;
        padding: 10px 12px 14px;
    }

.card__title {
    display: block;
    overflow: visible;
    font-size: 15px;
    line-height: 1.35;
}

    .card__title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.card--rent .card__byline,
.card--rent .card__where {
    font-size: 13px;
    line-height: 1.35;
}

.card--rent .card__price {
    font-size: 15px;
    line-height: 1.3;
    margin-top: 2px;
}

/* First-viewport page chrome — compact so listings stay above the fold. */
.page-chrome {
    padding-top: 0.75rem;
}

@media (min-width: 640px) {
    .page-chrome {
        padding-top: 1rem;
    }
}

.section-head {
    font-size: 1.125rem;
    line-height: 1.3;
    padding-bottom: 0.4rem;
    margin-bottom: 0.85rem;
}

.admin-page-head {
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-page-head__title {
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.admin-page-head__kicker {
    margin-bottom: 0.2rem;
}

.admin-page-head__meta {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.field-input {
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 14px;
}

textarea.field-input {
    min-height: 4.5rem;
    padding: 0.5rem 0.75rem;
}

.search-field__input,
.search-field__button {
    min-height: 40px;
    font-size: 14px;
}

.search-field__scope {
    flex: 0 0 auto;
    max-width: 11.5rem;
    border: 0;
    border-right: 1px solid var(--color-rail, #e2e8f0);
    background: var(--color-paper-2, #f8fafc);
    color: var(--color-deep, #0a2540);
    font-size: 13px;
    font-weight: 700;
    padding: 0 8px;
    cursor: pointer;
}

.page-mast__main .search-field:has(.search-field__scope) {
    max-width: 46rem;
}

.admin-main {
    padding: 1.25rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .admin-main {
        padding: 1.5rem 1.5rem 3rem;
    }
}

/* Public building facade: rooms sit on their floor and can be dragged. */
.bldg--facade {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    overflow: auto;
    border-top: 3px solid #0a2540;
    border-radius: 14px;
}

    .bldg--facade .bldg__shaft {
        overflow: visible;
        flex: none;
    }

    .bldg--facade .bldg__floor {
        flex: none;
        min-height: 56px;
    }

    .bldg--facade .bldg__rooms {
        flex-wrap: wrap;
        overflow: visible;
        align-items: stretch;
        gap: 6px;
        padding: 8px;
    }

    .bldg--facade .bldg__level {
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 12px;
        font-weight: 600;
    }

    .bldg--facade .bldg__room {
        flex: var(--span, 1) 1 88px;
        min-height: 52px;
        min-width: 72px;
        flex-direction: column;
        gap: 2px;
        padding: 6px 8px;
        border-radius: 8px;
        border-top: 2px solid rgba(10, 37, 64, 0.28);
    }

    .bldg--facade .bldg__room-id {
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 13px;
        font-weight: 600;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .bldg--facade.is-arranging .bldg__room {
        cursor: grab;
    }

    .bldg--facade.is-arranging-floors .bldg__floor[data-floor] {
        cursor: grab;
    }

    .bldg--facade.is-arranging-floors .bldg__room {
        pointer-events: none;
    }

    .bldg--facade .bldg__room.is-dragging,
    .bldg--facade .bldg__floor.is-dragging {
        opacity: 0.4;
    }

    .bldg--facade .bldg__nudge {
        display: none;
    }

    .bldg--facade.is-arranging .bldg__nudge {
        display: flex;
        gap: 4px;
    }

.bldg__nudge-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
}

.bldg__floor.is-drop {
    outline: 2px solid #c4a46a;
    outline-offset: -2px;
}

.layout-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

#layout-form,
#floors-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

    #layout-form[hidden],
    #floors-form[hidden] {
        display: none;
    }

.layout-bar__note {
    flex: 1 0 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--color-ink-70);
}

/* Shared page top: title and search on the left, district and counts on the right. */
.page-mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 28px;
    align-items: start;
}

.page-mast__main {
    min-width: 0;
}

    .page-mast__main .display {
        margin: 0;
    }

.show-contact--inline {
    background: none;
    border: 0;
    padding: 0;
    color: var(--color-bronze);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.page-mast__main .search-field,
.page-mast__main .page-mast__search {
    margin-top: 12px;
    max-width: 40rem;
}

/* Search + More on one row (mobile filter chrome). */
.search-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    max-width: 46rem;
    width: 100%;
}

    .search-row .search-field,
    .search-row .page-mast__search {
        flex: 1 1 auto;
        margin-top: 0;
        max-width: none;
        min-width: 0;
    }

/* /brands — title + count, then search + CTAs on one row from md up. */
.brands-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
}

    .brands-head .display {
        margin: 0;
    }

.brands-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

    .brands-toolbar .search-row {
        margin-top: 0;
        max-width: none;
    }

.brands-toolbar__aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.brands-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .brands-toolbar__actions .btn {
        white-space: nowrap;
    }

@media (min-width: 721px) {
    .brands-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .brands-toolbar .search-row {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 36rem;
    }

    .brands-toolbar__aside {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .brands-toolbar__actions {
        flex-wrap: nowrap;
    }
}

/* Shared discovery toolbar: search + district/count/CTA on one tight row. */
.filter-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

    .filter-toolbar .search-row {
        margin-top: 0;
        max-width: none;
    }

.filter-toolbar__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.filter-toolbar__district {
    flex: 0 1 auto;
    min-width: 0;
}

    .filter-toolbar__district select,
    .filter-toolbar__aside select,
    .filter-toolbar__aside .field-input {
        min-height: 40px;
        width: 100%;
        max-width: 16rem;
        border: 1px solid rgba(10, 37, 64, 0.16);
        border-radius: 12px;
        background: #fff;
        color: var(--color-ink);
        font-size: 14px;
    }

    .filter-toolbar__aside .page-stats {
        justify-content: flex-start;
    }

@media (min-width: 721px) {
    .filter-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .filter-toolbar .search-row {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 36rem;
    }

    .filter-toolbar__district {
        flex: 0 0 auto;
    }

        .filter-toolbar__district select {
            width: auto;
            min-width: 11rem;
            max-width: 14rem;
        }

    .filter-toolbar__aside {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

        .filter-toolbar__aside select,
        .filter-toolbar__aside .field-input {
            width: auto;
            min-width: 11rem;
            max-width: 14rem;
        }
}

/* /near-me — search + locate on one row, criteria tucked close below. */
.near-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.near-form__filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.near-form__hint {
    margin: 0;
}

.near-form .near-criteria {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

/* Kind chips under “What are you looking for?” — 60% of prior 64px height. */
.near-kinds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

@media (min-width: 640px) {
    .near-kinds {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .near-kinds {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.near-kind {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    box-sizing: border-box;
    min-height: 38px; /* 60% of 64px */
    padding: 4px 10px;
    border: 1px solid rgba(29, 78, 216, 0.55);
    border-radius: 8px;
    background: #1d4ed8;
    color: #f8fafc;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .near-kind:hover {
        background: #1e40af;
        border-color: #1e3a8a;
    }

    .near-kind:has(:checked),
    .near-kind:has(:checked):hover {
        background: #16a34a;
        border-color: #15803d;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

.near-kind__label {
    font-family: var(--font-serif, Georgia, "Times New Roman", serif);
    font-size: 13px;
    line-height: 1.15;
    color: inherit;
}

.near-kind__hint {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    line-height: 1.2;
    color: rgba(248, 250, 252, 0.78);
}

    .near-kind:has(:checked) .near-kind__hint {
        color: rgba(240, 253, 244, 0.85);
    }

@media (min-width: 721px) {
    .near-form .filter-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 36rem) auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 8px;
    }

    .near-form .search-row {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
    }

    .near-form__filters {
        display: contents;
    }

    .near-form .filter-toolbar__aside {
        grid-column: 2;
        grid-row: 1;
        flex-wrap: nowrap;
    }

        .near-form .filter-toolbar__aside .btn {
            white-space: nowrap;
            width: auto;
        }

    .near-form__hint,
    .near-form .near-criteria {
        grid-column: 1 / -1;
    }
}

/* /for-rent — district + count + sort share one compact bar from md up. */
.for-rent-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .for-rent-form > .search-row {
        margin-top: 8px;
    }

.for-rent-form__filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.for-rent-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.for-rent-bar__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .for-rent-bar__primary select {
        min-height: 40px;
        border-radius: 12px;
        max-width: 16rem;
    }

    .for-rent-bar__primary .page-stats {
        justify-content: flex-start;
    }

.for-rent-bar__sort {
    min-height: 40px;
    border-radius: 12px;
    max-width: 16rem;
}

.for-rent-advanced {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .for-rent-advanced .for-rent-advanced__radius {
        grid-column: 1 / -1;
    }

    .for-rent-advanced .btn {
        grid-column: 1 / -1;
    }

@media (min-width: 721px) {
    .for-rent-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px 16px;
    }

    .for-rent-bar__primary {
        flex-wrap: nowrap;
    }

    .for-rent-bar__sort {
        margin-left: auto;
        max-width: 14rem;
    }

    .for-rent-advanced {
        grid-template-columns: auto auto auto minmax(0, 1fr) auto;
        align-items: center;
    }

        .for-rent-advanced .for-rent-advanced__radius,
        .for-rent-advanced .btn {
            grid-column: auto;
        }

        .for-rent-advanced .btn {
            width: auto;
        }
}

.search-more {
    --search-more-ink: #0a2540;
    --search-more-ink-deep: #071222;
    --search-more-lift: #163056;
    --search-more-paper: #f8fafc;
    --search-more-bronze: #c4a46a;
    display: none;
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    min-width: 5.5rem;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(196, 164, 106, 0.55);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(196, 164, 106, 0.18), transparent 42%),
        linear-gradient(165deg, var(--search-more-lift) 0%, var(--search-more-ink) 52%, var(--search-more-ink-deep) 100%);
    color: var(--search-more-paper);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 22px rgba(7, 17, 31, 0.24);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

    .search-more:hover {
        transform: translateY(-1px);
        border-color: rgba(196, 164, 106, 0.9);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.16),
            0 12px 28px rgba(7, 17, 31, 0.3);
    }

    .search-more:active {
        transform: translateY(0);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 4px 12px rgba(7, 17, 31, 0.22);
    }

    .search-more:focus-visible {
        outline: 2px solid var(--search-more-bronze);
        outline-offset: 3px;
    }

.search-more__label {
    line-height: 1;
}

.search-more__icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(196, 164, 106, 0.22);
    color: var(--search-more-bronze);
    transition: transform 220ms ease, background 160ms ease, color 160ms ease;
}

    .search-more__icon svg {
        width: 12px;
        height: 12px;
        display: block;
    }

@keyframes search-more-invite {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 8px 22px rgba(7, 17, 31, 0.24),
            0 0 0 0 rgba(196, 164, 106, 0);
    }

    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.16),
            0 12px 28px rgba(7, 17, 31, 0.32),
            0 0 0 5px rgba(196, 164, 106, 0.28);
    }
}

.page-mast__side {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .page-mast__side .district-switcher,
    .page-mast__side .field-input,
    .page-mast__side select {
        min-height: 36px;
    }

.page-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--color-rail, #e2e8f0);
    border-radius: 999px;
    background: var(--color-paper, #fff);
    color: var(--color-ink, #0f172a);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px var(--color-shadow, rgba(15, 23, 42, 0.06));
}

    .page-stat svg {
        width: 15px;
        height: 15px;
        flex: none;
        color: var(--color-smile);
    }

    .page-stat a {
        color: inherit;
        text-decoration: none;
    }

        .page-stat a:hover {
            text-decoration: underline;
        }

@media (max-width: 720px) {
    /* One mobile control height — match the distance chips on /near-me and /for-rent. */
    :root {
        --touch-control-h: 44px;
    }

    /* Collapsed discovery chrome: Ads (if any) + search + More; filters stay hidden
       until the user taps the search field or More. Desktop is unaffected. */
    .search-more {
        display: inline-flex;
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        min-width: 5.5rem;
        padding: 0 12px 0 14px;
        font-size: 12px;
    }

    .search-more__icon {
        width: 18px;
        height: 18px;
    }

    [data-mobile-chrome]:not(.is-filters-open) .search-more {
        animation: search-more-invite 1.7s ease-in-out 0.4s 3;
    }

    @media (prefers-reduced-motion: reduce) {
        .search-more,
        .search-more__icon {
            transition: none;
        }

        [data-mobile-chrome]:not(.is-filters-open) .search-more {
            animation: none;
        }
    }

    [data-mobile-chrome]:not(.is-filters-open) [data-mobile-filters],
    [data-mobile-chrome]:not(.is-filters-open) .mobile-chrome-hide {
        display: none !important;
    }

    [data-mobile-chrome]:not(.is-filters-open) .search-field__scope,
    [data-mobile-chrome]:not(.is-filters-open) .search-field__button {
        display: none !important;
    }

    [data-mobile-chrome]:not(.is-filters-open) .search-field {
        display: block;
    }

    [data-mobile-chrome]:not(.is-filters-open) .search-field__input {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    [data-mobile-chrome].is-filters-open .search-more {
        border-color: rgba(10, 37, 64, 0.18);
        background: #fff;
        color: var(--search-more-ink);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 4px 14px rgba(7, 17, 31, 0.08);
        animation: none;
    }

        [data-mobile-chrome].is-filters-open .search-more__icon {
            transform: rotate(180deg);
            background: rgba(10, 37, 64, 0.08);
            color: var(--search-more-ink);
        }

    .page-mast {
        grid-template-columns: 1fr;
    }

    .page-mast__side {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .page-stats {
        justify-content: flex-start;
    }

    body.is-home .page-stat--verified,
    body.is-home .page-stat--followed,
    body.is-home .card__verified {
        display: none;
    }

        .page-mast__side select,
        .page-mast__side .field-input {
            width: auto;
            max-width: 12rem;
        }

    .filter-toolbar__district {
        width: 100%;
    }

        .filter-toolbar__district select {
            max-width: none;
        }

    .site-mast__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "mark end" "nav nav";
        align-items: center;
        gap: 10px 10px;
        padding: 10px 12px 12px;
    }

    .site-mast .site-wordmark {
        grid-area: mark;
        font-size: 20px;
    }

    .site-mast__end {
        grid-area: end;
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px 8px;
    }

        .site-mast__end a:not(.btn),
        .site-mast__end .btn,
        .site-mast__end .btn--mast {
            min-height: 44px;
            padding: 0 10px;
            font-size: 13px;
        }

    .site-mast__nav {
        grid-area: nav;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

        .site-mast__nav a {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0 6px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.06);
            font-size: 13px;
            text-align: center;
        }

    .search-field {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        max-width: none;
    }

    .search-field__input {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        font-size: 16px;
    }

        .search-field__input::placeholder {
            font-size: 14px;
        }

    .search-field__scope {
        grid-column: 1;
        grid-row: 2;
        max-width: none;
        border-right: 0;
        border-top: 1px solid rgba(10, 37, 64, 0.16);
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        font-size: 12px;
    }

    .search-field__button {
        grid-column: 2;
        grid-row: 2;
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        padding: 0 16px;
        font-size: 14px;
    }

    .home-tools {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

        .home-tools__kinds .filter-pill,
        .home-tools__near {
            box-sizing: border-box;
            height: var(--touch-control-h);
            min-height: var(--touch-control-h);
        }

        .home-tools__sort select,
        [data-mobile-chrome] .page-mast__side select,
        [data-mobile-chrome] .district-switcher select {
            box-sizing: border-box;
            height: var(--touch-control-h);
            min-height: var(--touch-control-h);
            font-size: 16px;
    }

    .home-tools__kinds {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

        .home-tools__kinds > span {
            grid-column: 1 / -1;
        }

        .home-tools__kinds .filter-pill,
        .home-tools__near {
            justify-content: center;
            width: 100%;
            text-align: center;
        }

    .home-tools__sort {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-left: 0;
    }

        .home-tools__sort select {
            width: 100%;
        }

    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        .home-grid .card--product:not(.card--rent) .card__hero {
            aspect-ratio: 10 / 7;
            height: auto;
        }

        .home-grid .card--product:not(.card--rent) .card__brand {
            font-size: 10px;
        }

        .home-grid .card__trade-badge {
            font-size: 10px;
            padding: 1px 7px 1px 5px;
        }

        .home-grid .card__body {
            padding: 8px 9px 10px;
        }

        .home-grid .card--product:not(.card--rent) .card__title {
            min-height: 1.25em;
            font-size: 13px;
        }

        .home-grid .card__byline,
        .home-grid .card__where,
        .home-grid .card__match,
        .home-grid .card__blurb,
        .home-grid .card__blurb-text,
        .home-grid .card__blurb-pop-text,
        .home-grid .card__blurb-toggle {
            font-size: 11px;
        }

        .home-grid .card__actions {
            gap: 0.35rem;
            margin-top: 0.45rem;
        }

        .home-grid .card__action {
            min-height: 1.75rem;
            padding: 0 0.55rem;
            font-size: 0.6875rem;
        }

    ul.card-grid,
    ul.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        ul.card-grid .card__body,
        ul.grid .card__body {
            padding: 8px 9px 10px;
        }

        ul.card-grid .card__hero {
            aspect-ratio: 10 / 7;
            height: auto;
        }

        ul.card-grid .card--rent .card__hero {
            aspect-ratio: 10 / 7;
            height: auto;
        }

        ul.card-grid .card__title,
        ul.grid .card__title {
            font-size: 13px;
            line-height: 1.25;
        }

    .bldg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bldg-card__hero {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .bldg-card__body {
        padding: 8px 10px 10px;
    }

    .bldg-card__name {
        font-size: 14px;
        line-height: 1.3;
    }

    .bldg-card__desc {
        font-size: 13px;
        line-height: 1.4;
    }

    .bldg-card__meta,
    .bldg-card__floors {
        font-size: 12px;
    }

    .bldg-page__inner {
        padding: 12px 12px 14px;
    }

    .bldg-page__layout {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px 10px;
    }

    .bldg-page__copy {
        display: contents;
    }

    .bldg-page__photo {
        grid-row: 1 / span 4;
    }

    .bldg-page__actions {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .bldg-page__photo img,
    .bldg-page__fallback {
        height: 96px;
        border-radius: 10px;
    }

    .bldg-page__name {
        font-size: 16px;
    }

    .bldg-page__meta,
    .bldg-page__place {
        font-size: 12px;
    }

    .bldg-page__desc {
        font-size: 13px;
    }

    .bldg-page__plan {
        padding: 4px 12px 20px;
    }

    #forRentFilters {
        display: flex;
        flex-direction: column;
            gap: 8px;
        }

        #forRentFilters input,
        #forRentFilters select,
        #forRentFilters .btn,
        #forRentFilters .search-field__input,
        #forRentFilters .search-field__button {
            box-sizing: border-box;
            width: 100%;
            height: var(--touch-control-h);
            min-height: var(--touch-control-h);
            font-size: 16px;
        }

        #forRentFilters .for-rent-bar__primary select,
        #forRentFilters .for-rent-bar__sort {
            max-width: none;
        }

        #forRentFilters .btn {
            padding: 0 16px;
            line-height: 1;
        }

        #forRentFilters label:has(input[name="km"]) {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            height: var(--touch-control-h);
            min-height: var(--touch-control-h);
            padding: 0 14px;
            line-height: 1;
        }

        #forRentFilters .for-rent-rent {
            display: block;
            width: 100%;
        }

        #forRentFilters .for-rent-advanced__radius {
            display: flex;
        }

    #nearMeForm {
        margin-top: 8px;
    }

        #nearMeForm fieldset {
            margin: 0;
        }

        #nearMeForm .near-kind {
            min-height: 38px;
            padding: 4px 8px;
        }

    .near-mast {
        padding-top: 3px;
        padding-bottom: 8px;
    }

    .near-results {
        padding-top: 8px;
        padding-bottom: 16px;
    }

    #nearMeForm .search-field {
        display: flex;
        max-width: 100%;
        border-radius: 8px;
        box-shadow: none;
    }

    #nearMeForm .search-field__input,
    #nearMeForm .search-field__button {
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        font-size: 16px;
    }

    #nearMeForm .search-field__input {
        grid-column: auto;
        grid-row: auto;
        padding: 0 12px;
    }

        #nearMeForm .search-field__input::placeholder {
            font-size: 14px;
        }

    #nearMeForm .search-field__button {
        grid-column: auto;
        grid-row: auto;
        padding: 0 14px;
        font-size: 14px;
    }

    .near-radius__toggle {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        padding: 0 14px;
        border: 1px solid var(--color-rail, #e2e8f0);
        border-radius: 999px;
        background: #fff;
        color: #0a2540;
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        list-style: none;
    }

        .near-radius__toggle::-webkit-details-marker {
            display: none;
        }

        .near-radius__toggle::marker {
            content: "";
        }

    .near-radius__body {
        margin-top: 8px;
    }

    #nearMeForm .btn {
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        padding: 0 16px;
        font-size: 14px;
        line-height: 1;
        width: 100%;
    }

    #nearMeForm .filter-toolbar__aside {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

        #nearMeForm .filter-toolbar__aside .btn {
            width: 100%;
        }

    #nearMeForm .near-criteria {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 0;
    }

    .filter-toolbar__district select,
    .filter-toolbar__aside select,
    .filter-toolbar__aside .field-input {
        max-width: none;
        width: 100%;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        font-size: 16px;
    }

    #nearMeForm .near-radius__body label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: var(--touch-control-h);
        min-height: var(--touch-control-h);
        padding: 0 14px;
        line-height: 1;
    }

    /* Keep search row aligned: search field + More share the same height. */
    .search-row {
        align-items: center;
    }

        .search-row .search-field,
        .search-row .search-field__input,
        .search-row .search-field__button {
            height: var(--touch-control-h);
            min-height: var(--touch-control-h);
    }

    .admin-sub__inner {
        flex-wrap: wrap;
        white-space: normal;
        gap: 4px;
        padding: 6px 10px;
    }

        .admin-sub__inner > a,
        .admin-menu__btn {
            min-height: 34px;
            padding: 0 8px;
            font-size: 13px;
        }

    .memo-dock:not(.memo-dock--overlay) {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .memo-slot {
        width: 100%;
        margin-left: 0;
        align-items: flex-start;
    }

}

@media (min-width: 721px) {
    details.near-radius > .near-radius__toggle {
        display: none;
    }

    details.near-radius:not([open]) > .near-radius__body,
    details.near-radius[open] > .near-radius__body {
        display: block;
        margin-top: 0;
    }
}

.near-results.is-updating {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 120ms ease;
}

#nearMeForm.is-busy .near-radius label,
#nearMeForm.is-busy label.group {
    opacity: 0.6;
    pointer-events: none;
}

/* Homepage / listing cards — BTech-style product frame (soft tile, square hero, top-left pill). */
.card--product:not(.card--rent) {
    height: auto;
    min-height: 0;
    background: #fff;
    border: 1px solid #ebe6e2;
    border-top: 0;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 4, 0, 0.04);
}

    .card--product:not(.card--rent):hover {
        box-shadow: 0 8px 24px rgba(16, 4, 0, 0.08);
        border-color: #e0dad4;
    }

    .card--product:not(.card--rent) .card__hero {
        flex: none;
        /* ~70% of the previous square height → width:height = 1:0.7 */
        aspect-ratio: 10 / 7;
        height: auto;
        background: #f5f2f0;
        border-radius: 16px 16px 0 0;
    }

    .card--product:not(.card--rent) .card__hero img {
        object-fit: cover;
        padding: 0;
    }

    .card--product:not(.card--rent) .card__placeholder,
    .card--product .card__placeholder--rent,
    .card--product .media-fallback {
        background-color: var(--color-deep, #0a2540);
        background-image:
            radial-gradient(ellipse 80% 60% at 20% 15%, rgba(255, 255, 255, 0.14), transparent 55%),
            linear-gradient(145deg, #0d2f4f 0%, var(--color-deep, #0a2540) 42%, #061828 100%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 50%);
        color: #f8fafc;
    }

    .card--product:not(.card--rent) .card__body {
        overflow: visible;
        gap: 4px;
        padding: 10px 12px 14px;
    }

    .card--product:not(.card--rent) .card__brand {
        margin: 0;
        color: #6b635c;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card--product:not(.card--rent) .card__title {
        min-height: 1.35em;
        overflow: hidden;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        white-space: nowrap;
    }

        .card--product:not(.card--rent) .card__title a {
            display: block;
            overflow: hidden;
            color: #100400;
            white-space: nowrap;
            text-overflow: ellipsis;
            -webkit-line-clamp: unset;
        }

            .card--product:not(.card--rent) .card__title a:hover {
                color: #ff531c;
            }

.card__byline, .card__where {
    font-size: 13px;
    line-height: 1.35;
}

/* BTech-style top-left role pills (Buyer / Seller) — same slot as -500 LE badges. */
.card__trade-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}

.card__trade-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px 2px 6px;
    border-radius: 9999px;
    background: #111111;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.card__trade-badge--rent {
    background: #5c1422;
}

.card--product:not(.card--rent) .card__hero:has(.card__trade-badges) .card__deal {
    top: auto;
    bottom: 8px;
    left: 8px;
}

/* One-line blurb in flow; expanded copy floats so the card box never grows. */
.card--product:not(.card--rent) .card__blurb {
    position: relative;
    display: block;
    margin: 2px 0 0;
    overflow: visible;
    color: var(--color-ink-70, #475569);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    -webkit-line-clamp: unset;
}

.card__blurb-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.card__blurb-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card__blurb-toggle {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #ff531c;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    cursor: pointer;
}

    .card__blurb-toggle:hover,
    .card__blurb-toggle:focus-visible {
        color: #e04412;
    }

    .card__blurb-toggle:focus-visible {
        outline: 2px solid #ff531c;
        outline-offset: 2px;
    }

.card__blurb-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 6;
    margin: 0;
    padding: 0.45rem 0.55rem 0.5rem;
    border: 1px solid var(--color-rail, #e2e8f0);
    border-radius: 8px;
    background: var(--color-paper, #fff);
    box-shadow: 0 10px 28px rgba(15, 17, 17, 0.16);
}

.card__blurb-pop-text {
    margin: 0 0 0.35rem;
    color: var(--color-ink-70, #475569);
    font-size: inherit;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card__blurb-pop .card__blurb-toggle {
    display: inline-block;
}

.card--product.is-blurb-open {
    overflow: visible;
    z-index: 24;
}

    .card--product.is-blurb-open .card__body {
        overflow: visible;
    }

    .card--product.is-blurb-open .card__blurb-text {
        visibility: hidden;
    }

.scroll-more {
    min-height: 36px;
    margin-top: 12px;
    text-align: center;
    color: var(--color-ink-50);
    font-size: 13px;
}

.card--product:not(.card--rent) .card__hero .card__verified {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 1;
    margin: 0;
}

.card__category {
    color: #4a5160;
}

.card__kind--shop {
    color: #0a2540;
    font-weight: 700;
}

.card__kind--service {
    color: #1f6b45;
    font-weight: 700;
}

.card__trade {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #111111;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.card--product:not(.card--rent) .card__verified {
    background: #1f6b45;
}

.card--product:not(.card--rent) .card__where {
    color: #0a2540;
}

.card__distance {
    margin: 2px 0 0;
    color: #007600;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

    .card__distance:empty {
        display: none;
    }

.home-grid .card__distance {
    font-size: 11px;
}

.card__match {
    margin: 2px 0 0;
    color: #4a5160;
    font-size: 13px;
    line-height: 1.35;
}

/* Card action cluster — Directions / Locations stand out as primary map CTAs */
.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-xs, 8px);
    border: 1px solid transparent;
    font-family: var(--font-sans, "Segoe UI", sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    background: #0b57d0;
    box-shadow: 0 1px 2px rgba(11, 87, 208, 0.22);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.card__action:hover,
.card__action:focus-visible {
    background: #0842a0;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.28);
}

.card__action:focus-visible {
    outline: 2px solid #0b57d0;
    outline-offset: 2px;
}

.card__action--map,
.card__action--places {
    background: #0b57d0;
}

.card__action--map:hover,
.card__action--map:focus-visible,
.card__action--places:hover,
.card__action--places:focus-visible {
    background: #0842a0;
}

.brand-spot__maps {
    margin-top: 0.5rem;
}

.search-hit {
    font-weight: 700;
    color: #12151c;
    background: #f3e6c4;
}

.card__offers {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.card__offer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--color-ink);
    font-size: 13px;
    line-height: 1.3;
}

.card__offer-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card__offer-price {
    flex: none;
    color: var(--color-ink-50);
    font-size: 12px;
}

.card__where::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border: 1.5px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    vertical-align: 0;
}

.memo-dock {
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Floating memo popup — out of document flow, just under the site mast. */
:root {
    --site-mast-offset: 4.75rem;
}

.brand-page__memo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    pointer-events: none;
}

.memo-dock--overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: block;
    margin: 0;
    pointer-events: none;
}

    .memo-dock--overlay > .memo-dock__toggle,
    .memo-dock--overlay > .memo-dock__panel {
        pointer-events: auto;
    }

    .memo-dock--overlay > .memo-dock__toggle {
        position: fixed;
        top: calc(var(--site-mast-offset) + 8px);
        right: 12px;
        z-index: 82;
    }

    .memo-dock--overlay > .memo-dock__panel {
        position: fixed;
        top: calc(var(--site-mast-offset) + 56px);
        left: 12px;
        right: 12px;
        width: auto;
        max-width: 26rem;
        margin: 0 auto;
        max-height: min(60vh, calc(100dvh - var(--site-mast-offset) - 72px));
        z-index: 81;
    }

    .memo-dock--overlay.memo-dock--visitor:not([open]) > .memo-dock__toggle {
        animation: search-more-invite 1.6s ease-in-out 0.3s 2;
    }

.memo-dock__close {
    align-self: stretch;
    margin-top: 4px;
    min-height: 40px;
    border: 1px solid rgba(244, 241, 234, 0.28);
    border-radius: 10px;
    background: transparent;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .memo-dock__close:hover {
        border-color: #c4a46a;
        color: #c4a46a;
    }

/* ── Brand detail (/brand/{slug}) ─────────────────────────── */
.brand-page__hero {
    position: relative;
    max-height: 50vh;
    overflow: hidden;
    border-bottom: 1px solid var(--color-rail, #e5e1d8);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(196, 164, 106, 0.16), transparent 55%),
        linear-gradient(180deg, var(--color-paper, #ffffff) 0%, var(--color-paper-2, #f8fafc) 100%);
}

.brand-page__hero-inner {
    box-sizing: border-box;
    max-width: 72rem;
    max-height: 50vh;
    margin: 0 auto;
    padding: 0.65rem 1rem 0.85rem;
    overflow: hidden;
}

.brand-page__crumb {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-page__identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    min-height: 0;
}

.brand-page__logo {
    width: min(25vw, 12vh);
    height: min(25vw, 12vh);
    flex: none;
    object-fit: cover;
    border: 1px solid var(--color-rail, #e5e1d8);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.1);
}

.brand-page__logo--fallback {
    display: grid;
    place-items: center;
    font-size: clamp(1.25rem, 5vw, 2rem);
    font-weight: 700;
}

.brand-page__intro {
    min-width: 0;
    width: 100%;
    max-width: 40rem;
}

.brand-page__name {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    line-height: 1.15;
}

.brand-page__name .verified-badge--lg {
    width: 1.15rem;
    height: 1.15rem;
}

.brand-page__meta {
    margin: 0.2rem 0 0;
    color: var(--color-ink-70, #4b5563);
    font-size: 0.78rem;
    line-height: 1.3;
}

.brand-page__blurb {
    margin: 0.4rem auto 0;
    max-width: 36rem;
    color: var(--color-ink, #0a2540);
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.brand-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.brand-page__actions .btn,
.brand-page__actions .show-contact {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.brand-page__branches {
    background: var(--color-paper, #ffffff);
}

.brand-page__branches-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .brand-page__hero-inner {
        padding: 0.85rem 2rem 1rem;
    }

    .brand-page__branches-inner {
        padding: 1.75rem 2rem 3.25rem;
    }
}

.brand-page__branches-head {
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-rail, #e5e1d8);
}

.brand-page__branches-head .display--md {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0;
}

.brand-page__branches-lead {
    margin-top: 0.25rem;
    color: var(--color-ink-70, #4b5563);
    font-size: 0.85rem;
}

.brand-page__group--next {
    margin-top: 1.75rem;
}

.brand-page__grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .brand-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .brand-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brand-page__identity {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.25rem;
    }

    .brand-page__logo {
        width: min(25vw, 11vh, 6.5rem);
        height: min(25vw, 11vh, 6.5rem);
    }

    .brand-page__name,
    .brand-page__actions {
        justify-content: flex-start;
    }

    .brand-page__blurb {
        margin-left: 0;
        margin-right: 0;
        -webkit-line-clamp: 3;
    }
}

.brand-spot__logo-hero {
    object-fit: contain !important;
    background: var(--color-paper, #ffffff);
    padding: 1.1rem;
}

.brand-spot__maps {
    margin: 0.35rem 0 0;
}

.memo-dock__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border: 1px solid #c4a46a;
    border-radius: 999px;
    background: #0a2540;
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.28);
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

    .memo-dock__toggle::-webkit-details-marker {
        display: none;
    }

    .memo-dock__toggle::marker {
        content: "";
    }

.memo-dock[open] > .memo-dock__toggle {
    background: #163056;
}

.memo-dock__mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4a46a;
    box-shadow: 0 0 0 3px rgba(196, 164, 106, 0.28);
}

.memo-dock__count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 5px;
    border-radius: 999px;
    background: #c4a46a;
    color: #0a2540;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.memo-dock__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(24rem, 70vh);
    overflow: auto;
    padding: 14px;
    border: 1px solid #c4a46a;
    border-radius: 16px;
    background: #0a2540;
    color: #f8fafc;
    box-shadow: 0 18px 48px rgba(7, 17, 31, 0.35);
}

.memo-dock__label {
    margin: 0;
    color: #c4a46a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.memo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(244, 241, 234, 0.08);
}

.memo__tag {
    align-self: flex-start;
    padding: 2px 7px;
    border-radius: 999px;
    background: #c4a46a;
    color: #0a2540;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.memo__body {
    margin: 0;
    color: #f8fafc;
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.35;
}

.memo__meta {
    margin: 0;
    color: rgba(244, 241, 234, 0.68);
    font-size: 12px;
}

.memo__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: start;
    gap: 4px;
}

.memo__edit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .memo__edit[open] {
        flex: 1 0 100%;
    }

    .memo__edit > .memo-form {
        align-self: stretch;
    }

.memo-dock .btn--ghost {
    min-height: 32px;
    padding: 0 10px;
    background: transparent;
    color: #f8fafc;
    border-color: rgba(244, 241, 234, 0.28);
}

.memo-dock .btn--primary {
    background: #c4a46a;
    color: #0a2540;
    border-color: #c4a46a;
}

.memo__edit > summary,
.memo-compose > summary {
    list-style: none;
    cursor: pointer;
}

    .memo__edit > summary::-webkit-details-marker,
    .memo-compose > summary::-webkit-details-marker {
        display: none;
    }

    .memo__edit > summary::marker,
    .memo-compose > summary::marker {
        content: "";
    }

.memo-compose > summary {
    color: #c4a46a;
    font-size: 14px;
    font-weight: 700;
}

.memo-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--color-ink);
}

    .memo-form .field-label {
        color: var(--color-ink-70);
    }

.memo-form__notice {
    margin: 0;
    padding: 8px 8px 8px 10px;
    border-left: 3px solid var(--color-signal);
    background: #fff;
    color: var(--color-ink);
    font-size: 12px;
    line-height: 1.4;
}

.memo-form__tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #0a2540;
    color: #c4a46a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.memo-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
}

    .memo-form__row .field-input {
        width: auto;
        min-width: 11rem;
        background: #fff;
    }

.memo-form textarea.field-input {
    min-height: 4.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
}

.shop-sheet > .shop-locations {
    grid-column: 1 / -1;
}

.shop-locations {
    margin: 0 0 4px;
}

.shop-locations__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.shop-locations__title {
    margin: 0;
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.shop-locations__add {
    position: relative;
}

    .shop-locations__add > summary {
        list-style: none;
        cursor: pointer;
    }

        .shop-locations__add > summary::-webkit-details-marker {
            display: none;
        }

        .shop-locations__add > summary::marker {
            content: "";
        }

.shop-locations__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(22rem, calc(100vw - 2rem));
    padding: 12px;
    border: 1px solid #c4a46a;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(7, 17, 31, 0.16);
}

.shop-locations__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

    .shop-locations__list li {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 8px 8px 8px 12px;
        border: 1px solid var(--color-rail);
        border-left: 3px solid #c4a46a;
        border-radius: 12px;
        background: #fff;
    }

    .shop-locations__list a {
        display: flex;
        flex-direction: column;
        min-width: 0;
        text-decoration: none;
    }

.shop-locations__name {
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 700;
}

.shop-locations__place {
    color: var(--color-ink-50);
    font-size: 12px;
}

.shop-locations__list .btn {
    min-height: 32px;
    padding: 0 10px;
}

.shop-locations__code {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0a2540;
    color: #f8fafc;
}

    .shop-locations__code span {
        color: #c4a46a;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .shop-locations__code strong {
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 1.5rem;
        letter-spacing: 0.16em;
    }

    .shop-locations__code small {
        color: rgba(244, 241, 234, 0.72);
        font-size: 12px;
    }

.shop-locations__redeem {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
}

    .shop-locations__redeem .field-label {
        flex: 1 0 100%;
    }

    .shop-locations__redeem .field-input {
        width: 11rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

/* Shop facts sit in a wrapping row so the page stays short. */
.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    order: -1;
    align-items: start;
}

.shop-group {
    background: #fff;
    border: 1px solid var(--color-rail);
    border-radius: 14px;
    padding: 12px 14px 8px;
}

.shop-group__label {
    margin: 0 0 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink-50);
}

.shop-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 7px 0;
    border-top: 1px solid var(--color-rail);
    font-size: 14px;
    line-height: 1.35;
}

.shop-group dl .shop-row:first-child {
    border-top: 0;
}

.shop-row dt {
    margin: 0;
    color: var(--color-ink-50);
    font-size: 13px;
}

.shop-row dd {
    margin: 0;
    color: var(--color-ink);
    min-width: 0;
    overflow-wrap: anywhere;
}

.shop-row a {
    color: var(--color-ink);
    text-decoration: none;
}

    .shop-row a:hover {
        text-decoration: underline;
    }

.shop-row__more {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    color: var(--color-bronze);
}

.shop-row__quiet {
    color: var(--color-ink-70);
    font-size: 13px;
}

.shop-row__mono {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-ink-70);
}

.shop-group__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--color-rail);
}

    .shop-group__foot .btn {
        min-height: 36px;
    }

.shop-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
    padding: 0;
    list-style: none;
}

.shop-social {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 112px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    background: #0a2540;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 17, 17, 0.16);
}

    .shop-social:hover {
        filter: brightness(1.08);
        color: #fff;
        text-decoration: none;
    }

.shop-social__go {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.82);
}

.shop-social--facebook {
    background: #1877f2;
}

.shop-social--instagram {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
}

.shop-social--twitter {
    background: #111111;
}

.shop-social--tiktok {
    background: #111111;
    box-shadow: inset 0 0 0 2px #25f4ee, 0 1px 2px rgba(15,17,17,.16);
}

.shop-social--youtube {
    background: #ff0033;
}

.shop-social--linkedin {
    background: #0a66c2;
}

.shop-social--whatsapp {
    background: #25d366;
    color: #073018;
}

    .shop-social--whatsapp .shop-social__go {
        color: rgba(7,48,24,.75);
    }

.shop-social--telegram {
    background: #229ed9;
}

.shop-social--website {
    background: #0a2540;
}

.shop-social--other {
    background: #4a5160;
}

/* ── On-page social video embeds (shop + brand) ─────────────────────────── */
.social-videos {
    display: grid;
    gap: 1.25rem;
}

.social-video {
    margin: 0;
}

.social-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #0b0d10;
    box-shadow: 0 1px 2px rgba(15, 17, 17, 0.12);
}

.social-video__frame--portrait {
    aspect-ratio: 9 / 16;
    max-width: 22rem;
    margin-inline: auto;
}

.social-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-video__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-ink-50);
}

.social-video__provider {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-ink);
}

.brand-page__videos {
    padding: 1.5rem 0 0;
}

.home-ads {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 40;
    width: min(27rem, calc((100% - 32px) * 0.75));
    margin: 0;
    padding: 0;
}

.home-ads__bar {
    display: flex;
    justify-content: flex-start;
}

.home-ads__toggle {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #c4a46a;
    border-radius: 999px;
    background: #07111f;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

    .home-ads__toggle:hover {
        background: #163056;
    }

.home-ads__stage {
    height: 96px;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(196, 164, 106, 0.72);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(196, 164, 106, 0.22), transparent 36px), #102033;
    box-shadow: 0 18px 40px rgba(7, 17, 31, 0.32);
}

.home-ads__track {
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
}

    .home-ads__track li {
        margin: 0;
        height: 32px;
        border-bottom: 1px solid rgba(196, 164, 106, 0.18);
    }

    .home-ads__track a {
        display: block;
        height: 32px;
        padding: 0 14px;
        overflow: hidden;
        font-size: 14px;
        line-height: 32px;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-decoration: none;
    }

.place-main {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #0a2540;
    color: #f8fafc;
    font-family: Consolas, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 18px;
    vertical-align: 2px;
}

.home-ads__name {
    color: #c4a46a;
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    font-weight: 700;
}

.home-ads__body {
    color: #f8fafc;
    font-weight: 500;
}

.home-ads__track a:hover .home-ads__body {
    color: #fff;
}

.brand-color {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.brand-color__pick {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--color-rail, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.brand-color__use {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #12151c;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.brand-color__hint {
    flex: 1 0 100%;
    margin: 0;
    color: #4a5160;
    font-size: 13px;
    line-height: 1.4;
}

.brand-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(18, 21, 28, 0.25);
    border-radius: 50%;
    vertical-align: middle;
}

.bldg-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.bldg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-rail, #e2e8f0);
    border-top: 3px solid var(--color-deep, #0a2540);
    border-radius: var(--radius-card, 12px);
    background: var(--color-paper, #fff);
    box-shadow: 0 1px 2px var(--color-shadow, rgba(15, 23, 42, 0.06));
}

.bldg-card__hero {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    height: auto;
    background: var(--color-deep, #0a2540);
}

    .bldg-card__hero img,
    .bldg-card__fallback {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.bldg-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-family: var(--font-sans, "Segoe UI", Helvetica, sans-serif);
    font-size: 28px;
    font-weight: 600;
}

.bldg-card__verified {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #1f6b45;
    color: #fff;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

.bldg-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}

.bldg-card__name {
    margin: 0;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

    .bldg-card__name a {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        color: #12151c;
        text-decoration: none;
    }

        .bldg-card__name a:hover {
            color: #9b2335;
        }

.bldg-card__meta,
.bldg-card__floors {
    margin: 0;
    color: #4a5160;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.bldg-card .card__distance {
    margin: 2px 0 0;
}

.bldg-card__floors {
    color: #0a2540;
    font-weight: 600;
}

.bldg-card__desc {
    margin: 2px 0 0;
    color: #4a5160;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bldg-card__contact {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.bldg-card--unit .bldg-card__hero {
    height: 64px;
}

.bldg-card--unit .bldg-card__fallback {
    font-size: 15px;
}

@media (max-width: 720px) {
    .bldg-card--unit .bldg-card__hero {
        height: 56px;
    }

    .bldg-card--unit .bldg-card__fallback {
        font-size: 13px;
    }
}

.bldg-card__hero--occupied {
    background: #007600;
}

.bldg-card__hero--listed {
    background: #5c1422;
}

.bldg-card__hero--vacant {
    background: #f1f5f9;
}

    .bldg-card__hero--vacant .bldg-card__fallback {
        color: #12151c;
    }

.bldg-card__hero--maint {
    background: #cc0c39;
}

.bldg-page {
    background: var(--color-paper-2, #f8fafc);
}

.bldg-page__mast {
    border-bottom: 1px solid var(--color-rail, #e2e8f0);
    background: var(--color-paper, #fff);
}

.bldg-page__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 16px 16px 18px;
}

.bldg-page__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    color: #6d7380;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

    .bldg-page__crumb a {
        color: #0a2540;
        text-decoration: none;
    }

        .bldg-page__crumb a:hover {
            color: #9b2335;
        }

.bldg-page__layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
}

.bldg-page__photo img,
.bldg-page__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 148px;
    object-fit: cover;
    border: 1px solid var(--color-rail, #e2e8f0);
    border-top: 3px solid var(--color-deep, #0a2540);
    border-radius: var(--radius-card, 12px);
    background-color: var(--color-deep, #0a2540);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(145deg, #0d2f4f 0%, var(--color-deep, #0a2540) 42%, #061828 100%);
    color: #f8fafc;
    font-family: var(--font-sans, "Segoe UI", Helvetica, sans-serif);
    font-size: 28px;
    font-weight: 600;
}

.bldg-page__name {
    margin: 0;
    color: #12151c;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.bldg-page__verified {
    position: static;
    margin-left: 8px;
    vertical-align: 2px;
}

.bldg-page__meta,
.bldg-page__place {
    margin: 4px 0 0;
    color: #4a5160;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.bldg-page__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-width: 62ch;
    margin: 8px 0 0;
    color: #12151c;
    font-family: "Segoe UI", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.bldg-page__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

    .bldg-page__actions .memo-dock {
        margin: 0;
        justify-content: flex-start;
    }

    .bldg-page__actions .btn {
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

.bldg-page__units {
    background: var(--color-paper, #fff);
}

.bldg-page__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

    .bldg-page__head h2 {
        margin: 0;
        color: #12151c;
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.35;
    }

    .bldg-page__head span {
        color: #4a5160;
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 13px;
    }

.bldg-page__empty {
    margin: 0;
    color: #4a5160;
    font-size: 14px;
    line-height: 1.45;
}

.bldg-page__plan {
    max-width: 72rem;
    margin: 0 auto;
    padding: 8px 16px 28px;
}

    .bldg-page__plan .bldg-key {
        font-family: "Segoe UI", Helvetica, sans-serif;
        font-size: 13px;
    }

@media print {
    .admin-mast, .admin-sub, footer {
        display: none !important;
    }

    .admin-main {
        padding: 0 !important;
        max-width: 100% !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ── Live search: in-flight acknowledgement ───────────────────────────────────
   site.js adds .is-searching to the search form the moment a keystroke is going
   to cost a request, and removes it when the results land. Deliberately subtle
   and confined to the field: the results already on screen stay put and stay
   readable while the next set is fetched, so nothing jumps and nothing blanks.
   A cache hit (backspacing to a query already run) never sets this, because
   there is no wait to communicate. */
.search-field.is-searching {
    border-color: var(--color-deep);
}

    .search-field.is-searching .search-field__input {
        /* 1.5px hairline sweeping under the text — no layout impact, no reflow. */
        background-image: linear-gradient(90deg, rgba(10, 37, 64, 0) 0%, rgba(10, 37, 64, 0.55) 50%, rgba(10, 37, 64, 0) 100%);
        background-repeat: no-repeat;
        background-size: 40% 1.5px;
        background-position: -40% 100%;
        animation: pataspot-search-sweep 900ms linear infinite;
    }

@keyframes pataspot-search-sweep {
    from {
        background-position: -40% 100%;
    }

    to {
        background-position: 140% 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-field.is-searching .search-field__input {
        animation: none;
        background-size: 100% 1.5px;
        background-position: 0 100%;
        opacity: 0.85;
    }
}
