/* ==========================================================================
   ESTATES — design system
   Warm ivory, charcoal, muted beige, a trace of dark bronze. Editorial serif
   for display, quiet sans for everything else. Restraint over decoration.
   ========================================================================== */

:root {
  --ivory: #F6F2EB;
  --paper: #FBF9F5;
  --sand: #EDE6DA;
  --line: #E2D9CB;
  --beige: #D9CFC1;
  /* Secondary text: ≥ 4.5:1 on ivory, paper and sand. */
  --stone: #67615A;
  --stone-2: #57524B;
  /* Secondary text on ink (≈ 6:1). */
  --mist: #A39B8F;
  --ink: #1C1B19;
  --ink-2: #34312C;
  --bronze: #6B4F2E;
  --bronze-2: #8C6A43;
  --white: #FFFFFF;
  --danger: #8E3B2E;
  --ok: #4A5D43;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1440px;
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 40px -12px rgba(28, 27, 25, .14);
}

*, *::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(--ivory);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.section--ink :focus-visible, .hero :focus-visible, .page-hero--image :focus-visible, .banner :focus-visible,
.footer :focus-visible, .menu :focus-visible, .header--transparent:not(.is-solid) :focus-visible { outline-color: var(--beige); }
::selection { background: var(--bronze-2); color: var(--ivory); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200; padding: 12px 18px;
  background: var(--ink); color: var(--ivory); transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 980px; }
.section { padding: clamp(96px, 12vw, 184px) 0; }
.section--tight { padding: clamp(56px, 7vw, 104px) 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section + .section--line { border-top: 1px solid var(--line); }
.main { min-height: 60vh; }
.page-top { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); }

/* ---------- Typography ---------- */
/* Letter-spaced small caps: the quiet signature of every section. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font: 500 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--stone);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--plain::before { display: none; }
.section--ink .eyebrow { color: var(--beige); }

.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.h3 { font-weight: 500; }
/* Prices and figures in the serif read as lining numerals, not old-style. */
.display, .h1, .h2, .h3, .card__price, .contact-card__price, .stat__num, .keyfact__value, .estimate__value,
.toolbar__count, .standard__title, .not-found__code { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.display { font-size: clamp(2.9rem, 6.4vw, 6.25rem); line-height: 1; letter-spacing: -.02em; }
.h1 { font-size: clamp(2.4rem, 4.6vw, 4.5rem); line-height: 1.04; }
.h2 { font-size: clamp(2.05rem, 3.6vw, 3.5rem); line-height: 1.08; }
.h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.15; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--bronze-2); }
.section--ink .h2 em { color: var(--beige); }
.lead { font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.75; color: var(--ink-2); max-width: 58ch; }
.section--ink .lead { color: #CFC7BA; }
.actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.section-foot { margin-top: clamp(48px, 6vw, 72px); }
.muted { color: var(--stone); }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.prose p { margin: 0 0 1.1em; max-width: 68ch; color: var(--ink-2); }
.prose h2 { font: 500 1.75rem/1.2 var(--serif); margin: 2em 0 .6em; }
.prose h3 { font: 600 1rem/1.4 var(--sans); margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.1em; color: var(--ink-2); }
.prose li { margin: .35em 0; }
.prose a { border-bottom: 1px solid var(--beige); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head__text { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 24px; }
.section-head .lead { margin-top: 20px; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease), color .2s;
}
.link-arrow:hover { gap: 18px; color: var(--bronze); }
.section--ink .link-arrow:hover { color: var(--beige); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 32px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--ivory);
  font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn--outline-light { background: transparent; border-color: rgba(246, 242, 235, .5); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--whatsapp { background: #1F3B2D; border-color: #1F3B2D; }
.btn--whatsapp:hover { background: #2B5440; border-color: #2B5440; }
.btn--block { width: 100%; }
.section--ink .btn:not(.btn--light):not(.btn--outline-light):not(.btn--whatsapp) { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.section--ink .btn:not(.btn--light):not(.btn--outline-light):not(.btn--whatsapp):hover { background: var(--beige); border-color: var(--beige); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(246, 242, 235, .94); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 32px; width: 100%; }
.header--transparent:not(.is-solid) { background: transparent; border-color: rgba(255, 255, 255, .14); color: var(--ivory); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header.is-hidden { transform: translateY(-100%); }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; gap: 7px; flex-shrink: 0; }
.wordmark__name { display: block; height: 17px; width: auto; aspect-ratio: 5028 / 666; fill: currentColor; }
.wordmark__sig { font: 500 7.5px/1 var(--sans); letter-spacing: .3em; opacity: .62; white-space: nowrap; }

.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); margin: 0 auto; }
.nav a { position: relative; font: 500 13px/1 var(--sans); letter-spacing: .04em; padding: 8px 0; opacity: .86; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font: 500 11px/1 var(--sans); letter-spacing: .12em; }
.lang a { padding: 8px 6px; opacity: .55; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current="true"] { opacity: 1; }
.lang a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; }

.fav-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; }
.fav-link svg { width: 20px; height: 20px; }
.fav-link__count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--bronze); color: var(--ivory); font: 600 10px/17px var(--sans); text-align: center;
}
.fav-link__count[hidden] { display: none; }
.header .btn--sm { min-height: 42px; }
.header--transparent:not(.is-solid) .btn--sm { background: transparent; border-color: rgba(246, 242, 235, .55); color: var(--ivory); }
.header--transparent:not(.is-solid) .btn--sm:hover { background: var(--ivory); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; margin-right: -10px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; margin: 7px auto; transition: transform .3s var(--ease), opacity .3s; }

/* The full menu needs ~1200px in en/ru; below that the drawer menu takes over. */
@media (max-width: 1200px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
}
@media (max-width: 480px) {
  :root { --header-h: 72px; }
  .lang { display: none; }
  .wordmark__name { height: 15px; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 24px); }
.menu__close { width: 44px; height: 44px; border: 0; background: none; color: inherit; display: grid; place-items: center; }
.menu__close svg { width: 22px; height: 22px; }
.menu__nav { display: flex; flex-direction: column; margin-top: 6vh; }
.menu__nav a { font: 500 clamp(2rem, 8vw, 3rem)/1.25 var(--serif); padding: 6px 0; border-bottom: 1px solid rgba(246, 242, 235, .08); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.menu .lang { display: flex; font-size: 13px; }
body.menu-open { overflow: hidden; }

/* Demo banner */
.demo-banner {
  position: relative; z-index: 101; background: var(--bronze); color: var(--ivory);
  font: 500 12px/1.4 var(--sans); letter-spacing: .04em; text-align: center; padding: 9px var(--gutter);
}
.has-demo-banner .header { top: 36px; }
@media (max-width: 640px) { .has-demo-banner .header { top: 52px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 19, 17, .78) 0%, rgba(20, 19, 17, .48) 45%, rgba(20, 19, 17, .1) 78%),
    linear-gradient(0deg, rgba(20, 19, 17, .6) 0%, rgba(20, 19, 17, 0) 45%);
}
.hero__content { position: relative; width: 100%; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero__eyebrow { color: rgba(246, 242, 235, .82); margin-bottom: 28px; }
.hero__title { max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero__title em { display: block; color: #E2CBA6; }
.hero__text { margin: 28px 0 0; max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(246, 242, 235, .84); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 242, 235, .6); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 2px; padding: 0; border: 0; background: rgba(246, 242, 235, .3); transition: background .3s; }
.hero__dots button[aria-current="true"] { background: var(--ivory); }
@media (max-width: 640px) { .hero__meta span { display: none; } }

/* ---------- Search panel ---------- */
/* A quiet private-bank style enquiry bar, not a portal search box. */
.search { margin-top: clamp(44px, 6vw, 80px); max-width: 1120px; background: rgba(251, 249, 245, .97); color: var(--ink); border-radius: var(--radius); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .55); }
.search__tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 10px; }
.search__tab {
  position: relative; border: 0; background: none; padding: 20px 22px 18px;
  font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--stone);
  transition: color .3s var(--ease);
}
.search__tab:hover { color: var(--ink); }
.search__tab[aria-selected="true"] { color: var(--ink); }
.search__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1px; background: var(--ink); }
.search__fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; }
.search__field { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border-right: 1px solid var(--line); min-width: 0; }
.search__field label { font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.search__field select, .search__field input {
  width: 100%; border: 0; background: transparent; padding: 4px 0; font-size: 15px; outline: none; min-width: 0;
  appearance: none; -webkit-appearance: none;
}
.search__field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238A847B'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right center no-repeat; padding-right: 18px; cursor: pointer; }
.search__submit { display: flex; align-items: stretch; padding: 10px; }
.search__submit .btn { min-height: 100%; padding: 0 34px; }
@media (max-width: 1100px) {
  .search__fields { grid-template-columns: 1fr 1fr; }
  .search__field:nth-child(2n) { border-right: 0; }
  .search__field { border-bottom: 1px solid var(--line); }
  .search__submit { grid-column: 1 / -1; }
  .search__submit .btn { min-height: 54px; width: 100%; }
}
@media (max-width: 640px) {
  .search__field { padding: 14px 16px; }
  .search__tab { padding: 18px 14px 16px; letter-spacing: .14em; }
  .search__tab[aria-selected="true"]::after { left: 14px; right: 14px; }
}

/* ---------- Property card ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* The collection: two large residences per row, generous air between them. */
.grid--collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 7vw, 120px) clamp(28px, 4vw, 72px); }
@media (max-width: 760px) { .grid--collection { grid-template-columns: minmax(0, 1fr); gap: 56px; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
@media (min-width: 761px) { .grid--collection .card__media, .rail .card__media { aspect-ratio: 4 / 3; } }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease), opacity 1s var(--ease); }
.card__media .card__img2 { opacity: 0; }
.card:hover .card__media img { transform: scale(1.025); }
.card:hover .card__media .card__img2 { opacity: 1; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.card:hover .card__link, .card__link:focus-visible { background-size: 100% 1px; }
.card__chips { position: absolute; top: 20px; left: 20px; right: 76px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 0;
  background: rgba(251, 249, 245, .94); color: var(--ink);
  font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.chip--dark { background: rgba(28, 27, 25, .82); color: var(--ivory); }
.chip--bronze { background: var(--bronze); color: var(--ivory); }
.chip--outline { background: transparent; border: 1px dashed var(--stone); color: var(--ink-2); }
.chip--demo { background: rgba(28, 27, 25, .66); border: 1px dashed rgba(251, 249, 245, .7); color: var(--ivory); backdrop-filter: blur(4px); }
.card__fav { position: absolute; top: 16px; right: 16px; z-index: 2; }
.fav-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(251, 249, 245, .9); color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease);
}
.fav-btn:hover { background: var(--ivory); color: var(--bronze); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn[aria-pressed="true"] svg { fill: var(--bronze); stroke: var(--bronze); }
.card__body { padding-top: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__loc { font: 500 10.5px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.card__title { font: 400 clamp(1.5rem, 1.9vw, 1.95rem)/1.18 var(--serif); margin: 0; }
.card__specs { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 2px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.card__specs li { display: inline-flex; align-items: center; }
.card__specs li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--beige); margin: 0 14px; }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.card__price { font: 400 1.6rem/1.1 var(--serif); letter-spacing: .01em; }
.card__price small { font: 400 13px var(--sans); color: var(--stone); }
.card__code { font-size: 11px; color: var(--stone); }
.card__yield { font-size: 13px; color: var(--bronze); }

/* List view */
.results--list .grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.results--list .card { flex-direction: row; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.results--list .card__media { width: min(42%, 420px); aspect-ratio: 4 / 3; flex-shrink: 0; }
.results--list .card__body { padding-top: 6px; }
@media (max-width: 640px) {
  .results--list .card { flex-direction: column; gap: 0; }
  .results--list .card__media { width: 100%; }
}

/* Dark variant (investment section) */
.section--ink .card__media { background: var(--ink-2); }
.section--ink .card__loc, .section--ink .card__code, .section--ink .card__price small { color: var(--mist); }
.section--ink .card__specs li + li::before { background: rgba(246, 242, 235, .3); }
.section--ink .card__specs { color: #D8D0C3; }
.section--ink .card__foot { border-color: rgba(246, 242, 235, .14); }
.section--ink .card__yield { color: var(--beige); }

/* ---------- Carousel (featured) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - clamp(28px, 4vw, 72px)) / 2); gap: clamp(28px, 4vw, 72px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 86%; gap: 16px; } }
.rail-nav { display: flex; gap: 10px; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(220px, 22vw, 320px); gap: 16px; }
.cat { position: relative; overflow: hidden; color: var(--ivory); background: var(--ink-2); }
.cat:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.cat:nth-child(2) { grid-column: span 3; }
.cat:nth-child(3), .cat:nth-child(4) { grid-column: span 3; }
.cat:nth-child(n+3) { grid-column: span 3; }
.cats--6 .cat:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.cats--6 .cat:nth-child(2), .cats--6 .cat:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.cats--6 .cat:nth-child(n+4) { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 19, 17, .78) 0%, rgba(20, 19, 17, .35) 35%, rgba(20, 19, 17, 0) 65%); }
.cat__name { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.cat:hover img { transform: scale(1.04); }
.cat__label { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cat__name { font: 500 clamp(1.5rem, 2.2vw, 2.1rem)/1 var(--serif); }
.cat__count { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
@media (max-width: 900px) {
  .cats, .cats--6 { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .cats .cat, .cats--6 .cat { grid-column: span 1 !important; grid-row: span 1 !important; }
  .cats .cat:first-child { grid-column: span 2 !important; }
}

/* ---------- Split / editorial blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--wide-media { grid-template-columns: 1.2fr 1fr; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--landscape img { aspect-ratio: 5 / 4; }
.split__media .split__inset { position: absolute; width: 42%; right: -3%; bottom: -10%; aspect-ratio: 3 / 4; border: 10px solid var(--ivory); }
.split__body > * + * { margin-top: 24px; }
@media (max-width: 900px) { .split, .split--wide-media { grid-template-columns: 1fr; } .split__media .split__inset { right: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 24px 0 0; }
.stat__num { font: 500 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--serif); }
.stat__label { margin-top: 10px; font-size: 13px; color: var(--stone); max-width: 22ch; }
.section--ink .stats { border-color: rgba(246, 242, 235, .14); }
.section--ink .stat__label { color: #A39B8F; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 12px; } }

/* Numbered editorial list (services, steps) */
.numbered { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.numbered__item { display: grid; grid-template-columns: 90px 1fr 1.2fr 150px; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.numbered__num { font: 500 13px/1 var(--sans); letter-spacing: .12em; color: var(--stone); }
.numbered__title { font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--serif); margin: 0; }
.numbered__text { color: var(--ink-2); font-size: 15px; margin: 0; }
.numbered__tag { font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); white-space: nowrap; text-align: right; }
.numbered__tag--interium { color: var(--bronze); }
@media (max-width: 900px) {
  .numbered__item { grid-template-columns: 48px 1fr; }
  .numbered__text, .numbered__tag { grid-column: 2; }
}

/* Feature tiles (services with images) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--ivory); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; transition: background .3s; }
.tile:hover { background: var(--paper); }
.tile__num { font: 500 12px/1 var(--sans); color: var(--stone); letter-spacing: .14em; }
.tile__title { font: 500 1.6rem/1.15 var(--serif); margin: 64px 0 0; }
.tile__text { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 1100px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

.service-card { display: flex; flex-direction: column; }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { padding-top: 22px; }
.service-card__body p { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; }
.provider { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.provider::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.provider--interium { color: var(--bronze); }
.provider--interium::before { background: var(--bronze); }

/* The ESTATES Standard */
.standard__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(56px, 7vw, 104px); }
.standard__head .eyebrow { margin-bottom: 24px; }
.standard__head .h2 { max-width: 20ch; }
.standard__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.standard__item { border-top: 1px solid var(--ink); padding-top: 28px; }
.standard__num { display: block; font: 400 italic 1.15rem/1 var(--serif); color: var(--bronze); margin-bottom: clamp(32px, 4vw, 56px); }
.standard__title { font: 400 1.6rem/1.15 var(--serif); margin: 0 0 14px; }
.standard__title--figure { font-size: clamp(1.75rem, 2.4vw, 2.3rem); white-space: nowrap; }
.standard__item p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.standard__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.standard__foot p { margin: 0; max-width: 62ch; color: var(--ink-2); font: 400 italic clamp(1.15rem, 1.5vw, 1.35rem)/1.5 var(--serif); }
@media (max-width: 1100px) { .standard__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 760px) { .standard__head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .standard__list { grid-template-columns: 1fr; row-gap: 40px; } .standard__title--figure { white-space: normal; } }

/* Banner with image */
.banner { position: relative; overflow: hidden; color: var(--ivory); background: var(--ink); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner__inner { position: relative; padding: clamp(80px, 12vw, 180px) 0; }
.banner .lead { color: rgba(246, 242, 235, .85); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(48px, 6vw, 88px); }
.page-hero--image { color: var(--ivory); background: var(--ink); overflow: hidden; min-height: 74vh; display: flex; align-items: flex-end; }
.page-hero--image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 17, .72) 0%, rgba(20, 19, 17, .35) 50%, rgba(20, 19, 17, .05) 80%), linear-gradient(0deg, rgba(20, 19, 17, .6), rgba(20, 19, 17, 0) 60%); }
.page-hero--image em { color: #E2CBA6; }
.page-hero--image .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero--image .eyebrow { color: rgba(246, 242, 235, .8); }
.page-hero .lead { margin-top: 26px; }
.page-hero--image .lead { color: rgba(246, 242, 235, .86); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 12px; color: var(--stone); letter-spacing: .04em; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Listings page ---------- */
.listing { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }

@media (max-width: 1100px) { .listing { grid-template-columns: minmax(0, 1fr); } }

.filters { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 30px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters__head { display: none; }
.filter-group { display: flex; flex-direction: column; gap: 12px; }
.filter-group__label { font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 42px; font-size: 13px; transition: background .2s, color .2s; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--ink); color: var(--ivory); }
.seg input:focus-visible + span { outline: 1px solid var(--bronze); outline-offset: -3px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--beige); background: var(--paper); display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--ivory); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--ivory); transform: none; }
.check__count { margin-left: auto; font-size: 12px; color: var(--stone); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 12px; border: 1px solid var(--line); font-size: 13.5px; transition: all .2s; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-sm { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; border-radius: var(--radius); outline: none; transition: border-color .2s; }
.field-sm:focus { border-color: var(--ink); }
select.field-sm { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238A847B'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 32px; cursor: pointer; }
.filters__actions { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 12px 0 4px; background: var(--ivory); }
.filters__actions .btn { flex: 1; min-width: 0; padding: 0 12px; letter-spacing: .16em; }
.range.range--stack { grid-template-columns: 1fr; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar__count { margin: 0; font: 400 2rem/1 var(--serif); }
.toolbar__count span { font: 400 italic 1.25rem var(--serif); color: var(--stone); margin-left: 10px; }
.toolbar__tools { display: flex; align-items: center; gap: 12px; }
.toolbar__tools .field-sm { width: auto; min-width: 190px; }
.view-toggle { display: flex; border: 1px solid var(--line); }
.view-toggle button { width: 42px; height: 40px; display: grid; place-items: center; border: 0; background: var(--paper); color: var(--stone); }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.view-toggle svg { width: 17px; height: 17px; }
.filters-open { display: none; }
@media (max-width: 1100px) {
  .filters-open { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; z-index: 160; max-height: none; top: 0; padding: 24px var(--gutter) 0;
    background: var(--ivory); transform: translateX(-100%); transition: transform .4s var(--ease); overflow: auto;
  }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; }
  .toolbar__tools .field-sm { min-width: 0; }
}
@media (max-width: 640px) {
  .toolbar__tools { width: 100%; flex-wrap: wrap; gap: 8px; }
  .toolbar__tools .filters-open { flex: 1 1 auto; }
  .toolbar__tools .field-sm { flex: 1 1 140px; }
  .toolbar__tools .view-toggle { flex: 0 0 auto; }
  .page-hero { padding-bottom: 24px; }
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.active-filters a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); font-size: 12.5px; background: var(--paper); }
.active-filters a:hover { border-color: var(--ink); }
.active-filters svg { width: 12px; height: 12px; }

.empty { text-align: center; padding: clamp(56px, 8vw, 110px) 24px; border: 1px solid var(--line); background: var(--paper); }
.empty .h3 { margin: 18px 0 12px; }
.empty p { color: var(--stone); max-width: 46ch; margin: 0 auto 28px; }
.empty__icon { width: 46px; height: 46px; margin: 0 auto; color: var(--beige); }

.pager { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: clamp(48px, 6vw, 80px); }
.pager__progress { width: 220px; height: 1px; background: var(--line); position: relative; }
.pager__progress span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.pager__info { font-size: 13px; color: var(--stone); }
.pager__links { display: flex; gap: 6px; }
.pager__links a, .pager__links span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 13px; padding: 0 10px; }
.pager__links [aria-current="page"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.map-view { height: min(72vh, 760px); border: 1px solid var(--line); background: var(--sand); margin-bottom: 40px; }
.map-view[hidden] { display: none; }

/* ---------- Leaflet tweaks ---------- */
.leaflet-container { font-family: var(--sans) !important; background: var(--sand) !important; }
.map-tiles-muted .leaflet-tile-pane { filter: grayscale(1) sepia(.18) contrast(.92) brightness(1.04); }
.price-pin { background: var(--ink); color: var(--ivory); font: 600 11.5px/1 var(--sans); padding: 7px 10px; border-radius: 14px; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); transform: translate(-50%, -50%); display: inline-block; transition: background .2s; }
.price-pin:hover { background: var(--bronze); }
.leaflet-div-icon { background: none !important; border: 0 !important; }
.map-popup { width: 220px; }
.map-popup img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.map-popup strong { display: block; font: 500 1.05rem/1.2 var(--serif); }
.map-popup span { color: var(--stone); font-size: 12px; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; }
.leaflet-popup-content { margin: 12px !important; }

/* ---------- Property detail ---------- */
.detail-head { padding-top: calc(var(--header-h) + 36px); }
.detail-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.detail-head__title { max-width: 820px; }
.detail-head__eyebrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-head__title .h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.detail-head__loc { margin-top: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.detail-head__loc svg { width: 16px; height: 16px; color: var(--stone); }
.detail-head__actions { display: flex; gap: 10px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(180px, 22vw, 330px)); gap: 10px; position: relative; }
.gallery__item { position: relative; overflow: hidden; background: var(--sand); border: 0; padding: 0; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:first-child { grid-row: span 2; }
.gallery--few { grid-template-columns: 2fr 1fr; }
.gallery--single { grid-template-columns: 1fr; grid-template-rows: clamp(320px, 50vw, 680px); }
.gallery__all { position: absolute; right: 18px; bottom: 18px; z-index: 2; }
.gallery__all .btn { background: rgba(251, 249, 245, .94); color: var(--ink); border-color: transparent; }
.gallery__all .btn:hover { background: var(--ink); color: var(--ivory); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 120px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(n+4) { display: none; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 72px); }
@media (max-width: 1100px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail__block { padding: 40px 0; border-top: 1px solid var(--line); }
.detail__block:first-child { border-top: 0; padding-top: 0; }
.detail__block > .h3 { margin-bottom: 26px; }

.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); }
.keyfact { padding: 22px 20px; border-right: 1px solid var(--line); }
.keyfact:last-child { border-right: 0; }
.keyfact__label { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.keyfact__value { margin-top: 10px; font: 500 1.6rem/1 var(--serif); }
@media (max-width: 640px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfact:nth-child(2) { border-right: 0; } .keyfact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { color: var(--stone); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }

.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.highlights li { display: flex; gap: 14px; font-size: 15px; color: var(--ink-2); }
.highlights li::before { content: ""; flex-shrink: 0; width: 18px; height: 1px; background: var(--bronze); margin-top: .8em; }
@media (max-width: 640px) { .highlights { grid-template-columns: 1fr; } }

.amenities { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.amenities li { height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }

.media-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-tabs { display: flex; gap: 8px; margin-bottom: 18px; }

.detail-map { height: 420px; border: 1px solid var(--line); background: var(--sand); }
.detail-map__note { font-size: 12.5px; color: var(--stone); margin-top: 10px; }

.aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { background: var(--paper); border: 1px solid var(--line); padding: 32px; box-shadow: var(--shadow); }
.contact-card__price { font: 500 2.4rem/1 var(--serif); }
.contact-card__sub { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--stone); }
.contact-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 0; }
.contact-card__divider { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.contact-card__divider::before, .contact-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-card__agent { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.contact-card__agent strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.monogram { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ivory); font: 500 11px/1 var(--sans); letter-spacing: .16em; flex-shrink: 0; }

.estimate { border: 1px solid var(--line); background: var(--paper); padding: 28px; }
.estimate__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.estimate__label { font-size: 12px; color: var(--stone); }
.estimate__value { font: 500 1.6rem/1.1 var(--serif); margin-top: 6px; }
.estimate__note { margin: 20px 0 0; font-size: 12.5px; color: var(--stone); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 640px) { .estimate__grid { grid-template-columns: 1fr; } }

.mobile-cta { display: none; }
@media (max-width: 1100px) {
  .aside { position: static; }
  .mobile-cta {
    position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 242, 235, .97); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { min-height: 46px; padding: 0 10px; letter-spacing: .1em; }
  .has-mobile-cta .footer { padding-bottom: 90px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 19, 17, .97); color: var(--ivory); display: none; }
.lightbox.is-open { display: block; }
.lightbox__stage { position: absolute; inset: 72px 72px 96px; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox__bar { position: absolute; inset: 0 0 auto 0; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 13px; letter-spacing: .1em; }
.lightbox__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(246, 242, 235, .25); background: transparent; color: var(--ivory); display: grid; place-items: center; transition: background .2s; }
.lightbox__btn:hover { background: rgba(246, 242, 235, .1); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__caption { position: absolute; inset: auto 0 0 0; height: 96px; display: grid; place-items: center; font-size: 13px; color: #A39B8F; }
@media (max-width: 640px) { .lightbox__stage { inset: 72px 0 96px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; } }

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; background: var(--sand); touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 50% 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--ivory); transform: translateX(-.5px); }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%; background: var(--ivory); color: var(--ink); transform: translate(-50%, -50%); display: grid; place-items: center; box-shadow: var(--shadow); }
.ba__knob svg { width: 22px; height: 22px; }
.ba__label { position: absolute; top: 16px; z-index: 1; }
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form--2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.form--2 .form__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form--2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 10.5px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--beige); background: transparent; border-radius: 0;
  padding: 10px 0 12px; font-size: 15.5px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238A847B'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 2px center no-repeat; cursor: pointer; }
.field--invalid input, .field--invalid textarea { border-color: var(--danger); }
.field__error { font-size: 12px; color: var(--danger); min-height: 0; }
.section--ink .field label { color: #A39B8F; }
.section--ink .field input, .section--ink .field select, .section--ink .field textarea { border-color: rgba(246, 242, 235, .25); color: var(--ivory); }
.section--ink .field input:focus, .section--ink .field textarea:focus { border-color: var(--ivory); }
.section--ink .field select option { color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; color: var(--stone); line-height: 1.5; }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--bronze); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); }
.form__status--ok { border-color: #BFCBB8; color: var(--ok); }
.form__status--error { border-color: #E2C1BA; color: var(--danger); }
.form__status[hidden] { display: none; }
.form.is-sent .form__fields { display: none; }

/* ---------- Consultation block ---------- */
.consult { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.consult__info { display: flex; flex-direction: column; gap: 28px; }
.consult__contacts { display: grid; gap: 0; border-top: 1px solid rgba(246, 242, 235, .14); }
.consult__contacts a, .consult__contacts div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(246, 242, 235, .14); font-size: 15px; }
.consult__contacts span { color: #A39B8F; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.section:not(.section--ink) .consult__contacts, .section:not(.section--ink) .consult__contacts a, .section:not(.section--ink) .consult__contacts div { border-color: var(--line); }
.section:not(.section--ink) .consult__contacts span { color: var(--stone); }
@media (max-width: 900px) { .consult { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.section--ink + .footer, .banner + .footer { border-top: 1px solid rgba(246, 242, 235, .1); }
.footer { background: var(--ink); color: #CFC7BA; padding: clamp(64px, 8vw, 110px) 0 108px; /* bottom clears the fixed concierge launcher */ font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(246, 242, 235, .1); }
.footer .wordmark { color: var(--ivory); }
.footer .wordmark__name { height: 22px; }
.footer__about { margin-top: 26px; max-width: 34ch; color: var(--mist); }
.footer h3 { font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--mist); margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--ivory); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 12.5px; color: var(--mist); }
.footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__end { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__by { display: inline-flex; align-items: center; gap: 10px; padding-left: 28px; border-left: 1px solid rgba(246, 242, 235, .14); color: var(--mist); text-decoration: none; transition: color .2s; }
.footer__by img { height: 22px; width: auto; opacity: .8; transition: opacity .2s; }
.footer__by:hover { color: var(--ivory); }
.footer__by:hover img { opacity: 1; }
@media (max-width: 600px) { .footer__end { gap: 18px; } .footer__by { padding-left: 0; border-left: 0; } }
.footer__giant { display: block; width: 100%; height: auto; margin: 56px 0 8px; overflow: visible; user-select: none; pointer-events: none; }
.footer__giant { color: rgba(246, 242, 235, .05); }
.social { display: flex; gap: 10px; margin-top: 26px; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(246, 242, 235, .16); border-radius: 50%; display: grid; place-items: center; }
.social a:hover { border-color: var(--ivory); }
.social svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--ivory); padding: 14px 22px; font-size: 13.5px; transition: all .35s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.notice { font-size: 12.5px; color: var(--stone); border-left: 2px solid var(--beige); padding: 4px 0 4px 14px; }
.section--ink .notice { color: #A39B8F; border-color: rgba(246, 242, 235, .25); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--stone); margin-bottom: 26px; }
.step h3 { font: 500 1.45rem/1.15 var(--serif); margin: 0 0 10px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.section--ink .step { border-color: rgba(246, 242, 235, .14); }
.section--ink .step p { color: #CFC7BA; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.quote { font: 400 italic clamp(1.6rem, 2.8vw, 2.5rem)/1.3 var(--serif); max-width: 30ch; margin: 0; }

.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.not-found__code { font: 500 clamp(7rem, 22vw, 16rem)/.9 var(--serif); color: var(--beige); letter-spacing: -.03em; }
.not-found .lead { margin: 18px auto 36px; }
.not-found__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ready-card .card__media { aspect-ratio: 5 / 4; }
.share-menu { position: relative; }
.share-menu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px; display: none; }
.share-menu.is-open .share-menu__list { display: block; }
.share-menu__list a, .share-menu__list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; text-align: left; font-size: 14px; }
.share-menu__list a:hover, .share-menu__list button:hover { background: var(--sand); }
.share-menu__list svg { width: 16px; height: 16px; }

/* ==========================================================================
   Private Client, owners, payments
   ========================================================================== */

/* Header: a discreet text link, no button weight. */
.client-link { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .72; padding: 8px 0; white-space: nowrap; transition: opacity .2s; }
.client-link:hover, .client-link[aria-current="page"] { opacity: 1; }
.client-link { display: inline-flex; align-items: center; padding: 8px 2px; }
.client-link svg { width: 20px; height: 20px; }
.nav a { white-space: nowrap; }
@media (max-width: 1400px) { .nav { gap: clamp(14px, 1.5vw, 26px); } .header__tools { gap: 12px; } .header__inner { gap: 24px; } }

.link-inline { border-bottom: 1px solid var(--beige); transition: border-color .2s, color .2s; }
.link-inline:hover { border-color: var(--bronze); color: var(--bronze); }
.link-arrow--quiet { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; color: var(--stone); }

.panel { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.panel .form { gap: 22px; }
.panel .form__status { margin-bottom: 22px; }

.auth { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 7vw, 120px); align-items: start; }
.auth__copy .lead { margin-top: 26px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

.field__hint { font-size: 12px; color: var(--stone); }
.field__legend { font: 500 10.5px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.code-input { font: 500 2rem/1 var(--serif) !important; letter-spacing: .5em; text-align: center; padding: 14px 0 16px !important; }

.status-badge { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beige); }
.status-badge--verified::before, .status-badge--scheduled::before, .status-badge--paid::before, .status-badge--accepted::before { background: var(--ok); }
.status-badge--pending::before, .status-badge--received::before, .status-badge--progress::before, .status-badge--awaiting::before, .status-badge--review::before { background: var(--bronze-2); }
.status-badge--suspended::before, .status-badge--declined::before { background: var(--danger); }

.cabinet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.status-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.status-panel > div { max-width: 62ch; }
.status-panel--verified { border-color: #C9D2C3; }
.cabinet-block { margin-top: clamp(72px, 9vw, 120px); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows__item { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows__item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rows__title { font: 500 1.3rem/1.25 var(--serif); }
.rows__title a:hover { color: var(--bronze); }
.rows__meta { font-size: 12.5px; color: var(--stone); }
@media (max-width: 560px) { .rows__item { flex-direction: column; align-items: flex-start; gap: 12px; } }

.private-count { font: 400 italic clamp(1.2rem, 1.6vw, 1.45rem)/1.4 var(--serif); color: var(--ink-2); }
.owner-invite { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--ink); }
.owner-invite .eyebrow { margin-bottom: 18px; }
.owner-invite .h3 { max-width: 30ch; }

.teaser { min-height: 78vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 72px); }
.teaser__inner { max-width: 760px; }
.teaser__inner .eyebrow { margin-bottom: 28px; }
.teaser__title { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.teaser__count { margin: 36px 0 0; font: 400 italic 1.35rem/1.4 var(--serif); color: var(--beige); display: flex; align-items: baseline; gap: 14px; }
.teaser__num { font: 400 normal clamp(3rem, 5vw, 4.5rem)/1 var(--serif); color: var(--ivory); }
.teaser .lead { margin-top: 24px; }
.teaser .actions { align-items: center; }

.pill-link { display: inline-grid; place-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line); font-size: 13.5px; transition: all .2s; }
.pill-link:hover { border-color: var(--ink); }
.pill-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* NDA block inside the viewing form */
.nda { border: 1px solid var(--line); background: var(--ivory); padding: 22px 22px 24px; margin: 0; display: grid; gap: 16px; min-width: 0; }
.nda__title { font: 500 10.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); padding: 0 8px; margin-left: -8px; }
.nda__text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.nda input[type="file"] { font-size: 13px; padding: 8px 0; border-bottom: 0; }

.detail-map__private { border-bottom: 1px solid var(--beige); white-space: nowrap; }
.detail-map__private:hover { color: var(--bronze); border-color: var(--bronze); }

/* --- Owners ------------------------------------------------------------------------------ */
.owner-invite--home { align-items: flex-end; }
.owner-invite--home .h2 { max-width: 18ch; }
.owner-invite--home .lead { margin-top: 20px; }

.owner-steps { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.owner-steps li { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--stone); font-size: 13px; }
.owner-steps .is-current { border-top-color: var(--ink); color: var(--ink); }
.owner-steps .is-done { border-top-color: var(--bronze-2); }
.owner-steps__num { font: 500 11px/1 var(--sans); letter-spacing: .14em; }
@media (max-width: 640px) { .owner-steps { grid-template-columns: repeat(4, 1fr); } .owner-steps__label { display: none; } }

.owner-notice { margin-top: 28px; max-width: 720px; }
.owner-tabs { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; font-size: 13.5px; }
.owner-tabs a { border-bottom: 1px solid var(--beige); padding-bottom: 4px; }
.owner-tabs a:hover { border-color: var(--ink); }

.owner-form { max-width: 920px; gap: 0; }
.owner-fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 36px 0 44px; display: grid; gap: 22px; min-width: 0; }
.owner-legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font: 500 1.6rem/1.2 var(--serif); }
.owner-legend + * { clear: both; }
.owner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.owner-grid--price { grid-template-columns: 2fr 1fr; }
@media (max-width: 760px) { .owner-grid { grid-template-columns: 1fr 1fr; } .owner-grid--price { grid-template-columns: 1fr; } }
.owner-more summary { cursor: pointer; font-size: 13.5px; color: var(--stone); padding: 6px 0; }
.owner-more[open] summary { margin-bottom: 18px; }
.owner-more .field + .field { margin-top: 20px; }
.checks--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 760px) { .checks--grid { grid-template-columns: 1fr 1fr; } }
.owner-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 8px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

.owner-photos .lead { margin-bottom: 32px; }
.owner-upload { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.owner-upload__drop { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px dashed var(--beige); background: var(--paper); cursor: pointer; }
.owner-upload__drop input { font-size: 13px; }
.owner-upload__drop > span:first-of-type { font: 500 1.15rem/1.3 var(--serif); }
.owner-gallery { list-style: none; margin: 40px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.owner-gallery li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.owner-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.owner-gallery__caption { display: flex; gap: 8px; align-items: center; }
.owner-gallery__caption input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--beige); background: transparent; padding: 6px 0; font-size: 13px; }
.owner-gallery__remove { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(251, 249, 245, .92); display: grid; place-items: center; }
.owner-gallery__remove svg { width: 14px; height: 14px; }

.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.packages--1 { grid-template-columns: minmax(0, 560px); }
.packages--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .packages, .packages--3 { grid-template-columns: 1fr; } }
.package { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3.5vw, 44px); background: var(--ivory); border: 1px solid var(--line); }
.package--private { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.package--private .highlights li { color: #CFC7BA; }
.package--private .package__tag { color: var(--beige); }
.package--private .btn:not(.btn--ghost) { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.package__tag { margin: 0; font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.package__name { font: 400 2.2rem/1.05 var(--serif); margin: 0; }
.package__price { font: 400 1.35rem/1 var(--serif); margin: 0; font-variant-numeric: lining-nums; }
.package .highlights { margin-bottom: 8px; flex: 1; }
.package--choice { cursor: pointer; }
.package--choice input { position: absolute; top: 24px; right: 24px; width: 18px; height: 18px; accent-color: var(--bronze); }
.package--choice:has(input:checked) { outline: 2px solid var(--bronze); outline-offset: -2px; }
.owner-terms { margin-top: 40px; display: grid; gap: 18px; max-width: 760px; }
.owner-terms p { margin: 0; }
.owner-link-note { max-width: 46ch; }
.owner-summary .specs { max-width: 760px; }

/* Header fit with the "For owners" item: tighten between the mobile breakpoint and wide screens. */
@media (min-width: 1101px) and (max-width: 1360px) {
  .header__inner { gap: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .header__tools { gap: 10px; }
  .header__cta { padding-inline: 16px; letter-spacing: .12em; }
}

/* Individual / company switch + profile page */
.company-fields { display: grid; gap: 20px; }
.company-fields[hidden] { display: none; }
.profile-facts { display: grid; gap: 14px; margin: 32px 0 0; }
.profile-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.profile-facts dt { font: 500 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-2); }
.profile-facts dd { margin: 0; }
.profile-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 40px; margin-top: 24px; }
.profile-card dt { font: 500 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 6px; }
.profile-card dd { margin: 0; }
@media (max-width: 560px) { .profile-facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Concierge ("Şəxsi məsləhətçi") ----------
   A discreet private-advisor desk, not a chat bubble: ink launcher with a serif mark, ivory panel,
   editorial serif title, ink / paper message blocks. Full-screen sheet on phones. */
.concierge { --c-gap: 24px; }
.concierge__launcher {
  position: fixed; right: var(--c-gap); bottom: calc(var(--c-gap) + env(safe-area-inset-bottom)); z-index: 95;
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 8px;
  background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 10px 30px -12px rgba(28, 27, 25, .45); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s var(--ease), transform .25s var(--ease), opacity .2s;
}
.concierge__launcher:hover { background: var(--ink-2); }
.concierge__launcher:focus-visible { outline-color: var(--bronze-2); }
.concierge__mark {
  width: 36px; height: 36px; border: 1px solid rgba(246, 242, 235, .38); border-radius: 50%;
  display: grid; place-items: center; font: italic 500 21px/1 var(--serif); letter-spacing: 0; color: var(--beige);
}
.concierge.is-open .concierge__launcher { opacity: 0; pointer-events: none; transform: translateY(8px); }
.menu-open .concierge__launcher { display: none; }
@media (max-width: 1100px) {
  .has-mobile-cta .concierge__launcher { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

.concierge__panel {
  position: fixed; right: var(--c-gap); bottom: var(--c-gap); z-index: 140; width: 404px; height: min(660px, calc(100vh - 48px));
  display: flex; flex-direction: column; background: var(--ivory); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius);
  animation: concierge-in .28s var(--ease);
}
.concierge__panel[hidden] { display: none; }
@keyframes concierge-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.concierge__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.concierge__brand { display: grid; gap: 6px; }
.concierge__wordmark { display: block; color: var(--stone); line-height: 0; }
.concierge__wordmark-svg { height: 10px; width: auto; aspect-ratio: 5028 / 666; }
.concierge__title { margin: 0; font: 500 26px/1.05 var(--serif); letter-spacing: -.005em; }
.concierge__online { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--stone); letter-spacing: .04em; }
.concierge__online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 93, 67, .14); }
.concierge__actions { display: flex; align-items: center; gap: 4px; }
.concierge__new { background: none; border: 0; padding: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-2); }
.concierge__new:hover { color: var(--bronze); }
.concierge__close { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--ink); }
.concierge__close:hover { border-color: var(--line); }
.concierge__close svg { width: 18px; height: 18px; }

.concierge__log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.concierge__intro { margin: 0 0 4px; font: 400 19px/1.4 var(--serif); color: var(--ink-2); }
.concierge__starters { display: grid; gap: 8px; margin-top: 6px; }
.concierge__starter {
  text-align: left; background: transparent; border: 1px solid var(--line); padding: 11px 14px; font-size: 13.5px; line-height: 1.4;
  color: var(--ink-2); border-radius: var(--radius); transition: border-color .2s, background .2s;
}
.concierge__starter:hover { border-color: var(--bronze-2); background: var(--paper); }

.concierge__msg { max-width: 88%; padding: 11px 15px; font-size: 14.5px; line-height: 1.58; border-radius: var(--radius); overflow-wrap: anywhere; }
.concierge__msg p { margin: 0; }
.concierge__msg p + p { margin-top: 8px; }
.concierge__msg--user { align-self: flex-end; background: var(--ink); color: var(--ivory); }
.concierge__msg--advisor { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.concierge__msg--notice { align-self: stretch; max-width: none; background: transparent; border: 1px dashed var(--beige); color: var(--stone-2); font-size: 13px; }
.concierge__lead { align-self: flex-start; font-size: 12px; letter-spacing: .08em; color: var(--bronze); }

.concierge__cards { display: grid; gap: 8px; align-self: stretch; }
.concierge__card {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.concierge__card:hover { border-color: var(--bronze-2); }
.concierge__card img { width: 84px; height: 64px; object-fit: cover; background: var(--sand); }
.concierge__card-title { font: 500 16px/1.2 var(--serif); }
.concierge__card-meta { margin-top: 4px; font-size: 12px; color: var(--stone); }
.concierge__card-price { margin-top: 2px; font-size: 13px; font-weight: 500; }
.concierge__card-badge { display: inline-block; margin-left: 6px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }

.concierge__typing { display: flex; align-items: center; gap: 10px; padding: 0 20px 10px; font-size: 12.5px; color: var(--stone); }
.concierge__typing[hidden] { display: none; }
.concierge__dots { display: inline-flex; gap: 4px; }
.concierge__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--bronze-2); animation: concierge-dot 1.2s infinite ease-in-out; }
.concierge__dots i:nth-child(2) { animation-delay: .15s; }
.concierge__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes concierge-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .concierge__dots i { animation: none; opacity: .6; }
  .concierge__panel { animation: none; }
}

.concierge__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 12px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.concierge__form textarea {
  flex: 1; min-height: 40px; max-height: 128px; resize: none; border: 0; background: transparent; padding: 10px 0; font-size: 15px; line-height: 1.45; outline: none;
}
.concierge__form:focus-within { box-shadow: inset 0 1px 0 var(--bronze-2); }
.concierge__send { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: var(--ivory); border: 0; border-radius: var(--radius); }
.concierge__send:hover { background: var(--bronze); }
.concierge__send[disabled] { opacity: .4; pointer-events: none; }
.concierge__send svg { width: 18px; height: 18px; }
.concierge__note { margin: 0; padding: 8px 20px 12px; font-size: 11px; line-height: 1.5; color: var(--stone); background: var(--paper); }
.concierge__note a { text-decoration: underline; text-underline-offset: 2px; }
.concierge__offline { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.concierge__offline[hidden] { display: none; }
.concierge__offline p { margin: 0 0 12px; }
.concierge__offline-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .concierge { --c-gap: 16px; }
  .concierge__launcher { min-height: 48px; padding: 0 16px 0 6px; gap: 10px; }
  .concierge__mark { width: 34px; height: 34px; font-size: 19px; }
  .concierge__panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; z-index: 170; }
  .concierge__head { padding-top: calc(16px + env(safe-area-inset-top)); }
  .concierge__note { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .concierge__msg { max-width: 92%; }
  .concierge__form textarea { font-size: 16px; } /* no iOS zoom on focus */
  body.concierge-sheet { overflow: hidden; }
}
/* ---------- Landings, areas, journal (Phase B) ---------- */
.page-hero--plain { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero--image .breadcrumbs, .page-hero--image .breadcrumbs a { color: rgba(246, 242, 235, .78); }
.page-hero--image .breadcrumbs a:hover { color: var(--ivory); }
.page-hero .breadcrumbs { margin-bottom: 28px; }
.preview-bar { position: relative; z-index: 60; padding: 10px var(--gutter); background: var(--bronze); color: var(--ivory); font-size: 13px; text-align: center; margin-top: var(--header-h); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--stone); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q { margin: 0; font: 500 1.25rem/1.35 var(--serif); }
.faq__a { margin: 0 0 24px; max-width: 70ch; color: var(--ink-2); line-height: 1.7; }

.link-list { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.link-list--areas { gap: 14px 28px; }

.area-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.area-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.area-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.area-card:hover .area-card__media img { transform: scale(1.03); }
.area-card__mark { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); color: var(--stone-2); padding: 0 24px; text-align: center; }
.area-card__body { padding: 22px 24px 26px; }
.area-card__body .eyebrow { margin-bottom: 10px; }
.area-card__body p:last-child { margin: 10px 0 0; color: var(--stone); font-size: 14.5px; line-height: 1.6; }
.area-card .card__link::after { content: ""; position: absolute; inset: 0; }

.journal-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.journal-topic { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: var(--paper); }
.journal-topic svg { width: 14px; height: 14px; }
.journal-topic:hover { border-color: var(--ink); }
.journal-topic.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.article-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.article-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__body { padding: 18px 0 0; }
.article-card__meta { margin: 0 0 8px; font-size: 12px; letter-spacing: .04em; color: var(--stone); }
.article-card__title { margin: 0; font: 500 1.45rem/1.25 var(--serif); }
.article-card__excerpt { margin: 10px 0 0; color: var(--stone); font-size: 14.5px; line-height: 1.6; }
.article-card .card__link::after { content: ""; position: absolute; inset: 0; }

.article__head { padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(28px, 4vw, 48px); }
.article__title { margin: 0 0 18px; overflow-wrap: anywhere; }
.article__meta { margin: 22px 0 0; font-size: 13px; color: var(--stone); }
.article__meta a { border-bottom: 1px solid var(--beige); }
.article__cover { margin: 0 auto clamp(32px, 5vw, 64px); }
.article__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { font-size: 1.075rem; line-height: 1.75; overflow-wrap: anywhere; }
.article__body p, .article__body ul, .article__body ol { max-width: none; }
.article__body ol { padding-left: 1.3em; color: var(--ink-2); }
.article__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--bronze-2); font: italic 400 1.35rem/1.5 var(--serif); color: var(--ink); }
.article__body figure { margin: 2em 0; }
.article__body figure img { width: 100%; height: auto; }
.article__body figcaption { margin-top: 10px; font-size: 13px; color: var(--stone); }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article__body code { font-size: .92em; background: var(--sand); padding: 1px 5px; }
.article__links { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.article__links .h3 { margin: 0 0 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.tag-list a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); font-size: 12.5px; color: var(--stone-2); }
.tag-list a:hover { border-color: var(--ink); color: var(--ink); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 44px 0 clamp(48px, 6vw, 88px); padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.author-box img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex: none; }
.author-box p { margin: 0 0 6px; }
.author-box__name { font: 500 1.2rem/1.3 var(--serif); }

.not-found__more { justify-content: center; margin-top: 36px; }
/* Long CTA labels (landing copy) wrap instead of overflowing on phones. */
.page-hero .btn, .empty .btn { white-space: normal; max-width: 100%; text-align: center; height: auto; min-height: 48px; }

/* Direct contact under the enquiry heading (landings, districts, journal) */
.contact-lines { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; font-size: 15px; }
.contact-lines li { display: flex; align-items: flex-start; gap: 12px; }
.contact-lines svg { width: 18px; height: 18px; flex: none; margin-top: 3px; opacity: .7; }
.contact-lines a { color: inherit; text-decoration: underline; text-decoration-color: rgba(246, 242, 235, .3); text-underline-offset: 4px; }
.contact-lines a:hover { text-decoration-color: currentColor; }
