/* ==========================================================================
   Don Chamberí: design system
   Paper / ink / Chamberí brown / brand mustard
   ========================================================================== */
/* Self-hosted Instrument Sans/Serif (SIL OFL), Latin subset */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic.woff2) format("woff2"); }
/* Arial tuned to Instrument Sans metrics so the swap doesn't move text */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 101.4%; ascent-override: 95.7%; descent-override: 24.7%; line-gap-override: 0%; }
:root {
  --paper: #F2F1EE;
  --surface: #FFFFFF;
  --ink: #231A16;
  --ink-2: #5E534D;
  --muted: #736963;
  --line: #E3E0DB;
  --brown: #4C3128;
  --brown-2: #3A251E;
  --mustard: #E8B92B;
  --mustard-ink: #4A3600;
  --ok: #2F6B45;
  --err: #A33A2B;

  /* Onest/PT Serif (Cyrillic) and Noto SC (Chinese) are only downloaded on ?lang=ru / ?lang=zh (see i18n.js).
     They sit before the Arial-based fallback, which has Cyrillic and would otherwise win. */
  --sans: "Instrument Sans", "Onest", "Noto Sans SC", "Instrument Sans Fallback", Arial, sans-serif;
  --serif: "Instrument Serif", "PT Serif", "Noto Serif SC", Georgia, serif;

  --r-frame: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --pill: 999px;

  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --frame-inset: clamp(8px, 1vw, 14px);

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --step-5: clamp(2.75rem, 1.4rem + 5.6vw, 6rem);

  --shadow: 0 1px 2px rgba(35, 26, 22, .06), 0 8px 24px -12px rgba(35, 26, 22, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
/* Chinese has no italics: keep Han characters upright instead of a faux slant */
:lang(zh) { font-synthesis: none; }
:lang(zh) .it { letter-spacing: 0; }
:lang(zh) .brand__tag { max-width: none; white-space: nowrap; } /* 12ch is only ~6 Han characters */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* Section heading: big title left, short note right (from the reference) */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: var(--step-4); max-width: 14ch; }
.sec-head p { color: var(--muted); max-width: 38ch; justify-self: end; padding-top: .6em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; padding-top: 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brown); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--line { border-color: var(--line); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: var(--step--1); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ==========================================================================
   Header (plain bar) + hero: logo, nav, outlined action button
   ========================================================================== */
.site-head { position: relative; z-index: 50; }
.site-head__bar { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); min-height: 84px; }
.site-nav { flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__tag { font-size: var(--step--1); color: var(--muted); line-height: 1.2; max-width: 12ch; border-left: 1px solid var(--line); padding-left: 12px; }

.nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav > li { position: relative; }
.nav a, .nav button.nav__toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: var(--pill); text-decoration: none; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.nav__toggle:hover, .nav a[aria-current="page"] { background: var(--surface); }
.nav__toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 30; }
.nav__menu a { display: flex; width: 100%; border-radius: var(--r-sm); padding: 10px 12px; }
.nav__menu a:hover { background: var(--paper); }
.nav__menu small { display: block; color: var(--muted); font-size: var(--step--1); }
.nav > li.open > .nav__menu, .nav > li:focus-within > .nav__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav > li:hover > .nav__menu { opacity: 1; visibility: visible; transform: none; } }
.nav > li.open .nav__toggle .icon { transform: rotate(180deg); }

.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.phone-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .2s; }
.phone-pill:hover { border-color: var(--ink); }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 500; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 6px; list-style: none; margin: 0; min-width: 170px; display: none; z-index: 40; }
.lang.open .lang__menu { display: block; }
.lang__menu button { width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.lang__menu button:hover { background: var(--paper); }
.lang__menu button[aria-current="true"] { font-weight: 600; }
.lang__menu small { color: var(--muted); }
.burger { display: none; }

/* Reserve the header's height before app.js fills it, so the page doesn't jump */
.site-head:empty { height: 84px; }
@media (max-width: 640px) { .site-head:empty { height: 70px; } }
#list-search:empty { min-height: 242px; }
@media (max-width: 900px) { #list-search:empty { min-height: 305px; } }
@media (max-width: 640px) { #list-search:empty { min-height: 576px; } }
#grid:empty, #pd:empty { min-height: 100vh; }
@media (max-width: 1280px) {
  .site-nav { display: none; }
  .burger { display: inline-grid; }
}
@media (max-width: 640px) {
  .brand__tag { display: none; }
  .brand img { height: 38px; }
  .lang { display: none; }
  .phone-pill span { display: none; }
  .phone-pill { width: 42px; padding: 0; justify-content: center; }
  .site-head__bar { min-height: 70px; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20,13,10,.45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav a { display: block; padding: 12px 4px; font-size: 1.35rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer nav a.sub { font-size: 1rem; padding-left: 18px; color: var(--ink-2); }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer__langs button { border: 1px solid var(--line); background: #fff; border-radius: var(--pill); padding: 6px 12px; cursor: pointer; }
.drawer__langs button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Home hero (headline on paper, full-bleed photo below) ---------- */
.hero { padding-top: clamp(28px, 5vw, 76px); }
.hero__top, .page-hero__row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 4.1vw, 5rem); line-height: 1; letter-spacing: -0.04em; max-width: 17ch; }
.hero__note, .page-hero__row p { color: var(--muted); max-width: 34ch; justify-self: end; padding-top: .9em; font-size: 1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.hero__media { position: relative; margin-top: clamp(36px, 5vw, 64px); height: min(100vw * 685 / 1268, 100svh - 80px); overflow: hidden; background: var(--paper); }
.hero__media::before { content: ""; position: absolute; inset: 0 0 auto; height: 34%; background: linear-gradient(180deg, var(--paper) 0%, rgba(242,241,238,.55) 45%, rgba(242,241,238,0) 100%); z-index: 1; pointer-events: none; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 100%; }
@media (max-width: 600px) { .hero__media { height: 80vw; } }
@media (max-width: 760px) {
  .hero__top, .page-hero__row { grid-template-columns: 1fr; }
  .hero__note, .page-hero__row p { justify-self: start; padding-top: 0; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(20px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem); line-height: .98; letter-spacing: -0.04em; max-width: 15ch; }
.hero h1 .it, .page-hero h1 .it { font-family: inherit; font-style: normal; letter-spacing: inherit; }
.page-hero__media { margin-top: clamp(32px, 4vw, 52px); height: clamp(240px, 34vw, 480px); overflow: hidden; background: #DDD8D2; }
.page-hero--short .page-hero__media { height: clamp(200px, 22vw, 300px); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); margin: 0 0 18px; list-style: none; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Intro / stats ---------- */
.intro { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px 48px; }
.intro__label { color: var(--muted); font-size: var(--step--1); padding-top: .7em; }
.intro__text { font-size: var(--step-3); line-height: 1.18; letter-spacing: -0.02em; max-width: 28ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 6vw, 72px); }
.stat b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 10px; font-size: var(--step--1); color: var(--ink-2); max-width: 18ch; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }

/* Photo strip with mixed heights */
.strip { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.25fr; gap: 14px; align-items: end; margin-top: clamp(48px, 7vw, 88px); }
.strip > * { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip > :nth-child(1) { height: 300px; }
.strip > :nth-child(2) { height: 360px; }
.strip > :nth-child(4) { height: 330px; }
.strip-card { height: 400px; background: var(--brown); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.strip-card img { position: absolute; inset: 0; opacity: .55; z-index: 0; }
.strip-card > :not(img) { position: relative; z-index: 1; }
.strip-card h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.9rem; line-height: 1; max-width: 8ch; }
.strip-card .arrow { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .25s; }
.strip-card:hover .arrow { transform: rotate(45deg); }
.strip-card p { font-size: var(--step--1); color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr 1fr; } .strip > * { height: 260px !important; } }

/* ---------- Search panel (tabs + filters) ---------- */
.search { position: relative; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: #E7E5E1; color: var(--ink-2); padding: 13px 26px; border-radius: var(--r-md) var(--r-md) 0 0; cursor: pointer; white-space: nowrap; font-size: .95rem; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 500; }
.search__body { background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); padding: clamp(16px, 2.4vw, 28px); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: var(--step--1); color: var(--ink-2); }
.select, .input, .textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 0 14px; transition: border-color .2s; }
.select:hover, .input:hover, .textarea:hover { border-color: #C9C3BC; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,185,43,.35); }
.select { appearance: none; padding-right: 38px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23231A16' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.select:disabled { background-color: var(--paper); color: var(--muted); cursor: not-allowed; }
.textarea { min-height: 130px; padding: 12px 14px; resize: vertical; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.search__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 4px; cursor: pointer; font-weight: 500; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.search__more { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.search__more.open { display: block; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line); font-size: .9rem; background: #fff; transition: all .15s; }
.chip-check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } .tab { padding: 12px 18px; } }

/* ---------- Property card ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 1.6vw, 22px); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #DDD8D2; }
.card__track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.card__track img { width: 100%; height: 100%; flex: none; object-fit: cover; }
.card__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; z-index: 2; }
.card__nav--prev { left: 10px; } .card__nav--next { right: 10px; }
.card:hover .card__nav, .card__nav:focus-visible { opacity: 1; }
@media (hover: none) { .card__nav { opacity: 1; width: 32px; height: 32px; } }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--pill); font-size: .78rem; font-weight: 500; background: rgba(255,255,255,.95); color: var(--ink); }
.badge--reserved { background: var(--mustard); color: var(--mustard-ink); }
.badge--dark { background: rgba(35,26,22,.78); color: #fff; }
.card__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.card__body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { font-size: 1.1rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card__price small { display: block; text-align: right; font-weight: 400; font-size: .75rem; color: var(--muted); }
.card__loc { color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; }
.card__ref { position: relative; z-index: 2; border: 0; background: none; color: var(--muted); font-size: .8rem; cursor: pointer; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.card__ref:hover { color: var(--ink); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs .icon { width: 17px; height: 17px; color: var(--muted); }

/* Featured horizontal scroller with pill tags */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 24%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller .feat:first-child { grid-column: span 2; }
.scroller .feat:first-child .feat__img { aspect-ratio: 8 / 5; }
.feat { position: relative; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.feat__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feat:hover .feat__img img { transform: scale(1.03); }
.feat__price { font-size: .85rem; color: var(--muted); }
.feat__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.05; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; padding: 4px 11px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: .78rem; }
.scroller-nav { display: flex; gap: 8px; }
@media (max-width: 900px) { .scroller { grid-auto-columns: 46%; } }
@media (max-width: 600px) { .scroller { grid-auto-columns: 80%; } .scroller .feat:first-child { grid-column: span 1; } .scroller .feat:first-child .feat__img { aspect-ratio: 4 / 5; } }

/* ---------- Brown feature block ---------- */
.feature { position: relative; border-radius: var(--r-frame); overflow: hidden; background: var(--brown); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 520px; isolation: isolate; }
.feature__copy { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.feature__copy h2 { font-size: var(--step-4); line-height: 1; }
.feature__copy h2 .it { display: block; padding-left: 1.2em; }
.feature__copy p { color: rgba(255,255,255,.82); max-width: 46ch; }
.feature__media { position: relative; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--brown) 0%, rgba(76,49,40,0) 35%); }
.feature__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.owner-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); }
.owner-list .icon { color: var(--mustard); margin-top: 3px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature__media { min-height: 280px; order: -1; } .feature__media::before { background: linear-gradient(0deg, var(--brown) 0%, rgba(76,49,40,0) 50%); } }

/* ---------- Services list ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.service:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.service .icon { width: 28px; height: 28px; color: var(--brown); stroke-width: 1.4; }
.service h3 { font-size: 1.3rem; letter-spacing: -0.015em; margin-top: 10px; }
.service p { color: var(--ink-2); font-size: .95rem; max-width: 40ch; }
.service ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.service ul li + li { margin-top: 4px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .service:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Split panels (alerts + callback) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.split > * { min-width: 0; }
.panel { background: var(--surface); border-radius: var(--r-frame); padding: clamp(24px, 3.6vw, 48px); }
.panel h2 { font-size: var(--step-3); max-width: 16ch; }
.panel > p { color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.panel--brown { background: var(--brown); color: #fff; }
.panel--brown > p { color: rgba(255,255,255,.8); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.panel--brown .check { color: rgba(255,255,255,.85); }
.inline-form { display: flex; gap: 8px; margin-top: 24px; background: rgba(255,255,255,.1); border-radius: var(--pill); padding: 6px; }
.inline-form input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: #fff; padding: 0 14px; font-size: 1.05rem; }
.inline-form input::placeholder { color: rgba(255,255,255,.6); }
.inline-form input:focus { outline: none; }
.inline-form:focus-within { box-shadow: 0 0 0 3px var(--mustard); }
.contact-lines { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; border-top: 1px solid rgba(255,255,255,.14); }
.contact-lines a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-size: .92rem; display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); }
.form-msg.show { display: flex; }
.form-msg--ok { background: #E4F0E7; color: var(--ok); }
.form-msg--err { background: #F6E3DF; color: var(--err); }
.panel--brown .form-msg--ok { background: rgba(255,255,255,.12); color: #fff; }
.field-err { color: var(--err); font-size: .8rem; display: none; }
[aria-invalid="true"] { border-color: var(--err) !important; }
[aria-invalid="true"] ~ .field-err { display: block; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Not found banner ---------- */
.nf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--surface); }
.nf p { font-size: 1.15rem; max-width: 44ch; }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.news-item { padding: 24px 0 28px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.news-item time { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
.news-item p { color: var(--ink-2); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-item .more { margin-top: auto; font-size: .9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }

/* ---------- Areas (SEO block) ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas a { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--pill); text-decoration: none; font-size: .92rem; background: #fff; }
.areas a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { margin: var(--frame-inset); border-radius: var(--r-frame); background: var(--ink); color: #EDE8E3; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) 28px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__big { font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; }
.footer__big a { text-decoration: none; }
.footer__big a:hover { color: var(--mustard); }
.footer__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0; }
.office h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.office p { color: rgba(237,232,227,.7); font-size: .92rem; line-height: 1.6; }
.office a { text-decoration: none; }
.office a:hover { text-decoration: underline; }
.office .tag { display: inline-block; margin-top: 8px; font-size: .78rem; padding: 3px 10px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.2); color: rgba(237,232,227,.8); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: rgba(237,232,227,.65); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #EDE8E3; }
.socials a:hover { background: #fff; color: var(--ink); }
.footer .brand { background: #fff; border-radius: var(--pill); padding: 6px 16px; }
.footer .brand img { height: 34px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } .footer__cta { justify-content: flex-start; } .offices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Floating contact + callback sheet ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: var(--pill); background: var(--brown); color: #fff; border: 1px solid rgba(255,255,255,.22); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(35,26,22,.6); font-weight: 500; }
.fab:hover { background: var(--brown-2); }
.sheet { position: fixed; right: 18px; bottom: 82px; z-index: 75; width: min(380px, calc(100% - 36px)); background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(35,26,22,.45); padding: 22px; display: none; }
.sheet.open { display: block; animation: pop .2s ease; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.sheet h3 { font-size: 1.35rem; }
.sheet > p { color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.sheet__close { position: absolute; top: 12px; right: 12px; }
.sheet .row { display: flex; gap: 8px; margin-top: 16px; }
.sheet .row .input { flex: 1; }
.sheet__alt { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet__alt a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .95rem; }
.sheet__alt a:hover span { text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 80; width: min(460px, calc(100% - 36px)); background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(35,26,22,.45); padding: 22px; display: none; }
.cookie.show { display: block; }
.cookie h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.cookie p { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie__prefs { display: none; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.cookie__prefs.open { display: block; }
.pref { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pref small { display: block; color: var(--muted); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: #D7D2CC; border-radius: var(--pill); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.has-fab .cookie.show ~ .fab { bottom: 18px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); font-size: .92rem; z-index: 120; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Listing page
   ========================================================================== */
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 40px 0 24px; }
.results-head h2 { font-size: var(--step-3); }
.results-head h2 .it { color: var(--ink-2); }
.results-tools { display: flex; align-items: center; gap: 10px; }
.results-tools .select { min-height: 42px; width: auto; border-radius: var(--pill); padding-left: 16px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; margin-bottom: 20px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: var(--pill); padding: 5px 8px 5px 12px; font-size: .85rem; cursor: pointer; }
.active-filters button:hover { border-color: var(--ink); }
.active-filters .icon { width: 14px; height: 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; }
.pager button { min-width: 42px; height: 42px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0 14px; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 72px 20px; background: var(--surface); border-radius: var(--r-lg); }
.empty h3 { font-size: var(--step-2); }
.empty p { color: var(--ink-2); margin: 10px auto 22px; max-width: 42ch; }

/* ==========================================================================
   Property detail
   ========================================================================== */
.pd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 28px 0 24px; }
.pd-head h1 { font-size: var(--step-4); line-height: 1; max-width: 20ch; }
.pd-head h1 .it { display: block; color: var(--ink-2); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 52vw, 600px); }
.gallery button { border: 0; padding: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; position: relative; background: #DDD8D2; }
.gallery button:first-child { grid-row: span 2; border-radius: var(--r-lg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery button:hover img { transform: scale(1.03); }
.gallery__all { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 460px; } .gallery button:first-child { grid-column: span 2; grid-row: auto; } .gallery button:nth-child(n+4) { display: none; } }

.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); margin-top: 40px; align-items: start; }
@media (max-width: 1000px) { .pd-layout { grid-template-columns: 1fr; } }
.keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r-lg); }
.keyfact { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.keyfact + .keyfact { border-left: 1px solid var(--line); }
.keyfact .icon { width: 22px; height: 22px; color: var(--muted); }
.keyfact b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.keyfact span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 600px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfact:nth-child(3) { border-left: 0; } .keyfact:nth-child(n+3) { border-top: 1px solid var(--line); } }
.pd-block { margin-top: 56px; }
.pd-block > h2 { font-size: var(--step-2); margin-bottom: 20px; letter-spacing: -0.02em; }
.desc { font-size: 1.06rem; color: var(--ink-2); max-width: 68ch; }
.desc p + p { margin-top: 1em; }
.desc .lead { font-size: 1.35rem; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }
.desc ul { padding-left: 1.1em; margin: .6em 0; }
.desc.clamped { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.note { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.feats-group { grid-column: 1 / -1; font-size: .85rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--muted); padding: 22px 0 6px; }
.feats-group:first-child { padding-top: 0; }
.feat-row { margin: 0; display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.feat-row dt { color: var(--ink-2); }
.feat-row dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* Energy certificate scale */
.energy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.energy__card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; }
.energy__card h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.energy__card .val { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.scale { display: grid; gap: 4px; margin-top: 16px; }
.scale div { height: 22px; border-radius: 0 6px 6px 0; display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: .78rem; font-weight: 600; position: relative; }
.scale div.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.scale div.on::after { content: attr(data-label); position: absolute; left: calc(100% + 10px); color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .energy { grid-template-columns: 1fr; } }

/* Mortgage */
.mortgage { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mortgage__inputs { display: grid; gap: 18px; }
.slider-field label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.slider-field label output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--brown); height: 24px; }
.mortgage__out { background: var(--paper); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mortgage__out .big { font-size: 2.6rem; letter-spacing: -0.03em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.mortgage__out .big small { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.mortgage__out dl { margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.mortgage__out dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.mortgage__out dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.mortgage__out .disclaimer { font-size: .78rem; color: var(--muted); }
@media (max-width: 700px) { .mortgage { grid-template-columns: 1fr; } }

.map { height: 380px; border-radius: var(--r-lg); overflow: hidden; background: #E6E2DC; z-index: 0; }
.map-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Sticky aside */
.aside { position: sticky; top: 20px; display: grid; gap: 14px; }
.aside-card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.aside-card .price { font-size: 2.2rem; letter-spacing: -0.03em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.aside-card .price small { font-size: .95rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.aside-card .sub { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.aside-card form { display: grid; gap: 10px; margin-top: 18px; }
.aside-card .input, .aside-card .textarea, .aside-card .select { min-height: 44px; }
.aside-card .textarea { min-height: 96px; }
.agent { display: flex; gap: 14px; align-items: center; }
.agent__logo { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; overflow: hidden; flex: none; }
.agent__logo img { width: 44px; height: auto; }
.agent b { display: block; font-weight: 600; }
.agent span { color: var(--muted); font-size: .88rem; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(20,13,10,.94); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lightbox__stage { flex: 1; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 0; padding: 0 12px; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 170px); margin: auto; border-radius: var(--r-md); object-fit: contain; }
.lightbox .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.2); }
.lightbox__thumbs { display: flex; gap: 6px; justify-content: center; padding: 14px; overflow-x: auto; }
.lightbox__thumbs button { width: 72px; height: 50px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; opacity: .55; background: none; }
.lightbox__thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .lightbox__stage { grid-template-columns: 1fr; } .lightbox__stage .icon-btn { display: none; } }

/* ==========================================================================
   Content pages
   ========================================================================== */
.prose { font-size: 1.08rem; color: var(--ink-2); max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col h2 { font-size: var(--step-4); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--brown); }
.points h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.points p { color: var(--ink-2); margin-top: 4px; font-size: .97rem; }
.quote { font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.value { background: var(--surface); border-radius: var(--r-lg); padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.value:nth-child(2) { background: var(--brown); color: #fff; }
.value:nth-child(2) p { color: rgba(255,255,255,.8); }
.value h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.2rem; }
.value p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.legal-tabs a { padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line); text-decoration: none; background: #fff; }
.legal-tabs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-sec { scroll-margin-top: 24px; padding-bottom: 48px; }
.legal-sec h2 { font-size: var(--step-3); margin-bottom: 18px; }
.callout { background: #FBF3D9; border-radius: var(--r-md); padding: 16px 18px; color: var(--mustard-ink); font-size: .95rem; display: flex; gap: 10px; }

/* Print: property sheet */
@media print {
  .site-head, .fab, .sheet, .cookie, .footer, .pd-actions, .aside form, .quick-actions, .mortgage, .map, .similar, .crumbs, .gallery__all, .toast, .drawer { display: none !important; }
  body { background: #fff; }
  .pd-layout { grid-template-columns: 1fr; }
  .gallery { height: 340px; }
  .aside { position: static; }
  .desc.clamped { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.15) contrast(.95) brightness(1.03); }
.panel h2 + p { margin-top: 12px; color: inherit; opacity: .85; max-width: 46ch; }
