:root {
    --paper:  #F4EEE4;
    --ink:    #241F1A;
    --navy:   #2D1411;   /* brand espresso */
    --black:  #000000;   /* pure black — loader curtain + footer, per client */
    --gold:   #B08D4C;
    --gold-lt:#D6B266;
    --spec-bg:#EDE8E2;   /* secondary-page canvas */
    --rule:   rgba(150,120,72,.34);
    --hdr-h:  58px;
    --ease-reveal: cubic-bezier(.22, 1, .36, 1);
    --serif: 'Google Sans', 'Figtree', 'Noto Sans Georgian', 'Inter', Helvetica, Arial, sans-serif;
    --sans:  'Google Sans', 'Figtree', 'Noto Sans Georgian', 'Inter', Helvetica, Arial, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { overflow-x: hidden; scroll-behavior: smooth; }
  body { font-family: var(--sans); background: var(--spec-bg); color: var(--navy); -webkit-font-smoothing: antialiased; }

  /* ---------------- Header (centred logo, light — same as about-project) ---------------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    display: flex; align-items: center;
    padding: clamp(16px, 2.6vh, 26px) clamp(20px, 4vw, 56px);
    color: var(--navy); --hline: rgba(45,20,17,.28);
    transition: padding .5s var(--ease-reveal), background-color .5s ease,
      -webkit-backdrop-filter .5s ease, backdrop-filter .5s ease, box-shadow .5s ease;
  }
  .hdr-left  { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
  .logo      { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; text-decoration: none; }
  .hdr-right { display: flex; align-items: center; gap: clamp(12px, 1.3vw, 20px); margin-left: auto; }
  .logo-img { height: 52px; width: auto; display: block; transition: height .5s var(--ease-reveal); }
  .hdr-left a { position: relative; color: currentColor; text-decoration: none; font-size: 16px; font-weight: 400; opacity: .9; transition: opacity .3s ease; }
  .hdr-left a.is-current { opacity: 1; }
  .hdr-left a::after { content: ''; display: block; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-reveal); margin-top: 2px; }
  .hdr-left a:hover::after, .hdr-left a:focus-visible::after, .hdr-left a.is-current::after { transform: scaleX(1); }
  .hdr-left a:hover, .hdr-left a:focus-visible { opacity: 1; }
  .lang { font-size: 13.5px; white-space: nowrap; color: currentColor; }
  .lang a { color: currentColor; text-decoration: none; opacity: .5; }
  .lang a.on { opacity: 1; }
  .lang i { opacity: .4; margin: 0 5px; font-style: normal; }
  .btn-find, .request { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400;
    border-radius: 999px; padding: 8px 20px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .35s var(--ease-reveal), color .35s var(--ease-reveal), border-color .35s ease; }
  .btn-find svg, .request svg { width: 13px; height: 13px; transition: transform .35s var(--ease-reveal); }
  .btn-find { color: var(--paper); background: var(--navy); border: 1px solid var(--navy); }
  .btn-find:hover, .btn-find:focus-visible { background: var(--gold); color: var(--navy); border-color: var(--gold); }
  .btn-find:hover svg, .btn-find:focus-visible svg { transform: translate(2px,-2px); }
  .request { color: currentColor; background: transparent; border: 1px solid var(--hline); }
  .request:hover, .request:focus-visible { background: var(--navy); color: var(--paper); border-color: var(--navy); }
  .request:hover svg, .request:focus-visible svg { transform: translate(2px,-2px); }
  header.is-stuck { padding: 9px clamp(20px, 4vw, 56px);
    background: rgba(237,232,226,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(45,20,17,.08); }
  header.is-stuck .logo-img { height: 38px; }
  @media (max-width: 940px) { .hdr-left { display: none; } .logo { position: static; transform: none; } }

  /* ---------------- reveal ---------------- */
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-reveal), transform .9s var(--ease-reveal); }
  [data-reveal].in { opacity: 1; transform: none; }

  /* ============================================================
     MASTHEAD — "Apartments"
     ============================================================ */
  .mast { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: 0 auto; padding: clamp(118px,18vh,196px) clamp(20px, 3vw, 56px) clamp(22px,3.2vh,36px); }
  .mast-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px,5.6vw,88px); line-height: .98; letter-spacing: -.014em; color: var(--navy); }
  .mast-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; margin-top: clamp(20px,3vh,34px); }
  .bridge { font-family: var(--sans); font-size: 14.5px; color: rgba(36,31,26,.62); }
  .bridge a { color: var(--navy); text-decoration: none; font-weight: 500; position: relative; }
  .bridge a::after { content:''; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background: var(--gold); transform: scaleX(0); transform-origin:left; transition: transform .35s var(--ease-reveal); }
  .bridge a:hover::after, .bridge a:focus-visible::after { transform: scaleX(1); }

  /* Sort By control */
  .mast-tools { display: flex; align-items: center; gap: clamp(14px,2vw,28px); }
  .cur-switch { display: inline-flex; gap: 5px; flex: 0 0 auto; }
  .cur-switch button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 14px;
    color: var(--navy); background: none; border: 1px solid rgba(45,20,17,.22); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
  .cur-switch button:hover { border-color: var(--navy); }
  .cur-switch button.on { background: var(--navy); color: var(--paper); border-color: var(--navy); }
  .sortby { position: relative; font-family: var(--sans); }
  .sortby-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(36,31,26,.72);
    background: none; border: none; cursor: pointer; padding: 4px 2px; }
  .sortby-btn .sbi { width: 15px; height: 15px; opacity: .8; }
  .sortby-btn b { color: var(--navy); font-weight: 500; }
  .sortby-btn .car { width: 10px; height: 10px; opacity: .55; transition: transform .25s ease; }
  .sortby-btn[aria-expanded="true"] .car { transform: rotate(180deg); }
  .sortby-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 172px; list-style: none; margin: 0; padding: 6px;
    background: var(--paper); border: 1px solid rgba(45,20,17,.1); border-radius: 10px; box-shadow: 0 22px 50px -24px rgba(28,14,11,.4); }
  .sortby-menu[hidden] { display: none; }
  .sortby-menu li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px;
    font-size: 14px; color: var(--ink); cursor: pointer; }
  .sortby-menu li:hover, .sortby-menu li.kb { background: rgba(176,141,76,.14); }
  .sortby-menu li[aria-selected="true"] { color: var(--navy); font-weight: 500; }
  .sortby-menu li[aria-selected="true"]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

  /* ============================================================
     FILTER BAR — sticky, horizontal (Tower + Beds pills, Floor + Price sliders)
     ============================================================ */
  .mast-rule { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: clamp(18px,2.6vh,30px) auto 0; padding: 0 clamp(20px, 3vw, 56px); }
  .mast-rule i { display: block; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-reveal); }
  body.ready .mast-rule i { transform: scaleX(1); }

  #fbSentinel { height: 1px; pointer-events: none; }
  /* full filter bar — normal flow: it simply scrolls away with the page (no sticky, no in-place transform) */
  .filterbar { background: none; border-top: 1px solid rgba(45,20,17,.08); border-bottom: 1px solid rgba(45,20,17,.08); }
  .fb-full { display: block; }
  .fb-wrap { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: 0 auto; padding: clamp(10px,1.4vh,16px) clamp(20px, 3vw, 56px); }

  /* mini bar — fixed under the header; SLIDES IN once the full bar has scrolled past (the "transform" illusion).
     A separate lightweight element, so revealing it never reflows the page — nothing heavy transforms in place. */
  .fb-mini { position: fixed; left: 0; right: 0; top: var(--hdr-h); z-index: 29;
    background: rgba(237,232,226,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(45,20,17,.1);
    transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .42s var(--ease-reveal), opacity .3s ease, visibility 0s linear .42s; }
  .fb-mini.show { transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .42s var(--ease-reveal), opacity .3s ease; }
  .fb-mini-inner { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: 0 auto;
    padding: 10px clamp(20px, 3vw, 56px); display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
  .fb-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 14px; color: var(--navy);
    background: none; border: 1px solid rgba(45,20,17,.2); border-radius: 999px; padding: 9px 18px; cursor: pointer;
    transition: background .25s var(--ease-reveal), color .25s ease, border-color .25s ease; }
  .fb-toggle svg { width: 15px; height: 15px; }
  .fb-toggle:hover, .fb-toggle:focus-visible { background: var(--navy); color: var(--paper); border-color: var(--navy); outline: none; }
  /* active-filter tags beside the Filters button (no wrapper, X to remove); single clipped row so the bar height stays fixed */
  .fb-count { flex: 0 0 auto; font-family: var(--sans); font-size: 14px; color: rgba(45,20,17,.6);
    font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
  .fb-mini-tools { flex: 0 0 auto; display: flex; align-items: center; padding-left: clamp(4px, .8vw, 12px); }
  .fb-mini-tools:empty { display: none; }
  .fb-mini-tools .mast-tools { gap: clamp(12px,1.4vw,20px); }
  .fb-mini .cur-switch button { width: 27px; height: 27px; font-size: 13px; }
  .fb-mini .sortby-btn { font-size: 13px; }
  .fb-tags { display: flex; flex: 1; flex-wrap: nowrap; align-items: center; gap: 6px 18px; margin-left: 20px; min-width: 0; overflow: hidden; }
  .fb-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13px; letter-spacing: .01em;
    color: var(--navy); background: none; border: none; padding: 3px 0; cursor: pointer; white-space: nowrap; transition: color .2s ease; }
  .fb-tag svg { width: 11px; height: 11px; color: rgba(45,20,17,.4); transition: color .2s ease; }
  .fb-tag:hover, .fb-tag:focus-visible { color: var(--gold); outline: none; }
  .fb-tag:hover svg, .fb-tag:focus-visible svg { color: var(--gold); }
  /* dropdown: the full filters drop DOWN from the mini bar (the block is relocated here on open) */
  .fb-mini-drop { position: absolute; left: 0; right: 0; top: 100%; background: var(--spec-bg);
    border-bottom: 1px solid rgba(45,20,17,.12); box-shadow: 0 26px 44px -30px rgba(28,14,11,.45);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .26s ease, transform .34s var(--ease-reveal); }
  .fb-mini-drop[hidden] { display: none; }
  .fb-mini.drop-open .fb-mini-drop { opacity: 1; transform: none; pointer-events: auto; }
  .fb-mini.drop-open .fb-toggle { background: var(--navy); color: var(--paper); border-color: var(--navy); }
  /* one line, split 40 / 60 — pills left of the rule, ranges right of it */
  .fb-row { display: grid; grid-template-columns: 40% 60%; align-items: center; }
  .fb-left { display: flex; align-items: center; gap: clamp(14px,1.7vw,30px); flex-wrap: nowrap; min-width: 0;
    padding-right: clamp(14px,1.8vw,28px); }
  .fb-right { display: flex; align-items: center; gap: clamp(14px,1.7vw,26px); min-width: 0; align-self: stretch;
    border-left: 1px solid rgba(45,20,17,.12); padding-left: clamp(18px,2.2vw,34px); }
  .fb-group { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
  .fb-l { font-family: var(--sans); font-size: 12.5px; color: rgba(36,31,26,.55); white-space: nowrap; }
  .pills { display: inline-flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
  .pills button { min-width: 34px; font-family: var(--sans); font-size: 12.5px; color: var(--navy); background: #E1D8C8;
    border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
    transition: background .25s var(--ease-reveal), color .25s, border-color .25s; }
  .pills button:hover { background: #D8CDB9; }
  .pills button.on { background: var(--navy); color: var(--paper); border-color: var(--navy); }
  .fb-reset { flex: 0 0 auto; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 13px;
    color: rgba(45,20,17,.55); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
  .fb-reset:hover { color: var(--navy); }
  .fb-sliders { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px clamp(14px,1.8vw,26px); align-content: center; }
  /* below this the single line stops being honest — fall back to the stacked layout */
  @media (max-width: 1180px) {
    .fb-row { grid-template-columns: 1fr; row-gap: 14px; }
    .fb-left { padding-right: 0; flex-wrap: wrap; gap: 16px clamp(16px,2.4vw,34px); }
    .fb-right { border-left: 0; padding-left: 0; padding-top: 14px; border-top: 1px solid rgba(45,20,17,.08); }
    .fb-reset { margin-left: auto; }
  }

  .filter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
  .filter-label { font-family: var(--sans); font-size: 12.5px; color: var(--navy); }
  .filter-val { font-family: var(--sans); font-size: 11.5px; color: rgba(45,20,17,.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .range { position: relative; height: 20px; }
  .range-track { position: absolute; top: 50%; left: 1px; right: 1px; height: 2px; transform: translateY(-50%); background: rgba(45,20,17,.16); border-radius: 2px; }
  .range-fill { position: absolute; height: 100%; background: var(--navy); border-radius: 2px; }
  .range input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
  .range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 15px; height: 15px; border-radius: 999px; background: #EDE8E2; border: 1.5px solid var(--navy); cursor: grab; box-shadow: 0 1px 3px rgba(45,20,17,.3); transition: transform .15s ease; }
  .range input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
  .range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 15px; height: 15px; border-radius: 999px; background: #EDE8E2; border: 1.5px solid var(--navy); cursor: grab; }

  /* ============================================================
     CARD GRID — one card per residence
     ============================================================ */
  .results { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: 0 auto; padding: clamp(30px,4.5vh,54px) clamp(20px, 3vw, 56px) clamp(60px,9vh,110px); }
  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px,1.2vw,18px); }

  .acard { display: flex; flex-direction: column; background: #ffffff61; border: 1px solid rgba(45,20,17,.13); border-radius: 5px;
    padding: clamp(15px,1.2vw,20px); cursor: pointer; transition: transform .4s var(--ease-reveal), border-color .3s ease; }
  .acard:hover { transform: translateY(-3px); border-color: rgba(45,20,17,.3); }
  .acard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
  .acard-title { font-family: var(--serif); font-weight: 500; font-size: clamp(23px,1.7vw,29px); line-height: 1.05; letter-spacing: -.012em; color: var(--navy); }
  .acard-dim { flex: 0 0 auto; display: flex; flex-direction: column; border: 1px solid rgba(45,20,17,.16); border-radius: 9px; overflow: hidden; }
  .acard-dim button { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(36,31,26,.4);
    background: none; border: none; padding: 6px 11px; cursor: pointer; transition: color .25s ease, background .25s ease; }
  .acard-dim button + button { border-top: 1px solid rgba(45,20,17,.12); }
  .acard-dim button.on { color: var(--navy); background: rgba(45,20,17,.05); }
  .acard-dim button:hover { color: var(--navy); }

  .acard-media { display: block; position: relative; margin-top: clamp(12px,1.4vw,18px); aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: 5px; }
  .acard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
    transition: transform .8s var(--ease-reveal), opacity .3s ease; }
  .acard:hover .acard-media img { transform: scale(1.03); }

  .acard-rule { height: 1px; background: var(--rule); margin: clamp(16px,1.7vw,22px) 0; }
  .acard-area { margin-top: clamp(12px,1.4vw,18px); font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.01em; color: var(--navy); font-variant-numeric: tabular-nums; }
  .acard-area span { font-size: 1em; }
  .acard-meta { margin-top: 11px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(36,31,26,.55); }
  .acard-meta b { color: var(--navy); font-weight: 500; }

  .acard-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .acard-buy { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
  .acard-price { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .acard-price .pg { color: inherit; }
  .acard-view { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 11.5px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; color: var(--navy); text-decoration: none; white-space: nowrap; }
  .acard-view svg { width: 15px; height: 15px; transition: transform .35s var(--ease-reveal); }
  .acard:hover .acard-view svg { transform: translate(3px,-3px); }
  .acard-view:focus-visible, .acard-media:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
  .acard.is-paged, .acard.is-hidden { display: none !important; }

  /* infinite scroll: invisible sentinel + a quiet count / end-mark */
  #gridSentinel { width: 100%; height: 1px; pointer-events: none; }
  .grid-status { margin-top: clamp(30px,4vh,50px); text-align: center; font-family: var(--sans); font-size: 12.5px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; color: rgba(45,20,17,.42); font-variant-numeric: tabular-nums; }
  .grid-end { margin-top: clamp(30px,4vh,50px); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(16px,1.3vw,19px); color: rgba(45,20,17,.5); }
  .grid-status[hidden], .grid-end[hidden] { display: none; }

  /* empty state */
  .empty { display: none; padding: clamp(34px,7vh,70px) 0; text-align: center; }
  .empty.on { display: block; }
  .empty svg { width: 120px; height: 30px; display: block; margin: 0 auto 22px; }
  .empty .ec { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 200; stroke-dashoffset: 200; }
  .empty.on .ec { transition: stroke-dashoffset 1.1s var(--ease-reveal); stroke-dashoffset: 0; }
  .empty p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px,3vw,34px); color: var(--navy); }
  .empty .elinks { margin-top: 20px; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-family: var(--sans); font-size: 14px; }
  .empty .elinks a, .empty .elinks button { color: var(--navy); background: none; border: none; cursor: pointer; padding: 0 0 2px; text-decoration: none; position: relative; }
  .empty .elinks a::after, .empty .elinks button::after { content:''; position:absolute; left:0; bottom:0; width:100%; height:1px; background: var(--gold); }

  @media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 940px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 700px) {
    .fb-sliders { grid-template-columns: 1fr; }
  }
  /* ============================================================
     MOBILE (<=760px)
     · archive = a 2-up sheet divided by hairlines — no card wrappers,
       no gaps, edge to edge. The rules do the separating, so the page
       reads as one register rather than 40 floating boxes.
     · filters live in a bottom sheet, not inline: inline they ate the
       whole first screen before a single residence appeared.
     ============================================================ */
  @media (max-width: 760px) {
    .results { padding: 0 0 clamp(50px,8vh,80px); }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); }
    .acard { border: 0; border-radius: 0; padding: 14px 14px 16px;
      border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
    .acard:nth-child(2n) { border-right: 0; }
    .acard:hover { transform: none; border-color: var(--rule); }

    .acard-title { font-size: 17px; }
    .acard-dim { border-radius: 7px; }
    .acard-dim button { font-size: 11px; padding: 4px 8px; }
    .acard-media { margin-top: 10px; aspect-ratio: 1 / 1; }
    .acard-rule { margin: 12px 0; }
    .acard-area { font-size: 21px; }
    .acard-meta { margin-top: 7px; font-size: 9.5px; letter-spacing: .06em; line-height: 1.5; }
    .acard-foot { gap: 8px; }
    .acard-price { font-size: 15px; }
    .acard-view { font-size: 0; gap: 0; }      /* arrow only — the whole card is the target */
    .acard-view svg { width: 17px; height: 17px; }

    /* the inline filter block never renders on mobile — the sheet owns it */
    .filterbar { display: none; }
    .fb-mini { position: sticky; top: 0; transform: none; opacity: 1; visibility: visible;
      pointer-events: auto; z-index: 28; transition: none; }
    .fb-mini-inner { padding: 9px 16px; gap: 10px; }
    .fb-mini-drop { display: none; }
    .fb-tags { margin-left: 0; gap: 6px 12px; }
    .fb-count { flex: 0 0 auto; font-family: var(--sans); font-size: 12.5px; color: rgba(45,20,17,.6);
      font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }

    /* --- bottom sheet (same language as the residence sheet on the site plan) --- */
    .fb-scrim { position: fixed; inset: 0; z-index: 129; background: rgba(28,14,11,.42);
      opacity: 0; pointer-events: none; transition: opacity .3s ease; }
    .fb-scrim.show { opacity: 1; pointer-events: auto; }
    .fb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; display: flex; flex-direction: column;
      max-height: 86vh; background: var(--spec-bg); border-top-left-radius: 14px; border-top-right-radius: 14px;
      box-shadow: 0 -20px 44px -22px rgba(28,14,11,.5);
      transform: translateY(101%); visibility: hidden;
      transition: transform .38s var(--ease-reveal), visibility .38s; }
    .fb-sheet.show { transform: none; visibility: visible; }
    .fb-sheet-grab { flex: 0 0 auto; padding: 9px 0 4px; display: grid; place-items: center; }
    .fb-sheet-grab i { width: 38px; height: 4px; border-radius: 4px; background: rgba(45,20,17,.18); display: block; }
    .fb-sheet-head { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: space-between;
      gap: 12px; padding: 4px 16px 12px; border-bottom: 1px solid rgba(45,20,17,.1); }
    .fb-sheet-head h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -.01em; color: var(--navy); }
    .fb-sheet-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    /* the relocated filter block, restyled for a narrow sheet */
    .fb-sheet-body .fb-wrap { padding: 16px; }
    .fb-sheet-body .fb-row { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
    .fb-sheet-body .fb-left, .fb-sheet-body .fb-right { flex-direction: column; align-items: stretch; gap: 16px;
      border-left: 0; border-top: 0; padding: 0; }
    .fb-sheet-body .fb-group { flex-direction: column; align-items: flex-start; gap: 9px; }
    .fb-sheet-body .pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; width: 100%; }
    .fb-sheet-body .pills button { min-width: 0; padding: 11px 6px; font-size: 14px; }
    .fb-sheet-body .fb-reset { margin-left: 0; align-self: flex-start; }
    .fb-sheet-body .fb-sliders { grid-template-columns: 1fr; gap: 20px; margin-left: 0; align-self: auto;
      border-left: 0; border-top: 0; padding-left: 0; padding-top: 0; }
    .fb-sheet-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
      border-top: 1px solid rgba(45,20,17,.1); background: var(--spec-bg); }
    .fb-apply { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      background: var(--navy); color: var(--paper); border: none; border-radius: 999px; padding: 15px 20px;
      font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .03em; cursor: pointer; }
    .fb-clear { flex: 0 0 auto; background: none; border: 1px solid rgba(45,20,17,.2); border-radius: 999px;
      padding: 15px 18px; font-family: var(--sans); font-size: 13.5px; color: var(--navy); cursor: pointer; }
    body.sheet-open { overflow: hidden; }
  }
  @media (max-width: 380px) {
    .acard { padding: 12px 12px 14px; }
    .acard-title { font-size: 15.5px; }
    .acard-area { font-size: 19px; }
  }
  @media (max-width: 620px) {
    .hdr-right .lang, .btn-find { display: none; }
    .logo-img { height: 46px; } header.is-stuck .logo-img { height: 36px; }
    .mast-band { align-items: flex-start; }
    .fb-row { gap: 14px 20px; }
    .fb-group { flex: 1 1 100%; }
    .fb-reset { margin-left: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .mast-rule i { transform: scaleX(1); transition: none; }
    .acard-media img { transition: none; }
    .empty .ec { transition: none; stroke-dashoffset: 0; }
    .fb-mini, .fb-mini-drop { transition: none !important; }
  }


/* ===== FOOTER ===== */
.foot { position: relative; background: var(--black); color: var(--paper); overflow: hidden;
  padding: clamp(72px,9vh,104px) 0 calc(clamp(40px,6vh,72px) + env(safe-area-inset-bottom)); }
.foot[data-reveal] { opacity: 1; transform: none; transition: none; }   /* container stays put; inner zones animate */
.foot-inner { max-width: calc(1440px + 2 * clamp(20px, 3vw, 56px)); margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); }
/* inner zones reveal — keyed off .foot.in */
.foot-brand, .foot-grid, .foot-legal { opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal); }
.foot.in .foot-brand { opacity: 1; transform: none; transition-delay: 0.05s; }
.foot.in .foot-grid  { opacity: 1; transform: none; transition-delay: 0.15s; }
.foot.in .foot-legal { opacity: 1; transform: none; transition-delay: 0.25s; }
/* ZONE 2 — brand + positioning */
.foot-brand { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(24px,4vw,56px); }
.foot-wordmark { width: clamp(120px,14vw,152px); height: auto; display: block; filter: brightness(0) invert(1); }
.foot-lines { max-width: 46ch; }
.foot-emotional { font-family: var(--sans); font-weight: 400; font-size: clamp(16px,1.5vw,19px); line-height: 1.35; color: rgba(244,238,228,.92); margin: 0; }
.foot-positioning { font-family: var(--sans); font-weight: 300; font-size: clamp(14px,1.15vw,16px); line-height: 1.5; color: rgba(244,238,228,.6); margin: 6px 0 0; }
/* ZONE 3 — main grid */
.foot-grid { margin-top: clamp(48px,8vh,88px); display: grid; grid-template-columns: repeat(12,1fr); column-gap: clamp(20px,2.4vw,34px); row-gap: 40px; }
.foot-col-cta { grid-column: span 4; }
.foot-col-nav { grid-column: span 3; }
.foot-col-contact { grid-column: span 5; }
.foot-label { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(176,141,76,.92); margin: 0 0 16px; }
.foot-cta { display: inline-block; font-family: var(--sans); font-weight: 400; font-size: clamp(26px,3vw,40px); line-height: 1.06; letter-spacing: -.01em;
  color: var(--paper); background: none; border: none; padding: 0; cursor: pointer; position: relative; text-align: left; }
.foot-cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-reveal); }
.foot-cta:hover::after, .foot-cta:focus-visible::after { transform: scaleX(1); }
.foot-cta-sub { font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.5; color: rgba(244,238,228,.6); margin: 18px 0 0; max-width: 34ch; }
.foot-mail { display: inline-block; font-family: var(--sans); font-size: 14px; color: rgba(244,238,228,.85); background: none; border: none; padding: 0 0 2px; cursor: pointer; position: relative; text-align: left; transition: color .25s ease; }
.foot-mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: transparent; transition: background .3s ease; }
.foot-mail:hover, .foot-mail:focus-visible { color: var(--gold); }
.foot-mail:hover::after, .foot-mail:focus-visible::after { background: var(--gold); }
.foot-cta-mail { margin-top: 16px; font-size: 15px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-list a, .foot-contact a { font-family: var(--sans); font-weight: 300; color: rgba(244,238,228,.85); text-decoration: none; position: relative; width: fit-content; transition: color .25s ease; }
.foot-list a { font-size: 15px; }
.foot-list a::after, .foot-contact a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-reveal); }
.foot-list a:hover, .foot-list a:focus-visible, .foot-contact a:hover, .foot-contact a:focus-visible { color: var(--gold); }
.foot-list a:hover::after, .foot-list a:focus-visible::after, .foot-contact a:hover::after, .foot-contact a:focus-visible::after { transform: scaleX(1); }
.foot-contact { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.55; color: rgba(244,238,228,.85); }
.foot-contact .addr { margin: 0; }
.foot-contact .indic { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: .06em; color: rgba(244,238,228,.5); }
.foot-contact .row { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.foot-contact a.tel { font-variant-numeric: tabular-nums; }
.foot-social { margin-top: 8px; display: flex; gap: 22px; }
/* ZONE 4 — legal baseline */
.foot-legal { margin-top: clamp(56px,9vh,96px); padding-top: 22px; border-top: 1px solid rgba(244,238,228,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.foot-legal-left { font-family: var(--sans); font-size: 12px; font-weight: 300; color: rgba(244,238,228,.55); display: flex; flex-wrap: wrap; align-items: center; }
.foot-legal-left a { color: rgba(244,238,228,.55); text-decoration: none; transition: color .25s ease; }
.foot-legal-left a:hover, .foot-legal-left a:focus-visible { color: rgba(244,238,228,.9); }
.foot-legal-left .sep { margin: 0 10px; color: rgba(244,238,228,.3); }
.foot-legal-right { display: flex; align-items: center; gap: 24px; }
.foot-dev { font-family: var(--sans); font-size: 12px; font-weight: 300; color: rgba(244,238,228,.45); }
.foot a:focus-visible, .foot button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
@media (max-width: 860px) {
  .foot { padding-top: clamp(56px,8vh,84px); }
  .foot-brand { grid-template-columns: 1fr; align-items: start; row-gap: 18px; }
  .foot-grid { grid-template-columns: 1fr; row-gap: 34px; }
  .foot-col-cta, .foot-col-nav, .foot-col-contact { grid-column: 1 / -1; }
  .foot-cta { font-size: clamp(26px,7.5vw,34px); }
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-legal-right { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-brand, .foot-grid, .foot-legal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
