/*
 * Vanific public site — one stylesheet.
 *
 * Replaces the old front's 16 stylesheets + Bootstrap + jQuery + revolution slider. The redesign
 * mockups in docs/siteView carry every rule as an inline style attribute; those are translated
 * here into tokens and components so the markup stays small and the design can change in one
 * place.
 *
 * Mobile-first. The mockups were drawn at 390px (mobile) and 1440px (desktop); the breakpoints
 * below are where each design takes over.
 *
 * Contrast note from the mockup README, kept deliberately: button text on brand blue is navy,
 * not white — white on #2EAAD1 fails WCAG AA.
 */

/* ── Font ───────────────────────────────────────────────────────────────────── */

/* Self-hosted so the critical path has no third-party connection. One variable file covers
   400–800, and latin-ext only downloads when a page actually uses an accented glyph. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ─────────────────────────────────────────────────────────────────── */

:root {
    --brand: #2EAAD1;
    --brand-ink: #0B2A3A;   /* text ON brand blue — navy, never white */
    --brand-tint: #E4F4FA;
    --brand-deep: #0E5E7C;
    --link: #147497;
    --link-hover: #0E5E7C;
    --accent: #F4D83D;      /* logo yellow: Book a viewing, highlights */
    --ink: #0F2A3A;
    --ink-2: #33434C;
    --ink-3: #4A5A64;
    --muted: #55656F;
    --bg: #F4F8FA;
    --surface: #FFFFFF;
    --surface-2: #F9FBFC;
    --track: #EEF3F5;
    --line: #E2EAEE;
    --line-2: #D3DDE2;
    --line-3: #B8C6CD;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 22px;
    --r-2xl: 24px;
    --r-pill: 999px;

    --shadow-card: 0 14px 34px rgba(15, 42, 58, .12);
    --shadow-float: 0 16px 40px rgba(15, 42, 58, .16);

    --gut: 20px;            /* page side gutter, mobile */
    --max: 1440px;

    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
    background: var(--track);
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

button {
    font: inherit;
    color: inherit;
}

input,
select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 18px;
    background: var(--surface);
    font-weight: 700;
}

.skip:focus {
    left: 12px;
    top: 12px;
}

[hidden] {
    display: none !important;
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── Primitives ─────────────────────────────────────────────────────────────── */

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.btn--brand {
    background: var(--brand);
    color: var(--brand-ink);
}

.btn--brand:hover {
    background: #289BC0;
    color: var(--brand-ink);
}

.btn--accent {
    background: var(--accent);
    color: var(--ink);
}

.btn--accent:hover {
    background: #EACE2B;
    color: var(--ink);
}

.btn--dark {
    background: var(--ink);
    color: #fff;
}

.btn--dark:hover {
    background: #16384B;
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border: 1.5px solid var(--line-2);
    color: var(--ink);
    font-weight: 600;
}

.btn--ghost:hover {
    border-color: var(--line-3);
    color: var(--ink);
}

.btn--block {
    width: 100%;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.pill--tint {
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-size: 14px;
}

.pill--dark {
    background: var(--ink);
    color: #fff;
}

/* Placeholder shown in an image slot that has no photo. */
.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, #DCE8EE 0%, #C9DCE5 100%);
}

.ph svg {
    opacity: .55;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.site-head {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-head__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: var(--max);
    height: 64px;
    margin: 0 auto;
    padding: 0 12px 0 var(--gut);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--ink);
}

/*
 * The brand asset is one SVG lockup (mark + wordmark) at 3162x658, the same file the old
 * front's header uses. Height is what we control; width follows the ratio, and the width/height
 * attributes on the <img> keep the box reserved so the header does not jump.
 */
.brand__img {
    display: block;
    height: 34px;
    width: auto;
    background: none;
}

.brand__img--sm {
    height: 30px;
}

.site-nav {
    display: none;
}

.site-head__end {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-head__cta {
    display: none;
}

.m-nav {
    display: flex;
    flex-direction: column;
    padding: 6px var(--gut) 14px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.m-nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
    padding: 26px 0 0;
}

.hero__copy {
    padding: 0 var(--gut);
}

.hero__title {
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.035em;
}

.hero__mark {
    background: var(--accent);
    padding: 0 6px;
    border-radius: 8px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero__lede {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-3);
}

.hero__photo {
    margin: 20px var(--gut) 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    /* The search card slides up over this photo by 44px (see .search), so the band the visitor
       actually sees is the box MINUS that overlap. The mockup's 358x170 box left only ~126px of
       photo on screen: a sliver that reads as a cropped accident rather than a banner. The box
       carries the overlap itself and then some -- 358/280 leaves ~230px visible on a 390px
       screen, enough for the mountains, the skyline and the water to read as one picture. */
    aspect-ratio: 358 / 280;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The skyline photo is portrait; the mobile frame is a wide band. 20% keeps the mountains and
       the downtown towers in it instead of the rail line along the bottom. The card covers the
       lower 44px, so the subject sits above centre. */
    object-position: 50% 20%;
}

/* ── Search card ────────────────────────────────────────────────────────────── */

.search {
    position: relative;
    margin: -44px 12px 0;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seg {
    display: grid;
    gap: 2px;
    padding: 4px;
    border-radius: var(--r-md);
    background: var(--track);
}

.seg__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.seg__item[aria-current='page'] {
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(15, 42, 58, .14);
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.tabs__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tabs__tab[aria-current='true'] {
    border-bottom-color: var(--brand);
    color: var(--ink);
    font-weight: 700;
}

.field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--muted);
}

.field input,
.field select {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: var(--ink);
    outline: none;
}

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

.chips__label {
    font-size: 14px;
    color: var(--muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

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

.city-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 10px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
}

.city-card[aria-current='true'] {
    border-color: var(--brand);
    background: var(--brand-tint);
}

.city-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

/* The card stopped being one <a> when the type links moved inside it — nested links are invalid
   HTML. This gives the whole card back as a tap target for the city link, while the type links
   sit above the overlay and keep their own. */
.city-card__name::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.city-card__meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 13px;
    color: var(--muted);
}

/* One link per listing type, because a city's free inventory is not all one thing: Coquitlam has
   rooms AND whole townhouses, and each goes to its own hub. The card name stays a link of its
   own — nesting these inside it would be invalid HTML. */
.city-card__type {
    color: var(--brand-deep);
    text-decoration: underline;
    text-decoration-color: var(--line-2);
    text-underline-offset: 2px;
}

.city-card__type:hover,
.city-card__type:focus-visible {
    text-decoration-color: var(--brand);
}

.city-card__none {
    color: var(--muted);
}

.city-card[aria-current='true'] .city-card__meta,
.city-card[aria-current='true'] .city-card__none {
    color: var(--brand-deep);
}

/*
 * Mobile: the foot is a column with the button pinned to the right, so the primary action sits
 * bottom-right of the card exactly as it does on desktop. Without a base rule the note is an
 * inline <a> and the button an inline-flex box, so they flowed as one paragraph: the button
 * landed wherever the note's last line happened to end. The desktop block turns this back into
 * a row (see .search__foot there).
 */
.search__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.search__foot .search__note {
    align-self: stretch;
}

.search__note {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--link);
}

.search__fine {
    font-size: 13px;
    color: var(--muted);
}

.search__row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */

.sec {
    padding: 40px 0 0;
}

/*
 * The home page is the one ng page whose sections are NOT inside a .wrap: its hero lays the
 * gutter out per component (.hero__copy, .hero__photo) and everything below it was left without
 * one. Under 1024px — where .sec gains no side padding of its own — that ran the page edge to
 * edge from the first section down: headings flush against the screen, and the rounded corners
 * of every listing card, the dark map panel and the CTA panel clipped off at both sides.
 *
 * The gutter cannot go on .sec itself. home_view.tpl also carries a .sec and that one IS inside
 * a .wrap, so it would be indented twice, out of line with the rest of its own page.
 *
 * Above 1024px this resolves to the same var(--gut) the .sec rule there already sets, so it
 * changes nothing on desktop.
 */
.p-home .sec {
    padding-left: var(--gut);
    padding-right: var(--gut);
}

.sec__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sec__title {
    font-size: clamp(24px, 6.5vw, 28px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.025em;
}

.sec__sub {
    margin-top: 6px;
    font-size: 15px;
    color: var(--muted);
}

.sec__sub strong {
    color: var(--ink);
}

.sec__more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
}

/* ── Lifestyle tiles ───────────────────────────────────────────────────────── */

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

.life__tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 12px;
    border: 2px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
}

/*
 * The icon and the label ride ON the photo, on a translucent white band across its top.
 *
 * The band is what makes the brand yellow usable here. A bare badge sat on whatever the photo
 * happened to put under it — a pale sky on one tile, a dark tree line on the next — so it
 * needed its own white plate and the yellow had nothing to hold it. One band across the full
 * width is a single, predictable surface, so the icon keeps the accent and the label stays
 * navy on near-white whatever the photo does.
 *
 * .45 is chosen to let the photo through, and at that alpha the VEIL ALONE does not carry the
 * label. Measured on the five photos as shipped — darkest 2% of what each one puts under the
 * text, composited with the veil, against --ink #0F2A3A:
 *
 *   campus 3.8:1   downtown 3.9:1   skytrain 7.1:1   park 3.8:1   grocery 3.9:1
 *
 * Four of the five are under AA's 4.5:1. Only skytrain clears it, and only because its band
 * happens to sit on pale sky. At .62 every tile was 6.2:1 or better.
 *
 * So the halo on .life__name is not a refinement here, it is the other half of the mechanism:
 * it keeps the glyphs off the photo whatever the photo does. The contrast formula gives no
 * credit for a text-shadow, so this is a deliberate trade of a formal score for a lighter
 * veil, not a passing one — worth knowing before trusting the figures above as headroom.
 *
 * If a future photo has to pass on the veil alone, .62 is the value that did it.
 *
 * backdrop-filter is a refinement either way: Firefox has it behind a flag and a browser drops
 * it when short of GPU memory, so it can never be what keeps the text readable.
 */
.life__head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    /*
     * Two lines of the label, reserved whether or not it needs them. At phone width the tile
     * leaves ~145px for text, so "Near SkyTrain" wraps while "Near a park" beside it does not,
     * and the two bands in that row would be different depths. Reserving the space keeps the
     * band one height across the row; a one-line label centres in it.
     */
    min-height: 38px;
}

.life__ic {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--ink);
}

.life__name {
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;

    /*
     * A soft white halo, so the veil above can stay faint enough to see the photo through.
     * Tight radius and no offset: at this size it reads as the glyphs being crisp, not as a
     * glow, and on the pale part of a band it is invisible.
     */
    text-shadow: 0 0 6px rgba(255, 255, 255, .85);
}

/*
 * Tall enough that the band covers the top of the photo rather than most of it: the band and
 * its padding take ~56px, so a 104px photo would be more white than picture.
 *
 * The placeholder is sized with it. img() returns a <span class="ph"> when the source is
 * missing — the normal state on a dev box — and .ph's own min-height is 120px, so without this
 * a tile with no photo would be taller than its neighbours.
 */
.life__tile img,
.life__tile .ph {
    display: block;
    width: 100%;
    height: 150px;
    min-height: 0;
    margin-bottom: 10px;
    object-fit: cover;
}

.life__note {
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

/* ── Listing cards ─────────────────────────────────────────────────────────── */

.cards {
    display: grid;
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
}

.card__media {
    position: relative;
    /* The frame is a flex item, so without `overflow: hidden` its automatic minimum size is the
       photo's own height and a portrait upload stretches the card past this ratio. */
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--track);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 18px;
}

.card__metric {
    align-self: flex-start;
}

.card__main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.card__title a {
    color: var(--ink);
}

.card__title a:hover {
    color: var(--link-hover);
}

.card__area {
    margin-top: 2px;
    font-size: 14px;
    color: var(--muted);
}

.card__desc {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.card__price {
    flex-shrink: 0;
    text-align: right;
}

.card__amount {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.card__per {
    font-size: 12px;
    color: var(--muted);
}

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

.card__acts .btn {
    min-height: 46px;
    padding: 0 10px;
}

/* A room-by-room home carries "View rooms" alone: let it fill the row. */
.card__acts .btn:only-child {
    grid-column: 1 / -1;
}

/* ── Map teaser (inside the search card) ───────────────────────────────────── */

.map-teaser {
    position: relative;
    display: block;
    height: 150px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #E8EFEA;
}

.map-teaser .map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    /* The panel is a wide, short window and the picture is not that shape. Without this the
       browser STRETCHES a real map to fill it - street names squashed, everything distorted.
       It was harmless when this held a hand-drawn SVG with preserveAspectRatio="none", which
       was meant to stretch; it is not harmless for a photograph of a city. Crop instead. */
    object-fit: cover;
}

.map-teaser__tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    line-height: 1.3;
}

/* ── Map promo ─────────────────────────────────────────────────────────────── */

.promo {
    margin-top: 40px;
    overflow: hidden;
    border-radius: var(--r-2xl);
    background: var(--ink);
    color: #fff;
}

.promo__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 22px;
}

.promo__title {
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

.promo__text {
    font-size: 15px;
    line-height: 1.55;
    color: #C9D6DC;
}

.promo .btn {
    align-self: flex-start;
}

.promo__map {
    position: relative;
    min-height: 220px;
    background: #E8EFEA;
}

.promo__map img,
.promo__map .map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo__pin {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 42, 58, .22);
}

.promo__pin--hi {
    background: var(--ink);
    color: #fff;
}

/* ── Steps ─────────────────────────────────────────────────────────────────── */

.steps {
    display: grid;
    gap: 14px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
}

.step__n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 17px;
    font-weight: 800;
}

.step__h {
    font-size: 18px;
    font-weight: 700;
}

.step__t {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

/* ── CTA strip ─────────────────────────────────────────────────────────────── */

.cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 22px;
    border-radius: var(--r-2xl);
    background: var(--brand-tint);
}

.cta__title {
    font-size: 22px;
    font-weight: 800;
}

.cta__text {
    margin-top: 6px;
    font-size: 15px;
    color: var(--ink-2);
}

.cta__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq {
    display: grid;
    gap: 10px;
}

.faq__item {
    padding: 4px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: '+';
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
}

.faq__item[open] .faq__q::after {
    content: '\2212';
}

.faq__a {
    padding: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

/* ── Empty state ───────────────────────────────────────────────────────────── */

.empty {
    padding: 28px 20px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-xl);
    background: var(--surface);
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-foot {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-foot__in {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--gut) 40px;
}

.site-foot__brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-foot__legal {
    font-size: 13px;
    color: var(--muted);
}

.site-foot__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.site-foot__col {
    display: flex;
    flex-direction: column;
}

.site-foot__h {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}

.site-foot__col a {
    display: flex;
    align-items: center;
    min-height: 34px;
    font-size: 15px;
    color: var(--ink);
}

.site-foot__col a:hover {
    color: var(--link-hover);
}

/* ── Tablet ────────────────────────────────────────────────────────────────── */

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

    .life {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .city-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 28px 32px;
    }

    .site-foot__cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ── Desktop: the 1440px design ────────────────────────────────────────────── */

@media (min-width: 1024px) {
    :root {
        --gut: 48px;
    }

    .site-head__in {
        height: 80px;
        padding: 0 var(--gut);
    }

    .brand__img {
        height: 40px;
    }

    .brand__img--sm {
        height: 34px;
    }

    .site-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-right: auto;
        margin-left: 28px;
    }

    .site-nav__link {
        display: flex;
        align-items: center;
        height: 44px;
        padding: 0 14px;
        color: var(--ink);
        font-size: 15px;
        font-weight: 600;
    }

    .site-nav__link:hover {
        color: var(--link-hover);
    }

    .site-head__cta {
        display: inline-flex;
    }

    .site-head__burger,
    .m-nav {
        display: none;
    }

    /*
     * Two columns: copy then search card down the left, photo spanning both rows on the right.
     *
     * The DOM order stays copy -> photo -> search, which is the order the mobile design needs
     * (the search card slides up over the photo). Explicit grid placement re-orders it for
     * desktop without a second markup path, and without the reading order diverging from the
     * visual order in a way that would hurt keyboard and screen-reader users.
     */
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
        grid-template-rows: auto 1fr;
        column-gap: 48px;
        row-gap: 22px;
        align-items: start;
        width: 100%;
        max-width: var(--max);
        margin: 0 auto;
        padding: 56px var(--gut) 0;
    }

    .hero__copy {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .hero__photo {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .search {
        grid-column: 1;
        grid-row: 2;
    }

    .hero__title {
        font-size: clamp(44px, 4.2vw, 60px);
        line-height: 1.02;
        letter-spacing: -.04em;
    }

    .hero__mark {
        padding: 0 10px;
        border-radius: 12px;
    }

    .hero__lede {
        margin-top: 0;
        font-size: 18px;
        line-height: 1.55;
    }

    .hero__photo {
        margin: 0;
        border-radius: 28px;
        aspect-ratio: 520 / 620;
    }

    .search {
        margin: 0;
        padding: 18px;
        border-radius: var(--r-2xl);
        box-shadow: 0 16px 40px rgba(15, 42, 58, .10);
        gap: 16px;
    }

    .search__top {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 1px solid var(--line);
    }

    .tabs {
        display: flex;
        border-bottom: 0;
    }

    .tabs__tab {
        flex-direction: row;
        gap: 8px;
        height: 52px;
        padding: 0 16px;
        font-size: 15px;
    }

    .seg {
        display: flex;
    }

    .seg__item {
        min-height: 36px;
        padding: 0 12px;
    }

    .field {
        min-height: 56px;
        padding: 0 16px;
        border-radius: var(--r-md);
    }

    .chip {
        min-height: 36px;
        padding: 0 14px;
        font-size: 14px;
    }

    .city-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .city-card {
        min-height: 68px;
    }

    .search__foot {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .search__note {
        font-size: 14px;
    }

    .search__foot .btn {
        flex-shrink: 0;
        min-height: 54px;
        padding: 0 26px;
        font-size: 16px;
    }

    .sec {
        width: 100%;
        max-width: var(--max);
        margin: 0 auto;
        padding: 72px var(--gut) 0;
    }

    /* The side gutter above is for the home page, whose sections sit outside any .wrap. Inside
       one the .wrap already supplies it, and a second one indents every section 40px past the
       page heading above it. */
    .wrap .sec {
        padding-left: 0;
        padding-right: 0;
    }

    /*
     * The first section after the hero sits closer than the 72px every other section gets. The
     * hero is a two-column grid whose height is the TALLER of the search card and the photo, so
     * whichever is shorter leaves dead space under it before the section gap even starts -- and
     * the search card is shortest on the By city tab, where the panel is one grid of five small
     * cards. 72px on top of that read as a hole between the hero and "Start from your routine".
     *
     * Only the hero-adjacent section is pulled in; section-to-section spacing further down the
     * page is unchanged. Mobile keeps its 40px: there the card and the photo stack, so there is
     * no dead space to compound and the gap already reads right.
     */
    .p-home .hero + .sec {
        padding-top: 32px;
    }

    .sec__title {
        font-size: 38px;
        line-height: 1.1;
        letter-spacing: -.03em;
    }

    .sec__sub {
        font-size: 17px;
    }

    .life {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }

    .life__tile {
        padding: 0 0 14px;
    }

    .life__tile img,
    .life__tile .ph {
        height: 176px;
        margin-bottom: 12px;
    }

    .life__head {
        padding: 10px 14px;
    }

    .life__ic {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .life__name {
        font-size: 16px;
    }

    .life__note {
        padding: 0 14px;
        font-size: 14px;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .card__media {
        aspect-ratio: 4 / 3;
    }

    .card__body {
        padding: 20px 22px 22px;
        gap: 14px;
    }

    .card__title {
        font-size: 21px;
    }

    .card__amount {
        font-size: 20px;
    }

    .promo {
        display: grid;
        grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
        margin-top: 0;
        border-radius: 28px;
    }

    .promo__body {
        justify-content: center;
        gap: 14px;
        padding: 44px;
    }

    .promo__title {
        font-size: 34px;
    }

    .promo__text {
        font-size: 17px;
    }

    .promo__map {
        min-height: 340px;
    }

    .steps {
        gap: 24px;
    }

    .step {
        padding: 28px;
    }

    .step__h {
        font-size: 20px;
    }

    .step__t {
        font-size: 16px;
    }

    .cta {
        padding: 32px 40px;
    }

    .cta__title {
        font-size: 26px;
    }

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

    .site-foot {
        margin-top: 64px;
    }

    .site-foot__in {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
        padding: 40px var(--gut) 52px;
    }

    .site-foot__cols {
        display: flex;
        gap: 56px;
    }

    .crumbs {
        padding-top: 22px;
        font-size: 14px;
    }

    .res-head {
        padding: 18px 0 22px;
    }

    .res-head__title {
        font-size: 40px;
    }

    .res-head__sub {
        font-size: 17px;
    }

    .filters__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .elsewhere__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .prose {
        padding-top: 56px;
    }

    .prose h2 {
        font-size: 26px;
    }

    /* Detail page: content and a sticky booking box side by side. */
    .det {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 48px;
        padding-top: 28px;
    }

    .det__title {
        font-size: 36px;
    }

    .det__side {
        position: sticky;
        top: 20px;
    }

    .specs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .amen {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .locmap {
        height: 300px;
    }

    .stickybar {
        display: none;
    }

    /* Map and list side by side, the map holding the taller column. */
    .mapwrap {
        grid-template-columns: minmax(0, 1fr) 420px;
        max-width: var(--max);
        margin: 10px auto 0;
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        overflow: hidden;
    }

    .mapwrap__canvas {
        height: 72vh;
        min-height: 520px;
    }

    .maplist {
        max-height: 72vh;
        border-left: 1px solid var(--line);
    }
}


/* ── Results page ──────────────────────────────────────────────────────────── */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 16px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.crumbs a::after {
    content: '/';
    margin-left: 6px;
    color: var(--line-2);
}

.crumbs [aria-current] {
    color: var(--ink);
    font-weight: 600;
}

.res-head {
    padding: 14px 0 18px;
}

.res-head__title {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
}

.res-head__sub {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

.res-types {
    display: inline-grid;
    grid-auto-flow: column;
    margin-bottom: 14px;
}

.filters {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

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

.filters__f {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filters__l {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.filters__f input,
.filters__f select {
    min-height: 44px;
    padding: 0 10px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: 15px;
}

.filters__checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.filters__c {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filters__c input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.filters__go {
    margin-left: auto;
    min-height: 44px;
}

.filters__reset {
    font-size: 14px;
    font-weight: 600;
}

.res-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 14px;
}

.res-bar__count {
    font-size: 15px;
    font-weight: 700;
}

.res-bar__map {
    min-height: 42px;
    padding: 0 14px;
}

.card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card__facts li {
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

/* The free rooms of a room card: one link per row, to that room on the house page. */
.card__rooms {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.card__room {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink);
}

.card__room:hover,
.card__room:focus-visible {
    color: var(--link-hover);
    background: var(--surface-2);
}

.card__room-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.card__room-meta {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.card__room-meta:empty {
    display: none;
}

.card__room-price {
    font-weight: 700;
    white-space: nowrap;
}

.card__room-when {
    min-width: 52px;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
    color: var(--muted);
}

.card__room--more {
    justify-content: center;
    font-weight: 600;
    color: var(--link);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 0 0;
}

.pager__step {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.pager__at {
    font-size: 14px;
    color: var(--muted);
}

/* Homes with nothing free, listed at the foot of the hub so their pages keep an internal link.
   A compact greyed row with a dark "Fully rented" badge and a waitlist button — it must not read
   as an offer at a glance. */
.letgroup {
    padding: 40px 0 0;
}

.letgroup__h {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.letgroup__h::before,
.letgroup__h::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--line-2);
}

.letgroup__sub {
    max-width: 60ch;
    margin: 6px 0 16px;
    font-size: 14px;
    color: var(--muted);
}

.letcards {
    display: grid;
    gap: 16px;
}

.letcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.letcard__row {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
}

.letcard__media {
    position: relative;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 12px;
}

.letcard__media img,
.letcard__media .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.7);
    opacity: .7;
}

.letcard__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.letcard__badge,
.gal__let {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.letcard__addr {
    font-size: 16px;
    font-weight: 700;
}

.letcard__area {
    font-size: 13px;
    color: var(--muted);
}

.letcard__wait {
    gap: 8px;
    min-height: 48px;
}

.res-near {
    margin: -6px 0 16px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    background: #FFF8D6;
    font-size: 14px;
    color: var(--ink-2);
}

.elsewhere {
    padding: 40px 0 0;
}

.elsewhere__h {
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 700;
}

.elsewhere__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.elsewhere__list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 36px;
    font-size: 15px;
}

.elsewhere__list span {
    font-size: 13px;
    color: var(--muted);
}

.prose {
    padding: 40px 0 0;
}

.prose h2 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.prose p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
}


/* ── Detail page ───────────────────────────────────────────────────────────── */

.gal {
    margin-top: 12px;
}

.gal__strip {
    display: flex;
    gap: 8px;
    padding: 0 var(--gut);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gal__strip::-webkit-scrollbar {
    display: none;
}

.gal__shot {
    flex: 0 0 92%;
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
    background: var(--track);
}

.gal__shot img,
.gal__shot .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal__count {
    padding: 8px var(--gut) 0;
    font-size: 13px;
    color: var(--muted);
}

/*
 * The photo viewer.
 *
 * The desktop mosaic shows five photos and hides the rest (.gal__shot:nth-child(n + 6), in the
 * media block right below), and a mosaic has nowhere to swipe: before this there was no way at
 * all to reach photo six on a desktop, while the mobile strip scrolled through every one of them.
 * The tile and the opener both lead into .lb, which is where the remaining photos actually live.
 */
.gal__shot[role="button"] {
    cursor: zoom-in;
}

.gal__more {
    display: none;
    position: absolute;
    /* The mosaic is max-width: var(--max) and centred, while .gal is full width — so on a screen
       wider than --max the gutter is no longer at the viewport edge and the button would float
       off the last photo. */
    right: max(calc(var(--gut) + 10px), calc(50% - var(--max) / 2 + var(--gut) + 10px));
    bottom: 42px;
    padding: 9px 16px;
    border: 1px solid var(--ink);
    border-radius: var(--r-pill);
    background: var(--surface);
    font: 600 14px var(--sans);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.gal__more:hover {
    background: var(--surface-2);
}

.lb {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 12px 24px;
    background: rgba(8, 20, 28, .94);
}

.lb[hidden] {
    display: none;
}

.lb__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #fff;
}

.lb__count {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.lb__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}

.lb__btn:hover {
    background: rgba(255, 255, 255, .26);
}

/* display: flex above would otherwise outrank the UA's [hidden] rule and keep the arrows on a
   one-photo gallery. */
.lb__btn[hidden] {
    display: none;
}

.lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lb__nav--prev {
    left: 10px;
}

.lb__nav--next {
    right: 10px;
}

/* The stage holds a clone of the tile's own <img>, srcset and all, so the browser picks a
   larger candidate for the larger box without a second URL being invented here. */
.lb__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0;
}

.lb__stage img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--r-md);
    object-fit: contain;
}

.lb__stage .ph {
    width: 100%;
    max-width: 560px;
    height: 60vh;
    border-radius: var(--r-md);
}

body.lb-open {
    overflow: hidden;
}

/*
 * The desktop mosaic. It lives HERE, after the base .gal rules, and not in the big
 * @media (min-width: 1024px) block above — that block sits at line ~1179, ahead of the whole
 * "Detail page" section, so every property it set on .gal__strip / .gal__shot was overridden by
 * the base rule of the same specificity further down the file. The mosaic never rendered: a
 * desktop visitor got the mobile strip, with its scrollbar hidden and nothing to swipe, holding
 * the first five photos and no way to reach them. That is the bug this section fixes.
 *
 * Other rules in that block are beaten the same way (.specs, .amen, .filters__grid, .locmap,
 * .mapwrap__canvas and more). They are left alone here — moving the whole block is a layout
 * change across the site, not a gallery fix.
 */
@media (min-width: 1024px) {
    .gal__strip {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-auto-rows: 1fr;
        gap: 10px;
        max-width: var(--max);
        margin: 0 auto;
        padding: 0 var(--gut);
        overflow: visible;
    }

    .gal__shot {
        flex: none;
        aspect-ratio: auto;
    }

    /* A three-up mosaic: the first photo takes the tall left column. */
    .gal__shot:first-child {
        grid-row: 1 / span 2;
        min-height: 420px;
    }

    .gal__shot:nth-child(n + 6) {
        display: none;
    }

    /* :not([hidden]) because the author stylesheet outranks the UA's [hidden] rule — without
       it this would show the opener with JavaScript off, where it opens nothing. */
    .gal__more:not([hidden]) {
        display: block;
    }

    .gal__count {
        max-width: var(--max);
        margin: 0 auto;
    }
}

.gal {
    position: relative;
}

.gal__let {
    position: absolute;
    top: 12px;
    left: var(--gut);
}

.letbanner {
    margin-top: 20px;
    padding: 18px;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: #fff;
}

.letbanner__h {
    font-size: 18px;
    font-weight: 700;
}

.letbanner__p {
    margin: 6px 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #D6E2E8;
}

.letbanner .btn {
    gap: 8px;
}

.det__hrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.det__hsub {
    font-size: 14px;
    color: var(--muted);
}

/*
 * Whole places: a cell of the room grid, not a band under it.
 *
 * Mobile is a white card with a dark button, desktop a navy card with the yellow one - the two
 * the mockup draws, and not one stretched over both: a full-width navy block is the heaviest
 * thing on a phone screen, while in a row of three white cards navy is what makes the tile read
 * as a different kind of offer rather than a fourth listing.
 *
 * These rules sit here, after the late @media (min-width: 1024px) block above, and the desktop
 * half gets a media block of its own BELOW them - see the .gal note: a desktop rule written up
 * there is beaten by any base rule of equal specificity further down the file.
 */
.wholecard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    color: var(--ink);
}

.wholecard:hover {
    color: var(--ink);
}

.wholecard__art {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    height: 132px;
}

.wholecard__stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    min-height: 0;
}

.wholecard__shot {
    display: block;
    overflow: hidden;
    min-height: 0;
    border-radius: 12px;
    background: var(--track);
}

.wholecard__shot--big {
    border-radius: 14px;
}

.wholecard__shot img,
.wholecard__shot .ph {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.wholecard__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wholecard__title {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

.wholecard__text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
}

.wholecard__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--r-md);
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Two columns: two cards fill the first row, so the tile spans rather than sitting in a half
   row beside an empty cell. */
@media (min-width: 640px) and (max-width: 1023px) {
    .wholecard {
        grid-column: 1 / -1;
    }

    .wholecard__art {
        height: 180px;
    }
}

@media (min-width: 1024px) {
    .wholecard {
        gap: 0;
        padding: 0;
        border: 0;
        background: var(--ink);
        color: #fff;
    }

    .wholecard:hover {
        color: #fff;
    }

    .wholecard__art {
        gap: 4px;
        height: 250px;
    }

    .wholecard__stack {
        gap: 4px;
    }

    .wholecard__shot,
    .wholecard__shot--big {
        border-radius: 0;
        background: #16384B;
    }

    .wholecard__body {
        gap: 10px;
        padding: 22px;
    }

    .wholecard__title {
        font-size: 24px;
    }

    .wholecard__text {
        font-size: 16px;
        line-height: 1.5;
        color: #C9D6DC;
    }

    .wholecard__cta {
        margin-top: auto;
        min-height: 48px;
        background: var(--accent);
        color: var(--ink);
    }
}

.site-foot__addr {
    margin-top: 6px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
}

.mapfilters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mapfilters .seg {
    display: inline-grid;
    grid-auto-flow: column;
}

.maplist__i--full .maplist__media img,
.maplist__i--full .maplist__media .ph {
    filter: grayscale(.7);
    opacity: .7;
}

/* Hide full homes: list rows and map pins both carry data-full. */
.hide-full [data-full] {
    display: none;
}

.det {
    display: grid;
    gap: 24px;
    padding: 20px 0 0;
}

.det__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.det__badges .pill {
    border: 1px solid var(--line);
}

.det__title {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
}

.det__area {
    margin-top: 6px;
    font-size: 16px;
    color: var(--muted);
}

.det__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
}

.det__price strong {
    font-size: 24px;
    font-weight: 800;
}

.det__price span {
    font-size: 14px;
    color: var(--muted);
}

.det__sec {
    padding-top: 30px;
}

.det__h {
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.det__p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
}

/* "What's nearby" — the admin-approved places on a house page, grouped by category.
   One card per kind, each headed by an icon badge, with the distance as a pill on the right of
   every place: the eye can run down the icons without reading a name, and down the pills
   without reading a kind. The figures are identical to the old two-column list. */

.det__h3 {
    margin: 22px 0 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.det__note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-3, var(--ink-2));
}

.plc {
    display: grid;
    /* auto-fit, so one approved category fills the width and six lay out two or three to a row.
       The 230px floor is what "Como Lake Ave (WB) at Elmwood St" needs before it wraps to four
       lines - that is what a real bus stop is called. */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plc__g {
    padding: 14px 15px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.plc__k {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.plc__ic {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-pill);
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.plc__l {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plc__i {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    line-height: 1.45;
}

.plc__n {
    color: var(--ink-2);
}

/* The operator or the branch, under the name rather than beside it: beside it, the distance
   pill is pushed off the end of the row by text nobody reads first. */
.plc__d {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    color: var(--ink-3, var(--ink-2));
}

.plc__m {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    background: var(--track);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--ink-3);
}

.plc__m--near {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

/* Room list */

.roomlist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.roomlist__i {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.roomlist__i--taken {
    background: var(--bg);
    color: var(--muted);
}

.roomlist__n {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.roomlist__m {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}

.roomlist__r {
    flex-shrink: 0;
    text-align: right;
}

.roomlist__p {
    display: block;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.roomlist__s {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

/* The whole row is the link, but the accessible name stays on the anchor. */
.roomlist__go {
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    font-size: 0;
    color: transparent;
}

.roomlist__i:has(.roomlist__go):hover {
    border-color: var(--brand);
}

/* Sits above the row-wide .roomlist__go overlay, so it books instead of opening the room. */
.roomlist__book {
    position: relative;
    z-index: 1;
    flex: 1 0 100%;
    min-height: 40px;
    font-size: 14px;
}

.roomlist__i:has(.roomlist__book) {
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .roomlist__book {
        flex: 0 0 auto;
    }

    .roomlist__i:has(.roomlist__book) .roomlist__r {
        margin-left: auto;
    }
}

/* Specs */

.specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.specs__i {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.specs__ic {
    color: var(--brand-deep);
}

.specs__v {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
}

.specs__k {
    font-size: 13px;
    color: var(--muted);
}

/* Amenities */

.amen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.amen__i {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 15px;
}

.amen__i svg {
    flex-shrink: 0;
    color: var(--brand);
}

/* Location */

.locmap {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #E8EFEA;
}

.locmap .map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    /* The panel is a wide, short window and the picture is not that shape. Without this the
       browser STRETCHES a real map to fill it - street names squashed, everything distorted.
       It was harmless when this held a hand-drawn SVG with preserveAspectRatio="none", which
       was meant to stretch; it is not harmless for a photograph of a city. Crop instead. */
    object-fit: cover;
}

.locmap__tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: var(--r-sm);
}

/* Trust */

.trust {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust__i {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--ink-2);
}

.trust__i svg {
    flex-shrink: 0;
    color: var(--brand);
}

/* An in-page notice (a room that is let, a home that is gone) */

.notice {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line-2);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}

/* Booking box */

.book {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.book__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.book__price strong {
    font-size: 22px;
    font-weight: 800;
}

.book__price span {
    font-size: 13px;
    color: var(--muted);
}

.book__when {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-deep);
}

.book__note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Sticky action bar, mobile only */

.stickybar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 32px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.stickybar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px var(--gut);
}

.stickybar__p strong {
    font-size: 17px;
    font-weight: 800;
}

.stickybar__p span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

/* The main CTA and a WhatsApp shortcut side by side, so "Ask a question" is one tap away
   without scrolling down to the booking box. The icon carries no text, which leaves the CTA
   the room for its longest label. */
.stickybar__acts {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.stickybar__cta {
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.2;
    text-wrap: balance;
}

.stickybar__ask {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: #25D366;
    color: #FFFFFF;
}

.stickybar__ask:hover {
    background: #1EBE5A;
    color: #FFFFFF;
}

/* ── Map page ──────────────────────────────────────────────────────────────── */

.mapwrap {
    display: grid;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.mapwrap__canvas {
    position: relative;
    height: 58vh;
    min-height: 320px;
    background: #E8EFEA;
}

.mapwrap__live {
    position: absolute;
    inset: 0;
}

.mapwrap__static {
    position: absolute;
    inset: 0;
}

.mapwrap__static .map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mapwrap__note {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
}

.mapwrap__tools {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.mapwrap__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 42, 58, .14);
}

.mapwrap__btn input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

/* The draw-to-search instructions. No `display` property: the element carries the `hidden`
   attribute and any display here would override it. */
.mapwrap__hint {
    flex-basis: 100%;
    max-width: 300px;
    /* It sits over the map while the visitor is clicking corners into it, and it is not
       interactive: a corner dropped under it has to reach the map, not stop here. */
    pointer-events: none;
    margin: 0;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(15, 42, 58, .14);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
}

/* The price pills drawn as advanced markers. */
.gmpin {
    display: inline-block;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: var(--surface);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(15, 42, 58, .28);
    white-space: nowrap;
}

.gmpin--on {
    background: var(--ink);
    color: #fff;
}

.gmpin--let {
    background: #E2E8EB;
    color: #55656F;
}

.maplist {
    max-height: 52vh;
    overflow-y: auto;
    padding: 12px var(--gut) 20px;
}

/* The OpenStreetMap credit the map picture requires. Quiet, but present on every page. */
.site-foot__credit {
    margin: 18px 0 0;
    font-size: 12px;
    color: var(--ink-3, var(--ink-2));
    opacity: .85;
}

/* "You are looking at one home" — the banner that makes the muted pins read as a choice. */
.maplist__focus {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--tint, #EEF3F6);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-2);
}

.maplist__focus a {
    white-space: nowrap;
}

.maplist__count {
    padding: 4px 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.maplist__ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maplist__a {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
}

.maplist__i--on .maplist__a {
    border-color: var(--brand);
    background: var(--brand-tint);
}

.maplist__media {
    flex: 0 0 84px;
    height: 68px;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--track);
}

.maplist__media img,
.maplist__media .ph {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.maplist__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.maplist__kind {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-deep);
}

.maplist__addr {
    font-size: 15px;
    font-weight: 700;
}

.maplist__area {
    font-size: 13px;
    color: var(--muted);
}

.maplist__price {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 800;
}

.maplist__price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

/* ── Motion ────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ── For landlords ─────────────────────────────────────────────────────────── */

/*
 * `.filters__f--wide` is used by owners_view.tpl and commute_view.tpl and had no rule at all,
 * so a field that is meant to span the row sat in one half of the two-column grid. An address
 * is the one input on both pages that needs the full width.
 */
.filters__f--wide {
    grid-column: 1 / -1;
}

/* The textarea was the one control .filters never styled: a form with one unstyled field in
   the middle of it reads as broken, not as plain. */
.filters__f textarea {
    padding: 10px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

.notice--ok {
    border-left-color: var(--brand);
}

.notice--bad {
    border-left-color: #C0392B;
}

.own-trust {
    margin-top: 6px;
}

/* Four services, so 3-up (the .steps default above 640px) would leave one stranded on its own
   row. Two and two, then all four across on desktop. */
.own-steps {
    grid-template-columns: minmax(0, 1fr);
}

.own-form {
    margin-top: 4px;
}

.own-errs {
    margin: 6px 0 0;
    padding-left: 18px;
}

.own-note {
    flex: 1 1 240px;
    font-size: 13px;
    color: var(--muted);
}

.own-alt {
    margin-top: 14px;
    font-size: 15px;
    color: var(--ink-2);
}

/*
 * The honeypot: off-screen rather than display:none, because some bots skip hidden inputs and
 * filling it is the whole point. aria-hidden + tabindex="-1" in the markup keep it away from
 * people using a screen reader or the keyboard.
 */
.own-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .own-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .own-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ── Legal pages (privacy policy, terms of service) ────────────────────────── */

/*
 * These rules sit at the END of the file, and their desktop overrides are in their own @media
 * block below rather than in the big `@media (min-width: 1024px)` block at line ~1255. That
 * block is ahead of most of the component sections, so on equal specificity a base rule written
 * further down beats it — the same cascade trap that left the gallery mosaic never rendering.
 *
 * `.prose` already styles h2 + p for the one text section on the results page, but it has no
 * list, link or definition styling, and a policy is mostly lists. These are a separate, narrower
 * set rather than an extension of `.prose`, so changing how a policy reads cannot move the
 * results page's intro text.
 */

.legal {
    padding-bottom: 8px;
}

.legal__updated {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

.legal__sec {
    padding-top: 28px;
}

.legal__h {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
    color: var(--ink);
}

/* The number hangs beside the heading rather than inside its text, so a heading that wraps
   lines up under its first word and not under the digit. */
.legal__n {
    flex: none;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
}

.legal__p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
}

.legal__p:last-child {
    margin-bottom: 0;
}

/*
 * Plain flow, not `display: grid`. A grid (or flex) container blockifies its children, and a
 * blockified <li> loses its bullet in some engines — on a policy that is mostly lists, that
 * turns a list of obligations into an undifferentiated wall of lines. The gap is a margin.
 */
.legal__list {
    margin: 0 0 4px;
    padding-left: 22px;
    list-style: disc;
}

.legal__list li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
}

.legal__list li:last-child {
    margin-bottom: 0;
}

.legal__list strong {
    font-weight: 700;
    color: var(--ink);
}

.legal__nap {
    margin-top: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    font-size: 16px;
    font-style: normal;
    line-height: 1.8;
    color: var(--ink-2);
}

.legal__other {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-2);
}

/* Policy text is read, not scanned, so a link inside it has to be visible without a hover. */
.legal__p a,
.legal__list a,
.legal__other a,
.legal__nap a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal__p a:hover,
.legal__list a:hover,
.legal__other a:hover,
.legal__nap a:hover {
    color: var(--link-hover);
}

@media (min-width: 1024px) {
    .legal__sec {
        padding-top: 34px;
    }

    .legal__h {
        font-size: 22px;
    }
}

/* ── About us ──────────────────────────────────────────────────────────────────
 *
 * Page-local, prefixed `abt-`, in the same shape as the `own-` block above: the About page
 * reuses .sec / .prose / .steps / .specs / .chips / .cta wholesale and only adds what has no
 * counterpart anywhere else — the two-audience split and the tenant quotes.
 */

.abt-trust {
    margin-top: 6px;
}

/* .prose carries its own 40px top padding; the section already provides the rhythm here. */
.abt-prose {
    padding-top: 0;
}

/* The two audiences. One column on a phone, side by side from 640px — they are a pair, and a
   visitor reads only the half that is about them, so three across would be wrong at any width. */
.abt-sides {
    display: grid;
    gap: 14px;
}

.abt-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
}

.abt-side__h {
    font-size: 19px;
    font-weight: 800;
}

.abt-side__t {
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* Four of them, so the .steps default of 3-up would strand one on its own row — same reason
   .own-steps exists. */
.abt-steps {
    grid-template-columns: minmax(0, 1fr);
}

/* .step__n is a numbered yellow disc; here it holds an icon instead, so the number's font
   metrics are dropped and the stroke is set to the ink the disc sits against. */
.abt-ic {
    color: var(--ink);
    font-size: 0;
}

/* The same tiles as a listing's spec row, but here they are the point of the section rather
   than a detail beside a photo, so the number carries the weight. */
.abt-figs .specs__v {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.abt-chips {
    margin-top: 2px;
}

/* .sec__head is a flex row at every width, which works where the subtitle is three words
   ("Soonest move-in first"). This one names five cities, so on a phone it would squeeze into a
   column of three-word lines beside the link. Stacked below 640px, the shared row above it. */
.abt-wherehead {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.abt-revs {
    display: grid;
    gap: 14px;
}

.abt-rev {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.abt-rev__q {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

.abt-rev__by {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.abt-rev__by span {
    font-weight: 400;
    color: var(--muted);
}

@media (min-width: 640px) {
    .abt-wherehead {
        flex-direction: row;
        align-items: flex-end;
        gap: 16px;
    }

    .abt-sides,
    .abt-revs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .abt-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .abt-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* .specs has a 4-column desktop rule, but it lives in the early min-width:1024px block that
       its own base rule outranks (see the cascade note at .gal), so it never applies. Four
       counters have to sit on one line, so the override is repeated here, after the base rule. */
    .abt-figs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .abt-revs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* House page: the rooms of a home made of several packages, listed unit by unit, so an 8-room
   house of two 4-room floors reads as two flats of four. Each unit is its own card with an icon
   row; a single-package home renders one plain .unit with no head, which adds nothing. */

.unit + .unit {
    margin-top: 16px;
}

.unit--card {
    padding: 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--surface-2);
}

.unit__head {
    margin-bottom: 14px;
}

.unit__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.unit__h {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.unit__let {
    background: var(--track);
    color: var(--muted);
}

.unit__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.unit__fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.unit__fact svg {
    color: var(--brand-deep);
}

.unit__d {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-3);
}

/*
 * Running text is justified, so a paragraph reads as a set block with a straight right edge.
 * Only text that runs to several lines: headings, subtitles, counts and one-line notes stay
 * start-aligned, because justifying a single line does nothing and a centred one would break.
 *
 * hyphens: auto is what keeps justify readable on a phone. Without it a long word cannot split,
 * so a 330px column opens wide gaps between the words around it. It needs a language, which
 * _layout.tpl sets (lang="en-CA"). overflow-wrap lets an email or URL in the legal text break
 * instead of pushing past the column. The last line of each paragraph stays ragged
 * (text-align-last defaults to start), so a short closing line is not stretched across.
 *
 * Kept at the end of the file so no earlier base rule can override it.
 */
.hero__lede,
.prose p,
.legal__p,
.legal__list li,
.abt-side__t,
.abt-rev__q,
.det__p,
.unit__d,
.faq__a,
.step__t,
.cta__text,
.promo__text,
.letbanner__p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}
