/* ==========================================================================
   Polesella — farmhouse for sale
   Palette taken from the property's own photographs:
   dusk sky, sunset glow on the water, cherries, reeds, spring grass.
   ========================================================================== */

:root {
  --dusk: #1b1f35;
  --dusk-2: #2b3050;
  --glow: #f3a35b;
  --glow-soft: #f7c58f;
  --cherry: #9e1b32;
  --cherry-deep: #5e0f1f;
  --reed: #eceee4;
  --reed-2: #dfe3d3;
  --moss: #56643e;
  --ink: #23251f;
  --ink-soft: #545748;
  --white: #ffffff;

  --display: "Forum", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 72px;
}

html[lang="ar"] {
  --display: "Amiri", "Noto Naskh Arabic", serif;
  --body: "Noto Naskh Arabic", "Amiri", Tahoma, sans-serif;
}
html[lang="zh"] {
  --display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--reed);
  overflow-x: hidden;
}
html[lang="zh"] body, html[lang="ar"] body { font-weight: 400; line-height: 1.85; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { top: 8px; }

.display {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[lang="zh"] .display, html[lang="ar"] .display { line-height: 1.3; letter-spacing: 0; }
.prose { max-width: 62ch; }
.prose p { font-size: var(--step-0); }
.note { font-size: var(--step--1); color: var(--ink-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--glow); border-radius: 999px;
  background: var(--glow); color: var(--dusk);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--glow-soft); border-color: var(--glow-soft); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: var(--step--1); }
.btn-full { width: 100%; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  color: var(--white);
  transition: background .35s, box-shadow .35s;
}
.top.solid { background: rgba(27, 31, 53, .94); backdrop-filter: blur(8px); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-inline-end: auto; }
.brand-name { font-family: var(--display); font-size: 1.6rem; letter-spacing: .02em; margin: 0; }
.brand-sub { font-size: .78rem; opacity: .75; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: var(--step--1); opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.top-tools { display: flex; align-items: center; gap: 12px; }
.lang select {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  padding: 7px 12px; font-size: var(--step--1); cursor: pointer;
}
.lang option { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--white); content: ""; transition: transform .25s;
}
.menu-btn i { top: 21px; }
.menu-btn i::before { top: -7px; left: 0; }
.menu-btn i::after { top: 7px; left: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--dusk); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.12); animation: drift 22s ease-out forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,31,53,.55) 0%, rgba(27,31,53,0) 22%),
    linear-gradient(0deg, rgba(27,31,53,.92) 0%, rgba(27,31,53,.35) 42%, rgba(27,31,53,0) 70%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gutter) clamp(48px, 9vh, 110px);
}
.hero-title {
  font-family: var(--display);
  font-size: var(--step-4);
  line-height: .98; letter-spacing: -0.015em;
  max-width: 14ch; text-wrap: balance;
  opacity: 0; transform: translateY(24px);
  animation: rise 1.4s .4s cubic-bezier(.2,.7,.2,1) forwards;
}
html[lang="zh"] .hero-title, html[lang="ar"] .hero-title { line-height: 1.25; max-width: 16ch; }
html[lang="ru"] .hero-title, html[lang="de"] .hero-title { max-width: 18ch; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.6rem); }
.hero-sub {
  max-width: 54ch; margin-top: 26px; font-size: var(--step-1); line-height: 1.5; opacity: 0;
  animation: fade 1.2s 1.2s forwards;
}
.hero-price {
  margin: 18px 0 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.2;
  color: var(--glow-soft); opacity: 0; animation: fade 1.2s 1.4s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fade 1s 1.6s forwards; }

.hero-media picture { position: absolute; inset: 0; }
.hero-copy { text-shadow: 0 1px 14px rgba(20, 16, 30, .45); }
.hero-kicker {
  font-family: var(--body); font-weight: 500; font-size: var(--step-0); letter-spacing: .02em;
  color: #fff; margin-bottom: 18px; max-width: 40ch;
  opacity: 0; animation: fade 1s .2s forwards;
}
@keyframes drift { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- intro & facts ---------- */
.intro { padding-block: clamp(80px, 12vw, 160px) clamp(60px, 8vw, 110px); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro-grid .display { max-width: 15ch; }
.units { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: clamp(56px, 8vw, 100px); font-size: var(--step--1); color: var(--ink-soft); }
.units span { margin-inline-end: 6px; }
.unit-btn {
  border: 1px solid var(--ink-soft); background: transparent; border-radius: 999px;
  padding: 4px 14px; cursor: pointer; font-size: var(--step--1);
}
.unit-btn[aria-pressed="true"] { background: var(--ink); color: var(--reed); border-color: var(--ink); }
.facts {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: 18px 0 0; border-top: 1px solid var(--ink);
}
.facts > div { padding: 18px 16px 0 0; border-inline-end: 1px solid var(--reed-2); }
.facts > div:last-child { border-inline-end: 0; }
.facts dt { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.35; min-height: 2.7em; }
.facts dd { margin: 10px 0 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.1; }
.facts dd small { display: block; font-family: var(--body); font-size: var(--step--1); color: var(--ink-soft); margin-top: 4px; }

/* ---------- sunsets ---------- */
.sunsets {
  background: linear-gradient(180deg, var(--dusk) 0%, #3a2c4a 55%, #6b3a3e 100%);
  color: var(--white);
  padding-block: clamp(80px, 11vw, 150px);
}
.sunsets-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.sunsets-head .display { max-width: 13ch; }
.sunsets-head .prose { color: rgba(255,255,255,.82); }
.strip {
  display: flex; gap: 14px; margin-top: clamp(48px, 6vw, 80px);
  padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--glow) transparent;
}
.strip figure { flex: 0 0 auto; height: clamp(320px, 62vh, 620px); aspect-ratio: 3 / 4; margin: 0; scroll-snap-align: center; }
.strip figure.strip-wide { aspect-ratio: 4 / 3; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.sunsets-quote {
  margin: clamp(48px, 7vw, 90px) auto 0;
  font-family: var(--display); font-size: var(--step-2); line-height: 1.25;
  color: var(--glow-soft); max-width: 30ch; text-align: center; text-wrap: balance;
}

/* ---------- house ---------- */
.house { padding-block: clamp(80px, 11vw, 150px); }
.house-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.house-text .display { max-width: 14ch; margin-bottom: 28px; }
.house-diagram { margin: 0; }
.house-diagram figcaption, .annex-title { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 10px; }
.elevation { width: min(100%, 380px); }
.roof { height: 54px; background: var(--cherry); clip-path: polygon(6% 100%, 50% 0, 94% 100%); opacity: .9; }
.floor {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 18px; background: var(--white); border: 1px solid var(--reed-2); border-top: 0;
}
.floor:first-of-type { border-top: 1px solid var(--reed-2); }
.floor b, .garden-bar b { font-family: var(--display); font-weight: 400; font-size: var(--step-1); }
.annex-title { margin-top: 26px; }
.annexes { display: flex; gap: 8px; align-items: flex-end; }
.annex { flex: 1; min-height: 72px; background: var(--reed-2); clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%); }
.garden-bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 8px; padding: 14px 18px; background: var(--moss); color: var(--white); font-size: var(--step--1);
}
.house-film { margin-top: clamp(56px, 8vw, 100px); }
.house-film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--reed-2); border-radius: 2px; }
.house-film figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; }
.house-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.house-more h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 14px; }
.uses, .points { list-style: none; padding: 0; margin: 0; }
.uses li { padding: 12px 0; border-bottom: 1px solid var(--reed-2); }
.uses li:first-child { border-top: 1px solid var(--reed-2); }

/* renderings of the restored house */
.renders { margin-top: clamp(48px, 6vw, 80px); }
.renders h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 18px; }
.renders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.r-item { position: relative; padding: 0; border: 0; background: var(--reed-2); cursor: zoom-in; overflow: hidden; display: block; }
.r-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s; }
.r-item:hover img { transform: scale(1.03); }
.r-main { grid-column: 1 / -1; }
.r-main img { aspect-ratio: 16 / 9; }
.r-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(27, 31, 53, .72); color: #fff; font-size: .74rem; letter-spacing: .04em; backdrop-filter: blur(4px);
}
.renders .note { margin-top: 14px; }

/* ---------- cherries (the signature section) ---------- */
.cherries {
  display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100svh;
  background: var(--cherry-deep); color: var(--white);
}
.cherries-media { position: relative; overflow: hidden; }
.cherries-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cherries-copy { padding: clamp(56px, 8vw, 120px) var(--gutter); align-self: center; }
.cherries-copy .display { font-size: var(--step-3); max-width: 15ch; margin-bottom: 30px; color: #ffe9e2; }
.cherries-copy .prose { color: rgba(255,255,255,.85); }
.cherries-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px 0 0; max-width: 520px; }
.cherries-pair img, .cherries-pair video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--cherry); }

/* ---------- orchard ---------- */
.orchard { padding-block: clamp(80px, 11vw, 150px); }
.orchard-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.orchard-head .display { max-width: 13ch; }
.calendar { margin: 0; }
.calendar figcaption { font-family: var(--display); font-size: var(--step-2); margin-bottom: 18px; }
.cal-scroll { overflow-x: auto; }
#calendar { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--step--1); table-layout: fixed; }
#calendar th { font-weight: 400; color: var(--ink-soft); padding: 6px 0; text-align: center; }
#calendar th:first-child, #calendar td:first-child { text-align: start; padding-inline-end: 16px; white-space: nowrap; width: 9rem; }
#calendar td { padding: 3px 0; border-top: 1px solid var(--reed-2); }
#calendar td.m { position: relative; height: 34px; }
#calendar td.m.on::after {
  content: ""; position: absolute; inset: 9px 0; background: var(--moss);
}
#calendar td.m.on.start::after { border-start-start-radius: 99px; border-end-start-radius: 99px; margin-inline-start: 3px; }
#calendar td.m.on.end::after { border-start-end-radius: 99px; border-end-end-radius: 99px; margin-inline-end: 3px; }
#calendar tr.star td:first-child { color: var(--cherry); font-weight: 500; }
#calendar tr.star td.m.on::after { background: var(--cherry); }
#calendar td.m.now { background: rgba(243,163,91,.16); }
.calendar .note { margin-top: 14px; }
.orchard-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.orchard-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.orchard-flowers { margin-top: 24px; color: var(--ink-soft); }

/* ---------- film ---------- */
.film { position: relative; height: 90svh; min-height: 480px; background: var(--dusk); color: var(--white); overflow: hidden; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,31,53,.75), rgba(27,31,53,0) 55%); pointer-events: none; }
.film-copy { position: absolute; z-index: 1; inset: auto 0 0 0; max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) clamp(36px, 6vw, 72px); }
.film-copy h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1.05; max-width: 16ch; }
.film-copy p { margin: 12px 0 22px; max-width: 50ch; }

/* ---------- nature ---------- */
.nature { padding-block: clamp(80px, 11vw, 150px) 0; background: var(--reed-2); }
.nature-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nature-grid .display { max-width: 13ch; margin-bottom: 28px; }
.nature-video { margin: 0; justify-self: end; width: min(100%, 340px); }
.nature-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--dusk); }
.nature-video figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; }
.nature-wide { width: 100%; height: clamp(300px, 55vw, 720px); object-fit: cover; margin-top: clamp(56px, 8vw, 110px); }

/* ---------- gallery ---------- */
.gallery { padding-block: clamp(80px, 11vw, 150px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.filters button {
  border: 1px solid var(--ink-soft); background: transparent; border-radius: 999px;
  padding: 6px 16px; cursor: pointer; font-size: var(--step--1);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--reed); border-color: var(--ink); }
.masonry { columns: 4 240px; column-gap: 12px; }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; margin: 0 0 12px; background: var(--reed-2);
  cursor: zoom-in; break-inside: avoid; overflow: hidden;
}
.masonry img { width: 100%; height: auto; transition: transform .6s, opacity .3s; }
.masonry button:hover img { transform: scale(1.03); }
.masonry button[hidden] { display: none; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15, 17, 30, .96); color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 17, 30, .9); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: var(--step--1); opacity: .7; margin: 0; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(27,31,53,.5); color: var(--white);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { border-color: var(--white); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { inset-inline-start: 18px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 18px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { scale: -1 1; }

/* ---------- location ---------- */
.location { background: var(--dusk); color: var(--white); padding-block: clamp(80px, 11vw, 150px); }
.location-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.location-head .display { max-width: 14ch; }
.location-head .prose { color: rgba(255,255,255,.8); }
.location .note { color: rgba(255,255,255,.62); }
.location-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.map { margin: 0; }
.map figcaption { font-size: var(--step--1); color: rgba(255,255,255,.7); margin-bottom: 10px; }
/* The map: an old Italian touring map — parchment land, Adriatic blue, the Veneto in cherry */
#map {
  --paper: #f4ecd8; --land: #e9dfc4; --abroad: #ddd5c2; --ink-map: #3b2f24; --sea-map: #a9c9d3;
  width: 100%; height: auto; display: block; direction: ltr; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 24px 60px rgba(0,0,0,.5);
  font-family: var(--display);
}
#map .wave { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; }
#map .m-coast { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
#map .m-region { fill: none; stroke: rgba(255,255,255,.45); stroke-width: .9; stroke-dasharray: 4 3; }
#map .m-veneto { fill: rgba(255,240,200,.07); stroke: #ffd79a; stroke-width: 2.2; stroke-dasharray: 8 4; filter: drop-shadow(0 0 3px rgba(0,0,0,.6)); }
#map .m-lake { fill: #3f9cc2; stroke: rgba(255,255,255,.5); stroke-width: 1; }
#map .m-lagoon { fill: rgba(63,156,194,.72); stroke: none; }
#map .m-river { fill: none; stroke: #7fd0ea; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
#map text { paint-order: stroke; stroke: rgba(20,24,30,.72); stroke-linejoin: round; }
#map .m-region-lbl { fill: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; stroke-width: 3px; }
#map .m-region-lbl.main { fill: #ffe2b0; font-size: 34px; letter-spacing: .42em; stroke-width: 5px; stroke: rgba(60,20,10,.55); }
#map .m-sea-lbl { fill: rgba(255,255,255,.92); font-size: 21px; font-style: italic; letter-spacing: .32em; stroke-width: 0; }
#map .m-river-lbl { fill: #c9f0fb; font-size: 13px; font-style: italic; letter-spacing: .1em; stroke-width: 3px; }
#map .m-badge { fill: #fffaf0; stroke: rgba(255,255,255,.9); stroke-width: 1; }
#map .m-badge.airport { fill: rgba(255,250,240,.9); }
#map .m-icon { fill: var(--cherry); stroke: none; }
#map .m-icon [fill="none"] { stroke: var(--cherry); }
#map .m-icon .hole { fill: #fffaf0; }
#map .m-icon .cut { stroke: #fffaf0; stroke-width: 1.2; fill: none; }
#map .m-icon .snow { fill: #fff; }
#map .m-icon.dot { fill: #fff; }
#map .m-icon.airport { fill: #4a3f30; }
#map .m-icon.nature { fill: var(--moss); }
#map .m-icon.nature [fill="none"] { stroke: var(--moss); }
#map .m-icon.sea { fill: #1f6f92; }
#map .m-icon.sea [fill="none"] { stroke: #1f6f92; }
#map .m-icon .snow { fill: #fff; }
#map .m-lbl { fill: #fff; font-size: 17px; letter-spacing: .02em; stroke-width: 4px; }
#map .m-lbl.airport { font-family: var(--body); font-size: 11px; letter-spacing: .08em; stroke-width: 3px; }
#map .m-lbl.nature { fill: #e7f5c8; font-style: italic; }
#map .m-lbl.sea { fill: #d9f3ff; font-style: italic; }
#map .m-home line { stroke: #ffb35c; stroke-width: 2.4; stroke-linecap: round; }
#map .m-home circle { fill: var(--glow); stroke: #fff; stroke-width: 2.5; }
#map .m-home-lbl { fill: #ffd29a; font-size: 23px; stroke-width: 5px; stroke: rgba(60,20,10,.75); }
#map .m-scale rect { fill: #fff; }
#map .m-scale rect.alt { fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 1; }
#map .m-scale text, #map .m-compass text { fill: #fff; font-size: 12px; stroke-width: 3px; }
#map .m-compass path { fill: #fff; }
#map .m-compass .n { fill: #ffb35c; }
#map .m-compass .ew { fill: rgba(255,255,255,.6); }
#map .m-inset text { stroke-width: 0; }
#map .m-inset .frame { fill: rgba(244,236,216,.94); stroke: #c9b994; }
#map .m-inset .it { fill: #e2d6b8; stroke: #c3b38f; stroke-width: .4; }
#map .m-inset .ve { fill: var(--cherry); }
#map .m-inset .dot { fill: var(--glow); stroke: #fff; stroke-width: 1.2; }
#map .m-inset text { fill: var(--ink-map); font-size: 15px; font-style: italic; letter-spacing: .2em; }
html[lang="zh"] #map, html[lang="ar"] #map { font-family: "Forum", serif; }
html[lang="zh"] #map .m-lbl, html[lang="ar"] #map .m-lbl, html[lang="zh"] #map .m-home-lbl, html[lang="ar"] #map .m-home-lbl { font-family: var(--display); }
.map .note { margin-top: 20px; }
.map .link { display: inline-block; margin-top: 6px; font-size: var(--step--1); color: var(--glow-soft); }
.times h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 12px; }
.times h3:not(:first-child) { margin-top: 44px; }
.time-list { list-style: none; padding: 0; margin: 0 0 14px; }
.time-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.time-list li b { font-weight: 400; color: var(--glow-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- experiences: a journey ordered by driving time ---------- */
.experiences { padding-block: clamp(80px, 11vw, 150px); }
.exp-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.exp-head .display { max-width: 13ch; }
.journey { list-style: none; margin: 0; padding: 0; position: relative; }
.journey li {
  display: grid; grid-template-columns: 7rem minmax(0, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px);
  padding: 26px 0; border-top: 1px solid var(--reed-2); position: relative; align-items: start;
}
.journey li:last-child { border-bottom: 1px solid var(--reed-2); }
.journey .when { font-family: var(--display); font-size: var(--step-2); color: var(--moss); line-height: 1; font-variant-numeric: tabular-nums; }
.journey .bar { display: block; height: 3px; background: var(--glow); margin-top: 12px; border-radius: 2px; }
.journey .place { margin: 0; max-width: 300px; }
.journey .place img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--reed-2); }
.journey .place figcaption { font-size: .72rem; color: var(--ink-soft); margin-top: 6px; opacity: .8; }
.journey .place figcaption a { text-decoration: none; }
.journey .place figcaption a:hover { text-decoration: underline; }
.journey .place-text { padding-top: 4px; }
.journey h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.12; margin-bottom: 14px; }
.journey p { color: var(--ink-soft); max-width: 60ch; }

/* ---------- invest ---------- */
.invest { position: relative; color: var(--white); padding-block: clamp(90px, 12vw, 170px); overflow: hidden; background: var(--dusk); }
.invest-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.invest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,31,53,.94) 0%, rgba(27,31,53,.6) 100%); }
[dir="rtl"] .invest::before { background: linear-gradient(270deg, rgba(27,31,53,.94) 0%, rgba(27,31,53,.6) 100%); }
.invest-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.invest .display { max-width: 15ch; margin-bottom: 26px; }
.invest .prose { color: rgba(255,255,255,.85); }
.points { margin-top: 30px; }
.points li { padding: 12px 0 12px 28px; border-top: 1px solid rgba(255,255,255,.16); position: relative; }
[dir="rtl"] .points li { padding: 12px 28px 12px 0; }
.points li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.15em; width: 12px; height: 12px; border-radius: 50%; background: var(--cherry); box-shadow: inset -3px -3px 0 rgba(0,0,0,.2); }
.price { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); padding: clamp(24px, 3vw, 40px); backdrop-filter: blur(6px); }
.price-label { font-size: var(--step--1); opacity: .7; margin-bottom: 6px; }
.price-value { font-family: var(--display); font-size: var(--step-3); line-height: 1.05; color: var(--glow-soft); }
.price-value.on-request { font-size: var(--step-2); line-height: 1.2; }
.price-note { font-size: var(--step--1); opacity: .85; margin: 16px 0 26px; }

/* ---------- safe purchase ---------- */
.safe { padding-block: clamp(80px, 11vw, 150px); background: var(--reed); }
.safe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.safe .display { max-width: 13ch; margin-bottom: 24px; }
.safe-points { list-style: none; padding: 0; margin: 32px 0 0; }
.safe-points li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--reed-2); }
[dir="rtl"] .safe-points li { padding: 12px 34px 12px 0; }
.safe-points li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 1.05em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.safe h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 20px; }
.safe-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.safe-steps li { counter-increment: step; position: relative; padding: 4px 0 28px 64px; }
[dir="rtl"] .safe-steps li { padding: 4px 64px 28px 0; }
.safe-steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--dusk); color: var(--glow-soft); font-family: var(--display); font-size: 1.3rem;
}
.safe-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--reed-2); }
.safe-steps h4 { font-family: var(--display); font-weight: 400; font-size: var(--step-1); margin: 6px 0 6px; }
.safe-steps p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.contact-media { position: relative; min-height: 420px; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel { padding: clamp(56px, 7vw, 110px) var(--gutter); max-width: 680px; }
.contact-panel .display { max-width: 12ch; margin-bottom: 18px; }
.contact-panel > p { color: var(--ink-soft); margin-bottom: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field label { font-size: var(--step--1); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #b9bdae; background: transparent;
  padding: 10px 0; font-size: var(--step-0); border-radius: 0;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--moss); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--cherry); }
.field .msg { color: var(--cherry); font-size: var(--step--1); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step--1); margin: 6px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--moss); flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { color: var(--cherry); font-size: var(--step--1); min-height: 1px; }
.form-status { margin-top: 16px; }
.form-status.ok { color: var(--moss); font-weight: 500; }
.form-status.err { color: var(--cherry); }
.direct { margin-top: 28px; font-size: var(--step--1); color: var(--ink-soft); }
.direct a { margin-inline-end: 14px; }

.privacy { max-width: 560px; border: 0; padding: 32px; background: var(--reed); color: var(--ink); }
.privacy::backdrop { background: rgba(15,17,30,.7); }
.privacy h2 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 14px; }
.privacy p { margin-bottom: 24px; }

/* ---------- footer & floating CTA ---------- */
.footer { background: var(--dusk); color: rgba(255,255,255,.8); padding-block: 48px; font-size: var(--step--1); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand-name { color: var(--white); margin-bottom: 6px; }
.footer .note { color: rgba(255,255,255,.55); }
.float-cta {
  position: fixed; z-index: 40; bottom: 18px; inset-inline-end: 18px;
  display: none; padding: 13px 22px; border-radius: 999px;
  background: var(--glow); color: var(--dusk); text-decoration: none; font-weight: 500;
  box-shadow: 0 8px 24px rgba(27,31,53,.35);
}
.float-cta.show { display: inline-flex; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div:nth-child(3) { border-inline-end: 0; }
  .facts > div:nth-child(n+4) { margin-top: 18px; border-top: 1px solid var(--reed-2); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .top-tools .btn-small { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--dusk); padding: 8px var(--gutter) 24px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: var(--step-1); border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu-btn[aria-expanded="true"] i { background: transparent; }
  .menu-btn[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
  .intro-grid, .sunsets-head, .house-grid, .house-more, .orchard-head, .nature-grid,
  .location-head, .location-grid, .exp-head, .invest-grid, .contact, .safe-grid { grid-template-columns: 1fr; }
  .cherries { grid-template-columns: 1fr; min-height: 0; }
  .cherries-media { height: 70svh; }
  .nature-video { justify-self: start; }
  .renders-grid { grid-template-columns: 1fr 1fr; }
  .orchard-photos { grid-template-columns: 1fr 1fr; }
  .journey li { grid-template-columns: 5.5rem 1fr; }
  .journey .place, .journey .place-text { grid-column: 2; }
  .contact-media { min-height: 46svh; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-inline-end: 0; padding-inline-end: 12px; }
  .facts > div:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--reed-2); }
  .field-row { flex-direction: column; gap: 0; }
  .journey li { grid-template-columns: 1fr; gap: 10px; }
  .journey .place, .journey .place-text { grid-column: auto; }
  .journey .bar { max-width: 160px; }
  .strip figure { height: 56vh; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* the whole harvest calendar fits the phone screen */
  #calendar { min-width: 0; font-size: .74rem; }
  #calendar th:first-child, #calendar td:first-child { width: 5.6rem; padding-inline-end: 6px; white-space: normal; line-height: 1.2; }
  #calendar th { font-size: .62rem; padding: 4px 0; letter-spacing: -.02em; }
  #calendar td.m { height: 26px; }
  #calendar td.m.on::after { inset: 8px 0; }
  .float-cta { bottom: 12px; inset-inline-end: 12px; padding: 10px 16px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-kicker, .hero-title, .hero-sub, .hero-price, .hero-actions { animation: none; opacity: 1; transform: none; }
  .masonry img { transition: none; }
}
