/* ================================================================
   CGK Realties - shared design system
   Palette is built entirely from the logo blue (#215268) plus
   neutrals biased toward it. One colour at different weights.
   ================================================================ */

:root {
  --ground:      #F6F8F9;
  --ground-alt:  #EDF1F3;
  --surface:     #FFFFFF;
  --ink:         #14222A;
  --ink-soft:    #2C4049;
  --muted:       #5A6E79;
  --line:        #DCE4E8;
  --line-strong: #C3D0D6;

  --brand:       #215268;
  --brand-deep:  #173B4C;
  --brand-lift:  #2C6B87;
  --brand-wash:  #E8EFF2;
  --on-brand:    #FFFFFF;

  /* The footer is a dark plate in both themes, so it needs its own
     token - --brand-deep inverts to a light tint in dark mode. */
  --footer-bg:   #17394A;

  --shadow:      0 1px 2px rgba(20,34,42,.04), 0 10px 30px -16px rgba(20,34,42,.16);
  --shadow-lift: 0 2px 6px rgba(20,34,42,.06), 0 22px 46px -20px rgba(20,34,42,.26);

  /* Old-style serif for voice, clean sans for reading. No monospace. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0D1418;
    --ground-alt:  #111A20;
    --surface:     #16232A;
    --ink:         #E8EFF2;
    --ink-soft:    #C6D5DC;
    --muted:       #8DA3AE;
    --line:        #223139;
    --line-strong: #2F434D;

    --brand:       #7FB0C6;
    --brand-deep:  #A8CBDB;
    --brand-lift:  #9AC2D5;
    --brand-wash:  #172A34;
    --on-brand:    #08161D;

    --footer-bg:   #0B161C;

    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 10px 30px -16px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.45), 0 22px 46px -20px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --ground:      #0D1418;
  --ground-alt:  #111A20;
  --surface:     #16232A;
  --ink:         #E8EFF2;
  --ink-soft:    #C6D5DC;
  --muted:       #8DA3AE;
  --line:        #223139;
  --line-strong: #2F434D;

  --brand:       #7FB0C6;
  --brand-deep:  #A8CBDB;
  --brand-lift:  #9AC2D5;
  --brand-wash:  #172A34;
  --on-brand:    #08161D;

  --footer-bg:   #0B161C;

  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 10px 30px -16px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.45), 0 22px 46px -20px rgba(0,0,0,.7);
}

/* ================================================================
   BASE
   ================================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
  letter-spacing: -0.005em;
  line-height: 1.16;
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* The logo sets "R E A L T I E S" in wide caps - every label echoes it. */
.label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.num { font-variant-numeric: tabular-nums; }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}

.nav.solid {
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav-inner { display: flex; align-items: center; gap: 2rem; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; display: block; transition: filter .3s ease; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }

.brand-word b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-word span {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}

.nav-links a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.lang { display: flex; align-items: center; gap: 0.5rem; }

.lang button {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s;
}

.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:hover { color: var(--brand); }
.lang i { width: 1px; height: 12px; background: var(--line-strong); display: block; }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6875rem 1.25rem;
  background: var(--brand);
  color: var(--on-brand);
  white-space: nowrap;
  transition: background .18s;
}

.nav-cta:hover { background: var(--brand-deep); }

/* Over hero footage, before the nav goes solid */
.nav:not(.solid) .brand img { filter: brightness(0) invert(1); }
.nav:not(.solid) .brand-word b { color: #FFFFFF; }
.nav:not(.solid) .brand-word span { color: rgba(255,255,255,.7); }
.nav:not(.solid) .nav-links a { color: rgba(255,255,255,.88); }
.nav:not(.solid) .nav-links a:hover { color: #FFFFFF; border-bottom-color: rgba(255,255,255,.8); }
.nav:not(.solid) .lang button { color: rgba(255,255,255,.68); }
.nav:not(.solid) .lang button[aria-pressed="true"] { color: #FFFFFF; }
.nav:not(.solid) .lang i { background: rgba(255,255,255,.3); }
.nav:not(.solid) .nav-cta {
  background: rgba(255,255,255,.12);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.nav:not(.solid) .nav-cta:hover { background: rgba(255,255,255,.22); }

@media (max-width: 900px) {
  .nav-links, .lang { display: none; }
  :root { --nav-h: 66px; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9375rem 1.75rem;
  border: 0;
  cursor: pointer;
  transition: background .18s, color .18s;
  display: inline-block;
}

.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-deep); }

.btn-light { background: #FFFFFF; color: #14222A; }
.btn-light:hover { background: rgba(255,255,255,.86); }

.btn-outline { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ================================================================
   SHARED HERO SHELL
   ================================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0D1418;
}

.hero-media { position: absolute; inset: 0; }

.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.03) brightness(0.95);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9,20,26,.93) 0%, rgba(9,20,26,.66) 30%, rgba(9,20,26,.22) 62%, rgba(9,20,26,.30) 100%),
    linear-gradient(100deg, rgba(33,82,104,.60) 0%, rgba(33,82,104,.08) 64%);
}

.hero-inner { position: relative; }
.hero .label { color: rgba(255,255,255,.76); }
.hero h1 { color: #FFFFFF; line-height: 1.16; letter-spacing: 0; }
.hero-lede {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-size: 1.0625rem;
  color: rgba(255,255,255,.84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--ground-alt); border-block: 1px solid var(--line); }
.section-flush { padding-bottom: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); max-width: 20ch; }
.section-head > div { max-width: 46ch; }
.section-head p { color: var(--muted); font-size: 0.9375rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.about h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); margin-block: 1.25rem 1.5rem; }
.about p { color: var(--muted); margin-bottom: 1.125rem; max-width: 52ch; }
.about p strong { color: var(--ink); font-weight: 600; }

.about-figure { position: relative; }
.about-figure img { width: 100%; display: block; }

.facts { border-top: 1px solid var(--line); margin-top: 2rem; }

.fact {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.fact dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.fact dd { margin: 0; text-align: right; color: var(--ink); }
.fact dd a { color: var(--brand); text-decoration: none; }
.fact dd a:hover { text-decoration: underline; }

/* ================================================================
   FORM
   ================================================================ */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form h3 { font-size: 1.5rem; }
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input, .form select, .form textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.625rem 0.75rem;
  width: 100%;
  letter-spacing: normal;
  text-transform: none;
}

.form textarea { resize: vertical; min-height: 92px; }
.form-status { font-size: 0.8125rem; color: var(--brand); min-height: 1.3em; }
.form-status.is-ok { color: var(--brand); font-weight: 600; }
.form-status.is-error { color: #A3352C; }

/* ---- consent, injected by wireForm ---- */
.consents { display: grid; gap: .625rem; margin: .25rem 0 .25rem; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .625rem;
  align-items: start;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: .15rem;
  accent-color: var(--brand);
  flex: none;
}

.consent a { color: var(--brand); }

/* The honeypot: present for a bot reading the DOM, gone for everyone
   else. Kept out of the tab order and off the accessibility tree. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.72); padding-block: 3.5rem 2.5rem; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-brand img { height: 62px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.9; }
.footer-brand a { color: #FFFFFF; text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }

.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }

.footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding-block: 0.3125rem;
}

.footer-col a:hover { color: #FFFFFF; }

.footer-base {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
}

/* ================================================================
   MOTION
   ================================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   LOCATIONS - municipality picker that doubles as the
   "where we are" section. Selecting one filters the list below.
   ================================================================ */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.loc {
  padding: 1.375rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: background .18s, color .18s;
}

.loc::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--brand);
  opacity: 0;
  transition: opacity .18s;
}

.loc:hover { background: var(--brand-wash); }
.loc[aria-pressed="true"] { background: var(--brand-wash); }
.loc[aria-pressed="true"]::before { opacity: 1; }

.loc-name { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); display: block; }
.loc[aria-pressed="true"] .loc-name { color: var(--brand); }

.loc-count {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4375rem;
  display: block;
}

/* ================================================================
   FILTERS
   ================================================================ */
.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: var(--surface);
  border-block: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.filters-inner {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding-block: 1.125rem;
  flex-wrap: wrap;
}

.field { display: flex; flex-direction: column; gap: 0.4375rem; }

.field > span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field select {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  min-width: 168px;
  cursor: pointer;
}

.field input[type="range"] { width: 180px; height: 34px; accent-color: var(--brand); cursor: pointer; }

.rent-value { color: var(--ink); font-variant-numeric: tabular-nums; }

.result-count { margin-left: auto; font-size: 0.8125rem; color: var(--muted); padding-bottom: 0.5rem; }
.result-count b { color: var(--brand); font-variant-numeric: tabular-nums; }

.reset {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 0.25rem;
  margin-bottom: 0.5625rem;
  transition: color .18s, border-color .18s;
}

.reset:hover { color: var(--brand); border-color: var(--brand); }

/* ---- Feature toggles ---- */
.features {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 0 1.125rem;
  margin-top: -0.25rem;
}

.features > span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.375rem;
}

.feat {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.feat:hover { border-color: var(--brand); color: var(--brand); }
.feat[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.card-feats { display: flex; flex-wrap: wrap; gap: 0.5rem 0.875rem; font-size: 0.75rem; color: var(--muted); }
.card-feats span { display: inline-flex; align-items: center; gap: 0.3125rem; }
.card-feats svg { width: 13px; height: 13px; flex: none; color: var(--brand); }

/* ================================================================
   LISTING CARDS
   ================================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2rem 1.75rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-wash); }

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}

.card:hover .card-media img { transform: scale(1.045); }

/* Buildings without photography yet get a branded plate rather
   than a stock photo standing in for a real address. */
.card-plate { position: absolute; inset: 0; display: grid; place-items: center; background: var(--brand-wash); }
.card-plate img { width: 42%; height: auto; opacity: .17; object-fit: contain; }

.card-plate span {
  position: absolute;
  bottom: 1rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-city {
  position: absolute;
  top: 0; left: 0;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
}

.card-body { padding: 1.375rem 1.5rem 1.625rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }

.card-addr { font-family: var(--serif); font-size: 1.25rem; line-height: 1.28; color: var(--ink); }

.card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4375rem;
}

.units { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.unit { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; background: var(--brand-wash); color: var(--brand); }

.card-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.price { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 1.375rem; color: var(--ink); }
.price span { font-family: var(--sans); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.08em; }

.card-link {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.empty strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
}

.empty-cta { display: block; margin-top: 1.5rem; }

/* ================================================================
   BUILDING PAGES
   ================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.breadcrumb a:hover { color: #FFFFFF; text-decoration: underline; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.9);
}

.hero-price { font-family: var(--serif); font-size: 1.75rem; color: #FFFFFF; }
.hero-price span { font-family: var(--sans); font-size: 0.8125rem; color: rgba(255,255,255,.7); }

.hero-units { display: flex; gap: 0.4375rem; flex-wrap: wrap; }

.hero-units b {
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.25rem 0.5625rem;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  color: #FFFFFF;
}

/* ---- Fact bar under the hero ---- */
.factbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.factbar-inner { display: flex; flex-wrap: wrap; }

.fb { flex: 1 1 170px; padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--line); }
.fb:last-child { border-right: 0; }
.fb:not(:first-child) { padding-left: 1.5rem; }

.fb b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--brand);
  display: block;
  line-height: 1.2;
}

.fb span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

/* ---- Unit tabs (buildings photographed in more than one size) ---- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
}

.tab:hover { color: var(--brand); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tabpanel[hidden] { display: none; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--brand-wash);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

/* The lead image carries the unit - give it the weight. */
.shot-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}

.shot:hover img { transform: scale(1.045); }

.shot figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(9,20,26,.72);
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4375rem 0.75rem;
  backdrop-filter: blur(3px);
}

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .shot-lead { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6,14,18,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox[open] { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; display: block; }

.lb-cap {
  position: absolute;
  bottom: clamp(1rem, 4vw, 2.25rem);
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s;
}

.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: clamp(.5rem, 2vw, 2rem); }
.lb-next { right: clamp(.5rem, 2vw, 2rem); }

.lb-close {
  position: absolute;
  top: clamp(.75rem, 3vw, 1.75rem);
  right: clamp(.75rem, 3vw, 1.75rem);
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: rgba(255,255,255,.8);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.lb-close:hover { color: #FFFFFF; }

/* ---- Inclusions ---- */
.incl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.incl {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.375rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.incl svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.incl b { font-weight: 600; font-size: 0.9375rem; display: block; }
.incl span { font-size: 0.8125rem; color: var(--muted); display: block; margin-top: 0.125rem; }

.note-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1.75rem;
  padding: 1.125rem 1.375rem;
  background: var(--brand-wash);
  border-left: 3px solid var(--brand);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.note-strip svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }

/* ---- Neighbourhood ---- */
.near { border-top: 1px solid var(--line); }

.near-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--line);
}

.near-row b { font-weight: 400; font-family: var(--serif); font-size: 1.0625rem; }

.near-row span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

/* ---- Requirements ---- */
.reqs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.req {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink-soft);
}

.req svg { width: 15px; height: 15px; color: var(--brand); }

/* ---- Sticky call bar (mobile) ---- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.35);
}

.callbar a {
  flex: 1;
  text-align: center;
  padding: 0.9375rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink);
}

.callbar a.primary { background: var(--brand); color: var(--on-brand); }

@media (max-width: 720px) {
  .callbar { display: flex; }
  body { padding-bottom: 52px; }
}

/* ================================================================
   UNIT PICKER - the hero control on a building page, built by
   js/shared/vacancies.js from the live sheet feed. Sits over hero
   footage, so it carries its own light ground rather than borrowing
   the hero's.
   ================================================================ */
.unit-pick { margin-block: 1.5rem 1.25rem; }

.unit-pick-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.5rem;
}

.unit-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.unit-select {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  min-width: 15rem;
  max-width: 100%;
}

.unit-select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Dead until a unit is picked. A booking with no unit attached is a
   phone call to work out what the person meant. */
.unit-pick .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.unit-pick-none {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.86);
}

.unit-pick-none a { color: #FFFFFF; }

@media (max-width: 560px) {
  .unit-select { min-width: 100%; }
  .unit-pick-row .btn { width: 100%; text-align: center; }
}

/* ---- Back to top.
        Built by js/all/page.js, so it exists on every page without 45
        copies of the same markup. A circle rather than the site's 2px
        radius because it is a control, not a plate - it should read as a
        button floating over the page, not as a piece of the layout.
        Sits BELOW the call bar in z-order (70) and above everything
        else, so on a phone the two never fight. ---- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 65;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.45);
  transition: opacity .2s ease, transform .2s ease, visibility .2s,
              background-color .2s ease, color .2s ease, border-color .2s ease;
}

.to-top[data-on="true"] { opacity: 1; visibility: visible; transform: none; }

.to-top:hover {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}

.to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.to-top svg { width: 18px; height: 18px; }

/* Clear of the sticky call bar, whose height is the 52px above. */
@media (max-width: 720px) {
  .to-top { right: 1rem; bottom: calc(52px + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transform: none; transition: opacity .2s ease, visibility .2s; }
}

/* ================================================================
   NAV DROPDOWN - every building, grouped by municipality.
   Built from js/all/buildings.js so it cannot drift out of sync.
   Desktop only; the nav links are already hidden below 900px.
   ================================================================ */
.has-menu { position: relative; }

.submenu {
  position: absolute;
  top: 100%;
  left: -1.25rem;
  /* Transparent bridge so the pointer can cross the gap without the
     menu closing under it */
  padding-top: 1.125rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}

.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu-card {
  width: max-content;
  max-width: min(760px, 88vw);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 1.5rem 1.75rem 1.25rem;
}

.submenu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1.5rem 2.25rem;
}

@media (max-width: 1080px) {
  .submenu-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

.sub-group h5 {
  margin: 0 0 0.625rem;
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.submenu .sub-item {
  display: block;
  text-decoration: none;
  padding: 0.4375rem 0;
  border-bottom: 0;
  font-size: inherit;
  color: inherit;
}

.sub-addr {
  display: block;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color .15s;
}

.sub-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.125rem;
}

.submenu .sub-item:hover .sub-addr { color: var(--brand); }

.submenu-foot {
  margin-top: 1.25rem;
  padding-top: 0.9375rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.submenu .submenu-foot a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 0;
}

.submenu .submenu-foot a:hover { text-decoration: underline; }
.submenu-foot span { font-size: 0.75rem; color: var(--muted); }

/* The dropdown keeps its own light ground even while the nav is
   transparent over hero footage, so its links stay dark. */
.nav:not(.solid) .submenu .sub-addr { color: var(--ink); }
.nav:not(.solid) .submenu .sub-item:hover .sub-addr { color: var(--brand); }
.nav:not(.solid) .submenu a { border-bottom: 0; }

/* RULE 2 BITING: `.nav:not(.solid) .nav-links a` is (0,3,1) and beat the
   foot link's (0,2,1), painting it white-on-white inside the card - there,
   clickable, invisible. Scoped back with (0,4,1). */
.nav:not(.solid) .submenu .submenu-foot a { color: var(--brand); }

/* ================================================================
   RESOURCES - the tenant library hub and its article pages
   ================================================================ */
.cat-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 1.125rem;
}

.cat {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.4375rem 0.9375rem;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem 1.75rem;
}

.res {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: box-shadow .25s ease, border-color .25s ease;
}

a.res:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }

.res-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-wash); }

.res-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}

a.res:hover .res-media img { transform: scale(1.045); }

.res-plate { position: absolute; inset: 0; display: grid; place-items: center; background: var(--brand-wash); }
.res-plate img { width: 34%; opacity: .15; }

.res-tag {
  position: absolute;
  top: 0; left: 0;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
}

.res-body { padding: 1.375rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }

.res-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.28;
  color: var(--ink);
}

.res-dek { font-size: 0.875rem; color: var(--muted); }

.res-foot {
  margin-top: auto;
  padding-top: 0.9375rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.res-foot .go { color: var(--brand); }

/* Planned entries: visible so the library reads as a plan, but
   plainly not clickable. */
.res.planned { background: transparent; border-style: dashed; }
.res.planned .res-media { aspect-ratio: 16 / 6; }
.res.planned .res-title { color: var(--ink-soft); }
.res.planned .res-foot .go { color: var(--muted); }

/* ---- Article page ---- */
.article { max-width: 68ch; margin-inline: auto; }

.article-head { margin-bottom: 2.5rem; }

.article h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.18;
  margin-top: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-figure { margin: 0 0 2.5rem; }
.article-figure img { width: 100%; display: block; }

.article-figure figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

.prose > * + * { margin-top: 1.25rem; }
.prose p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }

.prose h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.prose h3 { font-size: 1.1875rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--ink-soft); }
.prose li { margin-top: 0.5rem; font-size: 1.0625rem; line-height: 1.7; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

.pull {
  border-left: 3px solid var(--brand);
  background: var(--brand-wash);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.pull strong { display: block; margin-bottom: 0.25rem; color: var(--ink); }

/* Cross-link from an article back to the building it concerns */
.linked-building {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}

.linked-building:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.linked-building img { width: 84px; height: 64px; object-fit: cover; flex: none; }
.linked-building b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; }

.linked-building span {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.linked-building .go {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

/* ================================================================
   MOBILE NAVIGATION
   Built by page.js from the existing .nav-links, so there is one
   set of links to maintain rather than a duplicate mobile block.
   ================================================================ */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.625rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-toggle .bars {
  position: relative;
  width: 22px;
  height: 12px;
  flex: none;
}

.nav-toggle .bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 5px; }
.nav-toggle .bars i:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav:not(.solid) .nav-toggle { color: #FFFFFF; }

.mobile-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--ground);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding: 1.5rem var(--pad) 2.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.mobile-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.mobile-panel a.m-link {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.mobile-panel a.m-link:active { color: var(--brand); }

.m-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.m-section > h4 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-panel a.m-building {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}

.mobile-panel a.m-building span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.m-foot { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.m-foot .btn { flex: 1 1 auto; text-align: center; }

.m-lang { display: flex; align-items: center; gap: 0.625rem; }

.m-lang button {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.m-lang button[aria-pressed="true"] { color: var(--ink); }
.m-lang i { width: 1px; height: 12px; background: var(--line-strong); display: block; }

.m-call {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.m-call b { color: var(--brand); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}

@media (min-width: 901px) {
  .mobile-panel { display: none; }
}

body[data-menu="open"] { overflow: hidden; }

/* ================================================================
   HOME: featured grid, FAQ, and the people block
   ================================================================ */
a.loc { display: block; text-decoration: none; }

.see-all { margin-top: 2.5rem; text-align: center; }

/* ---- FAQ. <details> so it works with no JS and stays accessible. ---- */
.faq { border-top: 1px solid var(--line-strong); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ink);
  transition: color .18s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq .answer { padding: 0 0 1.5rem; max-width: 68ch; }
.faq .answer p { color: var(--muted); font-size: 0.9375rem; line-height: 1.75; }
.faq .answer p + p { margin-top: 0.875rem; }
.faq .answer a { color: var(--brand); }
.faq .answer strong { color: var(--ink); font-weight: 600; }

/* ---- The people you deal with ---- */
.people { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; }

.person {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  padding: 0.75rem 1.125rem 0.75rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.person .plate {
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-wash);
}

.person .plate img { width: 60%; opacity: .25; }
.person b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; }

.person span {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================================================================
   MAP / DIRECTIONS
   The embed is geocoded from the address string, so no coordinates
   and no API key are needed. A fallback card sits behind the frame:
   if the embed is blocked (as it is in offline previews) the address
   and the directions button are still there and still work.
   ================================================================ */
.map-block { border: 1px solid var(--line); background: var(--surface); }

.map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-wash);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
}

.map-fallback img { width: 62px; opacity: .22; }
.map-fallback p { font-size: 0.8125rem; color: var(--muted); max-width: 34ch; }

.map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.125rem 1.375rem;
  flex-wrap: wrap;
}

.map-actions address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
}

.map-actions address span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.map-actions .btn { flex: none; }

/* ================================================================
   TRUST STRIP - risk reversal directly under the hero.
   The four objections a renter actually has, answered in one line.
   ================================================================ */
.trustbar {
  background: var(--brand-wash);
  border-bottom: 1px solid var(--line);
}

.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.9375rem;
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.trust svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.trust b { font-weight: 600; color: var(--ink); }
a.trust:hover b { color: var(--brand); text-decoration: underline; }

@media (max-width: 720px) {
  .trustbar-inner { justify-content: flex-start; gap: 0.625rem 1.5rem; }
  .trust { font-size: 0.75rem; }
}

/* ================================================================
   AVAILABILITY ON LISTING CARDS
   The card is a container rather than one big link, because each
   available size is its own link into an enquiry for that size.
   ================================================================ */
.card { text-decoration: none; }
.card-media { display: block; }

a.card-addr {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.28;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s;
}

a.card-addr:hover { color: var(--brand); }

.avail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.avail-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.avail-label--none { color: var(--muted); }
.avail-note { font-size: 0.8125rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4375rem; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  border: 1px solid var(--brand);
  transition: background .18s, color .18s;
}

.chip:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

.card-foot { border-top: 0; padding-top: 0; }

a.card-link { text-decoration: none; }
a.card-link:hover { text-decoration: underline; }

/* ================================================================
   BUILDING PAGE: availability, video tour, proof, cross-links
   ================================================================ */

/* ---- What's free, stated on the building's own page ---- */
.avail-band { background: var(--surface); border-bottom: 1px solid var(--line); }

.avail-band-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.375rem;
}

.avail-band .avail-label { font-size: 0.625rem; }
.avail-band .chips { gap: 0.5rem; }
.avail-band .chip { min-width: 3.75rem; font-size: 1.125rem; padding: 0.5625rem 0.875rem; }
.avail-band .avail-note { margin-left: auto; font-size: 0.875rem; }

@media (max-width: 720px) { .avail-band .avail-note { margin-left: 0; width: 100%; } }

/* ---- Vertical tour. The source is a 9:16 social clip, so it is
        framed as a phone rather than stretched into a landscape box. ---- */
.tour { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

@media (max-width: 780px) { .tour { grid-template-columns: 1fr; justify-items: center; } }

.tour-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  background: #0D1418;
  border: 1px solid var(--line);
}

.tour-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.tour-copy h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 1rem; }
.tour-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 1rem; }

/* ---- Two reviews, on the page where the decision is made ---- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 780px) { .proof { grid-template-columns: 1fr; } }

.proof blockquote {
  margin: 0;
  padding: 1.5rem 1.625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}

.proof p { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }

.proof cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Other buildings in the same city ---- */
.nearby { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.nearby a {
  display: block;
  padding: 1.25rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}

.nearby a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.nearby b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; color: var(--ink); }

.nearby span {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.375rem;
}

/* ================================================================
   COMING SOON - a building being acquired, not yet in the portfolio
   ================================================================ */
.coming-band { background: var(--brand-wash); border-block: 1px solid var(--line); }

.coming-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.75rem 0;
}

@media (max-width: 780px) {
  .coming-card { grid-template-columns: 1fr; text-align: left; }
  .coming-card .btn { justify-self: start; }
}

.coming-mark {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.coming-mark img { width: 62%; opacity: .5; }

.coming-card .label { color: var(--brand); }
.coming-card h3 { font-size: 1.5rem; margin-top: 0.375rem; }
.coming-card p { color: var(--muted); font-size: 0.9375rem; margin-top: 0.4375rem; max-width: 54ch; }

/* Mimoza page: no photography yet, so the hero is typographic */
.hero-plain { background: var(--brand-deep); }
.hero-plain .hero-scrim { display: none; }

/* ================================================================
   SIMPLE PAGES - about, contact, legal, 404
   ================================================================ */
.page-head {
  background: var(--brand-deep);
  padding-block: clamp(7rem, 13vw, 10rem) clamp(2.5rem, 5vw, 3.5rem);
}

.page-head .label { color: rgba(255,255,255,.66); }

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: 0;
  color: #FFFFFF;
  margin: 1.25rem 0 0;
  max-width: 22ch;
}

.page-head p.lede {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: 1.0625rem;
  color: rgba(255,255,255,.84);
}

/* ---- Legal documents ---- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.0625rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.legal p + p, .legal ul, .legal ol { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.5rem; }
.legal a { color: var(--brand); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal dl.facts { margin-top: 1.5rem; }

.legal-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.draft-note {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.125rem 1.375rem;
  background: var(--brand-wash);
  border-left: 3px solid var(--brand);
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.draft-note svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.contact-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-card svg { width: 22px; height: 22px; color: var(--brand); }
.contact-card h3 { font-size: 1.1875rem; margin: 1rem 0 0.5rem; }
.contact-card p { font-size: 0.9375rem; color: var(--muted); }
.contact-card a { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ---- 404 ---- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: clamp(8rem, 15vw, 12rem) var(--pad) clamp(4rem, 8vw, 6rem);
}

.notfound .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--brand);
  opacity: .35;
}

.notfound h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 20ch; }
.notfound p { color: var(--muted); max-width: 48ch; }
.notfound .hero-actions { justify-content: center; margin-top: 1rem; }

/* ================================================================
   CURRENT TENANTS
   ================================================================ */
.urgent {
  background: var(--brand-deep);
  color: rgba(255,255,255,.82);
  border-block: 1px solid rgba(255,255,255,.14);
}

.urgent-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  padding-block: 1.5rem;
}

.urgent svg { width: 26px; height: 26px; color: #FFFFFF; }
.urgent b { color: #FFFFFF; display: block; font-size: 1.0625rem; font-family: var(--serif); font-weight: 400; }
.urgent p { font-size: 0.9375rem; margin-top: 0.375rem; max-width: 70ch; }
.urgent p + p { margin-top: 0.5rem; }
.urgent strong { color: #FFFFFF; font-weight: 600; }

@media (max-width: 620px) { .urgent-inner { grid-template-columns: 1fr; } }

/* ---- Concierge directory ---- */
.directory {
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
  border-inline: 1px solid var(--line);
}

.dir-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--line);
}

.dir-row b { font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; color: var(--ink); display: block; }

.dir-row span.where {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.dir-row .tel {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.dir-row .tel:hover { text-decoration: underline; }

.dir-row .fallback {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
  max-width: 26ch;
}

.dir-row .fallback a { color: var(--brand); font-weight: 600; text-decoration: none; }
.dir-row .fallback a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .dir-row { grid-template-columns: 1fr; }
  .dir-row .fallback, .dir-row .tel { text-align: left; }
}

/* ---- Task cards ---- */
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.task {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.task svg { width: 22px; height: 22px; color: var(--brand); }
.task h3 { font-size: 1.125rem; margin: 0.875rem 0 0.5rem; }
.task p { font-size: 0.9375rem; color: var(--muted); }
.task p + p { margin-top: 0.625rem; }
.task a { color: var(--brand); font-weight: 600; text-decoration: none; }
.task a:hover { text-decoration: underline; }
