/* ============================================================
   Pisateli Forest — Premium Prototype
   Mobile-first, design tokens, scroll reveal, reduced-motion
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — forest / graphite / stone / ivory + muted gold */
  --forest-deep: #122019;
  --forest: #18291f;
  --forest-2: #21392b;
  --graphite: #16181a;
  --graphite-2: #1f2322;

  --ink: #14130f;
  --stone: #6c6760;
  --stone-2: #8d887e;
  --stone-line: #d8d3c8;

  --ivory: #f3efe6;
  --paper: #faf8f3;
  --paper-2: #fffdf8;

  --gold: #9c7d3e;
  --gold-2: #b2965a;
  --gold-soft: rgba(156, 125, 62, 0.14);
  --olive: #5d6447;

  --on-dark: #f3efe6;
  --on-dark-muted: #b7b3a9;

  --white: #ffffff;

  /* Typography */
  --font-display: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 980px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --header-h: 68px;
  --shadow-card: 0 1px 2px rgba(20, 19, 15, 0.04), 0 18px 50px -28px rgba(20, 19, 15, 0.28);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

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

/* ---------- Typography ---------- */
.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  color: var(--stone);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow.center::before {
  display: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.6rem, 8vw, 7rem);
}

.section-tight {
  padding-block: clamp(2.6rem, 5vw, 4.4rem);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.center {
  text-align: center;
}

.section-head {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}

.section-head.center {
  margin-inline: auto;
}

.divider {
  height: 1px;
  background: var(--stone-line);
  border: 0;
  max-width: var(--container);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--ink);
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.9rem 1.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  --btn-bg: var(--forest);
  --btn-fg: var(--on-dark);
}

.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(18, 32, 25, 0.6);
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--paper-2);
}

.btn-gold:hover {
  background: #856930;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(156, 125, 62, 0.7);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: currentColor;
  color: var(--paper-2);
}

.on-dark .btn-ghost {
  border-color: rgba(243, 239, 230, 0.35);
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold);
}

.link-arrow .arrow {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    height 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(18, 32, 25, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.5ch;
}

.brand span {
  font-weight: 400;
  opacity: 0.82;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(243, 239, 230, 0.82);
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--on-dark);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.nav-cta .btn {
  min-height: 42px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* Burger */
.burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 22px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--forest-deep);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  padding-top: calc(var(--header-h) + 1rem);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
    visibility 0s linear 0.5s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
  padding: 0.55rem 0;
  display: block;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
}

.mobile-menu-foot {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 9s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(18, 32, 25, 0.55) 0%,
      rgba(18, 32, 25, 0.15) 32%,
      rgba(18, 32, 25, 0.35) 60%,
      rgba(12, 20, 16, 0.82) 100%
    ),
    linear-gradient(90deg, rgba(12, 20, 16, 0.5), rgba(12, 20, 16, 0) 60%);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(2.4rem, 7vw, 5.5rem);
  padding-top: calc(var(--header-h) + 2rem);
}

.hero .eyebrow {
  color: var(--gold-2);
  margin-bottom: 1.2rem;
}

.hero h1 {
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  color: rgba(243, 239, 230, 0.86);
  max-width: 56ch;
  margin-top: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-meta {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(243, 239, 230, 0.18);
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-meta .cell {
  background: rgba(12, 20, 16, 0.42);
  padding: 1.1rem 1.2rem;
}

.hero-meta .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--on-dark);
  line-height: 1;
}

.hero-meta .lbl {
  font-size: 0.78rem;
  color: var(--on-dark-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

/* ---------- Quick proof (stats strip) ---------- */
.proof {
  background: var(--forest);
  color: var(--on-dark);
}

.proof .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(243, 239, 230, 0.12);
  border-block: 1px solid rgba(243, 239, 230, 0.12);
}

.proof .cell {
  background: var(--forest);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.proof .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--gold-2);
  line-height: 1;
}

.proof .txt {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  max-width: 26ch;
}

/* ---------- Editorial split (text + image) ---------- */
.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}

.split .copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.split .media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(12, 20, 16, 0.7);
  color: var(--on-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ---------- Catalog ---------- */
.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.badges {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  background: rgba(12, 20, 16, 0.78);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 100px;
}

.badge.gold {
  background: var(--gold);
}

.badge.outline {
  background: transparent;
  border: 1px solid rgba(243, 239, 230, 0.5);
}

.card-body {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.card-id {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.card-desc {
  color: var(--stone);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--stone-2);
}

.card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-specs span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.card-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-ready {
  color: var(--olive);
}

.status-few {
  color: var(--gold);
}

.status-soon {
  color: var(--stone-2);
}

/* ---------- Feature grid (icons) ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  background: var(--paper-2);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.feature .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--stone);
  font-size: 0.92rem;
}

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  background: var(--paper-2);
}

#pf-map {
  width: 100%;
  height: clamp(360px, 56vw, 560px);
}

.map-fallback {
  display: none;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.map-fallback ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.map-fallback li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.92rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--stone-line);
}

.map-fallback li .pin {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.map-balloon {
  max-width: 260px;
  color: #162219;
  font-family: Arial, sans-serif;
  line-height: 1.45;
}
.map-balloon strong {
  display: block;
  font-size: 14px;
  margin-bottom: 0.25rem;
}
.map-balloon-distance {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f1eadb;
  color: #6e5b2f;
  font-size: 12px;
}
.map-balloon p {
  margin: 0.25rem 0 0.55rem;
  font-size: 13px;
}
.map-balloon a {
  color: #7a612f;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Gallery / slider ---------- */
.slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--graphite);
}

.track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(12, 20, 16, 0.78));
  color: var(--on-dark);
  font-size: 0.9rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 20, 16, 0.5);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 4;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.slider-nav:hover {
  background: rgba(12, 20, 16, 0.8);
}

.slider-nav.prev {
  left: 0.8rem;
}

.slider-nav.next {
  right: 0.8rem;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.4);
  transition: background-color 0.3s var(--ease), width 0.3s var(--ease);
}

.slider-dots button.active {
  background: var(--on-dark);
  width: 22px;
  border-radius: 100px;
}

.slider-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  background: rgba(12, 20, 16, 0.55);
  color: var(--on-dark);
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.acc-item {
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color 0.3s var(--ease);
}

.acc-item.open {
  border-color: var(--gold-2);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.acc-ico {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  position: relative;
}

.acc-ico::before,
.acc-ico::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}

.acc-ico::before {
  width: 13px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.acc-ico::after {
  width: 1.6px;
  height: 13px;
  transform: translate(-50%, -50%);
}

.acc-item.open .acc-ico::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.acc-item.open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
}

.acc-panel p {
  padding: 0 1.4rem 1.3rem;
  color: var(--stone);
  font-size: 0.96rem;
}

/* ---------- Detail facts (residence) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fact {
  background: var(--paper-2);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}

.fact .k {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-2);
  font-weight: 600;
}

.fact .v {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 0.4rem;
  color: var(--ink);
}

/* Floor plan list */
.plan {
  background: var(--paper-2);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-head {
  background: var(--forest);
  color: var(--on-dark);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-head h3 {
  color: var(--on-dark);
  font-size: 1.3rem;
}

.plan-head .lvl {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.5rem;
}

.plan li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--stone-line);
}

.plan li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* CTA band */
.cta-band {
  position: relative;
  color: var(--on-dark);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-band .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 16, 0.74);
}

.cta-band .inner {
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band .lead {
  color: rgba(243, 239, 230, 0.82);
  margin-bottom: 2rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* "Who is it for" personas */
.personas {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.persona {
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.persona:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.persona .pn {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.persona h3 {
  font-size: 1.3rem;
}

.persona p {
  color: var(--stone);
  font-size: 0.93rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.4rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
/* Progressive-enhancement safe: content remains visible even if IntersectionObserver
   does not fire in crawlers, screenshots, print, or unusual browser contexts. */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

[data-reveal="fade"] {
  transform: none;
}

/* ---------- Section background modifiers ---------- */
.bg-dark {
  background: var(--forest-deep);
  color: var(--on-dark);
}

.bg-dark .lead,
.bg-dark .section-head p {
  color: var(--on-dark-muted);
}

.bg-forest {
  background: var(--forest);
  color: var(--on-dark);
}

.bg-forest .lead {
  color: var(--on-dark-muted);
}

.bg-ivory {
  background: var(--ivory);
}

.bg-paper {
  background: var(--paper);
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .burger {
    display: none;
  }

  .hero-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .copy {
    order: 2;
  }

  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .personas {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .catalog {
    grid-template-columns: repeat(3, 1fr);
  }

  .personas {
    grid-template-columns: repeat(4, 1fr);
  }

  .plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-media img {
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utility ---------- */
.visually-hidden {
  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: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--on-dark);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   Residence E v2 — premium editorial components
   ============================================================ */

/* ---------- No-JS banner ---------- */
.noscript-banner {
  background: var(--forest-deep);
  color: var(--on-dark);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}

/* ---------- Hero E refinements ---------- */
.hero-e .hero-inner {
  max-width: 760px;
}
.hero-e h1 {
  max-width: 18ch;
}

/* ---------- Sticky quick facts ---------- */
.quickfacts {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--forest-deep);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.quickfacts-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}
.quickfact {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid rgba(243, 239, 230, 0.08);
  min-width: 140px;
}
.quickfact:last-child {
  border-right: 0;
}
.quickfact .qf-k {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-weight: 600;
}
.quickfact .qf-v {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--on-dark);
  line-height: 1.1;
}

/* ---------- Story head ---------- */
.story-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- Editorial mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
.mosaic-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
  aspect-ratio: 4 / 3;
}
.mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.mosaic-cell:hover img {
  transform: scale(1.04);
}
.mosaic-cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  background: linear-gradient(transparent, rgba(12, 20, 16, 0.82));
}

/* ---------- Floor section heads ---------- */
.floor-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.floor-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.floor-tag.gold {
  color: var(--gold-2);
}

/* ---------- Floor gallery (asymmetrical) ---------- */
.floor-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.floor-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--graphite);
}
.floor-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.floor-gallery figure:hover img {
  transform: scale(1.03);
}
.floor-gallery figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.8rem;
  color: var(--on-dark);
  background: linear-gradient(transparent, rgba(12, 20, 16, 0.8));
}
.fg-big {
  aspect-ratio: 3 / 2;
}
.fg-tall,
.fg-wide,
.fg-sq {
  aspect-ratio: 4 / 3;
}

/* ---------- Floor points ---------- */
.floor-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem 1.4rem;
}
.floor-points li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--stone-line);
}
.floor-points.on-dark li {
  border-bottom-color: rgba(243, 239, 230, 0.14);
  color: var(--on-dark-muted);
}
.floor-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---------- Floor plan images ---------- */
.plans-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.plan-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.plan-zoom {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  line-height: 0;
}
.plan-zoom img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.plan-zoom:hover img {
  transform: scale(1.02);
}
.plan-zoom-ico {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 20, 16, 0.7);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.plan-figure figcaption {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--stone-2);
  text-align: center;
}

/* ---------- Details grid ---------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
}
.detail-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--graphite);
}
.detail-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.detail-cell:hover img {
  transform: scale(1.04);
}
.detail-cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.1rem 1rem;
  color: var(--on-dark);
  background: linear-gradient(transparent, rgba(12, 20, 16, 0.85));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.detail-cell .d-k {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.detail-cell .d-v {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

/* Dark feature grid variant */
.features-dark {
  background: rgba(243, 239, 230, 0.08) !important;
  border-color: rgba(243, 239, 230, 0.1) !important;
}
.feature-dark {
  background: var(--forest-deep) !important;
}
.feature-dark h3 {
  color: var(--on-dark);
}
.feature-dark p {
  color: var(--on-dark-muted);
}
.feature-dark .ico {
  background: rgba(178, 150, 90, 0.18);
  color: var(--gold-2);
}

/* ---------- Filterable gallery ---------- */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.gctrl {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--stone);
  border: 1px solid var(--stone-line);
  border-radius: 100px;
  background: transparent;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.gctrl:hover {
  color: var(--ink);
  border-color: var(--gold-2);
}
.gctrl.active {
  background: var(--forest);
  color: var(--on-dark);
  border-color: var(--forest);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
.gtile {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  line-height: 0;
}
.gtile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gtile:hover img {
  transform: scale(1.05);
}
.gtile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--on-dark);
  background: linear-gradient(transparent, rgba(12, 20, 16, 0.8));
  text-align: left;
  line-height: 1.4;
}
.gtile.is-hidden {
  display: none;
}
.gallery-empty {
  text-align: center;
  color: var(--stone-2);
  padding: 2rem 0;
  font-size: 0.95rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 16, 13, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open {
  display: flex;
}
.lightbox-stage {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.lightbox-stage figcaption {
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  text-align: center;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-dark);
  background: rgba(243, 239, 230, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease);
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(243, 239, 230, 0.22);
}
.lightbox-close {
  top: clamp(1rem, 3vw, 1.8rem);
  right: clamp(1rem, 3vw, 1.8rem);
  width: 52px;
  height: 52px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-nav.prev {
  left: clamp(0.6rem, 2vw, 1.4rem);
}
.lightbox-nav.next {
  right: clamp(0.6rem, 2vw, 1.4rem);
}

/* ---------- Responsive: mosaic + galleries ---------- */
@media (min-width: 600px) {
  .quickfact {
    flex: 1 1 25%;
  }

  .floor-points {
    grid-template-columns: 1fr 1fr;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(160px, auto);
  }
  .mosaic .m-lead {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .mosaic-cell:not(.m-lead) {
    grid-column: span 2;
    aspect-ratio: auto;
  }

  .floor-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .floor-gallery .fg-big {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .floor-gallery .fg-tall {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .floor-gallery .fg-wide {
    grid-column: span 2;
    aspect-ratio: auto;
  }
  .floor-gallery .fg-sq {
    grid-column: span 2;
    aspect-ratio: auto;
  }

  .plans-images {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .quickfacts-row {
    justify-content: space-between;
  }
  .quickfact {
    flex: 1 1 0;
  }

  .floor-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* No-JS graceful fallbacks */
.no-js .gallery-grid .gtile,
.no-js .plan-zoom {
  cursor: default;
}


/* === Residence V3 asset-intelligence pages === */
.residence-v3 { background: #f5efe3; color: #192319; }
.residence-v3 .site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(245,239,227,.88); }
.pf-hero { min-height: 92vh; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 76px); align-items: center; padding: clamp(88px, 10vw, 138px) clamp(20px, 6vw, 96px) clamp(42px, 6vw, 80px); }
.pf-hero-copy h1 { font-family: var(--font-display, Georgia, serif); font-size: clamp(42px, 6vw, 92px); line-height: .92; letter-spacing: -.055em; max-width: 920px; margin: 16px 0 22px; }
.pf-hero-copy p { max-width: 720px; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.65; color: rgba(25,35,25,.75); }
.pf-hero-media { margin: 0; align-self: stretch; min-height: 560px; position: relative; border-radius: 34px; overflow: hidden; box-shadow: 0 30px 90px rgba(25,35,25,.18); background: #e8dfcf; }
.pf-hero-media img { width: 100%; height: 100%; object-fit: cover; display:block; }
.pf-hero-media figcaption { position:absolute; left:20px; bottom:20px; right:20px; padding:12px 16px; border-radius:999px; background:rgba(14,24,16,.72); color:#fff; font-size:13px; letter-spacing:.04em; text-transform:uppercase; }
.pf-facts-inline { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.pf-facts-inline span { border:1px solid rgba(25,35,25,.14); border-radius:999px; padding:10px 14px; background:rgba(255,255,255,.38); font-size:13px; text-transform:uppercase; letter-spacing:.055em; }
.pf-section { padding: clamp(58px, 8vw, 112px) clamp(20px, 6vw, 96px); }
.pf-section-head { max-width: 860px; margin-bottom: 34px; }
.pf-section-head h2, .pf-final-cta h2 { font-family: var(--font-display, Georgia, serif); font-size: clamp(34px, 4.8vw, 72px); line-height: .98; letter-spacing: -.04em; margin: 10px 0 16px; }
.pf-section-head p, .pf-final-cta p { color: rgba(25,35,25,.7); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.65; }
.pf-media-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pf-media-card, .pf-gallery-item { margin:0; border-radius: 28px; overflow:hidden; background:#fffaf0; box-shadow:0 18px 48px rgba(25,35,25,.09); }
.pf-media-card img, .pf-gallery-item img { width:100%; aspect-ratio: 4 / 3; height:auto; object-fit: cover; display:block; background:#e8dfcf; }
.pf-plan-card img { aspect-ratio: 1.414 / 1; object-fit: contain; padding: 10px; background:#fff; }
.pf-media-card figcaption, .pf-gallery-item figcaption { padding: 12px 15px 15px; color: rgba(25,35,25,.68); font-size: 13px; line-height:1.4; }
.pf-gallery-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; }
.pf-gallery-item img { aspect-ratio: 1 / 1; }
.pf-final-cta { text-align:center; max-width: 920px; margin:0 auto; }
.pf-final-cta .btn { margin-top: 18px; }
@media (max-width: 980px) { .pf-hero { grid-template-columns: 1fr; padding-top: 96px; } .pf-hero-media { min-height: 420px; } .pf-media-grid { grid-template-columns: 1fr 1fr; } .pf-gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pf-hero { min-height: auto; padding-inline: 18px; gap: 24px; } .pf-hero-media { min-height: 320px; border-radius: 24px; } .pf-media-grid, .pf-gallery-grid { grid-template-columns: 1fr; } .pf-section { padding-inline: 18px; } .pf-facts-inline { display:none; } }

.status-sold { color: #8d887e; }


/* ---------- Premium infrastructure map ---------- */
.pf-infra-map .section-head {
  max-width: 840px;
}

.map-shell {
  display: grid;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.map-filter {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--stone-line);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  color: var(--stone);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.map-filter:hover,
.map-filter.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--on-dark);
  transform: translateY(-1px);
}

.map-wrap-premium {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(420px, 58vw, 640px);
  box-shadow: var(--shadow-card);
}

.map-wrap-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250,248,243,.12), rgba(250,248,243,0) 32%, rgba(18,32,25,.08));
  z-index: 1;
}

#pf-map {
  width: 100%;
  max-width: 100%;
  height: clamp(420px, 58vw, 640px);
}

#pf-map [class*="ground-pane"] {
  filter: grayscale(1) brightness(1.08) contrast(.86);
}

.pf-map-pin {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: var(--pin-color, #d94a2b);
  color: #fff;
  box-shadow: 0 16px 26px -14px rgba(20,19,15,.55), 0 0 0 5px rgba(255,255,255,.78);
}

.pf-map-pin span {
  transform: rotate(45deg);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  font-family: var(--font-sans);
}

.pf-map-pin-main {
  width: 86px;
  height: 86px;
  border-radius: 50% 50% 50% 16px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-2));
  box-shadow: 0 24px 46px -22px rgba(18,32,25,.9), 0 0 0 7px rgba(250,248,243,.88);
}

.pf-map-pin-main span {
  color: var(--gold-2);
  font-size: 24px;
  letter-spacing: .02em;
}

.map-route-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.map-route-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 26px -24px rgba(20,19,15,.42);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.map-route-card:hover {
  transform: translateY(-2px);
  border-color: rgba(156,125,62,.45);
  box-shadow: 0 18px 34px -26px rgba(20,19,15,.52);
}

.map-route-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: #d94a2b;
  color: #fff;
  font-weight: 900;
}

.map-route-ico + .map-route-body,
.map-route-body {
  min-width: 0;
}

.map-route-ico::first-letter {
  transform: rotate(45deg);
}

.map-route-ico-school,
.map-route-ico-health,
.map-route-ico-shop,
.map-route-ico-park,
.map-route-ico-transport {
  font-size: 16px;
}

.map-route-ico {
  line-height: 1;
}

.map-route-card .map-route-ico {
  font-family: var(--font-sans);
}

.map-route-card .map-route-ico {
  text-indent: 0;
}

.map-route-card .map-route-ico {
  writing-mode: horizontal-tb;
}

.map-route-card .map-route-ico {
  /* counter-rotate text using nested layout fallback through glyph orientation */
}

.map-route-body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  line-height: 1.25;
}

.map-route-body small {
  display: block;
  color: var(--stone);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.18rem;
}

.map-balloon {
  max-width: 280px;
  padding: 0.15rem 0;
}

.map-balloon-distance {
  margin-right: 0.3rem;
  background: #f1eadb;
}

.map-balloon-distance.muted {
  background: #f7f3ea;
  color: #786f62;
}

@media (max-width: 980px) {
  .map-route-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .map-toolbar {
    justify-content: flex-start;
    overflow-x: visible;
    padding-bottom: 0;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .map-filter {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding-inline: 0.55rem;
  }
  .map-route-panel {
    grid-template-columns: 1fr;
  }
  .map-route-card {
    align-items: flex-start;
  }
  .map-route-body strong,
  .map-route-body small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .pf-map-pin-main {
    width: 68px;
    height: 68px;
  }
  .pf-map-pin-main span {
    font-size: 20px;
  }
}

/* ---------- No-key interactive map fallback ---------- */
.pf-static-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 24% 30%, rgba(136, 157, 118, .36) 0 16%, transparent 17%),
    radial-gradient(circle at 72% 22%, rgba(219, 210, 184, .72) 0 13%, transparent 14%),
    radial-gradient(circle at 78% 70%, rgba(126, 151, 111, .30) 0 18%, transparent 19%),
    linear-gradient(135deg, #ece8dd, #f8f5ed 46%, #e7dfcf);
}

.pf-static-map::before,
.pf-static-map::after,
.pf-static-roads,
.pf-static-forest,
.pf-static-water {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pf-static-map::before {
  background-image:
    linear-gradient(22deg, transparent 0 48%, rgba(255,255,255,.82) 49% 51%, transparent 52%),
    linear-gradient(115deg, transparent 0 53%, rgba(255,255,255,.72) 54% 56%, transparent 57%),
    linear-gradient(78deg, transparent 0 44%, rgba(216,190,129,.42) 45% 46%, transparent 47%);
  opacity: .9;
}

.pf-static-map::after {
  background-image:
    linear-gradient(rgba(80,94,75,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,94,75,.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mix-blend-mode: multiply;
  opacity: .42;
}

.pf-static-roads {
  background:
    linear-gradient(12deg, transparent 0 38%, rgba(255,255,255,.95) 39% 41%, transparent 42%),
    linear-gradient(-18deg, transparent 0 55%, rgba(255,255,255,.8) 56% 58%, transparent 59%),
    linear-gradient(89deg, transparent 0 33%, rgba(255,255,255,.62) 34% 35%, transparent 36%);
  z-index: 1;
}

.pf-static-forest {
  width: 46%;
  height: 54%;
  left: -8%;
  top: -4%;
  border-radius: 44% 56% 61% 39%;
  background: rgba(94, 120, 82, .22);
  filter: blur(.2px);
  z-index: 0;
}

.pf-static-water {
  width: 34%;
  height: 18%;
  right: 4%;
  bottom: 15%;
  border-radius: 60% 38% 54% 42%;
  background: rgba(146, 173, 171, .26);
  transform: rotate(-10deg);
  z-index: 0;
}

.pf-static-label {
  position: absolute;
  z-index: 2;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: rgba(25,35,25,.56);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pf-static-label-city { right: 7%; top: 12%; }
.pf-static-label-vnukovo { left: 12%; bottom: 12%; }

.pf-static-point {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%);
  text-decoration: none;
  outline: none;
}

.pf-static-pin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: #d94a2b;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 18px 30px -17px rgba(20,19,15,.72), 0 0 0 5px rgba(255,255,255,.82);
}

.pf-static-pin::first-letter { transform: rotate(45deg); }
.pf-static-pin { font-family: var(--font-sans); }
.pf-static-pin { line-height: 1; }
.pf-static-point .pf-static-pin { writing-mode: horizontal-tb; }
.pf-static-point .pf-static-pin { text-align: center; }
.pf-static-point .pf-static-pin { text-indent: 0; }
.pf-static-point .pf-static-pin { display: grid; }
.pf-static-point .pf-static-pin { place-items: center; }
.pf-static-point .pf-static-pin { transform: rotate(-45deg); }
.pf-static-point .pf-static-pin { }

.pf-static-pin > * { transform: rotate(45deg); }

.pf-static-point-main {
  z-index: 8;
}

.pf-static-point-main .pf-static-pin {
  width: 74px;
  height: 74px;
  border-radius: 50% 50% 50% 14px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-2));
  color: var(--gold-2);
  font-size: 22px;
  letter-spacing: .02em;
  box-shadow: 0 24px 42px -22px rgba(18,32,25,.9), 0 0 0 7px rgba(250,248,243,.9);
}

.pf-static-card {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 230px;
  transform: translateX(-50%) translateY(6px);
  padding: .55rem .7rem;
  border: 1px solid rgba(216,211,200,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 16px 34px -24px rgba(20,19,15,.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.pf-static-card strong,
.pf-static-card small {
  display: block;
  line-height: 1.25;
}

.pf-static-card strong {
  font-size: .82rem;
}

.pf-static-card small {
  color: var(--stone);
  font-size: .72rem;
  margin-top: .15rem;
}

.pf-static-point:hover .pf-static-card,
.pf-static-point:focus-visible .pf-static-card,
.pf-static-point-main .pf-static-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pf-static-point[hidden] { display: none; }

@media (max-width: 620px) {
  .pf-static-card {
    display: none;
  }
  .pf-static-point-main .pf-static-pin {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
  .pf-static-pin {
    width: 34px;
    height: 34px;
    font-size: 14px;
    box-shadow: 0 12px 22px -15px rgba(20,19,15,.72), 0 0 0 4px rgba(255,255,255,.82);
  }
}


/* ---------- Final 320px responsive hardening ---------- */
.pf-infra-map,
.pf-infra-map * {
  max-width: 100%;
}

.map-route-card,
.map-route-body,
.map-route-body strong,
.map-route-body small {
  min-width: 0;
}

.map-route-body strong,
.map-route-body small {
  overflow-wrap: anywhere;
  word-break: normal;
}

#pf-map:empty {
  min-height: clamp(360px, 54vw, 640px);
  background:
    radial-gradient(circle at 24% 30%, rgba(136, 157, 118, .30) 0 16%, transparent 17%),
    radial-gradient(circle at 74% 24%, rgba(219, 210, 184, .66) 0 13%, transparent 14%),
    linear-gradient(135deg, #ece8dd, #f8f5ed 46%, #e7dfcf);
}

@media (max-width: 480px) {
  .pf-section.pf-infra-map,
  .section.pf-infra-map {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .pf-infra-map .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .pf-infra-map .section-head,
  .pf-infra-map .section-head.center {
    padding-left: 4px;
    padding-right: 4px;
  }

  .map-shell,
  .map-toolbar,
  .map-wrap-premium,
  .map-route-panel,
  .map-route-card,
  #pf-map {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .map-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    overflow: visible !important;
  }

  .map-filter {
    width: 100%;
    min-height: 36px;
    padding: 0.52rem 0.42rem;
    font-size: 0.78rem;
    white-space: normal !important;
    line-height: 1.2;
  }

  .map-wrap-premium {
    min-height: 350px;
    border-radius: 16px;
  }

  #pf-map,
  .pf-static-map {
    height: 350px;
    min-height: 350px;
  }

  .map-route-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.55rem;
  }

  .map-route-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.58rem;
    padding: 0.72rem;
    border-radius: 14px;
  }

  .map-route-ico {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .map-route-body strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.86rem;
    line-height: 1.24;
  }

  .map-route-body small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.74rem;
    line-height: 1.32;
  }

  .pf-static-label,
  .pf-static-card {
    display: none !important;
  }
}

@media (max-width: 340px) {
  .pf-section.pf-infra-map,
  .section.pf-infra-map {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .map-filter {
    min-height: 34px;
  }

  .map-route-card {
    padding: 0.68rem;
  }

  .map-route-body strong {
    font-size: 0.82rem;
  }

  .map-route-body small {
    font-size: 0.71rem;
  }
}


/* ---------- Real map rendering (Leaflet / OSM) ---------- */
#pf-map.leaflet-container,
#pf-map .leaflet-container {
  font-family: var(--font-sans);
  background: #ebe7dc;
}

#pf-map .leaflet-tile-pane {
  filter: grayscale(.82) saturate(.68) brightness(1.05) contrast(.88);
}

#pf-map .leaflet-control-container,
#pf-map .leaflet-pane,
#pf-map .leaflet-top,
#pf-map .leaflet-bottom {
  max-width: none;
}

#pf-map .leaflet-control-zoom a {
  color: var(--forest);
  border-color: rgba(216,211,200,.85);
}

#pf-map .leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 18px 42px -24px rgba(20,19,15,.58);
}

#pf-map .leaflet-popup-content {
  margin: 12px 14px;
}

.pf-leaflet-icon {
  border: 0 !important;
  background: transparent !important;
}

.pf-map-pin-main {
  width: 86px;
  height: 86px;
  border-radius: 50% 50% 50% 16px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-2));
  box-shadow: 0 24px 46px -22px rgba(18,32,25,.9), 0 0 0 7px rgba(250,248,243,.88);
}

.pf-map-pin-main span {
  color: var(--gold-2);
  font-size: 24px;
  letter-spacing: .02em;
}

.pf-map-loading {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .35rem;
  padding: 2rem;
  text-align: center;
  color: var(--forest);
  background: linear-gradient(135deg, #ece8dd, #f8f5ed 46%, #e7dfcf);
}

.pf-map-loading strong,
.pf-map-loading span {
  display: block;
}

.pf-map-loading strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
}

.pf-map-loading span {
  max-width: 360px;
  color: var(--stone);
  font-size: .92rem;
}


/* ---------- Leaflet pin fix: do not inherit mobile max-width ---------- */
#pf-map .pf-leaflet-icon,
#pf-map .pf-leaflet-icon * {
  max-width: none !important;
}

#pf-map .pf-map-pin {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% 50% 50% 8px !important;
  transform: rotate(-45deg) !important;
  background: #d94a2b !important;
  color: #fff !important;
  box-shadow: 0 16px 26px -14px rgba(20,19,15,.55), 0 0 0 5px rgba(255,255,255,.78) !important;
}

#pf-map .pf-map-pin span {
  display: block !important;
  transform: rotate(45deg) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#pf-map .pf-map-pin-main {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  height: 86px !important;
  min-height: 86px !important;
  border-radius: 50% 50% 50% 16px !important;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-2)) !important;
  box-shadow: 0 24px 46px -22px rgba(18,32,25,.9), 0 0 0 7px rgba(250,248,243,.88) !important;
}

#pf-map .pf-map-pin-main span {
  color: var(--gold-2) !important;
  font-size: 24px !important;
  letter-spacing: .02em !important;
}

@media (max-width: 620px) {
  #pf-map .pf-map-pin-main {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
  }

  #pf-map .pf-map-pin-main span {
    font-size: 19px !important;
  }

  #pf-map .pf-map-pin:not(.pf-map-pin-main) {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  #pf-map .pf-map-pin:not(.pf-map-pin-main) span {
    font-size: 14px !important;
  }
}
