/* =========================================================
   וילה על הבניאס: "מטע זיתים וחיטה" (until 14.11.2026: "הבית הצהוב")
   Layout: poster-scale condensed type on a light almond ground in olive and wheat,
   hard-edged photos, and a reed-ceiling band where the porch roof sits.
   One light look on purpose: the colors are the house's own.
   Full spec: DESIGN.md
   ========================================================= */

:root {
  /* color: olive grove and wheat (14.11.2026); the roller shutter stays the house's blue */
  --ochre: #D9B456;        /* ripe wheat: buttons on dark, bullets, small marks */
  --ochre-shade: #B8963F;  /* wheat in shade: background behind a loading photo */
  --sun: #E5D6C0;          /* light almond: opening, booking, phone menu */
  --teal: #465A28;         /* olive leaf: buttons, links, focus ring, the FAQ + */
  --teal-hover: #3C4E22;
  --teal-deep: #2E3B1F;    /* olive grove in shade: price card, stream caption (the closing band's overlay repeats it as rgb 46, 59, 31) */
  --ink: #433A24;          /* olive-trunk brown, never black: text and heavy rules */
  --muted: #59543C;        /* secondary text: 6.7:1 on paper, 5.3:1 on almond, still above 4.5 over the grain */
  --paper: #F5F0E2;        /* oat: page background */
  --white: #FFFDF8;        /* inputs, the review form, text on olive buttons */
  --beam: #5A3F26;         /* porch beam */
  --reed-a: #C8A66C;
  --reed-b: #DCC391;
  --reed-c: #B7955E;
  --anemone: #A9302A;      /* errors only */
  --wa: #1C944C;           /* the WhatsApp button on phones only */
  --field-border: #847C61; /* input outlines: 4.1:1 on white */
  --river: #6E9FA6;
  --river-hi: #A9CACC;
  --shutter-a: #3D7D89;    /* the roller shutter's slats: blue on purpose, the owner's choice */
  --shutter-b: #2F6A75;
  --shutter-c: #4A8995;
  --shutter-rail: #163F47; /* the shutter's bottom rail */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 42 4, 82 12, 122 7 S 200 4, 237 8' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  --on-dark: #F4EFDD;
  --on-dark-muted: rgba(244, 239, 221, .76);
  --line: rgba(67, 58, 36, .16);
  --line-dark: rgba(244, 239, 221, .18);

  /* the opening and the header above it: change these to recolor the first screen */
  --hero-bg: var(--sun);
  --hero-fg: var(--ink);
  --hero-sub: var(--muted);
  --hero-rule: rgba(67, 58, 36, .28);
  --hero-btn: var(--teal);
  --hero-btn-fg: var(--white);
  --hero-btn-hover: var(--teal-hover);
  --hero-link-hover: var(--teal);
  --hero-focus: var(--teal);
  --hero-badge-bg: var(--teal-deep);
  --hero-badge-fg: var(--on-dark);

  /* type */
  --display: "Karantina", "Secular One", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans Hebrew", "Assistant", "Segoe UI", Arial, sans-serif;

  /* space and shape */
  --maxw: 1240px;
  --gutter: 16px;
  --section: clamp(64px, 7vw, 104px);
  --radius: 3px;
  --header-h: 64px;
  --quick-h: 0px;          /* the second header row on phones (home page only) */
  --top-h: calc(var(--header-h) + var(--quick-h)); /* everything fixed at the top */
  --ease: cubic-bezier(.22, .7, .18, 1);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --header-h: 76px; } }

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.price-card :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--ochre); }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 16px; font-weight: 600; line-height: 1.4;
  color: var(--teal);
  margin-bottom: 12px;
}
.eyebrow:not(.hero .eyebrow) { display: none; }
body.editing .eyebrow { display: block; }
.section-title {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(30px, calc(1.6vw + 18px), 44px);
  line-height: 1.15; letter-spacing: -.01em;
  margin-bottom: 18px;
  max-width: 18em;
}

.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--teal); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font: 600 17px/1.1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: var(--teal-hover); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-wa { --bg: var(--teal); }
.btn-ghost { --bg: transparent; --fg: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { --bg: var(--teal); --fg: var(--white); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  --h-bg: var(--hero-bg); --h-fg: var(--hero-fg); --h-sub: var(--hero-sub);
  --h-btn: var(--hero-btn); --h-btn-fg: var(--hero-btn-fg); --h-btn-hover: var(--hero-btn-hover); --h-focus: var(--hero-focus);
  background: var(--h-bg); color: var(--h-fg);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-header.is-scrolled {
  --h-bg: var(--paper); --h-fg: var(--ink); --h-sub: var(--muted);
  --h-btn: var(--teal); --h-btn-fg: var(--white); --h-btn-hover: var(--teal-hover); --h-focus: var(--teal);
  box-shadow: 0 1px 0 var(--line);
}
.site-header :focus-visible { outline-color: var(--h-focus); }
.header-cta { --bg: var(--h-btn); --fg: var(--h-btn-fg); }
.header-cta:hover { --bg: var(--h-btn-hover); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: .9; }
.brand-sub { font-size: 13px; font-weight: 500; color: var(--h-sub, var(--muted)); margin-top: 3px; }

/* links sit right beside the name, after a thin rule; "בדיקת תאריכים" goes to the far end.
   The link of the section being read gets an underline (main.js sets aria-current). */
.main-nav {
  display: flex; align-items: center; gap: 2px;
  padding-inline-start: 14px; border-inline-start: 1px solid var(--line);
}
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--radius); color: inherit; text-decoration: none;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav .nav-more { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.quick-row { display: none; }

.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding-top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); }
.hero-grid { display: grid; grid-template-columns: 1fr; }

.hero-copy {
  padding-block: 20px 44px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  min-width: 0;
}
.hero :focus-visible { outline-color: var(--hero-focus); }
.hero .eyebrow { color: inherit; font-weight: 500; font-size: 16px; margin-bottom: 14px; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: min(27vw, 150px);
  line-height: .8;
  margin-bottom: 26px;
  text-wrap: nowrap;
}
.hero-lead { font-size: 18px; max-width: 29em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 36px; }
.hero .btn-primary { --bg: var(--hero-btn); --fg: var(--hero-btn-fg); }
.hero .btn-primary:hover { --bg: var(--hero-btn-hover); }
.hero-actions .btn-ghost {
  --fg: var(--hero-fg); box-shadow: none; padding-inline: 2px; min-height: 54px;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.hero-actions .btn-ghost:hover { --bg: transparent; --fg: var(--hero-link-hover); }

.hero-stats {
  list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--hero-rule);
  display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; gap: 12px 16px;
}
.hero-stats li { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.hero-stats strong { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: .9; }
.hero-stats span { font-size: 15px; font-weight: 500; }

.hero-media { position: relative; }
.hero-photo { position: relative; aspect-ratio: 4 / 3.6; max-width: 100%; overflow: hidden; background: var(--ochre-shade); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: settle 1.8s var(--ease) backwards; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

.hero-inset {
  position: absolute; z-index: 2;
  inset-inline-start: max(var(--gutter), env(safe-area-inset-right, 0px)); top: -44px;
  width: 38%; max-width: 230px;
  border: 5px solid var(--hero-bg);
  background: var(--hero-bg);
  animation: rise 1.2s .35s var(--ease) backwards;
}
.hero-inset img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 7px 8px 6px;
  background: var(--hero-badge-bg); color: var(--hero-badge-fg);
  font-size: 13px; font-weight: 600; line-height: 1.25;
}

/* the porch roof: a beam and a reed ceiling */
.porch-edge, .site-footer::before {
  display: block; height: 40px;
  background:
    linear-gradient(var(--beam), var(--beam)) top / 100% 10px no-repeat,
    linear-gradient(rgba(40, 24, 12, .35), transparent) 0 10px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(90, 63, 38, .32) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, var(--reed-a) 0 3px, var(--reed-b) 3px 5px, var(--reed-c) 5px 8px, var(--reed-b) 8px 11px, var(--reed-a) 11px 13px);
}

/* ---------- intro ---------- */
.intro-grid { display: grid; gap: 40px; grid-template-areas: "copy" "img"; }
.intro-copy { grid-area: copy; min-width: 0; }
.intro-img { grid-area: img; width: 78%; max-width: 440px; aspect-ratio: 3 / 4; overflow: hidden; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro-copy > p:not(.eyebrow) { font-size: clamp(18px, 1.4vw, 20px); max-width: 33em; }

/* the porch line under the intro text (all that is left of the old "what's in the house" list) */
.feature {
  padding: 16px 0 18px; border-top: 1px solid var(--line);
}
.intro-porch { margin-top: 8px; max-width: 33em; }
.feature h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 2px; }
.feature p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- inside ---------- */
.inside-grid { display: grid; gap: 48px; }
.inside-copy { min-width: 0; }
.inside-copy > p:not(.eyebrow) { font-size: clamp(18px, 1.4vw, 20px); max-width: 30em; }
.spec-list { margin: 32px 0 0; border-top: 2px solid var(--ink); }
.spec-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: left; }

.inside-media { position: relative; padding-bottom: 24%; }
.inside-img { overflow: hidden; background: var(--sun); }
.inside-img img { width: 100%; height: 100%; object-fit: cover; }
.inside-img-a { width: 92%; aspect-ratio: 4 / 3; max-width: 100%; }
.inside-img-b { position: absolute; inset-inline-end: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3; border: 8px solid var(--paper); border-bottom: 0; border-inline-end: 0; }

/* ---------- gallery ---------- */
.section-dark { background: var(--paper); color: var(--ink); }

.gallery-grid {
  display: grid; gap: 8px;
  grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px 150px 210px 300px 170px 150px 150px;
  grid-template-areas:
    "porch anem" "porch stream" "living dining" "patio patio"
    "bath2 room4" "upstairs upstairs" "room1 room2" "room3 bath1";
}
.g-porch { grid-area: porch; }
.g-living { grid-area: living; }
.g-anem { grid-area: anem; }
.g-stream { grid-area: stream; }
.g-dining { grid-area: dining; }
.g-patio { grid-area: patio; }
.g-upstairs { grid-area: upstairs; }
.g-room1 { grid-area: room1; }
.g-room2 { grid-area: room2; }
.g-room3 { grid-area: room3; }
.g-room4 { grid-area: room4; }
.g-room4 img { object-position: 50% 70%; }
.g-bath1 { grid-area: bath1; }
.g-bath2 { grid-area: bath2; }
.g-item {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: 0; overflow: hidden; cursor: zoom-in;
  background: var(--teal);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item:focus-visible { z-index: 2; }

.gallery-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; margin-top: 8px; }
.g-cell { position: relative; }
.g-extra { aspect-ratio: 4 / 3; }

/* ---------- area ---------- */
/* ---------- the walk to the stream (the peak) ---------- */
.area { padding-bottom: var(--section); }
.walk-stage { display: grid; grid-template-columns: 1fr; grid-template-areas: "photos" "panel"; }
.walk-photos { grid-area: photos; position: relative; aspect-ratio: 4 / 3.4; max-width: 100%; overflow: hidden; background: var(--sun); }
.walk-photos figure { position: absolute; inset: 0; }
.walk-photos img { width: 100%; height: 100%; object-fit: cover; }
.walk-from { display: none; }
.walk-panel {
  grid-area: panel; min-width: 0;
  padding-block: clamp(36px, 6vw, 72px) 0;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.walk-text { font-size: clamp(17px, 1.4vw, 20px); max-width: 32em; }
.walk-meter { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); margin-top: 24px; }
.walk-route { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.walk-river { stroke: var(--river); }
.walk-river-hi { stroke: var(--river-hi); }
.walk-path { stroke: var(--ink); }
.walk-reveal { stroke-dasharray: 1; stroke-dashoffset: 0; }
.walk-house rect:first-child { fill: var(--ochre); stroke: var(--ink); stroke-width: 2.5; }
.walk-house path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.walk-shutter { fill: var(--teal); }
.walk-end { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.walk-label { font: 600 14px var(--body); fill: var(--ink); }
.walk-clock { margin: 0; display: flex; flex-direction: column; flex: none; }
.walk-clock span { font: 700 clamp(64px, 7vw, 108px)/.85 var(--display); direction: ltr; text-align: left; min-width: 2.3ch; }
.walk-clock small { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.places-wrap { padding-top: clamp(32px, 5vw, 64px); }
.places { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 36px; }
.places li { display: flex; flex-direction: column; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.places strong { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.places span { font-size: 16px; color: var(--muted); }

/* ---------- booking ---------- */
.booking { background: var(--sun); }
.booking-grid { display: grid; gap: 20px; align-items: start; }

.price-card {
  background: var(--teal-deep); color: var(--on-dark-muted);
  padding: 32px 26px; border-radius: var(--radius);
}
.price-card .eyebrow { color: var(--ochre); }
.price { margin: 0; color: var(--on-dark); font-family: var(--display); font-weight: 700; line-height: .85; display: flex; align-items: baseline; gap: 8px; }
.price-num { font-size: clamp(96px, 11vw, 132px); }
.price-cur { font-family: var(--body); font-weight: 500; font-size: 40px; }
.price-per { margin: 10px 0 24px; font-size: 17px; color: var(--on-dark); }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; }
.price-list li { padding: 10px 0; border-top: 1px solid var(--line-dark); display: flex; align-items: center; gap: 12px; }
.price-list li::before { content: ""; width: 8px; height: 8px; background: var(--ochre); flex: none; }
.link-row { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 19px; }
.link-row:hover { color: var(--ochre); }

.booking-form {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  min-width: 0;
}
.booking-form .section-title { font-size: clamp(28px, 2.4vw, 34px); margin-bottom: 8px; }
.form-note { color: var(--muted); margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 600; font-size: 16px; }
.optional, .req { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font: 400 17px/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
/* browsers default to a faint gray (Safari 2.3:1): use the secondary text color, 7.5:1 on white */
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23433A24' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; padding-left: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.field input.invalid { border-color: var(--anemone); box-shadow: 0 0 0 3px rgba(169, 48, 42, .15); }
.form-error { color: var(--anemone); font-weight: 600; margin: -4px 0 16px; }

/* ---------- faq ---------- */
.faq-wrap { max-width: calc(880px + 2 * var(--gutter)); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:first-child { border-top: 2px solid var(--ink); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary, .rev-write > summary {
  list-style: none; cursor: pointer; padding: 20px 0; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker, .rev-write > summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .rev-write > summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: var(--radius);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23465A28' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--teal);
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after, .rev-write[open] > summary::after { transform: rotate(45deg); }
.faq-list summary:hover, .rev-write > summary:hover { color: var(--teal); }
.faq-list details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

/* ---------- location ---------- */
.location { background: var(--paper); }
.location-grid { display: grid; gap: 36px; align-items: center; }
.location-copy { min-width: 0; }
.location-copy > p:not(.eyebrow) { max-width: 30em; }
.nav-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.map-frame { aspect-ratio: 16 / 11; max-width: 100%; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-box { position: relative; max-width: 100%; }
.map-tabs {
  position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px;
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.map-tabs button, .map-tabs a, .map-tabs .map-tab-on {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 2px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink); font: 600 15px/1 var(--body); text-decoration: none;
}
.map-tabs [aria-pressed="true"], .map-tabs .map-tab-on { background: var(--teal); color: var(--white); cursor: default; }
.map-tabs button:not([aria-pressed="true"]):hover, .map-tabs a:hover { background: var(--sun); }
.map-tabs .ext { width: 13px; height: 13px; }

.map-card { aspect-ratio: 16 / 11; max-width: 100%; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.map-card svg { width: 100%; height: 100%; display: block; }

/* ---------- final CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); padding-block: clamp(96px, 13vw, 170px); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46, 59, 31, .8), rgba(46, 59, 31, .92) 70%); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta-title { font-family: var(--display); font-weight: 700; font-size: clamp(72px, 10vw, 140px); line-height: .85; margin-bottom: 18px; max-width: 8em; }
.cta-inner p { font-size: 20px; margin-bottom: 30px; color: var(--on-dark); max-width: 26em; }
.cta-band .btn { --bg: var(--ochre); --fg: var(--ink); }
.cta-band .btn:hover { --bg: var(--on-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-bottom: 28px; }
.site-footer::before { content: ""; margin-bottom: 52px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: var(--on-dark); font-size: 40px; }
.footer-brand .brand-sub { color: var(--on-dark-muted); font-size: 15px; margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; padding-block: 8px; }
.footer-nav a:hover, .footer-phone:hover { color: var(--ochre); }
.footer-phone { text-decoration: none; font-weight: 600; font-size: 19px; color: var(--on-dark); }
.footer-copy { margin-top: 20px; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- floating WhatsApp (phone) ---------- */
.wa-fab {
  position: fixed; z-index: 40;
  left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: var(--radius); background: var(--wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(28, 148, 76, .6);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
/* the button sits in the footer's markup but floats over the light page: ink ring on its own paper halo */
.site-footer .wa-fab:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 9px var(--paper), 0 10px 24px -8px rgba(28, 148, 76, .6); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab.is-hidden { transform: translateY(120px); opacity: 0; pointer-events: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(27, 31, 18, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { max-width: min(92vw, 1100px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-img { max-width: 100%; max-height: 78vh; width: auto; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.lb-img.is-swapping { opacity: 0; transform: scale(.985); }
.lb-caption { color: var(--on-dark-muted); font-size: 16px; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: rgba(244, 239, 221, .12); color: var(--on-dark); display: grid; place-items: center;
  transition: background-color .25s;
}
.lb-btn:hover { background: rgba(244, 239, 221, .24); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: calc(20px + env(safe-area-inset-top, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); }
.lb-prev, .lb-next { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.lb-prev { right: calc(50% + 10px); }
.lb-next { left: calc(50% + 10px); }

[data-edit]:empty { display: none; }
.is-placeholder { display: none; }
body.editing .is-placeholder { display: revert; }

/* ---------- text pages: accessibility statement, privacy policy ---------- */
.statement { padding-block: calc(var(--header-h) + 40px) var(--section); }
.statement .container { max-width: calc(760px + 2 * var(--gutter)); }
.statement h1 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 96px); line-height: .9; margin-bottom: 24px; }
.statement h2 { font-size: 22px; font-weight: 700; margin: 40px 0 10px; padding-top: 16px; border-top: 2px solid var(--ink); }
.statement p, .statement li { max-width: 40em; }
.statement ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.statement li { margin-bottom: 6px; }
.statement .updated { color: var(--muted); font-size: 15px; }
.statement a { color: var(--teal); text-underline-offset: 4px; }
.statement .btn { color: var(--white); text-decoration: none; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.statement h3 { font-size: 18px; font-weight: 700; margin: 24px 0 6px; }
.statement .draft-note { background: var(--sun); padding: 12px 16px; border-radius: var(--radius); font-size: 15px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.form-privacy { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form-privacy a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- availability calendar ---------- */
.avail { margin-bottom: clamp(28px, 4vw, 44px); }
.avail-head { display: grid; gap: 4px 40px; align-items: end; margin-bottom: 18px; }
.avail-note { margin: 0; color: var(--muted); max-width: 36em; }
.cal { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(16px, 2.6vw, 28px); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-nav {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--field-border); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--ink); background: var(--sun); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-nav svg { width: 20px; height: 20px; }
.cal-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 7px; }
.cal-swatch { width: 18px; height: 18px; border-radius: 2px; border: 1.5px solid var(--field-border); background: var(--white); }
.cal-swatch.is-taken { background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px), var(--sun); border-color: var(--line); }
.cal-swatch.is-pick { background: var(--teal); border-color: var(--teal); }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cal-title { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal-grid th { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal-grid td { padding: 0; }
.cal-day {
  width: 100%; aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
  font: 600 16px/1 var(--body); font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s, color .2s, scale .25s var(--ease);
}
.cal-day:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--ink); scale: 1.06; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ochre); }
.cal-day.is-past { color: var(--field-border); background: transparent; border-color: transparent; cursor: default; }
.cal-day.is-taken {
  color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px;
  background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px), var(--sun);
  border-color: var(--line);
}
.cal-day[aria-disabled="true"] { cursor: not-allowed; }
.cal-day.is-range { background: var(--sun); border-color: var(--teal); }
.cal-day.is-in, .cal-day.is-out { background: var(--teal); border-color: var(--teal); color: var(--white); text-decoration: none; }
.cal-status { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; font-size: 15px; }
.cal-loading { margin: 0; color: var(--muted); }
.cal-edit-hint { display: none; margin: 0 0 14px; padding: 10px 14px; background: var(--sun); border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.cal.is-editing .cal-edit-hint { display: block; }
.cal.is-editing .cal-day:not(:disabled) { cursor: pointer; }
@media (min-width: 900px) {
  .avail-head { grid-template-columns: auto 1fr; }
  .avail-head .section-title { margin-bottom: 0; }
  .cal-months { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cal-day { aspect-ratio: auto; height: 52px; }
}

/* =========================================================
   details from the house itself: the shutter, a plaster grain,
   a hand-drawn underline, footprints to the stream.
   ========================================================= */
/* the almond ground has a plaster grain, not a flat screen colour */
.hero, .booking { background-image: var(--grain); }
.site-header:not(.is-scrolled) { background-image: var(--grain); }

/* when the page opens, the house's blue roller shutter rolls up off the porch photo.
   It stays blue in the olive palette: the owner asked for that on 14.11.2026.
   The owner tried a scroll-driven version on 12.11.2026 and preferred this one, as long as
   the photo is on the first screen (see the narrow-screen opening at the end of this file). */
.shutter {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--shutter-rail), var(--shutter-rail)) bottom / 100% 16px no-repeat,
    repeating-linear-gradient(180deg, var(--shutter-a) 0 9px, var(--shutter-b) 9px 10px, var(--shutter-c) 10px 12px);
  translate: 0 -101%;
  animation: shutter-up 1.3s .5s cubic-bezier(.65, 0, .35, 1) backwards;
}
@keyframes shutter-up { from { translate: 0 -48%; } to { translate: 0 -101%; } }

/* the name settles in as the shutter rises */
.hero-title span { display: inline-block; animation: title-rise 1s .2s var(--ease) backwards; }
.hero-title br + span { animation-delay: .34s; }
@keyframes title-rise { from { translate: 0 .16em; } }
/* the four numbers rise into place one after another, always showing their real value */
.hero-stats strong { display: inline-block; animation: title-rise .9s var(--ease) backwards; }
.hero-stats li:nth-child(1) strong { animation-delay: .9s; } .hero-stats li:nth-child(2) strong { animation-delay: 1s; }
.hero-stats li:nth-child(3) strong { animation-delay: 1.1s; } .hero-stats li:nth-child(4) strong { animation-delay: 1.2s; }

/* headings get a hand-drawn underline in wheat */
.section-title::after {
  content: ""; display: block; width: min(200px, 55%); height: 12px; margin-top: 10px;
  background: var(--ochre);
  -webkit-mask: var(--brush) no-repeat center / 100% 100%; mask: var(--brush) no-repeat center / 100% 100%;
}
.motion .section-title::after { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease) .15s; }
.motion .section-title.seen::after { clip-path: inset(0); }

/* gallery: the caption slides up when you point at a photo or reach it with the keyboard */
@media (hover: hover) {
  .g-item::before {
    content: attr(data-caption); position: absolute; z-index: 1; inset-inline: 0; bottom: 0;
    padding: 10px 14px; background: var(--ink); color: var(--on-dark); font: 600 15px/1.3 var(--body); text-align: right;
    translate: 0 101%; transition: translate .35s var(--ease);
  }
  .g-item:hover::before { translate: 0 0; }
}
.g-item:focus-visible::before { translate: 0 0; }

/* the walk: footprints appear one by one along the path */
.walk-step { fill: var(--ink); }
.walk-path { opacity: .35; }
.s1 { --t: .07; } .s2 { --t: .17; } .s3 { --t: .28; } .s4 { --t: .39; } .s5 { --t: .5; }
.s6 { --t: .61; } .s7 { --t: .72; } .s8 { --t: .83; } .s9 { --t: .93; }
.motion .walk-step { opacity: clamp(0, calc((clamp(0, calc((var(--p, 0) - .12) / .7), 1) - var(--t)) * 14), 1); }

/* buttons lean slightly toward the pointer (script adds the offset) */
.btn { transition: background-color .25s, color .25s, box-shadow .25s, translate .35s var(--ease); }

/* the WhatsApp button nods once, a few seconds after the page opens */
.wa-fab { animation: nudge .8s 6s var(--ease) 1; }
@keyframes nudge { 25% { rotate: -12deg; } 50% { rotate: 9deg; } 75% { rotate: -4deg; } }

@media (prefers-reduced-motion: reduce) {
  .shutter { display: none; }
}

/* =========================================================
   motion: on only when assets/js/motion.js adds html.motion
   (never with reduced motion, never while editing). Every
   block below reads --p (0 to 1) from its [data-act] parent.
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* opening: three planes at three speeds */
.motion .hero-photo img { transform-origin: 50% 100%; scale: 1.08; translate: 0 calc(var(--p, 0) * 7%); will-change: translate; }
@media (min-width: 900px) {
  .motion .hero-inset { translate: 0 calc(var(--p, 0) * 64px); will-change: translate; } /* moves with the copy, so it never slides over the numbers */
  .motion .hero-copy { translate: 0 calc(var(--p, 0) * 64px); }
}

/* "time slows down": the anemones ease back as the section arrives */
.motion .intro-img img { scale: calc(1.18 - var(--p, 1) * .18); will-change: scale; }

/* gallery: photos settle into the grid at slightly different speeds */
.motion .gallery-grid .g-item { translate: 0 calc((1 - var(--p, 1)) * var(--d, 40px)); }
.motion .gallery-grid .g-item:nth-child(3n+1) { --d: 72px; }
.motion .gallery-grid .g-item:nth-child(3n+2) { --d: 28px; }
.motion .gallery-grid .g-item:nth-child(3n) { --d: 112px; }

/* the walk: the screen holds, the path draws, the clock runs to 2:00, the porch becomes the stream */
.motion .walk-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; grid-template-rows: 42% 1fr; align-items: start; }
.motion .walk-photos { aspect-ratio: auto; height: 100%; }
.motion .walk-panel { padding-top: 20px; }
.motion .walk-from { display: block; scale: calc(1 + var(--p, 0) * .1); }
.motion .walk-to { --arrive: clamp(0, calc((var(--p, 0) - .5) * 3), 1); clip-path: inset(0 0 0 calc((1 - var(--arrive)) * 100%)); scale: calc(1.1 - var(--arrive) * .1); }
.motion .walk-from, .motion .walk-to { will-change: scale, clip-path; }
.motion .walk-reveal { stroke-dashoffset: calc(1 - clamp(0, calc((var(--p, 0) - .12) / .7), 1)); }
.motion .walk-end { fill: color-mix(in srgb, var(--teal) calc(clamp(0, calc((var(--p, 0) - .78) * 8), 1) * 100%), var(--paper)); }

/* closing: the lawn settles into place and holds */
.motion .cta-bg img { scale: calc(1.16 - var(--p, 1) * .16); will-change: scale; }

@media (max-width: 899px) {
  .motion .walk-panel .section-title { margin-bottom: 10px; }
  .motion .walk-text { font-size: 16px; margin-bottom: 0; }
  .motion .walk-meter { margin-top: 14px; }
  .motion .walk-clock span { font-size: 60px; }
}
@media (min-width: 900px) {
  .motion .walk-stage { grid-template-rows: none; align-items: center; }
  .motion .walk-photos { height: 100%; }
  .motion .walk-panel { padding-top: var(--top-h); }
}


/* ---------- in-page editor (shown only to people who can edit) ---------- */
.edit-bar {
  position: fixed; z-index: 80;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font-family: var(--body);
}
.eb-open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--ink); color: var(--paper); font: 600 16px/1 var(--body);
  box-shadow: 0 10px 28px -12px rgba(67, 58, 36, .55);
}
.eb-open:hover { background: var(--teal); }
.eb-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  width: min(760px, calc(100vw - 32px)); padding: 14px 18px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(67, 58, 36, .5);
}
.eb-hint { margin: 0; font-size: 15px; color: var(--muted); flex: 1 1 240px; }
.eb-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.eb-phone input {
  width: 150px; min-height: 42px; padding: 6px 12px; border-radius: var(--radius); border: 1.5px solid var(--field-border);
  background: var(--white); color: var(--ink); font: 400 16px/1.2 var(--body);
}
.eb-phone input.invalid { border-color: var(--anemone); }
.eb-status { margin: 0; flex: 1 0 100%; font-size: 14px; color: var(--teal); min-height: 1.2em; }
.eb-status:empty { display: none; }
.eb-status.is-error { color: var(--anemone); font-weight: 600; }
.eb-actions, .eb-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eb-confirm span { font-weight: 600; font-size: 15px; }
.eb-actions button, .eb-confirm button {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal);
}
.eb-actions .eb-save, .eb-confirm .eb-discard { background: var(--teal); color: var(--white); box-shadow: none; }
.eb-actions .eb-save:disabled { opacity: .45; cursor: default; }

body.editing [data-edit] { outline: 1.5px dashed var(--teal); outline-offset: 3px; cursor: text; }
body.editing [data-edit]:hover { background: rgba(255, 253, 248, .45); }
body.editing [data-edit]:focus { outline: 2px solid var(--teal); background: rgba(255, 253, 248, .75); }
body.editing [data-edit]:empty { display: inline-block; min-width: 3em; min-height: 1em; }
body.editing .hero [data-edit], body.editing .site-header:not(.is-scrolled) [data-edit] { outline-color: var(--hero-focus); }
body.editing .price-card [data-edit],
body.editing .hero-badge [data-edit],
body.editing .cta-band [data-edit],
body.editing .site-footer [data-edit] { outline-color: var(--ochre); }
/* on dark sections the highlight darkens instead, so the light text stays readable */
body.editing .price-card [data-edit]:is(:hover, :focus),
body.editing .hero-badge [data-edit]:is(:hover, :focus),
body.editing .cta-band [data-edit]:is(:hover, :focus),
body.editing .site-footer [data-edit]:is(:hover, :focus) { background: rgba(27, 31, 18, .35); }
body.editing .wa-fab { display: none; }

.photo-swap {
  position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--paper); color: var(--ink); font: 600 14px/1 var(--body);
  box-shadow: 0 6px 16px -8px rgba(67, 58, 36, .5);
}
body.editing .g-item:not(.g-extra) { cursor: pointer; }
body.editing .g-item:not(.g-extra)::after {
  content: "החלפת תמונה"; position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 8px 10px; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: 600 13px/1 var(--body);
}
.g-del {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
}
.g-del svg { width: 16px; height: 16px; }
.g-add {
  aspect-ratio: 4 / 3; border-radius: 0; cursor: pointer;
  border: 1.5px dashed var(--field-border); background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1.2 var(--body);
}
.g-add:hover { background: var(--sun); }
.g-add .ico { width: 28px; height: 28px; }

.edit-toast {
  position: fixed; z-index: 85; left: 50%; translate: -50% 0; top: calc(var(--top-h) + 16px + env(safe-area-inset-top, 0px));
  margin: 0; padding: 12px 20px; border-radius: var(--radius); background: var(--ink); color: var(--paper); font: 600 15px/1 var(--body);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.edit-toast.is-on { opacity: 1; transform: none; }

/* =========================================================
   phone (default above) → tablet → desktop
   ========================================================= */
@media (max-width: 899px) {
  /* phones and tablets: גלריה, ביקורות and ניווט sit right beside "בדיקת תאריכים", thin rules between them */
  .quick-row { display: flex; align-items: center; }
  .quick-row a {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 0 10px; border-radius: var(--radius); color: inherit; text-decoration: none;
    font-size: 15px; font-weight: 600; white-space: nowrap;
  }
  .quick-row a + a::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 50%; height: 18px; margin-top: -9px;
    border-inline-start: 1px solid var(--line);
  }
  .quick-row .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .quick-row a::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 24px; margin-left: -12px; height: 2px;
    background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease);
  }
  .quick-row a[aria-current]::after { transform: scaleX(1); }

  /* tablets: the name, then the shortcuts, "בדיקת תאריכים" and the menu, all in one row */
  .header-inner { gap: 8px; }
  .site-header .brand-name { white-space: nowrap; }
  .header-cta { flex: none; white-space: nowrap; min-height: 40px; padding: 0 12px; font-size: 14px; gap: 6px; }
  .menu-toggle {
    display: grid; place-items: center; align-content: center; gap: 6px;
    width: 44px; height: 44px; margin-inline-end: -8px; border: 0; border-radius: var(--radius);
    background: transparent; color: inherit; cursor: pointer; position: relative; z-index: 60;
  }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: 0; z-index: 55; margin: 0;
    padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
    flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 4px;
    border: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--hero-bg);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .main-nav a { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1.05; text-decoration: none; padding: 0; min-height: 0; }
  .main-nav a:hover { background: none; }
  .main-nav a::after { inset-inline: 0; bottom: 4px; height: 3px; }
  .main-nav .nav-more { display: inline-flex; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { --h-bg: var(--hero-bg); --h-fg: var(--hero-fg); --h-sub: var(--hero-sub); --h-focus: var(--hero-focus); box-shadow: none; }

  .lb-prev, .lb-next { width: 56px; height: 56px; }
}

/* phones (below 760px): the name and the menu on top; below them one row with
   גלריה · ביקורות · ניווט and "בדיקת תאריכים" side by side, spread across the width */
@media (max-width: 759px) {
  :root:has(.quick-row) { --quick-h: 50px; }
  .header-inner { flex-wrap: wrap; height: auto; row-gap: 0; }
  .site-header .brand { min-height: var(--header-h); }
  .menu-toggle { margin-inline-start: auto; }
  .header-actions {
    order: 3; flex: 1 0 100%; height: var(--quick-h); margin-inline-start: 0; gap: 8px;
    border-top: 1px solid var(--line);
  }
  .quick-row { flex: 0 1 auto; }
  .quick-row a { padding: 0 12px; }
}
/* small phones: the shortcuts spread evenly across the row */
@media (max-width: 480px) {
  .quick-row { flex: 1 1 auto; }
  .quick-row a { flex: 1 1 0; padding: 0 4px; }
}
@media (max-width: 419px) {
  .header-cta { padding: 0 10px; }
  .header-cta .ico, .quick-row .ico { display: none; }
}
@media (max-width: 374px) { .site-header { --gutter: 12px; } }

@media (min-width: 600px) {
  .places { grid-template-columns: 1fr 1fr; }
  /* an odd number of places: the last one takes the whole row, so no empty cell is left */
  .places li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; }
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(4, clamp(200px, 21vw, 300px)) clamp(160px, 16vw, 230px);
    grid-template-areas:
      "porch living living anem"
      "porch dining dining stream"
      "patio patio bath2 room4"
      "upstairs upstairs bath2 room4"
      "room1 room2 room3 bath1";
  }
  .booking-grid { grid-template-columns: 5fr 7fr; gap: 24px; }
  .price-card { position: sticky; top: calc(var(--top-h) + 24px); padding: 40px 34px; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 55fr 45fr; min-height: 640px; }
  .hero-copy {
    padding-block: clamp(40px, 5vw, 72px) 52px;
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100vw - var(--maxw)) / 2));
    padding-left: clamp(32px, 4vw, 64px);
    display: flex; flex-direction: column;
  }
  .hero-title { font-size: clamp(120px, 14.2vw, 214px); margin-bottom: 30px; }
  .hero-lead { font-size: 20px; }
  .hero-stats strong { font-size: clamp(56px, 4.4vw, 72px); }

  .hero-photo { height: 100%; aspect-ratio: auto; }
  .hero-inset { top: auto; bottom: 48px; inset-inline-end: auto; inset-inline-start: -56px; width: 30%; max-width: 250px; border-width: 6px; }
  .hero-badge { font-size: 14px; padding: 8px 10px 7px; }

  .porch-edge, .site-footer::before { height: 52px; background-size: 100% 12px, 100% 10px, auto, auto; background-position: top, 0 12px, 0 0, 0 0; }

  .intro-grid { grid-template-columns: 7fr 5fr; grid-template-areas: "copy img"; gap: clamp(40px, 7vw, 110px); align-items: center; }
  .intro-img { width: 100%; justify-self: end; }

  .inside-grid { grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

  .walk-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "panel photos"; align-items: center; }
  .walk-photos { aspect-ratio: 4 / 4.6; }
  .walk-panel { padding-block: 0; padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100vw - var(--maxw)) / 2)); padding-left: clamp(32px, 4vw, 64px); }

  .location-grid { grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); }

  .wa-fab { display: none; }
  .cta-bg::after { background: linear-gradient(90deg, rgba(46, 59, 31, .55), rgba(46, 59, 31, .92) 70%); }
  .edit-bar { right: auto; left: 50%; translate: -50% 0; }
}

@media (min-width: 1100px) {
  /* wide screens: the places sit in one row */
  .places { grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
  .places li:last-child:nth-child(odd) { grid-column: auto; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; translate: 0 -50%; }
  .lb-prev { right: 24px; }
  .lb-next { left: 24px; }
}

@media (max-width: 380px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

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

/* ---------- legal and business details (added 10.11.2026) ---------- */
.price-vat { font-size: 15px; margin: -4px 0 18px; color: var(--on-dark-muted); }
.form-privacy { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.form-privacy a { color: var(--teal); text-underline-offset: 4px; font-weight: 600; }
.footer-biz { margin-top: 20px; font-size: 14px; color: var(--on-dark-muted); }

/* a detail the owners still have to supply: visible until it is filled in */
.is-missing, .missing {
  background: var(--sun); color: var(--ink); outline: 1.5px dashed var(--ink); outline-offset: 1px;
  border-radius: var(--radius); padding: 0 4px; font-weight: 600;
}
.lawyer {
  display: inline-block; margin-inline-start: 6px; padding: 1px 6px; vertical-align: 1px;
  border: 1.5px solid var(--teal); border-radius: var(--radius); color: var(--teal);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.draft-note { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sun); padding: 14px 16px; margin: 0 0 28px; max-width: 40em; }
.draft-note strong { display: block; margin-bottom: 4px; }

/* Google map waits for the visitor's click */
.map-frame { position: relative; }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 64px 24px 24px; text-align: center; background: var(--paper);
}
.map-consent p { margin: 0; max-width: 26em; color: var(--muted); font-size: 15px; }

/* shared layout for the statement, privacy and terms pages */
.statement { padding-block: calc(var(--header-h) + 40px) var(--section); }
.statement .container { max-width: calc(760px + 2 * var(--gutter)); }
.statement h1 { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 96px); line-height: .9; margin-bottom: 24px; }
.statement h2 { font-size: 22px; font-weight: 700; margin: 40px 0 10px; padding-top: 16px; border-top: 2px solid var(--ink); }
.statement p, .statement li { max-width: 40em; }
.statement ul, .statement ol { padding-inline-start: 1.2em; margin: 0 0 1em; }
.statement li { margin-bottom: 6px; }
.statement .updated { color: var(--muted); font-size: 15px; }
.statement a { color: var(--teal); text-underline-offset: 4px; }
.statement .btn { color: var(--white); text-decoration: none; }
.statement .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 14px; }
.legal-links a { color: var(--on-dark); text-underline-offset: 4px; }

/* ---------- opening on phones and narrow windows (12.11.2026) ----------
   The photo has to be on the first screen, where its shutter can be seen opening.
   So below 900px the copy block dissolves into the grid and the order becomes:
   place, name, photo, then the paragraph, buttons and numbers. */
@media (max-width: 899.98px) {
  .hero-copy { display: contents; }
  .hero-copy > * {
    margin-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    margin-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .hero .eyebrow { order: 1; margin-top: 14px; margin-bottom: 10px; }
  .hero-title { order: 2; margin-bottom: 20px; }
  .hero-media { order: 3; }
  .hero-lead { order: 4; margin-top: 72px; }
  .hero-actions { order: 5; }
  .hero-stats { order: 6; margin-bottom: 44px; }

  .hero-photo { aspect-ratio: 4 / 3.5; max-height: 60vh; max-height: 60svh; width: 100%; }
  .hero-photo img { object-position: 50% 30%; } /* sky, reed roof, trees and lawn; less floor */
  /* the stream photo hangs off the bottom corner of the porch photo, clear of the shutter */
  .hero-inset { top: auto; bottom: -52px; inset-inline-start: auto; inset-inline-end: max(var(--gutter), env(safe-area-inset-left, 0px)); width: 32%; max-width: 200px; }
}

/* the hidden attribute always wins, as it already does inside the claude.ai page */
[hidden] { display: none !important; }

/* ---------- guest reviews (12.11.2026) ----------
   Rows under ink rules, like the other lists: no cards. Stars are wheat with an
   ink outline, so they read on paper without relying on the wheat alone. */
.reviews { background: var(--paper); }
.rev-head { display: grid; gap: 8px 40px; align-items: end; margin-bottom: clamp(24px, 4vw, 40px); }
.rev-head .section-title { margin-bottom: 0; }
.rev-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--ink); text-decoration: none; }
.rev-summary:hover .rev-count { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.rev-src { color: var(--teal) !important; font-weight: 600; }
.rev-avg { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 7vw, 92px); line-height: .8; }
.rev-count { color: var(--muted); font-weight: 500; }
.rev-empty { max-width: 34em; color: var(--muted); margin: 0 0 8px; }

.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.st { display: inline-flex; }
.st svg, .star svg { width: 22px; height: 22px; display: block; fill: transparent; stroke: var(--star-line, rgba(67, 58, 36, .62)); stroke-width: 1.5; }
.st.is-on svg, .star.is-on svg { fill: var(--ochre); stroke: var(--ink); }
/* the average: a row of empty stars with a filled row on top, cut at the real average (from the right, as Hebrew reads) */
.stars-lg { position: relative; display: inline-block; }
.stars-lg .stars-row { display: flex; gap: 4px; }
.stars-lg .st svg { width: 30px; height: 30px; }
.stars-lg .stars-fill { position: absolute; inset: 0; clip-path: inset(0 0 0 calc(100% - var(--fill, 100%))); }

.rev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 56px; border-top: 2px solid var(--ink); }
.rev { padding: 22px 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.rev-text { margin: 12px 0 12px; max-width: 34em; white-space: pre-line; overflow-wrap: anywhere; }
.rev-by { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: 16px; }
.rev-by span { color: var(--muted); }
.rev-more { margin-top: 24px; }
.rev-del {
  margin-top: 12px; min-height: 40px; padding: 0 14px; cursor: pointer;
  background: transparent; color: var(--anemone); border: 1.5px solid var(--anemone); border-radius: var(--radius);
  font: 600 15px/1 var(--body);
}

.rev-form, .rev-admin {
  margin-top: clamp(36px, 5vw, 56px); max-width: 720px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
}
.rev-admin { border-style: dashed; border-color: var(--teal); }
.rev-form-title { font-size: clamp(22px, 2vw, 26px); font-weight: 700; line-height: 1.2; margin: 0 0 20px; }
.rev-form .btn-wa { margin-top: 4px; }
/* the review form opens on a tap, so the page stays short for guests who only read */
.rev-write > summary { padding: 0; }
.rev-write > summary .rev-form-title { margin: 0; }
.rev-write[open] > summary { margin-bottom: 20px; }
.rev-form .field textarea, .rev-admin .field textarea { min-height: 120px; }

.star-pick { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.star-pick legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 16px; }
.star-row { display: inline-flex; }
.star { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; cursor: pointer; border-radius: var(--radius); }
.star svg { width: 34px; height: 34px; transition: fill .15s, stroke .15s; }
.star-row input:focus-visible + .star { outline: 3px solid var(--teal); outline-offset: -2px; }
.star-word { margin: 4px 0 0; min-height: 1.5em; color: var(--muted); font-size: 15px; }

.check { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 18px; cursor: pointer; font-size: 16px; }
.check input {
  flex: none; width: 24px; height: 24px; margin: 2px 0 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: var(--radius);
}
.check input:checked {
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FFFDF8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--teal);
}
.check input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--anemone); box-shadow: 0 0 0 3px rgba(169, 48, 42, .15); }

/* the rating beside the price, shown only once there are reviews */
.price-rating { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -6px 0 12px; color: var(--on-dark); font-weight: 600; text-underline-offset: 4px; }
.price-rating:hover { color: var(--ochre); }
.price-rating .st svg { width: 20px; height: 20px; stroke: var(--ochre); }

@media (min-width: 900px) {
  .rev-head { grid-template-columns: 1fr auto; }
  .rev-list { grid-template-columns: 1fr 1fr; }
}

/* sections the page scrolls to get focus for keyboard users; no ring after a tap */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------- reviews saved on the public site's server (18.11.2026) ---------- */
.rev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rev-form .rev-actions .btn-wa { margin-top: 0; }
.rev-check { margin: 0 0 16px; min-height: 65px; }
.rev-thanks { border-inline-start: 4px solid var(--teal); padding: 4px 16px; }
.rev-thanks p { margin: 0 0 6px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.rev-nojs { margin: 18px 0 0; }
.rev-nojs a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- admin.html: the owners approve guest reviews ---------- */
.admin-page .rev-list { grid-template-columns: 1fr; }
.admin-login { max-width: 420px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.admin-note { color: var(--muted); font-size: 15px; }
.admin-status { min-height: 1.5em; font-weight: 600; color: var(--teal); }
.admin-empty { color: var(--muted); }
.admin-meta { color: var(--muted); font-size: 15px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-actions .btn { min-height: 44px; }
.btn-danger { --bg: transparent; --fg: var(--anemone); box-shadow: inset 0 0 0 2px var(--anemone); }
.btn-danger:hover, .btn-danger.is-armed { --bg: var(--anemone); --fg: var(--white); }
.statement .btn-danger, .statement .btn-ghost { color: var(--fg); }

/* ---------- admin.html: the owners' calendar (18.11.2026) ----------
   The same calendar as on the main page. Taken nights are toggle buttons (aria-pressed). */
.admin-page .cal { margin: 18px 0 8px; background: var(--white); }
.admin-page .cal-legend, .admin-page .rev-list { padding: 0; margin: 0; }
.admin-page .cal-legend li { margin: 0; }
.admin-page .cal-title { font-size: 19px; margin: 0 0 10px; }
.admin-page .rev-list { margin-top: 8px; }

/* ---------- the band of large type under the opening (back on 19.11.2026, at the owner's request) ----------
   It slides sideways as you scroll; without motion it simply stands still. */
.type-band { overflow: hidden; background: var(--ink); color: var(--sun); padding-block: clamp(14px, 2vw, 22px); }
.type-band-track {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); width: max-content;
  font: 700 clamp(44px, 6vw, 88px)/1 var(--display); white-space: nowrap;
  translate: calc(var(--p, 0) * 25%) 0;
}
.motion .type-band-track { will-change: translate; }
.band-mark { width: .62em; height: .62em; flex: none; color: var(--ochre); }
