/* Project website template: styles.
   To re-brand a project, change the BRAND block below (about 14 lines). Nothing else needs touching. */

:root {
  /* ===== BRAND: edit these lines ===== */
  --c-accent: #1F4B6E;        /* buttons, links, the selected home */
  --c-accent-ink: #FFFFFF;    /* text that sits on the accent colour */
  --c-ink: #1E2428;           /* main text and the footer */
  --c-muted: #566066;         /* secondary text */
  --c-bg: #FAF8F4;            /* page background */
  --c-surface: #FFFFFF;       /* cards and panels */
  --c-tint: #F1EEE8;          /* every second section */
  --c-line: #E2DDD4;          /* thin borders */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 14px;
  /* Home status colours: building outlines, list badges, legend */
  --c-available: #2F8F5B;
  --c-reserved: #D9962B;
  --c-sold: #6B7076;
  /* ===== end of brand block ===== */

  --header-h: 68px;
  --gutter: clamp(20px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 12px 32px -16px rgba(20, 30, 40, .25);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.modal-open { overflow: hidden; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--c-accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.boot-error { margin: 0; padding: 14px var(--gutter); background: #FBE9E7; color: #7A1F14; font-size: .95rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--c-accent) 86%, #000); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { border-color: var(--c-accent); color: var(--c-accent); background: transparent; }
.btn-outline:hover { background: var(--c-tint); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--c-tint); color: var(--c-ink);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { font: 400 1.25rem/1.15 var(--font-head); color: var(--c-ink); text-decoration: none; margin-right: auto; min-width: 0; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--c-ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 0; }
.site-nav a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 6px; }
.lang { display: flex; gap: 2px; padding: 3px; min-height: 38px; background: var(--c-tint); border-radius: 999px; }
/* The hero text and the language switch are filled in by site.js. Keep them invisible until then so nothing jumps. */
html:not(.ps-ready) .hero-inner, html:not(.ps-ready) .lang { visibility: hidden; }
.lang-btn { border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--c-muted); }
.lang-btn:hover { color: var(--c-ink); }
.lang-btn.is-on { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; content: ""; position: relative; margin: 0 auto; }
.nav-toggle .bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 7px; left: 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; order: 3; }
  .lang { order: 2; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
  .site-nav a:last-child { border-bottom: 0; }
  .header-row { gap: 12px; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.02rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(540px, calc(100svh - var(--header-h)), 820px); color: #fff; background: #1b232a; overflow: hidden; }
.hero-media, .hero-scrim { position: absolute; inset: 0; }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.is-playing { opacity: 1; }
.hero-scrim { background: linear-gradient(to top, rgba(10, 16, 22, .86) 0%, rgba(10, 16, 22, .6) 42%, rgba(10, 16, 22, .16) 75%, rgba(10, 16, 22, 0) 100%); }
.hero-inner { position: relative; padding-block: clamp(36px, 7vw, 80px); text-shadow: 0 1px 16px rgba(0, 0, 0, .3); }
.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 5rem); max-width: 16ch; margin-bottom: .3em; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; max-width: 36ch; margin-bottom: 28px; opacity: .96; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0 0 32px; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .35); max-width: 860px; }
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.meta-value { font-size: 1.05rem; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero :focus-visible { outline-color: #fff; }
.hero-toggle {
  position: absolute; right: var(--gutter); bottom: 28px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(10, 16, 22, .35); color: #fff; display: grid; place-items: center;
}
.hero-toggle svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.hero-toggle .i-play { fill: #fff; stroke-linejoin: round; }
.hero-toggle .i-pause { display: none; }
.hero-toggle.is-playing .i-pause { display: inline; }
.hero-toggle.is-playing .i-play { display: none; }
@media (max-width: 640px) { .hero-toggle { top: 16px; bottom: auto; } .hero-meta { gap: 12px 28px; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-tint { background: var(--c-tint); }
[id].section, section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .45em; }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 64ch; }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; }
.small-title { font: 700 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin: 28px 0 8px; }
.note { font-size: .88rem; color: var(--c-muted); }
.actions { margin: 28px 0 8px; }

/* key facts */
.facts { padding-block: clamp(48px, 7vw, 88px); }
.facts .section-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--c-muted); margin-bottom: 1em; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; margin: 0; }
@media (max-width: 600px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
@media (min-width: 900px) { .facts-grid[data-count="5"], .facts-grid[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--c-ink); padding-top: 14px; }
.fact dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.fact dd { margin: 0 0 4px; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--font-head); }

/* ---------- apartment selector ---------- */
.sel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: calc(var(--radius) + 4px); padding: clamp(14px, 2.4vw, 28px); box-shadow: var(--shadow); }
.sel-loading, .sel-error { margin: 0; padding: 40px 0; text-align: center; color: var(--c-muted); }
.sel-error { color: #8A2A1B; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; background: var(--c-tint); border-radius: 999px; }
.seg-btn { border: 0; background: transparent; border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: .95rem; color: var(--c-muted); }
.seg-btn:hover { color: var(--c-ink); }
.seg-btn.is-on { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
.sel-count { margin: 0; font-size: .95rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 26px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label:not(.check), .field .label { line-height: 1.2; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; border: 1px solid #CFC9BE; border-radius: 10px; background: var(--c-surface); padding: 11px 14px; font-size: 1rem; line-height: 1.4;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23566066' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.filters select { width: auto; min-width: 170px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #CFC9BE; background: var(--c-surface); border-radius: 999px; padding: 9px 16px; font-size: .95rem; font-weight: 500; min-width: 48px; }
.chip:hover { border-color: var(--c-ink); }
.chip.is-on { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .98rem; cursor: pointer; padding: 10px 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-accent); }
.filters .check { align-items: center; }

.sel-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; margin-bottom: 18px; background: var(--c-tint); border-radius: 12px; }
.sel-empty p { margin: 0; }

/* building view */
.scroller { overflow-x: auto; border-radius: 12px; background: var(--c-tint); -webkit-overflow-scrolling: touch; }
.frame { position: relative; width: 100%; }
.frame-img { display: block; width: 100%; height: auto; }
.frame-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-hint { display: none; margin: 10px 0 0; font-size: .88rem; color: var(--c-muted); }
@media (max-width: 760px) {
  .frame { width: max(100%, 840px); }     /* the building scrolls sideways so every home is big enough to tap */
  .scroll-hint { display: block; }
}
.unit { outline: none; cursor: pointer; }
.unit polygon { stroke: #fff; stroke-opacity: .85; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; fill-opacity: .4; transition: fill-opacity .15s; }
.unit[data-s="available"] polygon { fill: var(--c-available); }
.unit[data-s="reserved"] polygon { fill: var(--c-reserved); fill-opacity: .52; }
.unit[data-s="sold"] polygon { fill: url(#ps-hatch); fill-opacity: 1; }
.unit:hover polygon { fill-opacity: .72; stroke-opacity: 1; stroke-width: 3; }
.unit[data-s="sold"]:hover polygon { fill-opacity: 1; }
.unit:focus-visible polygon { stroke: var(--c-ink); stroke-opacity: 1; stroke-width: 4; fill-opacity: .72; }
.unit[data-s="sold"]:focus-visible polygon { fill-opacity: 1; }
.unit.is-sel polygon { fill: var(--c-accent); fill-opacity: .78; stroke-opacity: 1; stroke-width: 3; }
.unit.is-off { pointer-events: none; }
.unit.is-off polygon { fill: none; stroke-opacity: .22; }
.tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 150px; padding: 10px 14px 11px;
  background: var(--c-surface); border-radius: 10px; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .4); text-align: center; font-size: .86rem; color: var(--c-muted);
}
.tip.is-below { transform: translate(-50%, 10px); }
.tip strong { font: 400 1.1rem/1.2 var(--font-head); color: var(--c-ink); }

/* list view */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.units { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .97rem; font-variant-numeric: tabular-nums; }
.units th, .units td { text-align: left; padding: 0 14px; white-space: nowrap; }
.units thead th { background: var(--c-tint); padding: 0; border-bottom: 1px solid var(--c-line); }
.th-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 14px; border: 0; background: transparent; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); text-align: left; }
.th-btn:hover, .is-sorted .th-btn { color: var(--c-ink); }
.sort-ind { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: .3; }
.is-sorted .sort-ind { opacity: 1; }
.is-desc .sort-ind { transform: rotate(180deg); }
.units tbody tr { border-bottom: 1px solid var(--c-line); cursor: pointer; }
.units tbody tr:last-child { border-bottom: 0; }
.units tbody tr:hover { background: var(--c-bg); }
.units tbody td, .units tbody th { height: 56px; background: transparent; }
.units tbody th { font-weight: 600; position: sticky; left: 0; background: var(--c-surface); z-index: 1; }
.units tbody tr:hover th { background: var(--c-bg); }
.id-btn { background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.units tr.is-sold td, .units tr.is-sold .id-btn { opacity: .68; }
.units td.is-sold { font-style: italic; }
@media (max-width: 640px) {
  .units { min-width: 0; font-size: .92rem; }
  .units th, .units td { padding: 0 9px; }
  .th-btn { padding: 12px 9px; }
  .col-outdoor { display: none; }
}

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 2px 0; padding: 0; font-size: .92rem; color: var(--c-muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.swatch.s-available { background: color-mix(in srgb, var(--c-available) 62%, #fff); border: 1px solid var(--c-available); }
.swatch.s-reserved { background: color-mix(in srgb, var(--c-reserved) 62%, #fff); border: 1px solid var(--c-reserved); }
.swatch.s-sold { border: 1px solid var(--c-sold); background: repeating-linear-gradient(45deg, #8b9096 0 2px, #c9ccd0 2px 5px); }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .03em; line-height: 1.4; white-space: nowrap; }
.badge.s-available { background: #DDF0E4; color: #1B5E3A; }
.badge.s-reserved { background: #F8EBD0; color: #6F4A08; }
.badge.s-sold { background: #E6E7E9; color: #464B51; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .badge.s-available { background: color-mix(in srgb, var(--c-available) 16%, #fff); color: color-mix(in srgb, var(--c-available) 55%, #000); }
  .badge.s-reserved { background: color-mix(in srgb, var(--c-reserved) 18%, #fff); color: color-mix(in srgb, var(--c-reserved) 45%, #000); }
  .badge.s-sold { background: color-mix(in srgb, var(--c-sold) 14%, #fff); color: color-mix(in srgb, var(--c-sold) 80%, #000); }
}

/* ---------- dialogs (home panel and lightbox) ---------- */
.dlg { border: 0; padding: 0; color: var(--c-ink); background: var(--c-surface); border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.dlg::backdrop { background: rgba(16, 22, 28, .66); }
.dlg-body { position: relative; padding: clamp(20px, 3.4vw, 36px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
.dlg-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.unit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.unit-plan { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
/* Absolutely placed so a tall plan is shown whole: in a grid cell the image grew to its own height and the box cropped it. */
.unit-plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.unit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 48px 10px 0; }
.unit-head h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.unit-price { font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--font-head); margin: 0 0 18px; }
.unit-price.is-sold { color: var(--c-muted); font-style: italic; }
.unit-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0 0 20px; padding: 18px 0; border-block: 1px solid var(--c-line); }
.unit-dl dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.unit-dl dd { margin: 2px 0 0; font-weight: 600; }
.unit-note { color: var(--c-muted); font-size: .95rem; }
@media (max-width: 760px) {
  .dlg:not(.lb) { width: 100vw; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-radius: 0; margin: 0; }
  .dlg:not(.lb) .dlg-body { max-height: 100vh; max-height: 100dvh; height: 100%; padding-top: 64px; }
  .unit-grid { grid-template-columns: 1fr; }
  #unit-ask { width: 100%; }
}

.lb { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; background: #0b0f13; color: #fff; box-shadow: none; margin: 0; }
.lb-stage { touch-action: pan-y pinch-zoom; position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 12px 52px; }
.lb-fig { margin: 0; display: grid; place-items: center; }
.lb-fig img { display: block; max-width: min(1500px, 94vw); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb .icon-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.lb .icon-btn:hover { background: rgba(255, 255, 255, .26); }
.lb :focus-visible { outline-color: #fff; }
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .85); }

/* ---------- gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: 18px; }
.gallery li { break-inside: avoid; margin-bottom: 18px; }
.gal-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: var(--c-surface); cursor: zoom-in; }
.gal-btn img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) { .gal-btn img { transition: transform .5s; } .gal-btn:hover img { transform: scale(1.03); } }
@media (max-width: 900px) { .gallery { column-count: 2; column-gap: 12px; } .gallery li { margin-bottom: 12px; } }

/* ---------- location, developer ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.no-media { grid-template-columns: minmax(0, 1fr); }
.split-media { margin: 0; }
.split-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--c-surface); }
.split-media figcaption { margin-top: 8px; font-size: .8rem; color: var(--c-muted); }
.nearby { list-style: none; margin: 0; padding: 0; max-width: 460px; }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #D9D3C8; }
.nearby-value { color: var(--c-muted); white-space: nowrap; }
.dev { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.dev-logo img { display: block; width: min(260px, 100%); height: auto; }
@media (max-width: 880px) { .split, .dev { grid-template-columns: minmax(0, 1fr); } .split-media { order: -1; } }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; }
.form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form textarea { resize: vertical; min-height: 130px; }
.form [aria-invalid="true"] { border-color: #B3261E; }
.err { margin: 0; font-size: .88rem; color: #B3261E; }
.consent .check { padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.is-ok { color: #1B5E3A; }
.form-status.is-error { color: #B3261E; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .form .btn { justify-self: stretch; } }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); color: #C7CDD1; padding-block: 44px 36px; font-size: .92rem; }
.site-footer a { color: #fff; }
.disclaimer { max-width: 80ch; margin-bottom: 26px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-row p { margin: 0; }

/* ---------- privacy page ---------- */
.prose { padding-block: clamp(40px, 7vw, 88px); }
.prose > * { max-width: 70ch; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: .6em; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
.back::before { content: "\2190 "; }
.placeholder-warning { margin: 16px 0 0; padding: 14px 18px; background: #FFF4D6; border: 1px solid #E8C766; border-radius: 10px; color: #5C4300; font-size: .95rem; }
.updated { color: var(--c-muted); font-size: .92rem; }
