/* Landing page. The hero photograph is a live listing; everything below is drawn from live data.
   One 1280px container with 80px margins at 1440 runs through the header, every section and the
   footer. Splits share a 12-column grid with 24px gutters. On desktop every section is one screen.
   Buttons, fields and selects come from kit.css. */

.property-app .app-header, .property-app .app-footer { padding-inline: max(32px, calc((100% - 1280px) / 2)); }
.property-app .app-footer :is(.app-footer-grid, .app-footer-legal, .footer-wordmark) { width: 100%; max-width: none; margin-inline: 0; }
.app-page-main:has(> .lp-hero) { padding: 0; }

.lp-wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }
.lp-section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px 64px; }
.lp-section h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.lp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.lp-split-head p, .lp-close-copy p { color: var(--body); }

.lp-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .lp-link:hover { text-decoration-color: currentColor; }
}

/* ===== Hero: an editorial cover. The headline sits on the plain ground, the live listing's
   photograph is a framed plate under it, and the search docks on the plate's lower edge.
   Starts under the header and ends on the first screen. ===== */
.lp-hero { min-height: max(640px, calc(100svh - var(--header-h))); display: flex; background: #fff; color: var(--ink); }
.lp-hero-inner { width: min(1280px, 100% - 64px); margin-inline: auto; padding-block: 48px 32px; display: grid; grid-template-rows: auto minmax(360px, 1fr); gap: 32px; }
.lp-hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.lp-hero h1 { grid-column: 1 / span 9; margin: 0; font-size: clamp(48px, 5.6vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.lp-hero-aside { grid-column: 10 / -1; display: grid; gap: 32px; padding-bottom: 8px; }
/* The advisor promise: an icon chip and one line in ink, not a grey footnote */
.lp-hero-note { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 16px; margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 22px; letter-spacing: -.01em; }
.lp-hero-note .premium-icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--n-100); color: var(--navy); }
/* Two real figures, number over label */
.lp-hero-facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 32px; margin: 0; padding-left: 56px; }
.lp-hero-facts > div { display: grid; gap: 4px; }
.lp-hero-facts dd { order: -1; margin: 0; font-size: clamp(32px, 2.6vw, 40px); font-weight: 500; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lp-hero-facts dt { color: var(--muted); font-size: 13px; line-height: 20px; }

/* The plate: photograph, listing chip and search share one grid cell */
.lp-hero-stage { position: relative; isolation: isolate; display: grid; grid-template: "plate" minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; }
.lp-hero-photo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; border-radius: var(--radius-panel); object-fit: cover; background: var(--n-100); animation: lp-plate 900ms var(--ease) both; }
/* A short shade along the foot only, so the white search reads as resting on the photograph */
.lp-hero-stage::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 40%; border-radius: 0 0 var(--radius-panel) var(--radius-panel); background: linear-gradient(0deg, rgba(10, 16, 32, .36), rgba(10, 16, 32, 0)); pointer-events: none; }
@keyframes lp-plate { from { clip-path: inset(6% 0 0 0 round var(--radius-panel)); } to { clip-path: inset(0 0 0 0 round var(--radius-panel)); } }

/* The search: one pill across the container, three fields and the action */
.lp-search { grid-area: plate; align-self: end; justify-self: start; width: min(100% - 48px, 880px); margin: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; align-items: center; padding: 8px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); box-shadow: 0 12px 32px -12px rgba(10, 16, 32, .4); }
.lp-search-field { position: relative; display: grid; align-content: center; min-width: 0; min-height: 48px; padding: 4px 24px; border-radius: var(--radius-pill); cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.lp-search-field + .lp-search-field::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 1px; background: var(--line); }
.lp-search-field > span { color: var(--muted); font-size: 12px; line-height: 16px; }
.lp-search-field select:not(.cselect-native), .lp-search-field input { width: 100%; min-width: 0; padding: 0; border: 0; background-color: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; line-height: 24px; outline: 0; appearance: none; cursor: pointer; }
.lp-search-field input { cursor: text; }
.lp-search-field input::placeholder { color: var(--muted); font-weight: 400; }
.lp-search-field:focus-within { background: var(--n-50); }
.lp-search-field:focus-within::before, .lp-search-field:focus-within + .lp-search-field::before { opacity: 0; }
.lp-search-field .cselect-trigger { color: var(--ink); }
.lp-search-field .cselect.is-placeholder .cselect-value { color: var(--ink); }
.lp-search-submit { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: 8px; padding: 0 24px; border: 0; border-radius: var(--radius-pill); background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.lp-search-submit:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
    .lp-search-field:hover { background: var(--n-50); }
    .lp-search-submit:hover { background: var(--navy-soft); }
}

/* The hero photograph is a live listing; this frosted chip opens it. */
.lp-hero-listing { grid-area: plate; align-self: start; justify-self: end; display: grid; grid-template-columns: minmax(0, auto) auto 32px; align-items: center; gap: 16px; max-width: 440px; margin: 24px; padding: 8px 8px 8px 20px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 12px 32px -16px rgba(10, 16, 32, .4); transition: background-color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.lp-hero-listing > span { display: grid; min-width: 0; }
.lp-hero-listing strong { overflow: hidden; font-size: 14px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.lp-hero-listing small { color: var(--body); font-size: 12px; line-height: 16px; }
.lp-hero-listing b { font-size: 16px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.lp-hero-listing b small { font-weight: 400; }
.lp-hero-listing .premium-icon { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--navy); color: #fff; transition: background-color var(--dur-fast) var(--ease); }
.lp-hero-listing:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
    .lp-hero-listing:hover { background: #fff; }
    .lp-hero-listing:hover .premium-icon { background: var(--gold); color: var(--navy); }
}

/* ===== Featured: a wall of photo panels. The open panel takes most of the width and carries a
   frosted card (the hero pill's grammar); the closed ones show a number and price tag. ===== */
.lp-wall { display: flex; gap: 12px; height: clamp(440px, calc(100svh - 304px), 600px); margin: 0; padding: 0; list-style: none; }
.lp-panel { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow 600ms var(--ease); }
.lp-panel > a { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--radius-panel); background: var(--n-100); color: var(--ink); text-decoration: none; }
.lp-panel > a:focus-visible { outline: 0; box-shadow: var(--ring); }
.lp-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
/* A short shade along the foot so the tag and card sit on the photograph */
.lp-panel > a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 40%; background: linear-gradient(0deg, rgba(10, 16, 32, .32), rgba(10, 16, 32, 0)); pointer-events: none; }
.lp-panel-tag, .lp-panel-card { position: absolute; z-index: 1; left: 16px; bottom: 16px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 12px 32px -16px rgba(10, 16, 32, .4); transition: opacity 300ms var(--ease), transform 500ms var(--ease); }
.lp-panel-tag { display: inline-block; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.lp-panel-tag > span { margin-right: 8px; color: var(--body); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.lp-panel-tag small, .lp-panel-card b small { color: var(--body); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.lp-panel-card { right: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 16px; padding: 16px 16px 16px 24px; border-radius: 20px; opacity: 0; transform: translateY(12px); }
.lp-panel-text { display: grid; gap: 4px; min-width: 0; }
.lp-panel-text strong { overflow: hidden; font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.lp-panel-text small { overflow: hidden; color: var(--body); font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.lp-panel-card b { font-size: 24px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.lp-panel-card .premium-icon { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: var(--navy); color: #fff; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }

/* The open panel */
.lp-wall:not(:has(.lp-panel > a:is(:hover, :focus-visible))) .lp-panel:first-child,
.lp-panel:has(> a:is(:hover, :focus-visible)) { flex-grow: 2.6; }
.lp-wall:not(:has(.lp-panel > a:is(:hover, :focus-visible))) .lp-panel:first-child .lp-panel-card,
.lp-panel > a:is(:hover, :focus-visible) .lp-panel-card { opacity: 1; transform: none; transition-delay: 150ms; }
.lp-wall:not(:has(.lp-panel > a:is(:hover, :focus-visible))) .lp-panel:first-child .lp-panel-tag,
.lp-panel > a:is(:hover, :focus-visible) .lp-panel-tag { opacity: 0; transform: translateY(8px); }
.lp-panel > a:is(:hover, :focus-visible) img { transform: scale(1.03); }
.lp-panel > a:hover .lp-panel-card .premium-icon { background: var(--gold); color: var(--navy); }

/* ===== Splits: heading over five columns, content over seven, tops aligned ===== */
.lp-split, .lp-close-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.lp-split > :first-child, .lp-close-panel > :first-child { grid-column: 1 / span 5; }
.lp-split > :last-child, .lp-close-panel > :last-child { grid-column: 6 / -1; }
.lp-split-head { position: sticky; top: calc(var(--header-h) + 48px); display: grid; justify-items: start; gap: 16px; }
.lp-split-head p { max-width: 38ch; margin: 0; font-size: 16px; line-height: 26px; }
.lp-split-head .lp-button { margin-top: 16px; }
.lp-model { width: min(100%, 400px); margin-top: 48px; }

.lp-services { background: #fff; }

.lp-route-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lp-route-list > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); align-items: baseline; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.lp-route-list h3 { margin: 0; font-size: clamp(32px, 3vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.lp-route-copy { display: grid; justify-items: start; gap: 12px; }
.lp-route-copy p { max-width: 40ch; margin: 0; color: var(--body); font-size: 16px; line-height: 26px; }
.lp-route-copy .lp-link { font-size: 14px; text-decoration-color: var(--n-300); }

/* ===== Closing: the section is the panel ===== */
.lp-close-copy { display: grid; justify-items: start; gap: 16px; }
.lp-close-copy p { max-width: 44ch; margin: 0; font-size: 16px; line-height: 26px; }
.lp-close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 16px; }
.lp-close-visual { display: grid; justify-items: center; }
.lp-close-model { width: min(100%, 640px); }
/* The close is the page's one navy band: a framed plate like the hero's, white plaster model on brand navy */
.lp-close-panel { align-items: center; min-height: min(640px, calc(100svh - 192px)); padding: 64px; border-radius: var(--radius-panel); background: radial-gradient(80% 90% at 78% 55%, #1e2a44 0%, var(--navy) 70%); color: #fff; overflow: hidden; }
.lp-close-panel h2 { color: #fff; }
.lp-close-panel .lp-close-copy p { color: rgba(255, 255, 255, .78); }
.property-app.property-app .lp-close-panel .lp-button-primary { background: #fff; color: var(--navy); }
.lp-close-panel .lp-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.lp-close-panel .lp-close-model { width: min(100%, 600px); margin-block: -32px; filter: drop-shadow(0 32px 48px rgba(0, 0, 0, .35)); }
@media (hover: hover) and (pointer: fine) {
    .property-app.property-app .lp-close-panel .lp-button-primary:hover { background: var(--gold-100); }
    .lp-close-panel .lp-link:hover { text-decoration-color: #fff; }
}

/* The footer closes the page as its own screen. */
.property-app .app-footer { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-block: 96px 32px; }
.property-app .app-footer .footer-wordmark { margin-top: auto; padding-top: 64px; }

@media (max-width: 1024px) {
    .lp-panel-card { grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 12px; padding: 12px 12px 12px 20px; }
    .lp-panel-card b { grid-row: 2; font-size: 20px; }
    .lp-panel-card .premium-icon { grid-column: 2; grid-row: 1 / span 2; }
    .lp-hero h1 { grid-column: 1 / -1; }
    .lp-hero-aside { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; margin-top: 24px; padding-bottom: 0; }
    .lp-hero-note { max-width: 46ch; }
    .lp-hero-facts { padding-left: 0; }
    .lp-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .lp-search-text { display: none; }
}

@media (max-width: 900px) {
    .lp-section, .property-app .app-footer { min-height: 0; }
    .lp-section { padding-block: 64px; }
    .lp-split, .lp-close-panel { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
    .lp-split > *, .lp-close-panel > * { grid-column: 1 / -1; }
    .lp-split > :first-child, .lp-close-panel > :first-child, .lp-split > :last-child, .lp-close-panel > :last-child { grid-column: 1 / -1; }
    .lp-split-head { position: static; }
    .lp-model { display: none; }
    .lp-wall { height: clamp(420px, 60svh, 560px); }
}

@media (max-width: 760px) {
    .property-app .app-header, .property-app .app-footer { padding-inline: 16px; }
    .lp-wrap, .lp-hero-inner { width: calc(100% - 32px); }
    .lp-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
    .lp-hero { min-height: calc(100svh - var(--header-h)); }
    .lp-hero-inner { grid-template-rows: auto auto; gap: 24px; padding-block: 32px 16px; }
    .lp-hero h1 { font-size: clamp(36px, 11vw, 56px); }
    /* One tonal panel: icon hangs in the gutter, sentence and figures share the text column */
    .lp-hero-aside { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--n-50); }
    .lp-hero-note { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 20px; }
    .lp-hero-note .premium-icon { width: 32px; height: 32px; padding: 8px; background: #fff; }
    .lp-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 0 0 44px; border-top: 1px solid var(--line); }
    .lp-hero-facts dd { font-size: 28px; }
    .lp-hero-stage { grid-template: "plate" auto "search" auto / minmax(0, 1fr); }
    .lp-hero-photo { position: static; grid-area: plate; height: min(68vw, 38svh); min-height: 200px; }
    .lp-search-field:focus-within { background: #fff; }
    .lp-hero-stage::after { display: none; }
    .lp-hero-listing { align-self: end; justify-self: stretch; grid-template-columns: minmax(0, 1fr) auto 32px; max-width: none; margin: 12px; }
    .lp-search { grid-area: search; width: 100%; margin: 12px 0 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; border-radius: 28px; background: var(--n-50); box-shadow: none; }
    .lp-search-field { padding: 4px 16px; border-radius: 20px; }
    .lp-search-submit { grid-column: 1 / -1; margin-left: 0; }
    /* Panels stack as full photographs, every card shown */
    .lp-wall { height: auto; flex-direction: column; gap: 16px; }
    .lp-panel, .lp-wall .lp-panel:first-child, .lp-panel:has(> a:is(:hover, :focus-visible)) { flex: none; aspect-ratio: 4 / 5; }
    .lp-wall .lp-panel .lp-panel-tag { display: none; }
    .lp-wall .lp-panel .lp-panel-card { opacity: 1; transform: none; }
    .lp-panel-card { left: 12px; right: 12px; bottom: 12px; grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 12px; padding: 12px 12px 12px 16px; }
    .lp-panel-card b { grid-row: 2; font-size: 20px; }
    .lp-panel-card .premium-icon { grid-column: 2; grid-row: 1 / span 2; }
    .lp-panel-text strong { font-size: 16px; }
    .lp-panel-text :is(strong, small) { white-space: normal; }
    .lp-close-model, .lp-close-panel .lp-close-model { width: min(100%, 360px); margin-block: 0; }
    .lp-close-panel { padding: 32px 24px; }
    .lp-route-list > li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0; }
}

/* Wide phones and unfolded screens: sentence and figures share one row of the panel */
@media (min-width: 481px) and (max-width: 760px) {
    .lp-hero-aside { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
    .lp-hero-facts { grid-template-columns: repeat(2, max-content); gap: 24px; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
}

/* Fold cover screens: price drops under the name so neither is cut */
@media (max-width: 360px) {
    .lp-hero-listing { grid-template-columns: minmax(0, 1fr) 32px; gap: 4px 12px; border-radius: 20px; }
    .lp-hero-listing b { grid-row: 2; }
    .lp-hero-listing .premium-icon { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-photo { animation: none; }
    .lp-panel, .lp-panel img, .lp-panel-tag, .lp-panel-card { transition: none; }
    .lp-panel > a:is(:hover, :focus-visible) img { transform: none; }
}
