/* Gradačka Poljana — single-property site
   Design tokens first; the palette is fixed (editorial dark/stone alternation), not theme-switched. */
:root {
  --ink: #131a16;
  --ink-2: #1a221d;
  --ink-3: #242e28;
  --stone: #f4f0e7;
  --stone-2: #ebe5d8;
  --stone-3: #dcd4c2;
  --gold: #c6a86d;
  --gold-2: #a98b52;
  --gold-soft: rgba(198, 168, 109, 0.35);
  --hay: #b9a66b;
  --pasture: #8d9b70;
  --forest: #3c5443;
  --text: #1c201d;
  --muted: #6b7069;
  --text-dark: #ece6d9;
  --muted-dark: #a3a99e;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
/* Font groups, one per script the house fonts do not cover. The server loads the group's fonts and marks
   <html data-fonts> (nodeapp/lib/i18n.mjs, FONT_GROUPS). Ukrainian and Azerbaijani swap the sans, because Jost lacks
   ґ є ї and ə; Greek swaps both, so Greek and the Latin place names in the same line share one design; Hebrew,
   Arabic and CJK fall back per glyph right after the house fonts, so Latin names and figures keep them. */
:root[data-fonts="extended"] { --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif; }
/* Noto Serif Display and Manrope run 19% and 8% wider than Cormorant and Jost, with larger x-heights; scaling both to
   Jost's x-height brings Greek lines back to the house measure (Noto Serif Display x 0.85, Manrope x 0.84). */
:root[data-fonts="greek"] { --serif: "Noto Serif Display", Georgia, "Times New Roman", serif; --sans: "Manrope", "Helvetica Neue", Arial, sans-serif; font-size-adjust: 0.46; }
@supports not (font-size-adjust: 0.46) { :root[data-fonts="greek"] .hero__title { font-size: clamp(2.8rem, 7.6vw, 5.2rem); } }
:root[data-fonts="hebrew"] { --serif: "Cormorant Garamond", "Frank Ruhl Libre", Georgia, "Times New Roman", serif; --sans: "Jost", "Heebo", "Helvetica Neue", Arial, sans-serif; }
:root[data-fonts="arabic"] { --serif: "Cormorant Garamond", "Noto Naskh Arabic", Georgia, "Times New Roman", serif; --sans: "Jost", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif; }
:root[data-fonts="cjk-sc"] { --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, "Times New Roman", serif; --sans: "Jost", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif; }
:root[data-fonts="cjk-tc"] { --serif: "Cormorant Garamond", "Noto Serif TC", Georgia, "Times New Roman", serif; --sans: "Jost", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif; }
:root[data-fonts="cjk-jp"] { --serif: "Cormorant Garamond", "Noto Serif JP", Georgia, "Times New Roman", serif; --sans: "Jost", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif; }
:root[data-fonts="cjk-kr"] { --serif: "Cormorant Garamond", "Noto Serif KR", Georgia, "Times New Roman", serif; --sans: "Jost", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1.2rem; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- typography ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 1.3rem;
  font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; flex: none; }
.eyebrow--light { color: var(--gold); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.005em;
  margin: 0 0 1.6rem; text-wrap: balance;
}
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin: 0 0 .5rem; }
.h4 { font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 2.4rem 0 1rem; }
.lead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.75vw, 1.5rem); line-height: 1.5; }
.lead strong { font-weight: 600; color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 2rem;
  font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: #d9c08a; border-color: #d9c08a; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(10, 14, 12, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--small { padding: .72rem 1.3rem; font-size: .66rem; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.link-arrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--gold-soft); padding-bottom: .2rem; transition: border-color .3s;
}
.link-arrow:hover { border-color: var(--gold-2); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1.2rem var(--gutter);
  color: #fff;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.nav--solid {
  background: rgba(19, 26, 22, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: .7rem var(--gutter);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: .06em; }
.brand__sub { font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; opacity: .7; margin-top: .3rem; }
.brand__sub + .brand__sub { margin-top: .15rem; }
.nav__links { display: flex; gap: 2rem; justify-content: center; }
.nav__links a {
  position: relative; padding: .3rem 0; text-decoration: none;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; opacity: .88;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
:root[dir="rtl"] .nav__links a::after { transform-origin: right; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1279px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
}
@media (max-width: 480px) { .brand__name { font-size: 1.15rem; } }

/* Language picker: a <details> element rendered by the server, native names as plain links, no flags.
   The list is a grid so that 30-odd languages fit; it scrolls if the viewport is short. */
.lang { position: relative; }
.lang__btn { list-style: none; cursor: pointer; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: .5rem .7rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 5; list-style: none; margin: 0; padding: .4rem; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); max-height: min(70vh, 32rem); overflow-y: auto; display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(8.5rem, auto)); gap: 0 .3rem; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; }
.lang__menu a, .menu__foot a { display: block; padding: .45rem .7rem; font-size: .8rem; border-radius: 5px; color: var(--text-dark); text-decoration: none; white-space: nowrap; }
.lang__menu a:hover { background: rgba(255, 255, 255, .08); }
.lang__menu a[aria-current], .menu__foot a[aria-current] { color: var(--gold); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto;
  padding: 6rem var(--gutter) 3rem;
  background: var(--ink); color: var(--text-dark);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu--open { opacity: 1; visibility: visible; }
/* auto margins center the menu when there is room and let it scroll when the language list makes it taller than the screen */
.menu__links { display: flex; flex-direction: column; gap: 1.1rem; margin-top: auto; }
.menu__links:last-child { margin-bottom: auto; }
.menu__links a { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; text-decoration: none; }
.menu__links .menu__cta { color: var(--gold); }
.menu__foot { margin-top: 2.5rem; margin-bottom: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .8rem; }
.menu__foot a { padding: .3rem 0; font-size: .9rem; white-space: normal; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: #fff;
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 12, .55) 0%, rgba(10, 14, 12, .12) 32%, rgba(10, 14, 12, .45) 62%, rgba(10, 14, 12, .86) 100%); }
.hero__content, .hero__facts { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 18px rgba(0, 0, 0, .35); }
.hero .eyebrow--light { color: #e2c88f; }
.hero__inner {
  width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem;
  padding: 8rem 0 4.6rem;
}
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 9vw, 6.2rem); line-height: .96; margin: 0 0 1.4rem; letter-spacing: .005em; text-wrap: balance; }
.hero__lede { max-width: 36rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; opacity: .93; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__facts { list-style: none; margin: 0; padding: 0; padding-inline-start: 2rem; display: flex; gap: 2.4rem; border-inline-start: 1px solid rgba(255, 255, 255, .28); }
.hero__facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--gold); white-space: nowrap; }
.hero__facts span { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; opacity: .78; }
.hero__asof { display: block; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-top: .35rem; }
.scroll-cue { position: absolute; inset-inline-end: var(--gutter); bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.scroll-cue__line { width: 3rem; height: 1px; background: #fff; transform-origin: left; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
:root[dir="rtl"] .scroll-cue__line { transform-origin: right; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__title { font-size: min(8vw, 6.2rem); }
  .hero__facts { flex-wrap: wrap; max-width: 26rem; row-gap: 1.2rem; }
}
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; padding: 7rem 0 3.6rem; }
  .hero__facts { border-inline-start: 0; padding-inline-start: 0; gap: 1.6rem; flex-wrap: wrap; }
  .scroll-cue { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section--light { background: var(--stone); color: var(--text); }
.section--dark { background: var(--ink); color: var(--text-dark); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .muted { color: var(--muted-dark); }
.section--dark .h4 { color: var(--muted-dark); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .eyebrow::before { display: none; }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--location, .split--enquire { grid-template-columns: 5fr 7fr; }
@media (max-width: 900px) { .split, .split--location, .split--enquire { grid-template-columns: 1fr; } }

.facts { margin: .6rem 0 0; border-top: 1px solid var(--stone-3); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--stone-3); }
.facts dt { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: .4rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.35; }

.feature-image { margin: clamp(3rem, 6vw, 5rem) 0 0; }
.feature-image img { width: 100%; height: auto; border-radius: 2px; }
.feature-image figcaption { font-size: .8rem; color: var(--muted); margin-top: .8rem; letter-spacing: .02em; }

/* ---------- stats band ---------- */
.stats { background: var(--ink-2); color: var(--text-dark); padding: 3rem 0; border-top: 1px solid rgba(198, 168, 109, .22); border-bottom: 1px solid rgba(198, 168, 109, .22); }
.stats__list { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.stats__list li { text-align: center; padding: .4rem 0; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stats__list li:first-child { border-inline-start: 0; }
/* plaintext: figures with Latin units read left to right on right-to-left pages too (the count-up rewrites the text, so no <bdi>) */
.stats__value { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.8rem); color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; unicode-bidi: plaintext; }
.stats__label { display: block; margin-top: .4rem; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; opacity: .72; }
@media (max-width: 900px) {
  .stats__list { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
  .stats__list li { border-inline-start: 0; }
}

/* ---------- land composition ---------- */
.composition { margin-bottom: clamp(3rem, 6vw, 5rem); }
.comp-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--stone-3); }
.comp-bar span { display: block; height: 100%; min-width: 3px; }
.comp-bar [data-id="meadow"], .comp-item__swatch[data-id="meadow"] { background: var(--hay); }
.comp-bar [data-id="pasture"], .comp-item__swatch[data-id="pasture"] { background: var(--pasture); }
.comp-bar [data-id="woodland"], .comp-item__swatch[data-id="woodland"] { background: var(--forest); }
.comp-bar [data-id="buildings"], .comp-item__swatch[data-id="buildings"] { background: var(--gold); }
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.comp-item { border-top: 1px solid var(--stone-3); padding-top: 1.2rem; }
.comp-item__swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-inline-end: .6rem; vertical-align: middle; }
.comp-item__name { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0; }
.comp-item__area { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: .35rem 0 .8rem; font-variant-numeric: tabular-nums; }
.comp-item p:last-child { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .comp-grid { grid-template-columns: 1fr; } }

.possibilities__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: poss; }
.possibilities__list li { counter-increment: poss; border-top: 1px solid var(--gold-soft); padding-top: 1.2rem; }
.possibilities__list li::before { content: counter(poss, upper-roman); display: block; font-family: var(--serif); color: var(--gold-2); font-size: 1.1rem; letter-spacing: .12em; margin-bottom: .8rem; }
.possibilities__list h4 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; margin: 0 0 .5rem; }
.possibilities__list p { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .possibilities__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .possibilities__list { grid-template-columns: 1fr; } }

/* ---------- boundary plan (The Land) ---------- */
.plan { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin: 0 0 clamp(3rem, 6vw, 5rem); }
.plan__canvas { background: var(--stone-2); border: 1px solid var(--stone-3); border-radius: 2px; padding: clamp(.8rem, 2.5vw, 2rem); }
/* the drawing stays English and left to right on every page; SVG text takes its direction from CSS, not from dir="ltr" */
.plan__svg { width: 100%; height: auto; display: block; direction: ltr; unicode-bidi: isolate; }
.plan__svg text { font-family: var(--serif); fill: var(--text); paint-order: stroke fill; stroke: var(--stone-2); stroke-width: 6px; stroke-linejoin: round; }
.plan__svg .plan-edge { font-size: 20px; fill: var(--muted); }
.plan__svg .plan-dim { font-size: 28px; font-weight: 500; }
.plan__svg .plan-lbl { font-family: var(--sans); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.plan__svg .plan-boundary { fill: rgba(141, 155, 112, .3); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.plan__svg .plan-ha { fill: rgba(198, 168, 109, .3); stroke: var(--gold-2); stroke-width: 2; }
.plan__svg .plan-k { fill: rgba(198, 168, 109, .8); stroke: var(--gold-2); stroke-width: 1.5; }
.plan__svg .plan-dimline { stroke: var(--ink); stroke-width: 1.3; fill: none; }
.plan__svg .plan-ext { stroke: var(--muted); stroke-width: .9; stroke-dasharray: 4 4; fill: none; }
.plan__svg .plan-house, .plan__svg .plan-roadhead { fill: var(--ink); }
.plan__svg .plan-road { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.plan__svg .plan-scale-a { fill: var(--ink); }
.plan__svg .plan-scale-b { fill: none; stroke: var(--ink); stroke-width: 1; }
.plan__caption { margin: 0; }
.plan__caption .h4 { margin-top: 0; }
.plan__intro { font-size: .97rem; color: var(--muted); }
.plan__facts { margin: 1.4rem 0; border-top: 1px solid var(--stone-3); }
.plan__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--stone-3); }
.plan__facts dt { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.plan__facts dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan__note { font-size: .9rem; margin: 0; }
@media (max-width: 900px) {
  .plan { grid-template-columns: 1fr; }
  .plan__svg .plan-edge { font-size: 30px; }
  .plan__svg .plan-dim { font-size: 40px; }
  .plan__svg .plan-lbl { font-size: 23px; }
  .plan__svg text { stroke-width: 9px; }
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(90px, min(11.4vw, 160px)); gap: .6rem; }
.g-item { margin: 0; position: relative; overflow: hidden; background: var(--ink-3); }
.g-item button { display: block; width: 100%; height: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease), opacity .6s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem .9rem;
  font-size: .78rem; line-height: 1.4; color: #fff; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 12, .78));
  opacity: 0; transition: opacity .4s;
}
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .g-item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .g-item:nth-child(3n + 1) { grid-column: span 2 !important; aspect-ratio: 3 / 2; }
}

/* ---------- film ---------- */
.section--film { padding-top: 0; }
.film-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--ink-3); color: #fff; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1.5s var(--ease), opacity .6s; }
.film-poster:hover img { transform: scale(1.03); opacity: 1; }
.film-poster__play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(10, 14, 12, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background .4s, color .4s, border-color .4s;
}
.film-poster__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.film-poster:hover .film-poster__play { transform: translate(-50%, -50%) scale(1.07); background: var(--gold); border-color: var(--gold); color: var(--ink); }
.film-poster__label { position: absolute; inset-inline-start: 1.4rem; bottom: 1.2rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- aerial viewer ---------- */
/* The image, the pins and the hotspot cards are placed by pixel coordinates and keep their physical geometry on
   right-to-left pages; only the controls, the scale bar and the hint move with the reading direction. */
.section--ortho { padding-bottom: clamp(3rem, 6vw, 5rem); }
.ortho__stage {
  position: relative; height: clamp(460px, 76vh, 860px); overflow: hidden;
  background: #0f1512; touch-action: none; user-select: none; -webkit-user-select: none;
  border-top: 1px solid rgba(198, 168, 109, .25); border-bottom: 1px solid rgba(198, 168, 109, .25);
}
.ortho__stage:fullscreen, .ortho__stage.is-fullscreen { height: 100vh; border: 0; }
.ortho__canvas { width: 100%; height: 100%; cursor: grab; outline: none; }
.ortho__stage.is-dragging .ortho__canvas { cursor: grabbing; }
.ortho__canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.ortho__pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; pointer-events: auto; will-change: transform;
}
.pin--hidden { display: none; }
.pin__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(19, 26, 22, .85); transition: transform .3s var(--ease); }
.pin__ring { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); opacity: .9; animation: pulse 2.8s ease-out infinite; }
.pin:hover .pin__dot, .pin.is-active .pin__dot, .pin:focus-visible .pin__dot { transform: scale(1.45); }
.pin:focus-visible { outline: none; }
@keyframes pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin__ring { animation: none; opacity: .6; } }

.ortho__controls {
  position: absolute; inset-inline-end: 1rem; top: 1rem; display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: rgba(19, 26, 22, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
}
.ortho__controls button { width: 40px; height: 40px; border-radius: 7px; display: grid; place-items: center; color: #fff; transition: background .25s; }
.ortho__controls button:hover { background: rgba(255, 255, 255, .1); }
.ortho__controls button[aria-pressed="true"] { color: var(--gold); }
.ortho__controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ortho__scale { position: absolute; inset-inline-start: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .6rem; font-size: .66rem; letter-spacing: .12em; color: #fff; text-shadow: 0 1px 2px #000; }
.ortho__scale-bar { display: block; height: 6px; border: 1px solid #fff; border-top: 0; width: 100px; }
.ortho__hint { position: absolute; inset-inline-end: 1rem; bottom: 1rem; margin: 0; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); pointer-events: none; }
.ortho__activate { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 14, 12, .4); pointer-events: none; opacity: 0; transition: opacity .3s; }
.ortho__activate.is-visible { opacity: 1; }
.ortho__activate span { padding: .8rem 1.4rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(19, 26, 22, .75); }
.hs-card {
  position: absolute; z-index: 5; width: 300px; max-width: calc(100% - 2rem);
  background: rgba(19, 26, 22, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 168, 109, .35); border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); color: var(--text-dark);
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.hs-card.is-visible { opacity: 1; transform: none; }
.hs-card__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.hs-card__body { padding: .9rem 1rem 1rem; }
.hs-card__title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; margin: 0 0 .35rem; }
.hs-card__text { font-size: .86rem; line-height: 1.5; margin: 0 0 .9rem; color: var(--muted-dark); }
.ortho__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-top: 1.4rem; flex-wrap: wrap; }
.ortho__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem .9rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dark); transition: border-color .25s, color .25s; }
.chip:hover, .chip.is-active { border-color: var(--gold); color: var(--gold); }
.ortho__attribution { margin: .3rem 0 0; font-size: .7rem; color: var(--muted-dark); letter-spacing: .04em; }
@media (max-width: 700px) {
  .ortho__stage { height: clamp(420px, 70vh, 640px); }
  .ortho__hint { display: none; }
  .ortho__controls button { width: 36px; height: 36px; }
}

/* ---------- location ---------- */
.distances { margin: 0; border-top: 1px solid var(--stone-3); }
.distances div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--stone-3); }
.distances dt { font-family: var(--serif); font-size: 1.18rem; }
.distances dd { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .6rem; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: .8rem; height: 1px; background: var(--gold-2); }
.map-wrap { position: sticky; top: 5.5rem; }
/* the map is geometry: Leaflet keeps left-to-right internals on every page; the place labels are text in the page's
   language and take the page's direction (below) */
.map { direction: ltr; position: relative; z-index: 0; height: clamp(380px, 58vh, 640px); overflow: hidden; background: var(--stone-2); border: 1px solid var(--stone-3); border-radius: 2px; }
.map .leaflet-tile-pane { filter: grayscale(.35) sepia(.14) saturate(.85) contrast(.95); }
.map .leaflet-control-attribution { font-size: .62rem; background: rgba(244, 240, 231, .85); color: var(--muted); }
.map .leaflet-control-attribution a { color: var(--gold-2); }
.map .leaflet-bar { border: 1px solid var(--stone-3); box-shadow: none; }
.map .leaflet-bar a { background: var(--stone); color: var(--text); border-color: var(--stone-3); }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 2rem; color: var(--muted); font-size: .9rem; text-align: center; }
.map.is-ready .map__fallback { display: none; }
.map__tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--stone-3); border-radius: 999px; padding: 3px; }
.seg__btn { padding: .5rem 1.1rem; border-radius: 999px; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: background .25s, color .25s; }
.seg__btn.is-active { background: var(--ink); color: #fff; }
.map__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.estate-marker { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.estate-marker--place { background: var(--ink); }
.leaflet-tooltip.place-label { background: var(--ink); color: #fff; border: 0; padding: .3rem .65rem; border-radius: 999px; font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); unicode-bidi: isolate; }
/* a mixed label (Hebrew or Arabic words around Latin place names) reads in the page's order, as in the distances list,
   even when it starts with a Latin name; taking the direction from the first letter (plaintext) turns it left to right */
:root[dir="rtl"] .leaflet-tooltip.place-label { direction: rtl; }
.leaflet-tooltip.place-label::before { display: none; }
.leaflet-tooltip.place-label--estate { background: var(--gold); color: var(--ink); }
@media (max-width: 900px) { .map-wrap { position: static; } }

/* ---------- enquire ---------- */
.form { background: var(--ink-2); border: 1px solid rgba(198, 168, 109, .25); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2px; }
.field { margin-bottom: 1.6rem; }
.field label { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); border-radius: 0;
  color: #fff; font: inherit; font-size: 1.05rem; padding: .55rem 0; outline: none; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e2a08a; }
.hp { position: absolute; inset-inline-start: -9999px; width: 0; height: 0; opacity: 0; }
.form__foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: .5rem; }
.form__privacy { margin: 0; font-size: .78rem; color: var(--muted-dark); }
.form__status { margin: 1rem 0 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-error { color: #e2a08a; }
.form__status.is-ok { color: var(--gold); }
.enquire__aside { margin-top: 2.5rem; }

/* ---------- footer ---------- */
.footer { background: #0f1512; color: var(--muted-dark); padding: 3.5rem 0 2.5rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.brand--footer .brand__name { color: var(--text-dark); }
.footer__line { margin: .5rem 0 1rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.footer__line a { color: inherit; text-decoration: none; } /* the Articles link blends into the place line on purpose */
.footer__line a:hover { color: var(--text-dark); }
.footer__small { margin: 0; font-size: .76rem; line-height: 1.6; max-width: 70ch; }

/* ---------- modal & lightbox ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal__backdrop, .lightbox__backdrop { position: absolute; inset: 0; background: rgba(6, 9, 8, .93); }
.modal__panel { position: relative; width: min(1200px, 96vw); }
.modal__panel video { width: 100%; max-height: 82vh; background: #000; border-radius: 2px; }
.modal__close, .lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center; color: #fff;
  background: rgba(19, 26, 22, .75); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
  transition: background .25s, border-color .25s;
}
.modal__close:hover, .lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.modal__close, .lightbox__close { top: 1rem; inset-inline-end: 1rem; width: 44px; height: 44px; }
.modal__panel .modal__close { top: -3.4rem; inset-inline-end: 0; }
.modal__close svg, .lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.modal__caption { color: var(--muted-dark); font-family: var(--serif); font-size: 1.05rem; margin: .9rem 0 0; text-align: center; }
.lightbox__figure { position: relative; margin: 0; max-width: min(1400px, 94vw); display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { display: flex; gap: 1.2rem; align-items: baseline; color: var(--muted-dark); font-family: var(--serif); font-size: 1.05rem; margin-top: .9rem; text-align: center; }
/* "3 / 37" reads left to right on right-to-left pages too, like a date */
.lightbox__counter { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; opacity: .7; direction: ltr; unicode-bidi: isolate; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { inset-inline-start: 1rem; }
.lightbox__nav--next { inset-inline-end: 1rem; }
/* right to left: "previous" sits on the right and points right (the arrow keys and swipes follow, js/main.js) */
:root[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }
@media (max-width: 700px) {
  .lightbox__nav { width: 42px; height: 42px; top: auto; bottom: 1rem; transform: none; }
  .modal__panel .modal__close { top: -3rem; }
}

/* ---------- scripts (by the page's lang) ---------- */
/* Arabic letters join, so nothing is tracked on an Arabic page (the drawing keeps lang="en" and its tracking). */
:lang(ar), :lang(ar)::before, :lang(ar)::after { letter-spacing: 0 !important; }
/* Hebrew has no capitals, so the small tracked capitals of the labels become loosely spaced words: track lightly. */
:lang(he) :is(.eyebrow, .h4, .btn, .link-arrow, .brand__sub, .nav__links a, .lang__btn, .hero__facts span, .hero__asof, .scroll-cue,
  .facts dt, .stats__label, .comp-item__area, .plan__facts dt, .film-poster__label, .ortho__activate span, .chip, .distances dd,
  .seg__btn, .place-label, .field label, .footer__line) { letter-spacing: .06em; }
/* The headings' tight leading suits Latin lowercase; Arabic and Hebrew marks and CJK glyphs need more room. */
:lang(ar) .hero__title { line-height: 1.25; }
:lang(ar) .h2, :lang(ar) .h3 { line-height: 1.35; }
:lang(he) .hero__title { line-height: 1.08; }
:lang(he) .h2 { line-height: 1.18; }
/* CJK: no synthesized italics, each language's own line breaking, and smaller headings, since full-width glyphs
   fill the em where Cormorant's lowercase fills less than half of it. */
:lang(zh), :lang(ja), :lang(ko) { font-synthesis-style: none; }
:lang(ja) { line-break: strict; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .hero__title, :lang(ja) .hero__title, :lang(ko) .hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.2; }
:lang(zh) .h2, :lang(ja) .h2, :lang(ko) .h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); line-height: 1.3; }

/* ---------- reveal ---------- */
/* scoped to html.js (set by the first script in <head>) so the page is complete without JavaScript */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }
