/* ==========================================================================
   הפורום לעירובין בערי ישראל: מערכת עיצוב
   תשתית. הצבעים והפונט מוגדרים כמשתנים, כדי לדייק את העיצוב בהמשך במקום אחד.
   ========================================================================== */

@font-face { font-family: 'Discovery'; src: url('/fonts/Discovery_Fs-Thin.otf') format('opentype'); font-weight: 100 300; font-display: swap; }
@font-face { font-family: 'Discovery'; src: url('/fonts/Discovery_Fs-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Discovery'; src: url('/fonts/Discovery_Fs-Medium.otf') format('opentype'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Discovery'; src: url('/fonts/Discovery_Fs-Black.otf') format('opentype'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Talent'; src: url('/fonts/TalentFS-Thin.woff2') format('woff2'); font-weight: 100 300; font-display: swap; }
@font-face { font-family: 'Talent'; src: url('/fonts/TalentFS-Regular.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Talent'; src: url('/fonts/TalentFS-Demibold.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Talent'; src: url('/fonts/TalentFS-Black.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }


:root {
  /* צבע: השפה המיתוגית (שפה-מיתוגית/brand-tokens.css). כחול לילה, לבן ומרווה */
  --night: #080e2c;        /* האדר, הירו בעמודים פנימיים, פוטר, כפתור כהה */
  --night-2: #111a42;
  --night-3: #1c2858;
  --mist: #cfe6de;         /* טקסט משני על כהה */
  --sage: #68a691;         /* צבע המותג: כפתורים, הדגשות על כהה */
  --sage-light: #a9d3c3;
  --sage-deep: #3d7462;    /* טקסט וקישורים במרווה על בהיר */
  --ink: #080e2c;          /* טקסט על בהיר */
  --ink-2: #1b2a63;
  --muted: #2b3d78;
  --faint: #5a7fa3;
  --line: #e3e6ec;
  --line-2: #cfd4de;
  --paper: #f7f8f6;        /* רקע העמוד */
  --sand: #eef1f3;         /* משטח רך */
  --surface: #fcfcfc;      /* כרטיסים */
  --accent: var(--sage-deep);
  --accent-2: #2f5c4d;
  --accent-soft: #e3f0eb;
  --accent-ink: #ffffff;
  --focus: #3d7462;
  --route: #1f6b56;        /* קו העירוב על המפה */
  --grad-sage: linear-gradient(to left, #5c9d87 0%, #8cc2ae 55%, #bfe2d5 100%);

  /* טיפוגרפיה */
  --font: 'Discovery', 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
  --font-head: 'Talent', 'Discovery', 'Segoe UI', Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + calc(1.2vw / var(--z)), 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + calc(2.6vw / var(--z)), 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + calc(4.4vw / var(--z)), 4.75rem);

  /* מרווחים ורדיוסים */
  --gutter: max(16px, calc(5vw / var(--z)));
  --max: 100%;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 14, 44, .06);
  --shadow: 0 1px 2px rgba(8, 14, 44, .04), 0 10px 30px -12px rgba(8, 14, 44, .14);
  --shadow-lg: 0 2px 6px rgba(8, 14, 44, .06), 0 28px 60px -18px rgba(8, 14, 44, .28);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, .brand-name, .home-section-title { font-family: var(--font-head); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }
.section { padding-block: clamp(48px, calc(7vw / var(--z)), 96px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, calc(3vw / var(--z)), 32px); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-xl); }

/* ---------- כפתורים (גלולה, מעבר צבע במרווה, חץ אלכסוני) ---------- */
.btn {
  --b: var(--night); --c: #fcfcfc;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--c); font-weight: 500; font-size: var(--fs-md); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), border-color .2s, transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { --b: var(--night-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .ico-go { transform: translate(-2px, -2px); }
.btn-primary, .btn-accent {
  background: var(--grad-sage); border-color: transparent; color: var(--night);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 0 0 5px rgba(104, 166, 145, .16), 0 12px 30px -8px rgba(92, 157, 135, .55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fcfcfc; border-color: rgba(252, 252, 252, .7); }
.btn-ghost-light:hover { border-color: #fcfcfc; background: rgba(252, 252, 252, .06); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: var(--fs-sm); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--ink); }
.link:hover { color: var(--accent); }
.link .ico { transition: transform .2s var(--ease); }
.link:hover .ico { transform: translateX(-3px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.chip-sample { background: #fff3cd00; border: 1px dashed var(--line-2); color: var(--muted); }

/* ---------- האדר ---------- */
/* כהה כברירת מחדל. בדף הבית הוא שקוף מעל תמונת הנוף, עם טקסט כחול לילה, ונעשה כהה בגלילה */
.site-header {
  --h-fg: #fcfcfc; --h-fg-2: var(--mist); --h-hover: rgba(252, 252, 252, .08);
  position: sticky; top: 0; z-index: 50; height: var(--header-h); color: var(--h-fg);
  background: var(--night); transition: background .35s var(--ease), box-shadow .35s, color .35s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(8, 14, 44, .5); }
.home .site-header:not(.scrolled) { --h-fg: var(--night); --h-fg-2: var(--ink-2); --h-hover: rgba(8, 14, 44, .07); background: transparent; position: fixed; inset-inline: 0; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; color: var(--sage); }
.home .site-header:not(.scrolled) .brand-mark { color: var(--night); }
.brand-name { font-weight: 900; font-size: 1.3rem; line-height: 1.02; letter-spacing: -.01em; }
.brand-name small { display: block; font-weight: 400; font-size: .95rem; color: var(--h-fg-2, var(--muted)); letter-spacing: 0; margin-top: 2px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: var(--fs-md); font-weight: 400; color: var(--h-fg); opacity: .92; transition: background .15s, opacity .15s; }
.nav a:hover { background: var(--h-hover); opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 500; box-shadow: inset 0 -2px 0 var(--sage); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: var(--h-fg); display: inline-flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .15s, background .15s; }
.round-btn:hover { opacity: 1; background: var(--h-hover); }
.header-cta { --b: var(--night); --c: #fcfcfc; }
.site-header .header-cta { background: var(--grad-sage); color: var(--night); border-color: transparent; }
.home .site-header:not(.scrolled) .header-cta { background: var(--night); color: #fcfcfc; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .site-header .wrap { gap: 8px; }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { font-size: .8rem; }
}
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: var(--night); color: #fcfcfc; box-shadow: var(--shadow-lg); padding: 8px var(--gutter) 24px; display: none; }
.mobile-nav.open { display: block; animation: drop .22s var(--ease); }
.mobile-nav a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: var(--fs-lg); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--night-3); }
.mobile-nav .btn { margin-top: 20px; width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- חיפוש (רכיב משותף) ---------- */
.search { position: relative; }
.search-field {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding-inline: 22px 8px; min-height: 64px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.search-field .ico { width: 22px; height: 22px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); padding: 12px 0; }
.search-field input::placeholder { color: var(--faint); }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-field .btn { min-height: 48px; padding-inline: 22px; }
@media (max-width: 600px) {
  .search-field { min-height: 58px; padding-inline: 18px 8px; }
  .search-field .btn { display: none; }
  .search-dark .search-field .search-go { display: inline-flex; }
  .results-foot { display: none; }
  .search-field input { font-size: var(--fs-md); }
}
.search-clear { border: 0; background: none; color: var(--faint); width: 36px; height: 36px; border-radius: 50%; display: none; align-items: center; justify-content: center; }
.search-clear:hover { background: var(--sand); color: var(--ink); }
.search.has-value .search-clear { display: inline-flex; }
.results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; max-height: min(calc(60vh / var(--z)), 440px); overflow: auto; display: none;
}
.search.open .results { display: block; animation: drop .18s var(--ease); }
.result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.result[aria-selected="true"], .result:hover { background: var(--sand); }
.result-pin { width: 36px; height: 36px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex: none; }
.result-name { font-weight: 500; }
.result-name mark { background: none; color: var(--accent); font-weight: 900; }
.result-meta { font-size: var(--fs-xs); color: var(--muted); }
.result-go { margin-inline-start: auto; color: var(--faint); }
.results-empty { padding: 18px 16px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.results-empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.results-foot { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 12px 6px; font-size: var(--fs-xs); color: var(--muted); display: flex; justify-content: space-between; }

/* חלון חיפוש מהיר (Ctrl+K) */
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(27, 25, 22, .38); backdrop-filter: blur(3px); display: none; padding: calc(12vh / var(--z)) var(--gutter) 24px; }
.palette.open { display: block; animation: fade .18s; }
.palette .search { max-width: 640px; margin: 0 auto; }
.palette .results { position: static; margin-top: 8px; }
.palette .search.open .results { display: block; }
@media (max-width: 480px) {
  .contact .btn { width: 44px; padding: 0; }
  .contact .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@keyframes fade { from { opacity: 0; } }
@media (max-width: 600px) { .palette { padding-top: 12px; } }

/* ---------- הירו של דף הבית: תמונת נוף, כותרת כחולה, חיפוש כהה על הקו התחתון ---------- */
.home-hero { position: relative; z-index: 3; isolation: isolate; text-align: center; }
.home-hero-photo {
  position: relative; z-index: -1; height: clamp(440px, calc(46vw / var(--z)), 600px); overflow: hidden;
  background: #8fc0e8 url('/img/hero-2000.jpg') center 42% / cover no-repeat;
}
@media (max-width: 1000px) { .home-hero-photo { background-image: url('/img/hero-1000.jpg'); } }
/* שמיים בהירים מאחורי הטקסט, ודהייה רכה אל רקע העמוד בתחתית */
.home-hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(247, 248, 246, .55) 0%, rgba(247, 248, 246, .18) 38%, rgba(247, 248, 246, 0) 60%); }
.home-hero-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to bottom, rgba(247, 248, 246, 0), var(--paper)); }
.home-hero-copy { position: absolute; inset: calc(var(--header-h) + clamp(24px, calc(6vw / var(--z)), 72px)) 0 auto; }
.home-hero h1 { font-size: clamp(2.1rem, 1.2rem + calc(3.6vw / var(--z)), 4rem); font-weight: 900; letter-spacing: -.02em; color: var(--night); line-height: 1.05; text-shadow: 0 1px 24px rgba(255, 255, 255, .55); }
.home-hero h1 .soft { color: var(--sage-deep); }
.home-hero-lead { max-width: 640px; margin: 14px auto 0; font-size: var(--fs-lg); color: var(--night); line-height: 1.5; font-weight: 500; text-shadow: 0 1px 14px rgba(255, 255, 255, .7); }
.home-hero .search { max-width: 640px; margin: -38px auto 0; text-align: start; padding-inline: var(--gutter); box-sizing: content-box; }
.search-dark .search-field { background: var(--night); border-color: var(--night); color: #fcfcfc; min-height: 76px; padding-inline: 30px 12px; box-shadow: 0 22px 50px -18px rgba(8, 14, 44, .55); }
.search-dark .search-field:focus-within { border-color: var(--sage); box-shadow: 0 0 0 5px rgba(104, 166, 145, .22), 0 22px 50px -18px rgba(8, 14, 44, .55); }
.search-dark .search-field input { color: #fcfcfc; font-size: 1.35rem; }
.search-dark .search-field input::placeholder { color: rgba(252, 252, 252, .85); }
.search-dark .search-field .ico { color: #fcfcfc; width: 26px; height: 26px; }
.search-dark .search-clear { color: var(--mist); }
.search-dark .search-clear:hover { background: var(--night-2); color: #fcfcfc; }
.search-go { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--grad-sage); color: var(--night); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: box-shadow .3s var(--ease); }
.search-go:hover { box-shadow: 0 0 0 5px rgba(104, 166, 145, .2); }
.home-note { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin: 28px auto 0; max-width: 760px; padding-inline: var(--gutter); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.home-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex: none; transform: translateY(-2px); }
.home-hero .hero-suggest { margin-top: 16px; }
@media (max-width: 600px) {
  .home-hero-photo { height: 420px; background-position: 30% 40%; }
  .search-dark .search-field { min-height: 62px; padding-inline: 20px 8px; }
  .search-dark .search-field input { font-size: var(--fs-md); }
  .search-go { width: 44px; height: 44px; }
  .home-hero .search { margin-top: -31px; }
}

/* ---------- הירו כללי (404) ---------- */
.hero { position: relative; z-index: 2; isolation: isolate; padding-block: clamp(56px, calc(10vw / var(--z)), 128px) clamp(56px, calc(8vw / var(--z)), 104px); }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; color: var(--line-2); opacity: .9; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 35%, var(--paper) 30%, transparent 75%); }
.hero .wrap { text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.hero h1 { font-size: var(--fs-3xl); font-weight: 900; letter-spacing: -.025em; }
.hero-lead { max-width: 620px; margin: 20px auto 0; font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; }
.hero .search { max-width: 680px; margin: 36px auto 0; text-align: start; }
.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 28px; color: var(--muted); font-size: var(--fs-sm); flex-wrap: wrap; }
.hero-stats b { color: var(--ink); font-weight: 900; font-size: var(--fs-lg); margin-inline-end: 4px; }
.hero-suggest { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); align-items: center; }
.hero-suggest a { text-decoration: none; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.hero-suggest a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- אמון ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: clamp(24px, calc(3vw / var(--z)), 36px) clamp(16px, calc(2.5vw / var(--z)), 32px); display: flex; gap: 16px; align-items: flex-start; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-num { font-weight: 100; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.trust-item h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.trust-item p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* ---------- כרטיסי מקומות ---------- */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.place-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.place-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.place-card h3 { font-size: var(--fs-lg); }
.place-card .meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.place-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: var(--fs-xs); color: var(--muted); }
.mini-route { width: 100%; height: 92px; color: var(--route); background: var(--paper); border-radius: 10px; }
.mini-route.empty { display: grid; place-items: center; color: var(--faint); font-size: var(--fs-xs); }

/* ---------- רשימת מקומות ---------- */
.page-head { padding-block: clamp(36px, calc(5vw / var(--z)), 64px) clamp(20px, calc(3vw / var(--z)), 32px); }
.page-head h1 { font-size: var(--fs-2xl); }
.page-head p { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-lg); max-width: 640px; }
.crumbs { display: flex; gap: 6px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); padding-block: 12px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 320px; }
.toolbar .search-field { min-height: 48px; box-shadow: none; padding-inline: 16px 6px; }
.toolbar .search-field input { font-size: var(--fs-md); padding: 8px 0; }
@media (max-width: 640px) {
  .toolbar { position: static; gap: 10px; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .seg button { padding: 8px 12px; }
  #view { margin-inline-start: auto; }
  .seg-text { display: none; }
}
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sand); gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; padding-block: 16px 4px; }
.letters a, .letters span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.letters a { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.letters a:hover { border-color: var(--ink); }
.letters span { color: var(--line-2); }
.letter-group { padding-top: 28px; }
.letter-group > h2 { font-size: var(--fs-xl); font-weight: 100; color: var(--accent); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.place-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 32px; }
.place-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.place-row:hover .place-row-name { color: var(--accent); }
.place-row-name { font-weight: 500; font-size: var(--fs-md); }
.place-row-meta { font-size: var(--fs-xs); color: var(--muted); }
.place-row .ico { margin-inline-start: auto; color: var(--faint); }
.overview-map { height: min(calc(70vh / var(--z)), 640px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 20px; background: var(--sand); }
.empty-state { text-align: center; padding: 64px 16px; color: var(--ink-2); }
.empty-state .ico { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--faint); }
.empty-state h2 { font-size: var(--fs-lg); margin-bottom: 8px; }
.empty-state p { max-width: 420px; margin: 0 auto; color: var(--muted); }

/* ---------- עמוד מקום ---------- */
.place-head { padding-block: clamp(28px, calc(4vw / var(--z)), 48px) 20px; }
.place-head h1 { font-size: var(--fs-2xl); }
.place-head h1 span { font-weight: 100; }
.place-sub { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: var(--fs-sm); align-items: center; }
.place-sub > * { display: inline-flex; align-items: center; gap: 6px; }
.eruv-tabs { display: flex; gap: 6px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.eruv-tabs::-webkit-scrollbar { display: none; }
.eruv-tabs button { border: 1px solid var(--line-2); background: var(--surface); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; min-height: 44px; }
.eruv-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.place-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, calc(3vw / var(--z)), 40px); align-items: start; padding-bottom: 32px; }
.map-col { position: sticky; top: calc(var(--header-h) + 16px); }
.map-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); height: calc(calc(100vh / var(--z)) - var(--header-h) - 48px); min-height: 420px; max-height: 760px; box-shadow: var(--shadow-sm); }
.map-card .map { position: absolute; inset: 0; }
.map-card.fullscreen { position: fixed; inset: 0; z-index: 80; border-radius: 0; max-height: none; height: 100%; }
.map-tools { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-tool { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.map-tool:hover { background: var(--paper); }
.map-tool[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-legend { position: absolute; bottom: 12px; left: 12px; z-index: 500; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: var(--fs-xs); display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-sm); }
.map-legend i { width: 22px; height: 3px; border-radius: 2px; background: var(--route); display: inline-block; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; z-index: 400; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.map-empty .ico { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--faint); }

.info { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, calc(2.4vw / var(--z)), 28px); }
.card-title { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-title a { letter-spacing: 0; font-size: var(--fs-xs); color: var(--muted); }
.desc { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.7; white-space: pre-line; }
.contacts { display: grid; gap: 10px; }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.contact-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.contact-role { font-size: var(--fs-xs); color: var(--muted); }
.contact-name { font-weight: 500; }
.contact-name.unknown { color: var(--faint); font-weight: 400; }
.contact .btn { margin-inline-start: auto; }
.contact .phone-num { direction: ltr; unicode-bidi: isolate; }

.params { display: grid; gap: 8px; }
.params-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 13px 2px; padding-inline-start: 65px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.params-head.has-more { padding-inline-end: 45px; }
@media print { .params-head { display: none; } }
.param { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.param[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.param summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; border-radius: var(--r); min-height: 60px; }
.param summary::-webkit-details-marker { display: none; }
.param summary:hover { background: var(--paper); }
.param-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--sand); color: var(--ink-2); }
.param-ico svg { width: 24px; height: 24px; }
.param-text { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.param-label { font-weight: 500; font-size: var(--fs-sm); line-height: 1.3; color: var(--ink-2); }
.param-value { font-weight: 900; font-size: var(--fs-md); color: var(--ink); }
.param[data-v="unknown"] { border-style: dashed; }
.param[data-v="unknown"] .param-ico { background: transparent; color: var(--faint); border: 1px dashed var(--line-2); }
.param[data-v="unknown"] .param-value { font-weight: 400; color: var(--faint); font-size: var(--fs-sm); }
.param-more { color: var(--faint); transform: rotate(-90deg); transition: transform .2s var(--ease); }
.param[open] .param-more { transform: rotate(90deg); }
.param-desc { padding: 2px 16px 16px; padding-inline-start: 64px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.param-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.param-opts span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.param-opts span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 420px) { .param-desc { padding-inline-start: 16px; } }

.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); line-height: 1.55; }
.notice .ico { margin-top: 2px; }
.updated { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery.large { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }

.to-map { display: none !important; text-decoration: none; background: var(--ink); color: #fff; }
@media (max-width: 980px) {
  .to-map { display: inline-flex !important; }
  .place-layout { grid-template-columns: 1fr; }
  .map-col { position: static; order: 2; }
  .map-card { height: calc(62vh / var(--z)); min-height: 360px; }
  .info { order: 1; }
}

/* ---------- לייטבוקס ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(15, 14, 12, .94); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; animation: fade .2s; }
.lb-stage { flex: 1; display: grid; place-items: center; padding: 56px 64px 16px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 20px; gap: 16px; font-size: var(--fs-sm); color: #fcfcfc; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; inset-inline-end: 12px; }
.lb-prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-stage { padding: 56px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; } }

/* ---------- חדשות ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: clamp(16px, calc(2vw / var(--z)), 28px); }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.news-cover { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); position: relative; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .5s var(--ease); }
.news-card:hover .news-cover img { transform: scale(1.035); }
.news-cover.placeholder { display: grid; place-items: center; color: var(--line-2); }
.news-cover.placeholder svg { width: 100%; height: 100%; }
.news-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 8px; }
.news-meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.news-card h3 { font-size: var(--fs-lg); line-height: 1.3; transition: color .15s; }
.news-card:hover h3 { color: var(--accent); }
.news-card p { color: var(--ink-2); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, calc(3vw / var(--z)), 40px); align-items: center; }
.news-card.featured .news-body { padding: 0; }
.news-card.featured h3 { font-size: var(--fs-xl); }
@media (max-width: 760px) { .news-card.featured { grid-template-columns: 1fr; } .news-card.featured .news-body { padding-top: 16px; } }
.more-wrap { text-align: center; margin-top: 40px; }

/* ---------- כתבה ---------- */
.article-head { padding-block: clamp(32px, calc(5vw / var(--z)), 64px) 24px; }
.article-head h1 { font-size: var(--fs-2xl); margin-top: 14px; }
.article-head .lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: 16px; line-height: 1.55; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(28px, calc(4vw / var(--z)), 48px); background: var(--sand); display: flex; justify-content: center; }
.article-cover img { width: auto; max-width: 100%; max-height: calc(78vh / var(--z)); object-fit: contain; }
.prose { font-size: 1.125rem; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-lg); color: var(--ink); margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--accent); color: var(--ink); font-size: 1.2rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- עמודי תוכן ---------- */
.legend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.legend-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.legend-item strong { display: block; color: var(--ink); }
.legend-item p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- פוטר ---------- */
.site-footer { background: var(--ink); color: var(--mist); margin-top: auto; }
.site-footer .wrap { padding-block: clamp(40px, calc(6vw / var(--z)), 64px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: var(--mist); }
.site-footer .brand-mark { color: #fff; }
.foot-about { margin-top: 14px; font-size: var(--fs-sm); max-width: 360px; line-height: 1.6; color: var(--mist); }
.site-footer h3 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; color: var(--sage-light); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #fcfcfc; text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-3); font-size: var(--fs-xs); color: var(--sage-light); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- שלד טעינה ---------- */
.skeleton { background: linear-gradient(90deg, var(--sand) 0%, #f6f2ea 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Leaflet בתוך המערכת ---------- */
.leaflet-container { font-family: var(--font); background: var(--sand); direction: ltr; }
.leaflet-popup-content, .leaflet-tooltip { direction: rtl; text-align: right; }
.leaflet-tile-pane, .static-basemap { filter: saturate(.35) contrast(.96) brightness(1.03); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 42px !important; height: 42px !important; line-height: 42px !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 16px; font-size: var(--fs-sm); }
.place-pin { background: var(--accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(27, 25, 22, .15); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 99; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: var(--fs-sm); box-shadow: var(--shadow-lg); display: none; }
.toast.show { display: block; animation: drop .2s var(--ease); }

/* ==========================================================================
   עיצוב לפי הפיגמה (Desktop 1): דף הבית, כרטיסים, רצועה כהה בעמודים פנימיים, פוטר
   ========================================================================== */

/* כותרת אזור בדף הבית */
.home-section { padding-block: clamp(56px, calc(8vw / var(--z)), 104px) 0; }
.home-section-title { font-size: clamp(1.8rem, 1.2rem + calc(2vw / var(--z)), 2.6rem); font-weight: 900; color: var(--night); letter-spacing: -.015em; }
.home-section-title.center { text-align: center; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, calc(3vw / var(--z)), 40px); flex-wrap: wrap; }
.home-section-head.center { justify-content: center; text-align: center; }
.section-foot { display: flex; justify-content: flex-end; margin-top: 28px; }

/* פריסת כרטיסים לא סימטרית: גבוה בימין, שניים קטנים, ורחב מתחתם */
.bento { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-areas: "t a b" "t w w"; gap: clamp(14px, calc(1.6vw / var(--z)), 22px); }
.bento > :nth-child(1) { grid-area: t; }
.bento > :nth-child(2) { grid-area: a; }
.bento > :nth-child(3) { grid-area: b; }
.bento > :nth-child(4) { grid-area: w; }
.bento.n3 { grid-template-areas: "t a b" "t a b"; }
.bento.n2 { grid-template-columns: 1fr 1fr; grid-template-areas: "t a"; }
.bento.n1 { grid-template-columns: 1fr; grid-template-areas: "t"; }
.b-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, calc(2vw / var(--z)), 26px);
  background: var(--surface); border-radius: 24px; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(8, 14, 44, .04), 0 18px 40px -26px rgba(8, 14, 44, .28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; overflow: hidden;
}
.b-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(8, 14, 44, .04), 0 28px 50px -24px rgba(8, 14, 44, .34); }
.b-card .mini-route { height: 120px; background: var(--sand); border-radius: 16px; color: var(--route); }
.b-card .mini-route.empty { display: grid; place-items: center; color: var(--faint); font-size: var(--fs-xs); }
.b-card h3 { font-size: var(--fs-xl); font-weight: 900; line-height: 1.1; }
.b-card .meta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.b-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--muted); }
.b-card .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--night); transition: background .25s, color .25s; flex: none; }
.b-card:hover .go { background: var(--night); color: #fcfcfc; }
.b-card.tall .mini-route { height: auto; flex: 1; min-height: 240px; }
.b-card.wide { flex-direction: row; align-items: stretch; }
.b-card.wide .mini-route { width: 44%; height: auto; min-height: 150px; flex: none; }
.b-card.wide .b-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .bento, .bento.n3, .bento.n2 { grid-template-columns: 1fr 1fr; grid-template-areas: "t t" "a b" "w w"; }
  .b-card.tall .mini-route { min-height: 180px; }
}
@media (max-width: 520px) {
  .bento, .bento.n3, .bento.n2 { grid-template-columns: 1fr; grid-template-areas: "t" "a" "b" "w"; }
  .b-card.wide { flex-direction: column; }
  .b-card.wide .mini-route { width: 100%; }
}

/* כרטיס חדשות כמשטח */
.news-card { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(8, 14, 44, .04), 0 18px 40px -26px rgba(8, 14, 44, .28); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news-card:hover { transform: translateY(-4px); }
.news-card .news-cover { border-radius: 0; }
.news-card .news-body { padding: 18px 22px 24px; }
.news-card.featured { padding: 0; }
.news-card.featured .news-body { padding: 24px 28px; }
.news-cover.placeholder { background: linear-gradient(160deg, var(--night-2), var(--night)); color: var(--night-3); }

/* רצועה כהה בראש עמודים פנימיים, שנמסה אל הרקע הבהיר */
.top-band { --fade: clamp(110px, calc(12vw / var(--z)), 170px); position: relative; color: #fcfcfc; padding-bottom: calc(var(--fade) + 8px);
  background: linear-gradient(to bottom, var(--night) 0, var(--night) calc(100% - var(--fade)), #16264a calc(100% - var(--fade) * .72), #3f5d74 calc(100% - var(--fade) * .45), #a9c2c2 calc(100% - var(--fade) * .18), var(--paper) 100%); }

.top-band .crumbs, .top-band .crumbs a { color: var(--mist); }
.top-band .crumbs a:hover { color: #fcfcfc; }
.top-band h1 { color: #fcfcfc; }
.top-band .page-head p, .top-band .lead, .top-band .place-sub { color: var(--mist); }
.top-band .chip { background: var(--night-2); color: var(--sage-light); }
.top-band .chip-sample { background: transparent; border-color: var(--night-3); color: var(--mist); }
.top-band .eruv-tabs button { background: transparent; color: #fcfcfc; border-color: var(--night-3); }
.top-band .eruv-tabs button[aria-selected="true"] { background: var(--grad-sage); color: var(--night); border-color: transparent; }
.top-band .news-meta, .top-band .news-meta time { color: var(--mist); }
.top-band .place-head h1 span { color: var(--sage-light); }
.top-band + * { position: relative; z-index: 2; }
.after-band { margin-top: calc(-1 * clamp(70px, calc(8vw / var(--z)), 110px)); position: relative; z-index: 2; }
.to-map { background: var(--grad-sage) !important; color: var(--night) !important; }

/* פוטר: נמס מהרקע הבהיר אל כחול הלילה */
.site-footer { position: relative; margin-top: calc(clamp(110px, calc(12vw / var(--z)), 170px) + clamp(40px, calc(5vw / var(--z)), 72px)); }
.site-footer::before { content: ''; position: absolute; inset: auto 0 100%; height: clamp(110px, calc(12vw / var(--z)), 170px); pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0, #a9c2c2 18%, #3f5d74 55%, #16264a 78%, var(--night) 100%); }
.site-footer { background: var(--night); color: var(--mist); }
.site-footer .brand-mark { color: var(--sage); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--night-3); }
.foot-cta h2 { font-size: var(--fs-xl); color: #fcfcfc; }
.foot-cta h2 span { color: var(--sage-light); display: block; }
.b-card .mini-route.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, var(--night-2), var(--night)); color: var(--mist); }
.b-card .mini-route.empty .brand-mark { width: 34px; height: 34px; color: var(--sage); }
.b-card .mini-route { background: linear-gradient(160deg, #eef4f1, #e6ece9); }
/* חיפוש בהירו: אייקון זכוכית מגדלת פשוט, כמו בפיגמה */
.search-dark .search-go { background: transparent; color: #fcfcfc; width: 48px; height: 48px; }
.search-dark .search-go:hover { background: var(--night-2); box-shadow: none; }
.search-dark .search-go .ico { width: 26px; height: 26px; }
.home .header-search-btn { display: none; }
.toolbar { position: static; background: transparent; border-bottom: 0; }
.news-cover.placeholder { display: grid; place-items: center; }
.news-cover.placeholder .brand-mark { width: 44px; height: 44px; color: var(--sage); }

/* ==========================================================================
   צמצום גלילה: הירו נמוך יותר (החיפוש נראה מיד), ורווחים קטנים יותר בכל האתר
   ========================================================================== */
.home-hero-photo { height: min(clamp(340px, calc(31vw / var(--z)), 450px), calc(60vh / var(--z))); min-height: 320px; }
.home-hero-copy { inset: calc(var(--header-h) + clamp(14px, calc(3vw / var(--z)), 40px)) 0 auto; }
.home-hero h1 { font-size: clamp(1.9rem, 1.1rem + calc(3vw / var(--z)), 3.4rem); }
.home-hero-lead { margin-top: 10px; font-size: var(--fs-md); }
.home-note { margin-top: 18px; }
.home-section { padding-block: clamp(36px, calc(4.5vw / var(--z)), 60px) 0; }
.home-section-head { margin-bottom: clamp(16px, calc(2vw / var(--z)), 24px); }
.home-section-title { font-size: clamp(1.6rem, 1.15rem + calc(1.6vw / var(--z)), 2.2rem); }
.section-foot { margin-top: 18px; }
.b-card { padding: 16px; gap: 12px; border-radius: 20px; }
.b-card h3 { font-size: var(--fs-lg); }
.b-card .mini-route { height: 92px; border-radius: 14px; }
.b-card.tall .mini-route { min-height: 190px; }
.b-card.wide .mini-route { min-height: 110px; width: 40%; }
.b-card .go { width: 36px; height: 36px; }
.news-grid { gap: clamp(14px, calc(1.6vw / var(--z)), 22px); }
.news-card .news-cover { aspect-ratio: 16 / 9; }
.news-card .news-body { padding: 14px 18px 18px; gap: 6px; }
.news-card h3 { font-size: var(--fs-md); }
.top-band { --fade: clamp(70px, calc(8vw / var(--z)), 110px); }
.top-band .page-head, .top-band .place-head, .top-band .article-head { padding-top: clamp(20px, calc(3vw / var(--z)), 36px); padding-bottom: 0; }
.top-band .page-head p { margin-top: 8px; font-size: var(--fs-md); }
.after-band { margin-top: calc(-1 * clamp(44px, calc(5vw / var(--z)), 70px)); }
.eruv-tabs { margin-top: 16px; }
.place-sub { margin-top: 10px; }
.section { padding-block: clamp(32px, calc(4.5vw / var(--z)), 60px); }
.site-footer { margin-top: calc(clamp(80px, calc(8vw / var(--z)), 110px) + 28px); }
.site-footer::before { height: clamp(80px, calc(8vw / var(--z)), 110px); }
.site-footer .wrap { padding-block: 28px 20px; }
.foot-cta { padding-bottom: 22px; margin-bottom: 22px; }
.foot-bottom { margin-top: 22px; padding-top: 14px; }
.letter-group { padding-top: 16px; }
.place-row { padding: 10px 4px; }
.info { gap: 12px; }
.card { padding: clamp(16px, calc(2vw / var(--z)), 22px); }
.map-card { height: calc(calc(100vh / var(--z)) - var(--header-h) - 40px); max-height: 680px; min-height: 380px; }
@media (max-width: 600px) {
  .home-hero-photo { height: 360px; min-height: 0; }
  .home-hero h1 { font-size: 1.75rem; }
  .bento .b-card.tall .mini-route { min-height: 140px; }
}
.b-card.tall .mini-route { height: auto; flex: 1; }
.b-card.wide .mini-route { height: auto; }
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: var(--night); text-decoration: none; }
/* כפתור מרווה לפי הפיגמה: גלולה עגולה לגמרי. בלי מסגרת, כדי שהמעבר לא יחזור על עצמו בקצוות */
.btn-primary, .btn-accent, .site-header .header-cta {
  border: 0; border-radius: 999px; background-origin: border-box; background-clip: border-box; background-repeat: no-repeat;
  min-height: 44px; padding: 10px 30px; font-weight: 700; isolation: isolate; overflow: hidden;
}
.btn-primary .ico, .header-cta .ico { width: 1.05em; height: 1.05em; stroke-width: 2.2; }

/* ---------- האדר: אותו מראה לפני ואחרי גלילה בדף הבית ---------- */
.home .site-header { --h-fg: var(--night); --h-fg-2: var(--ink-2); --h-hover: rgba(8, 14, 44, .07); position: fixed; inset-inline: 0; }
.home .site-header .brand-mark { color: var(--night); }
.home .site-header .header-cta { background: var(--night); color: #fcfcfc; }
.home .site-header.scrolled { background: rgba(247, 248, 246, .9); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(8, 14, 44, .35); }

/* ---------- חיפוש בהירו: כפתור זהה לשאר הכפתורים באתר ---------- */
.search-dark .search-field { padding-inline: 26px 8px; }
.search-dark .search-field > .ico { color: var(--mist); width: 24px; height: 24px; }
.search-dark .search-submit { display: inline-flex !important; min-height: 52px; padding-inline: 26px; font-size: var(--fs-md); }
@media (max-width: 600px) {
  .search-dark .search-field { padding-inline: 16px 6px; }
  .search-dark .search-submit { min-height: 46px; padding-inline: 16px; }
  .search-dark .search-submit .ico { display: none; }
}

/* ---------- חלון דיווח על תקלה ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(8, 14, 44, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; overflow-y: auto; }
.modal { position: relative; width: 100%; max-width: 620px; background: var(--surface); border-radius: 26px; padding: clamp(22px, calc(3.5vw / var(--z)), 36px); box-shadow: var(--shadow-lg); animation: drop .25s var(--ease); max-height: calc(calc(100vh / var(--z)) - 32px); overflow-y: auto; }
.modal h2 { font-size: var(--fs-xl); color: var(--night); }
.modal-lead { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand); color: var(--night); display: grid; place-items: center; }
.modal-x:hover { background: var(--line); }
#rep-form { display: grid; gap: 16px; margin-top: 20px; }
.rep-kinds { border: 0; padding: 0; margin: 0; }
.rep-label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--night); margin-bottom: 6px; }
.rep-label .opt { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.seg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-pills label { cursor: pointer; }
.seg-pills input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: var(--fs-sm); color: var(--ink-2); transition: all .15s; }
.seg-pills input:checked + span { background: var(--night); border-color: var(--night); color: #fcfcfc; }
.seg-pills input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.rep-input { width: 100%; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--paper); font-size: var(--fs-md); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.rep-input:focus { outline: 0; border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(104, 166, 145, .18); background: #fff; }
textarea.rep-input { resize: vertical; min-height: 110px; line-height: 1.55; }
.rep-place { position: relative; }
.rep-suggest { position: absolute; inset-inline: 0; top: 100%; margin-top: 4px; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 4px; }
.rep-suggest button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 8px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; text-align: start; font-size: var(--fs-sm); }
.rep-suggest button:hover { background: var(--sand); }
.rep-suggest small { color: var(--muted); font-size: var(--fs-xs); }
.rep-photo { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); background: var(--paper); }
.rep-photo:hover { border-color: var(--sage-deep); color: var(--night); }
.rep-photo .ico { color: var(--sage-deep); }
#rep-file:focus-visible + .rep-photo, .rep-photo:focus-within { outline: 2px solid var(--focus); }
.rep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .rep-row { grid-template-columns: 1fr; } }
.rep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rep-error { color: #a3283c; background: #fbe9ec; border-radius: 12px; padding: 10px 14px; font-size: var(--fs-sm); }
.rep-actions { display: flex; justify-content: flex-end; }
.rep-done { text-align: center; padding: 20px 0 6px; display: grid; justify-items: center; gap: 8px; }
.rep-done .btn { margin-top: 14px; }
.rep-done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-sage); color: var(--night); display: grid; place-items: center; margin-bottom: 6px; }
.rep-done-ico .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.rep-hp { left: auto; inset-inline-start: 0; clip: rect(0 0 0 0); overflow: hidden; }
.modal { overflow-x: hidden; }
.letters span { color: var(--sage-light); }
.leaflet-control-attribution, .leaflet-control-attribution a { color: var(--ink-2) !important; }
.b-card.wide .mini-route { height: 170px; min-height: 0; }
.b-card.tall .mini-route { min-height: 0; }
.bento { grid-auto-rows: minmax(0, auto); }
.b-card.tall .mini-route { flex: 1 1 0; height: 0; min-height: 150px; }
.b-card.wide .mini-route { height: 150px; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }

/* פנייה לבודקי עירוב (לפי הנוסח של הלקוח) */
.inspector-cta { margin-top: clamp(28px, calc(3.5vw / var(--z)), 44px); }
.inspector-card { display: flex; align-items: center; gap: clamp(14px, calc(2vw / var(--z)), 24px); padding: clamp(18px, calc(2.2vw / var(--z)), 26px) clamp(18px, calc(2.6vw / var(--z)), 32px); border-radius: 24px; background: var(--night); color: #fcfcfc; box-shadow: 0 18px 40px -26px rgba(8, 14, 44, .45); }
.inspector-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--grad-sage); color: var(--night); display: grid; place-items: center; flex: none; }
.inspector-ico .ico { width: 26px; height: 26px; }
.inspector-text { flex: 1; min-width: 0; }
.inspector-text h2 { font-size: var(--fs-lg); color: #fcfcfc; }
.inspector-text p { color: var(--mist); font-size: var(--fs-sm); margin-top: 4px; }
@media (max-width: 640px) {
  .inspector-card { flex-wrap: wrap; }
  .inspector-card .btn { width: 100%; }
}

/* ==========================================================================
   מעברים חדים: קשת עגולה וחדה עם קו מרווה, במקום דהייה
   ========================================================================== */
:root { --arc: clamp(34px, calc(4.5vw / var(--z)), 70px); }
.top-band {
  background: var(--night); padding-bottom: calc(var(--arc) + clamp(18px, calc(2.4vw / var(--z)), 30px));
  border-radius: 0 0 50% 50% / 0 0 var(--arc) var(--arc);
  box-shadow: 0 5px 0 0 var(--sage);
}
.after-band { margin-top: clamp(28px, calc(3.5vw / var(--z)), 48px); }
.site-footer::before { display: none; }
.site-footer {
  margin-top: clamp(56px, calc(6vw / var(--z)), 88px);
  border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0;
  box-shadow: 0 -5px 0 0 var(--sage);
}
.site-footer .wrap { padding-top: calc(var(--arc) + 12px); }
.home-hero-photo { border-radius: 0 0 50% 50% / 0 0 var(--arc) var(--arc); box-shadow: 0 5px 0 0 var(--sage); overflow: hidden; }
.home-hero-photo::after { height: 22%; background: linear-gradient(to bottom, rgba(247, 248, 246, 0), rgba(247, 248, 246, .35)); }

/* ==========================================================================
   טקסטים: טקסט רץ 18px, כותרות קטנות יותר
   ========================================================================== */
:root { --fs-md: 1.125rem; --fs-lg: 1.1875rem; }
body { font-size: 18px; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + calc(.8vw / var(--z)), 1.7rem); }
.prose h3 { font-size: 1.2rem; }
.page-head h1, .place-head h1, .article-head h1 { font-size: clamp(1.75rem, 1.2rem + calc(1.6vw / var(--z)), 2.5rem); }
.top-band .page-head p, .article-head .lead { font-size: 18px; }
.home-hero h1 { font-size: clamp(1.75rem, 1.1rem + calc(2.4vw / var(--z)), 3rem); }
.home-hero-lead { font-size: 18px; }
.home-section-title { font-size: clamp(1.45rem, 1.1rem + calc(1.1vw / var(--z)), 1.9rem); }
.b-card h3 { font-size: 1.15rem; }
.news-card h3 { font-size: 1.05rem; }
.inspector-text h2 { font-size: 1.15rem; }
.foot-cta h2 { font-size: clamp(1.25rem, 1rem + calc(.8vw / var(--z)), 1.6rem); }
.modal h2 { font-size: 1.5rem; }
.desc, .param-desc, .news-card p, .inspector-text p, .home-note { font-size: 16px; }

/* ---------- שורת חיפוש בהירו: דקה יותר, וחץ בצבע של שאר הכפתורים ---------- */
.home-hero .search { max-width: 560px; margin-top: -30px; }
.search-dark .search-field { min-height: 60px; padding-inline: 20px 6px; gap: 10px; }
.search-dark .search-field input { font-size: 1.0625rem; padding: 8px 0; }
.search-dark .search-field > .ico { width: 20px; height: 20px; }
.search-dark .search-submit { min-height: 46px; padding-inline: 20px; font-size: 1rem; }
.search-dark .search-submit .ico { color: var(--night); width: 1em; height: 1em; }
@media (max-width: 600px) {
  .home-hero .search { margin-top: -27px; }
  .search-dark .search-field { min-height: 54px; }
  .search-dark .search-submit { min-height: 42px; padding-inline: 14px; }
}

/* ---------- פנייה של בודק עירוב: חלון צר שקופץ בפינה השמאלית ---------- */
.modal-backdrop.corner { background: transparent; backdrop-filter: none; pointer-events: none; display: block; padding: 0; overflow: visible; animation: none; }
.modal-backdrop.corner .modal {
  pointer-events: auto; position: fixed; left: max(16px, calc(2vw / var(--z))); bottom: max(16px, calc(2vw / var(--z))); width: min(380px, calc(calc(100vw / var(--z)) - 32px));
  max-height: calc(calc(100vh / var(--z)) - var(--header-h) - 40px); padding: 22px 22px 20px; border-radius: 22px;
  box-shadow: 0 2px 6px rgba(8, 14, 44, .08), 0 30px 70px -20px rgba(8, 14, 44, .45); border-top: 4px solid var(--sage);
  animation: corner-in .3s var(--ease);
}
@keyframes corner-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-backdrop.corner .modal h2 { font-size: 1.2rem; padding-inline-end: 40px; }
.modal-backdrop.corner #rep-form { gap: 12px; margin-top: 14px; }
.modal-backdrop.corner .rep-kinds, .modal-backdrop.corner .rep-photo-field { display: none; }
.modal-backdrop.corner .rep-row { grid-template-columns: 1fr; gap: 12px; }
.modal-backdrop.corner textarea.rep-input { min-height: 80px; }
.modal-backdrop.corner .rep-input { padding: 10px 12px; font-size: 1rem; }
.modal-backdrop.corner .rep-actions .btn { width: 100%; }
.modal-backdrop.corner .modal-x { top: 12px; width: 34px; height: 34px; }

/* ---------- סרגל גלילה מותאם (בצד ימין) ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--sage) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--sage-light), var(--sage)); border-radius: 999px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--sage-deep); }
.modal::-webkit-scrollbar-track { background: transparent; }

/* ---------- פוטר: טופס דיווח פתוח, ומפת אתר קטנה ---------- */
.foot-report { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: clamp(20px, calc(3vw / var(--z)), 48px); align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--night-3); }
.foot-report-head h2 { font-size: clamp(1.25rem, 1rem + calc(.8vw / var(--z)), 1.6rem); color: #fcfcfc; }
.foot-report-head h2 span { display: block; color: var(--sage-light); }
.foot-form { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 14px; align-items: end; }
.foot-form .ff-field { display: grid; gap: 6px; min-width: 0; }
.foot-form label { font-size: 15px; font-weight: 500; color: var(--mist); }
.foot-form input:not(.rep-hp) { width: 100%; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--night-3); background: var(--night-2); color: #fcfcfc; padding: 10px 18px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.foot-form input::placeholder { color: rgba(207, 230, 222, .55); }
.foot-form input:focus { outline: 0; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(104, 166, 145, .2); }
.foot-form .ff-send { min-height: 46px; justify-self: start; }
.foot-form .ff-msg { grid-column: 1 / -1; font-size: 15px; color: #ffc9d2; }
.foot-form .ff-msg.ok { color: var(--sage-light); }
@media (min-width: 1100px) { .foot-form { grid-template-columns: 1fr 1.6fr 1fr 1fr auto; } .foot-form .ff-msg { grid-column: 1 / -1; } }
@media (max-width: 860px) { .foot-report { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-form { grid-template-columns: 1fr; } .foot-form .ff-send { justify-self: stretch; } }
.site-footer .foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; padding-top: 0; border-top: 0; font-size: 14px; }
.foot-brand .brand-mark { width: 26px; height: 26px; }
.foot-brand .brand-name { font-size: .95rem; }
.foot-brand .brand-name small { font-size: .72rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer .foot-links a { font-size: 14px; color: var(--mist); }
.site-footer .foot-links a:hover { color: #fcfcfc; }
.foot-copy { font-size: 13px; color: var(--mist); }
.site-footer .wrap { padding-bottom: 18px; }

/* צל עדין יותר לכרטיסים ולשורת החיפוש */
.b-card, .news-card { box-shadow: 0 1px 2px rgba(8, 14, 44, .03), 0 8px 22px -18px rgba(8, 14, 44, .16); }
.b-card:hover, .news-card:hover { box-shadow: 0 1px 2px rgba(8, 14, 44, .04), 0 14px 30px -20px rgba(8, 14, 44, .22); }
.search-dark .search-field { box-shadow: 0 10px 24px -16px rgba(8, 14, 44, .35); }
.search-dark .search-field:focus-within { box-shadow: 0 0 0 4px rgba(104, 166, 145, .2), 0 10px 24px -16px rgba(8, 14, 44, .35); }
.inspector-card { box-shadow: 0 10px 24px -18px rgba(8, 14, 44, .3); }
.map-card { box-shadow: none; }

/* פנייה לבודקי עירוב: פופאפ קטן בפינה השמאלית התחתונה */
.insp-pop {
  position: fixed; z-index: 60; left: max(16px, calc(2vw / var(--z))); bottom: max(16px, calc(2vw / var(--z))); width: min(340px, calc(calc(100vw / var(--z)) - 32px));
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 18px 16px; border-radius: 22px;
  background: var(--night); color: #fcfcfc; border-top: 4px solid var(--sage);
  box-shadow: 0 2px 6px rgba(8, 14, 44, .1), 0 24px 50px -20px rgba(8, 14, 44, .5);
  opacity: 0; transform: translateY(18px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.insp-pop.show { opacity: 1; transform: none; }
.insp-pop .inspector-ico { width: 44px; height: 44px; }
.insp-pop .inspector-ico .ico { width: 22px; height: 22px; }
.insp-pop-body { flex: 1; min-width: 0; display: grid; gap: 6px; padding-inline-end: 18px; }
.insp-pop h2 { font-size: 1.05rem; color: #fcfcfc; }
.insp-pop p { font-size: 15px; line-height: 1.5; color: var(--mist); }
.insp-pop .btn { justify-self: start; margin-top: 6px; }
.insp-pop-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--night-2); color: var(--mist); display: grid; place-items: center; }
.insp-pop-x:hover { color: #fcfcfc; background: var(--night-3); }
.insp-pop-x .ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .insp-pop { transition: none; } }

/* ---------- טופס הדיווח בפוטר: כותרת גדולה, שדות עם קו תחתון, כפתור גדול ---------- */
.foot-report { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, calc(4vw / var(--z)), 72px); align-items: start; padding-bottom: 30px; }
.foot-report h2 { font-size: clamp(2rem, 1.3rem + calc(2.4vw / var(--z)), 3.4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: #fcfcfc; }
.foot-report h2 span:last-child { display: block; background: linear-gradient(to left, #5c9d87, #a9d3c3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px clamp(20px, calc(3vw / var(--z)), 40px); align-items: end; }
.foot-form .ff-full { grid-column: 1 / -1; }
.foot-form .ff-field { display: block; }
.foot-form input:not(.rep-hp):not([type=checkbox]), .foot-form textarea {
  width: 100%; min-height: 0; border: 0; border-bottom: 1.5px solid rgba(207, 230, 222, .32); border-radius: 0; background: transparent;
  color: #fcfcfc; padding: 16px 4px 12px; font-size: 18px; font-family: inherit; box-shadow: none; resize: vertical; transition: border-color .2s;
}
.foot-form textarea { min-height: 70px; line-height: 1.5; }
.foot-form input:not([type=checkbox])::placeholder, .foot-form textarea::placeholder { color: var(--mist); opacity: .85; }
.foot-form input:not([type=checkbox]):focus, .foot-form textarea:focus { outline: 0; border-bottom-color: var(--sage); box-shadow: none; }
.ff-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--mist); cursor: pointer; }
.ff-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin-top: 2px; border: 1.5px solid rgba(207, 230, 222, .6); border-radius: 6px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.ff-check input:checked { background: var(--sage); border-color: var(--sage); }
.ff-check input:checked::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--night); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ff-check input:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }
.ff-check a { color: var(--sage-light); }
.foot-form .ff-send { min-height: 56px; padding-inline: 34px; font-size: 1.15rem; margin-top: 16px; }
.foot-form .ff-msg { margin-top: 6px; }
@media (max-width: 860px) { .foot-report { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-form { grid-template-columns: 1fr; } .foot-form .ff-send { width: 100%; } }
.foot-form .ff-check input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 6px; border: 1.5px solid rgba(207, 230, 222, .6); background: transparent; box-shadow: none; }
.foot-form .ff-check input[type=checkbox]:checked { background: var(--sage); border-color: var(--sage); }
.foot-form input[type=tel] { direction: rtl; text-align: right; }
.insp-pop.away { opacity: 0; transform: translateY(18px); pointer-events: none; }

/* טופס הפוטר: גרסה מצומצמת */
.foot-report { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, calc(3vw / var(--z)), 56px); padding-bottom: 20px; }
.foot-report h2 { font-size: clamp(1.6rem, 1.15rem + calc(1.6vw / var(--z)), 2.5rem); }
.foot-form { gap: 2px clamp(16px, calc(2vw / var(--z)), 28px); }
.foot-form input:not(.rep-hp):not([type=checkbox]), .foot-form textarea { padding: 10px 2px 8px; font-size: 16px; }
.foot-form textarea { min-height: 0; height: auto; resize: none; overflow: hidden; }
.ff-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 14px; }
.ff-actions .ff-check { margin-top: 0; font-size: 14px; }
.foot-form .ff-send { margin-top: 0; min-height: 46px; padding-inline: 24px; font-size: 1rem; }
@media (max-width: 560px) { .ff-actions .ff-send { width: 100%; } }
.foot-disclaimer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--night-3); font-size: 14px; line-height: 1.6; color: var(--mist); max-width: 900px; }
.foot-disclaimer { border-top: 0; padding-top: 0; max-width: none; }
textarea[data-autogrow] { resize: none; overflow: hidden; min-height: 0; }
#rep-msg { min-height: 48px; line-height: 1.5; }

/* ==========================================================================
   כותרות: פונט טאלנט ואנימציית "ציפה" של אותיות בגלילה
   ========================================================================== */
.sf { transform-origin: 50% 100%; will-change: transform, opacity; }

/* ==========================================================================
   חדשות ועדכונים: כותרת במרכז, כפתור, ושורת כרטיסים נעה
   ========================================================================== */
.news-cta { overflow: hidden; }
.news-cta-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.news-cta-sub { color: var(--ink-2); font-size: 18px; max-width: 46ch; margin: 0; }
.news-cta-head .btn { margin-top: 6px; }
.news-rail { margin-top: clamp(28px, calc(3.5vw / var(--z)), 48px); direction: ltr; padding-bottom: 56px; }
.news-track { display: flex; gap: clamp(14px, calc(1.6vw / var(--z)), 22px); width: max-content; animation: news-slide 70s linear infinite; }
.news-rail:hover .news-track, .news-rail:focus-within .news-track { animation-play-state: paused; }
@keyframes news-slide { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.nr-card { direction: rtl; position: relative; flex: none; width: clamp(210px, calc(19vw / var(--z)), 280px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--night-2); color: #fcfcfc; text-decoration: none; display: block; box-shadow: 0 1px 2px rgba(8, 14, 44, .03), 0 8px 22px -18px rgba(8, 14, 44, .16); }
.nr-card:nth-child(odd) { margin-top: 56px; }
.nr-card.skeleton { background: var(--mist); }
.nr-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.nr-card:hover img { transform: scale(1.05); }
.nr-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--grad-sage); }
.nr-ph .brand-mark { width: 38%; height: auto; aspect-ratio: 1; color: var(--night); opacity: .22; }
.nr-body { position: absolute; inset: auto 0 0; padding: 48px 18px 18px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(to top, rgba(8, 14, 44, .88), rgba(8, 14, 44, 0)); }
.nr-body time { font-size: 14px; color: var(--sage-light); }
.nr-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nr-card:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .news-track { animation: none; }
  .news-rail { overflow-x: auto; }
}

/* ==========================================================================
   פוטר: תרשים עיר שקוף ורשת שנדלקת מאחורי הסמן
   ========================================================================== */
.site-footer { position: relative; isolation: isolate; }
.site-footer > .wrap { position: relative; z-index: 1; }
.foot-bg { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.foot-bg::before { content: ''; position: absolute; inset: -30%; background: url('/img/citymap.svg') center / cover no-repeat; opacity: .045; transform: rotate(-14deg); }

/* הערת האחריות בפוטר: במרכז */
.site-footer .foot-disclaimer { text-align: center; margin-inline: auto; }

/* תרשים העיר גם באזור הבהיר שמתחת לתמונת ההירו, בכחול לילה עדין, שנעלם בפייד כלפי מטה */
.home-hero + .home-section { position: relative; isolation: isolate; }
.home-hero + .home-section::before {
  content: ''; position: absolute; z-index: -1; inset: -240px 0 auto; height: 820px; pointer-events: none;
  background: var(--night); opacity: .035;
  -webkit-mask-image: url('/img/citymap.svg'), linear-gradient(to bottom, transparent 0, #000 14%, #000 38%, transparent 100%);
  -webkit-mask-size: cover, 100% 100%; -webkit-mask-position: 30% 40%, 0 0; -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: url('/img/citymap.svg'), linear-gradient(to bottom, transparent 0, #000 14%, #000 38%, transparent 100%);
  mask-size: cover, 100% 100%; mask-position: 30% 40%, 0 0; mask-repeat: no-repeat; mask-composite: intersect;
}

/* ==========================================================================
   עודכנו לאחרונה: שלושה טורים שווים (שתי אפשרויות לבחירה)
   ========================================================================== */
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, calc(1.4vw / var(--z)), 20px); }
.recent-grid > .skeleton { grid-area: auto !important; min-height: 120px !important; }
.recent-grid .b-card { padding: 14px; gap: 10px; border-radius: 20px; }
.recent-grid .b-card h3 { font-size: 1.15rem; }
.recent-grid .b-card .foot { font-size: 14px; }
.recent-grid .b-card .go { width: 34px; height: 34px; }

/* אפשרות א: שישה כרטיסים קומפקטיים, המפה כריבוע קטן בצד */
.recent-a .b-card { flex-direction: row; align-items: stretch; }
.recent-a .b-card .mini-route { width: 112px; height: auto; min-height: 112px; flex: none; order: 2; border-radius: 14px; }
.recent-a .b-card .b-body { gap: 6px !important; }
.recent-a .b-card .meta { font-size: 15px; }

/* אפשרות ב: שלושה כרטיסים בשורה אחת, המפה למעלה */
.recent-b .b-card .mini-route { height: 150px; border-radius: 14px; }

@media (max-width: 1000px) { .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .recent-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   הירו: כותרת ופסקת פתיחה למעלה, שורת ההנחיה צמודה מעל החיפוש.
   התמונה גדלה לפי התוכן
   ========================================================================== */
.home-hero-photo { position: relative; display: flex; flex-direction: column; height: auto; min-height: min(clamp(460px, calc(38vw / var(--z)), 580px), calc(78vh / var(--z))); }
.home-hero-copy { position: relative; inset: auto; z-index: 1; padding-top: calc(var(--header-h) + clamp(18px, calc(3vw / var(--z)), 44px)); }
.home-hero-intro { max-width: 760px; margin: 14px auto 0; font-size: 18px; line-height: 1.6; color: var(--night); font-weight: 500; text-shadow: 0 1px 14px rgba(255, 255, 255, .8); }
.home-hero-photo > .home-hero-lead { position: relative; z-index: 1; margin: auto auto 0; padding-top: 24px; padding-bottom: calc(30px + 16px); max-width: none; font-size: 18px; font-weight: 700; color: var(--night); text-shadow: 0 1px 12px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .8); }
@media (max-width: 760px) {
  .home-hero-photo { min-height: 0; }
  .home-hero-intro { font-size: 16px; }
  .home-hero-intro br { display: none; }
  .home-hero-photo > .home-hero-lead { font-size: 16px; padding-bottom: calc(27px + 14px); }
}
.home-hero-photo > .home-hero-lead { width: fit-content; max-width: calc(100% - 2 * var(--gutter)); margin-bottom: calc(30px + 14px); padding: 7px 20px; border-radius: 999px; background: rgba(247, 248, 246, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; font-weight: 700; line-height: 1.4; }
@media (max-width: 760px) { .home-hero-photo > .home-hero-lead { margin-bottom: calc(27px + 12px); padding: 6px 14px; } }
.home-hero-copy { padding-bottom: 18px; }
@media (max-width: 760px) { .home-hero-copy { padding-bottom: 40px; } }

/* ==========================================================================
   הירו: כרטיס כחול לילה שמחזיק את שורת ההנחיה ואת החיפוש.
   טקסט בהיר, שדה חיפוש בהיר, כפתור ירוק
   ========================================================================== */
.home-hero-photo { padding-bottom: 96px; }
.hero-panel { position: relative; z-index: 2; width: min(660px, calc(100% - 2 * var(--gutter))); margin: -78px auto 0; padding: 20px 22px 22px; background: var(--night); border-radius: 26px; text-align: start; box-shadow: 0 18px 40px -22px rgba(8, 14, 44, .5); }
.hero-panel-lead { margin: 0 0 14px; color: #fcfcfc; font-size: 18px; font-weight: 700; line-height: 1.4; }
.hero-panel .search { margin: 0; max-width: none; padding: 0; }
.search-onnight .search-field { background: #fcfcfc; border: 2px solid var(--sage); color: var(--night); min-height: 60px; padding-inline: 18px 6px; gap: 10px; box-shadow: none; }
.search-onnight .search-field:focus-within { border-color: var(--sage-light); box-shadow: 0 0 0 4px rgba(104, 166, 145, .3); }
.search-onnight .search-field > .ico { color: var(--muted); width: 20px; height: 20px; }
.search-onnight .search-field input { color: var(--night); font-size: 1.0625rem; padding: 8px 0; }
.search-onnight .search-field input::placeholder { color: var(--muted); }
.search-onnight .search-submit { display: inline-flex !important; min-height: 46px; padding-inline: 20px; font-size: 1rem; }
.search-onnight .search-submit .ico { color: var(--night); width: 1em; height: 1em; }
@media (max-width: 760px) {
  .home-hero-photo { padding-bottom: 84px; }
  .hero-panel { margin-top: -66px; padding: 16px 14px 14px; border-radius: 22px; }
  .hero-panel-lead { font-size: 16px; margin-bottom: 10px; }
  .search-onnight .search-field { min-height: 54px; padding-inline: 14px 5px; }
  .search-onnight .search-submit { min-height: 42px; padding-inline: 14px; }
  .search-onnight .search-submit .ico { display: none; }
}

/* פוטר: שורת הסבר מתחת לכותרת, והטופס על משטח כהה שקוף */
.foot-report-lead { margin: 14px 0 0; max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--mist); }
.foot-form { padding: clamp(20px, calc(2.4vw / var(--z)), 32px); background: rgba(8, 14, 44, .78); border: 1px solid rgba(207, 230, 222, .12); border-radius: 26px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ff-actions .ff-send { margin-inline-start: auto; }
@media (max-width: 560px) { .foot-report-lead { font-size: 16px; } .foot-form { padding: 18px 16px; border-radius: 22px; } }

/* כרטיסי החדשות: מעבר צבע חזק יותר מתחת לכותרת, שדוהה כלפי מעלה */
.nr-body { padding: 110px 18px 18px; background: linear-gradient(to top, rgba(8, 14, 44, .97) 0%, rgba(8, 14, 44, .9) 38%, rgba(8, 14, 44, .55) 68%, rgba(8, 14, 44, 0) 100%); }

/* טופס הפוטר: משטח בכחול עמוק יותר, ותיבת אישור עגולה */
.foot-form { background: #030616; border-color: rgba(104, 166, 145, .28); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(207, 230, 222, .06); }
.foot-form .ff-check input[type=checkbox], .ff-check input { border-radius: 50%; }

/* ==========================================================================
   עמוד עירוב: כפתורי הדפסה ושיתוף, ודף הדפסה לשבת
   ========================================================================== */
.place-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.place-act { background: rgba(252, 252, 252, .08); color: #fcfcfc; border: 1px solid rgba(207, 230, 222, .28); }
.place-act:hover { background: rgba(252, 252, 252, .16); color: #fcfcfc; }
.place-act .ico { width: 18px; height: 18px; }
.print-head { display: none; }

/* לפני ההדפסה המפה מקבלת את גודל הדף, כדי שהרקע והקו ייטענו נכון */
body.printing .map-card { width: 680px !important; max-width: 100%; }
body.printing .map, body.printing .map-card { height: 520px !important; }
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  body { color: #000; font-size: 12pt; }
  .site-header, .site-footer, .mobile-nav, .palette, .insp-pop, .skip, .crumbs, .place-actions, .map-tools, .eruv-tabs, #extra, .to-map, .param-more, .toast, #gal { display: none !important; }
  .print-head { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid #000; padding-bottom: 6px; margin-bottom: 10px; font-size: 10pt; }
  .print-head strong { font-size: 12pt; }
  .top-band { background: none !important; color: #000 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
  .top-band::before, .top-band::after { display: none !important; }
  .top-band *, .place-sub, .place-sub * { color: #000 !important; }
  .place-head { padding: 0 0 8px !important; }
  .place-head h1 { font-size: 20pt !important; }
  .wrap { padding-inline: 0 !important; max-width: none !important; }
  .after-band { margin-top: 0 !important; padding-top: 0 !important; }
  .place-layout { display: block !important; }
  .map-col { position: static !important; }
  .map-card { width: 100% !important; height: 520px !important; border: 1px solid #999; border-radius: 0 !important; box-shadow: none !important; break-inside: avoid; }
  .map { height: 520px !important; }
  .info { margin-top: 12px; }
  .card, .notice { box-shadow: none !important; border: 1px solid #bbb !important; background: #fff !important; break-inside: avoid; }
  .contact .btn { display: none !important; }
  .contact .phone-num { font-size: 12pt; color: #000 !important; }
  .param-desc { display: none !important; }
  .params { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  a { color: #000 !important; text-decoration: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
}

/* כרטיסי החדשות: במעבר עכבר שכבת כחול לילה מכסה את כל התמונה */
.nr-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(8, 14, 44, .82); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.nr-card:hover::after, .nr-card:focus-visible::after { opacity: 1; }
.nr-card .nr-body { z-index: 2; }

/* עירובין ברחבי הארץ: כפתור "קרובים אליי" */
@media (min-width: 1025px) { .near-btn { display: none !important; } }
.near-btn[aria-pressed="true"] { background: var(--night); color: #fcfcfc; border-color: var(--night); }
.near-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.place-row-km { color: var(--sage-deep); font-weight: 700; }

/* רצועת הצטרפות כבודק עירוב (דף הבית) */
.join { position: relative; isolation: isolate; padding-bottom: clamp(56px, calc(7vw / var(--z)), 96px); }
.join-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, calc(4vw / var(--z)), 56px); align-items: center; padding: clamp(28px, calc(4vw / var(--z)), 52px); border-radius: 28px; background: var(--accent-soft); border: 1px solid rgba(61, 116, 98, .18); }
.join-card::before { content: ''; position: absolute; inset: -40%; z-index: -1; pointer-events: none; background: var(--sage-deep); opacity: .07; -webkit-mask: url('/img/citymap.svg') center / 1100px auto repeat; mask: url('/img/citymap.svg') center / 1100px auto repeat; transform: rotate(-14deg); }
.join-copy .home-section-title { margin: 0 0 12px; }
.join-sub { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 40ch; }
.jf-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.join-form input:not([type=checkbox]):not(.rep-hp) { width: 100%; min-height: 54px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 10px 20px; font: inherit; font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.join-form input::placeholder { color: var(--muted); opacity: .8; }
.join-form input:not([type=checkbox]):focus { outline: 0; border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(61, 116, 98, .18); }
.join-form input[type=tel] { direction: rtl; text-align: right; }
.jf-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.jf-check { margin-top: 0; color: var(--ink-2); flex: 1 1 260px; }
.jf-check input { border-color: var(--sage-deep); border-radius: 50%; }
.jf-check input:checked::after { border-color: #fff; }
.jf-check a { color: var(--sage-deep); }
.jf-send { min-height: 56px; padding-inline: 30px; font-size: 1.1rem; margin-inline-start: auto; }
.jf-msg { margin: 12px 0 0; font-size: 15px; color: #b3261e; }
.jf-msg.ok { color: var(--sage-deep); font-weight: 600; }
@media (max-width: 960px) { .join-card { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .jf-fields { grid-template-columns: 1fr; } .jf-send { width: 100%; justify-content: center; } }

/* עמוד המקום: הזמנה להצטרף כשאין בודק */
.need-insp { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px dashed rgba(61, 116, 98, .45); }
.need-insp p { margin: 0; flex: 1 1 220px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.need-insp strong { color: var(--ink); }
.need-insp .btn { flex: none; }
.join { padding-bottom: 0; }
@media print { .need-insp { display: none; } }

/* תפריט בהאדר: עיגול ירוק שצומח מאחורי מרכז המילה */
.nav a { position: relative; isolation: isolate; background: none !important; transition: color .3s var(--ease), opacity .15s; }
.nav a::before { content: ''; position: absolute; z-index: -1; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: var(--sage); transform: translate(-50%, -50%) scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.nav a:hover::before, .nav a:focus-visible::before, .nav a[aria-current="page"]::before { transform: translate(-50%, -50%) scale(1); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--night); opacity: 1; }
.nav a[aria-current="page"] { box-shadow: none; border-radius: 999px; }
.nav a:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }

/* קרוסלות בדף הבית */
.car { position: relative; }
.car-track { display: flex; gap: clamp(12px, calc(1.4vw / var(--z)), 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 6px 2px 18px; margin: -6px -2px 0; cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; flex: none; }
.car-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car-track.dragging a { pointer-events: none; }
.car-track:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; border-radius: 22px; }
.car-arrow { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--night); color: #fcfcfc; cursor: pointer; flex: none; transition: background .2s, transform .2s, opacity .2s; }
.car-arrow .ico { width: 22px; height: 22px; }
.car-arrow:hover:not(:disabled) { background: var(--sage-deep); transform: scale(1.06); }
.car-arrow:disabled { opacity: .28; cursor: default; }
.car-arrow:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* עודכנו לאחרונה */
.recent-track .b-card { width: clamp(240px, calc(22vw / var(--z)), 300px); padding: 14px; gap: 10px; border-radius: 20px; }
.recent-track .b-card .mini-route { height: 150px; border-radius: 14px; }
.recent-track .b-card h3 { font-size: 1.15rem; }
.recent-track .b-card .foot { font-size: 14px; }
.recent-track .b-card .go { width: 34px; height: 34px; }
.recent-track .car-sk { width: clamp(240px, calc(22vw / var(--z)), 300px); height: 290px; border-radius: 20px; }
.recent-track .empty-state { width: 100%; }
.car-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }

/* חדשות ועדכונים: כותרת מימין, קרוסלה שנחתכת בקצה השמאלי */
.news-split { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(24px, calc(4vw / var(--z)), 64px); align-items: center; padding-inline-start: var(--gutter); overflow: hidden; }
.ns-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ns-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, calc(5vw / var(--z)), 4.4rem); line-height: .98; margin: 0; color: var(--night); }
.ns-head .news-cta-sub { text-align: start; font-size: 17px; }
.ns-all { display: inline-flex; align-items: center; gap: 8px; color: var(--sage-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ns-all:hover { color: var(--night); }
.ns-all .ico { width: 18px; height: 18px; }
.ns-car { min-width: 0; }
.news-track2 { padding-inline-end: var(--gutter); }
.news-track2 .nr-card { width: clamp(230px, calc(21vw / var(--z)), 300px); }
.news-track2 .nr-card:nth-child(odd) { margin-top: 0; }
.ns-car .car-arrow { position: absolute; top: calc(50% - 6px); z-index: 3; transform: translate(0, -50%); background: var(--sage); color: var(--night); box-shadow: 0 10px 24px -10px rgba(8, 14, 44, .45); }
.ns-car .car-arrow:hover:not(:disabled) { background: var(--sage-light); transform: translate(0, -50%) scale(1.06); }
.ns-car .ns-next { inset-inline-start: -26px; }
.ns-car .ns-prev { inset-inline-end: 18px; }
.ns-car .car-arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 820px) {
  .news-split { grid-template-columns: 1fr; }
  .ns-title br { display: none; }
  .ns-car .ns-next { inset-inline-start: 6px; }
}
.news-track2 .nr-card { width: clamp(250px, calc(25vw / var(--z)), 380px); }
.ns-arrows { position: absolute; z-index: 3; inset-inline-start: -26px; top: calc(50% - 6px); transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.ns-car .ns-arrows .car-arrow { position: static; transform: none; }
.ns-car .ns-arrows .car-arrow:hover:not(:disabled) { transform: scale(1.06); }
.ns-car .ns-arrows .car-arrow:disabled { display: none; }
@media (max-width: 820px) { .ns-arrows { inset-inline-start: 6px; } }

/* רצועת ההצטרפות: רקע כחול כהה ברוחב מלא, מעוגל למעלה ולמטה */
.join { padding-block: calc(var(--arc) + clamp(36px, calc(4vw / var(--z)), 56px)); margin-top: clamp(56px, calc(7vw / var(--z)), 96px); overflow: hidden; }
.join::before { content: ''; position: absolute; z-index: -2; inset: 0 -12%; background: var(--night); border-radius: 50% / var(--arc); }
.join::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: var(--mist); opacity: .05; -webkit-mask: url('/img/citymap.svg') center / 1400px auto repeat; mask: url('/img/citymap.svg') center / 1400px auto repeat; }
.join-card { background: none; border: 0; padding: 0; border-radius: 0; overflow: visible; }
.join-card::before { display: none; }
.join .home-section-title { color: #fcfcfc; }
.join-sub { color: var(--mist); }
.join-form input:not([type=checkbox]):not(.rep-hp) { border-color: transparent; }
.join-form input:not([type=checkbox]):focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(104, 166, 145, .3); }
.jf-check { color: var(--mist); }
.jf-check input { border-color: rgba(207, 230, 222, .6); }
.jf-check input:checked { background: var(--sage); border-color: var(--sage); }
.jf-check input:checked::after { border-color: var(--night); }
.jf-check a { color: var(--sage-light); }
.jf-msg { color: #ffc9d2; }
.jf-msg.ok { color: var(--sage-light); }

/* כפתורים ושדות: 8 פיקסלים מעל ומתחת, נקי ומאופק */
.btn, .btn-sm, .site-header .header-cta, .search-field .btn, .search-dark .search-submit, .search-onnight .search-submit,
.foot-form .ff-send, .jf-send, .need-insp .btn { min-height: 0; padding-block: 8px; line-height: 1.4; }
.btn { padding-inline: 22px; }
.jf-send, .foot-form .ff-send { padding-inline: 26px; font-size: 1rem; }
.join-form input:not([type=checkbox]):not(.rep-hp) { min-height: 0; padding-block: 8px; line-height: 1.5; font-size: 16px; }
.foot-form input:not(.rep-hp):not([type=checkbox]) { min-height: 0; padding-block: 8px; }
.search-onnight .search-field, .search-dark .search-field, .search-field { min-height: 0; padding-block: 5px; }
.search-field input { padding-block: 8px; }
.eruv-tabs button, .seg-pills span { min-height: 0; padding-block: 8px; }
@media (max-width: 640px) { .search-onnight .search-field, .search-dark .search-field { min-height: 0; } .search-onnight .search-submit, .search-dark .search-submit { min-height: 0; } }

/* חץ הקרוסלה בחדשות: אותו חץ ואותו מראה כמו בכפתורים */
.ns-car .ns-arrows .car-arrow { background: var(--grad-sage); color: var(--night); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 24px -12px rgba(8, 14, 44, .45); }
.ns-car .ns-arrows .car-arrow:hover:not(:disabled) { background: var(--grad-sage); transform: none; box-shadow: 0 0 0 5px rgba(104, 166, 145, .16), 0 12px 30px -8px rgba(92, 157, 135, .55); }
.ns-car .ns-arrows .car-arrow .ico { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.ns-car .ns-next:hover .ico { transform: translate(-2px, -2px); }
.ns-car .ns-prev .ico { transform: scaleX(-1); }
.ns-car .ns-prev:hover .ico { transform: scaleX(-1) translate(-2px, -2px); }
.ns-head .btn { margin-top: 4px; }

/* אחידות בעמודים הפנימיים */
/* עיגול התפריט: על האדר כהה ירוק עמוק עם טקסט לבן, בדף הבית ירוק בהיר עם טקסט כהה */
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--h-fg); }
.nav a::before { background: var(--sage-deep); }
.home .site-header .nav a::before { background: var(--sage); }
/* תמונת ברירת מחדל של ידיעה: כמו בדף הבית */
.news-cover.placeholder { background: var(--grad-sage); }
.news-cover.placeholder .brand-mark { color: var(--night); opacity: .22; width: 64px; height: 64px; }

/* רקע אחיד לכל הדף, גם כשהאתר מוצג בתוך מסגרת: בלי קו חד בין אזורים */
html { background: var(--paper); }

/* חדשות בדף הבית: בלי חצים, גוללים בגרירה */
.ns-arrows { display: none; }

/* הירו בעמודים הפנימיים: תמונת ההירו ברקע, שקופה מאוד */
.top-band { background: linear-gradient(rgba(8, 14, 44, .8), rgba(8, 14, 44, .8)), url('/img/hero-2000.jpg') center 42% / cover no-repeat, var(--night); }
@media (max-width: 1000px) { .top-band { background: linear-gradient(rgba(8, 14, 44, .8), rgba(8, 14, 44, .8)), url('/img/hero-1000.jpg') center 42% / cover no-repeat, var(--night); } }

/* פנסים: הילות מרווה רכות ברקע, בגדלים שונים, לעומק */
main { position: relative; isolation: isolate; overflow-x: clip; }
.glows { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glows i { position: absolute; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(104, 166, 145, .33), rgba(104, 166, 145, 0)); }
.glows i:nth-child(1) { width: 520px; height: 520px; top: 9%; right: -170px; }
.glows i:nth-child(2) { width: 260px; height: 260px; top: 21%; left: 6%; }
.glows i:nth-child(3) { width: 720px; height: 720px; top: 36%; left: -260px; }
.glows i:nth-child(4) { width: 200px; height: 200px; top: 49%; right: 18%; }
.glows i:nth-child(5) { width: 600px; height: 600px; top: 63%; right: -220px; }
.glows i:nth-child(6) { width: 300px; height: 300px; top: 80%; left: 22%; }
.glows i:nth-child(7) { width: 440px; height: 440px; top: 92%; left: -120px; }
@media (max-width: 700px) { .glows i { transform: scale(.6); } }
@media print { .glows { display: none; } }
/* ההילות לא נחתכות בקצה התוכן למעלה ולמטה (רק בצדדים), כדי שלא ייווצר קו */
.glows { overflow: visible; }
.glows i:nth-child(7) { top: auto; bottom: -120px; }

/* תפריט: העיגול בגרדיאנט של הכפתורים. מעליו עותק של הטקסט בכחול כהה, שנחשף רק בתוך העיגול, כך שהמילה קריאה גם על האדר כהה */
.nav a { color: var(--h-fg) !important; }
.nav a::before { background: var(--grad-sage) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset; }
.nav a[data-t]::after { content: attr(data-t); position: absolute; inset: 0; padding: inherit; color: var(--night); font-weight: inherit; white-space: nowrap; pointer-events: none; clip-path: circle(0 at 50% 50%); transition: clip-path .45s cubic-bezier(.34, 1.56, .64, 1); }
.nav a[data-t]:hover::after, .nav a[data-t]:focus-visible::after, .nav a[data-t][aria-current="page"]::after { clip-path: circle(23px at 50% 50%); }

/* כפתור החיפוש בהאדר: ירוק במעבר עכבר */
.round-btn { transition: opacity .15s, background .2s, color .2s, border-color .2s; }
.round-btn:hover, .round-btn:focus-visible { background: var(--grad-sage); color: var(--night); border-color: transparent; opacity: 1; }

/* ==========================================================================
   עדכון: פנסים חלשים יותר, טקסט רץ צפוף יותר, מרווחים קטנים יותר
   ========================================================================== */
.glows { opacity: .5; }

/* טקסט רץ: גובה שורה 1.2em */
body, p, li, .prose, .desc, .param-desc, .notice, .home-hero-intro, .hero-panel-lead, .foot-report-lead, .foot-about, .foot-disclaimer,
.join-sub, .news-cta-sub, .article-head .lead, .need-insp p, .insp-pop p, .results-empty, .ff-check, .jf-check { line-height: 1.2em; }
p + p, .prose p + p { margin-top: .7em; }

/* מרווחים */
.home-section { padding-top: clamp(28px, calc(3.2vw / var(--z)), 48px); }
.section { padding-block: clamp(24px, calc(3vw / var(--z)), 40px); }
.section-head { margin-bottom: clamp(14px, calc(2vw / var(--z)), 22px); }
.section-foot, .car-foot { margin-top: 14px; }
.home-section-head { margin-bottom: clamp(14px, calc(2vw / var(--z)), 24px); }
.top-band { padding-bottom: calc(var(--arc) + clamp(10px, calc(1.4vw / var(--z)), 18px)); }
.after-band { margin-top: clamp(20px, calc(2.4vw / var(--z)), 32px); }
.join { margin-top: clamp(32px, calc(4vw / var(--z)), 56px); padding-block: calc(var(--arc) + clamp(20px, calc(2.4vw / var(--z)), 32px)); }
.news-split { gap: clamp(20px, calc(3vw / var(--z)), 44px); }
.site-footer { margin-top: clamp(36px, calc(4vw / var(--z)), 60px); }
.site-footer .wrap { padding-top: calc(var(--arc) + 4px); }
.home-hero-photo { padding-bottom: 80px; }

/* תפריט: בלי עיגול. קו ירוק שמצטייר מתחת למילה במעבר עכבר */
.nav a::before, .nav a[data-t]::after { content: none !important; }
.nav a { background: linear-gradient(var(--sage), var(--sage)) no-repeat right 14px bottom 4px / 0 2px !important; transition: background-size .35s var(--ease), opacity .15s; border-radius: 0; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { background-size: calc(100% - 28px) 2px !important; }

/* עמוד החדשות: סינון לפי מקום מעל הגריד */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(16px, calc(2vw / var(--z)), 24px); }
.news-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.news-filter button:hover { border-color: var(--sage-deep); color: var(--night); }
.news-filter button[aria-pressed="true"] { background: var(--grad-sage); border-color: transparent; color: var(--night); font-weight: 700; }
.news-filter button:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.nf-n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--sand); font-size: 13px; line-height: 20px; text-align: center; color: var(--muted); }
.news-filter button[aria-pressed="true"] .nf-n { background: rgba(255, 255, 255, .55); color: var(--night); }
.news-grid[aria-busy="true"] { opacity: .5; transition: opacity .2s; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(20px, calc(2.4vw / var(--z)), 32px); }

/* רווח בין כותרת משנה לפסקה: calc(2vw / var(--z)) */
:is(h2, h3, h4, .news-card h3) + p, .prose :is(h2, h3, h4) + p { margin-top: calc(2vw / var(--z)); }
.news-card h3 + p { margin-top: calc(2vw / var(--z)); }

/* ==========================================================================
   עדכון: כפתורים ושדות נמוכים יותר, עמוד המקומות, רווח קבוע אחרי כותרת משנה
   ========================================================================== */
/* כפתורים ושדות: 5 פיקסלים מעל ומתחת */
.btn, .btn-sm, .site-header .header-cta, .search-field .btn, .search-dark .search-submit, .search-onnight .search-submit,
.foot-form .ff-send, .jf-send, .need-insp .btn, .news-filter button, .eruv-tabs button, .seg button, .seg-pills span { padding-block: 5px; min-height: 0; }
.join-form input:not([type=checkbox]):not(.rep-hp), .foot-form input:not(.rep-hp):not([type=checkbox]), .search-field input, .toolbar .search-field input { padding-block: 5px; }
.search-onnight .search-field, .search-dark .search-field, .search-field, .toolbar .search-field { min-height: 0; padding-block: 4px; }
.round-btn { width: 38px; height: 38px; }
.round-btn .ico { width: 18px; height: 18px; }

/* עמוד עירובין ברחבי הארץ */
.letters { gap: 6px; }
.letters a, .letters span { width: 36px; height: 36px; border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.letters a { border: 1.5px solid var(--line-2); background: var(--surface); transition: background .2s, border-color .2s; }
.letters a:hover { background: var(--grad-sage); border-color: transparent; color: var(--night); }
.letter-group { padding-top: clamp(18px, calc(2vw / var(--z)), 26px); }
.letter-group > h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 1.4rem + calc(2vw / var(--z)), 2.8rem); line-height: 1; color: var(--night); }
.place-row .go { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sand); color: var(--night); transition: background .25s, color .25s; }
.place-row .go .ico { width: 16px; height: 16px; margin: 0; color: inherit; }
.place-row:hover .go { background: var(--grad-sage); color: var(--night); }

/* רווח בין כותרת משנה לפסקה: 8px בכל האתר (עם גובה השורה נראה כ-14px), כדי שהכותרת תיצמד לפסקה שלה */
:is(h2, h3, h4, .news-card h3) + p, .prose :is(h2, h3, h4) + :is(p, ul, ol), .news-card h3 + p { margin-top: 8px; }

/* שלושה נתוני אמון מתחת לחיפוש */
.trust { list-style: none; margin: clamp(22px, calc(2.6vw / var(--z)), 34px) auto 0; padding-block: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; text-align: center; }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 16px; }
.trust li + li { border-inline-start: 1px solid var(--line-2); }
.trust .ico { width: 28px; height: 28px; color: var(--sage-deep); stroke-width: 1.6; margin-bottom: 4px; }
.trust strong { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 1.1rem + calc(1.4vw / var(--z)), 2.2rem); line-height: 1.05; color: var(--night); }
.trust span { font-size: 16px; line-height: 1.2em; color: var(--ink-2); }
@media (max-width: 560px) { .trust li { padding-inline: 6px; } .trust strong { font-size: 1.35rem; } .trust span { font-size: 14px; } }
.trust { background: none; border: 0; box-shadow: none; border-radius: 0; }

/* ==========================================================================
   עדכון: הירו במסך הפתיחה, חיפוש עם כפתור בחוץ, נתוני אמון מונפשים, 4 כרטיסים, רקע המפה
   ========================================================================== */
/* כל ההירו, כולל נתוני האמון, נכנס במסך הפתיחה: התמונה מתקצרת מלמטה */
.home-hero-photo { height: clamp(340px, calc(calc(100svh / var(--z)) - 230px), 600px); min-height: 0; padding-bottom: 88px; }

/* חיפוש בהירו: השדה והכפתור נפרדים, באותו גובה */
.search-onnight .search-field { background: none; border: 0; padding: 0; min-height: 0; gap: 10px; align-items: stretch; box-shadow: none; }
.search-onnight .search-field:focus-within { box-shadow: none; }
.search-onnight .sf-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: #fcfcfc; border: 2px solid var(--sage); border-radius: 999px; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.search-onnight .sf-box:focus-within { border-color: var(--sage-light); box-shadow: 0 0 0 4px rgba(104, 166, 145, .3); }
.search-onnight .sf-box > .ico { color: var(--muted); opacity: .6; width: 18px; height: 18px; flex: none; }
.search-onnight .sf-box input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding-block: 5px; }
.search-onnight .search-submit { flex: none; padding-block: 5px; padding-inline: 22px; }
/* טקסט מקדים שקוף, שנעלם כשמתחילים להקליד */
.search-onnight .sf-box input::placeholder { color: var(--muted); opacity: .5; transition: opacity .15s; }
.search-onnight .sf-box input:focus::placeholder { opacity: 0; }

/* נתוני אמון: האייקונים מצטיירים בקו, ואז קופצים קלות */
.trust .ico { stroke-dasharray: 80; stroke-dashoffset: 0; }
.trust-wait .ico { stroke-dashoffset: 80; opacity: 0; }
.trust-go .ico { animation: trust-draw 1.3s var(--ease) both, trust-pop .5s 1.2s var(--ease) both; }
.trust-go li:nth-child(2) .ico { animation-delay: .15s, 1.35s; }
.trust-go li:nth-child(3) .ico { animation-delay: .3s, 1.5s; }
@keyframes trust-draw { from { stroke-dashoffset: 80; opacity: 0; } 15% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes trust-pop { 0% { transform: translateY(0); } 45% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.trust li:hover .ico { transform: translateY(-3px); transition: transform .25s var(--ease); }
.trust strong { font-variant-numeric: tabular-nums; }

/* עודכנו לאחרונה: 4 כרטיסים מלאים בתוך שולי העמוד, בלי חיתוך */
.recent-track { gap: 18px; }
.recent-track > .b-card, .recent-track > .car-sk { width: auto; flex: 0 0 calc((100% - 3 * 18px) / 4); }
@media (max-width: 1100px) { .recent-track > .b-card, .recent-track > .car-sk { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 760px) { .recent-track > .b-card, .recent-track > .car-sk { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 520px) { .recent-track > .b-card, .recent-track > .car-sk { flex-basis: 100%; } }
.recent-track .b-card .mini-route { height: 130px; }

/* שרטוט המפה מתחת להירו: צמוד לתמונה, גם אחרי שנוספה שורת נתוני האמון */
.home-hero + .home-section::before { display: none; }
.home-hero { position: relative; isolation: isolate; }
.home-hero::after {
  content: ''; position: absolute; z-index: -1; inset-inline: 0; top: calc(100% - 360px); height: 900px; pointer-events: none;
  background: var(--night); opacity: .04;
  -webkit-mask-image: url('/img/citymap.svg'), linear-gradient(to bottom, transparent 0, #000 14%, #000 40%, transparent 100%);
  -webkit-mask-size: 1400px auto, 100% 100%; -webkit-mask-position: center top, 0 0; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in;
  mask-image: url('/img/citymap.svg'), linear-gradient(to bottom, transparent 0, #000 14%, #000 40%, transparent 100%);
  mask-size: 1400px auto, 100% 100%; mask-position: center top, 0 0; mask-repeat: repeat, no-repeat; mask-composite: intersect;
}
/* המפה בפוטר: מעט יותר נראית */
.foot-bg::before { opacity: .06; }

/* שרטוט המפה מתחת להירו: נגמר בפייד לפני הכותרת "עודכנו לאחרונה", ולא עובר מתחת לכרטיסים */
.home-hero::after {
  top: calc(100% - 380px); height: 400px;
  -webkit-mask-image: url('/img/citymap.svg'), linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 100%);
  mask-image: url('/img/citymap.svg'), linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 100%);
}
/* הכרטיסים תמיד מעל כל רקע */
.home-hero + .home-section { z-index: 1; }
.b-card { position: relative; z-index: 1; background: var(--surface); }

/* בכל הטפסים באתר: הטקסט המקדים נעלם כשנכנסים לשדה כדי להקליד */
input::placeholder, textarea::placeholder { transition: opacity .15s; }
input:focus::placeholder, textarea:focus::placeholder { opacity: 0 !important; }
/* אזורים עם רקע רחב: חיתוך שלא ניתן לגלילה, כדי שלחיצה על שדה לא תזיז את האזור הצידה */
.join, .news-split, .home-hero-photo, .site-footer { overflow: clip; }

/* מרווח אחיד של 100px בין האזורים בדף הבית (קטן יותר במסכים צרים) */
:root { --sec-gap: clamp(64px, calc(8vw / var(--z)), 100px); }
.home-section:has(#recent) { padding-top: var(--sec-gap); }
#join { margin-top: var(--sec-gap); }
.news-split { padding-top: var(--sec-gap); }

/* תיאור העירוב בעמוד המקום: פסקה רגילה בלי כרטיס */
.eruv-desc { margin: 0 0 18px; padding: 0 4px; font-size: 1.05rem; }

/* עמוד המקום: אנשי קשר, נתונים הלכתיים ותמונות ישירות על העמוד, בלי כרטיס לבן */
.card.card-flat { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; margin-bottom: 28px; }
.card.card-flat > .card-title { padding-inline: 4px; }

/* עמוד המקום: כותרות משנה בולטות, כפתור חיוג עגול, אייקונים בעיגול */
.sub-head { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.35rem, 1.1rem + calc(.8vw / var(--z)), 1.75rem); line-height: 1.1; color: var(--night); margin: 0 4px 16px; }
.call-btn { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--grad-sage); color: var(--night); border: 0; opacity: 1; transition: transform .2s, box-shadow .2s; }
.call-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(61, 116, 98, .3); }
.call-btn .ico { width: 20px; height: 20px; }
.param-ico, .param[data-v="unknown"] .param-ico { border-radius: 50%; }

/* מקומות קרובים: עד 3 עיגולים בשורה, וכפתור בסוף */
.near-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.near-circle { width: 168px; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--night); transition: background .25s, color .25s, transform .25s, border-color .25s; }
.near-circle:hover { background: var(--grad-sage); border-color: transparent; transform: translateY(-3px); }
.near-name { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.near-meta { font-size: var(--fs-xs); color: var(--ink-2); }
.near-all { margin-inline-start: 12px; }
@media (max-width: 640px) {
  .near-row { gap: 12px; justify-content: center; }
  .near-circle { width: 104px; padding: 10px; }
  .near-name { font-size: 1rem; }
  .near-all { margin: 8px auto 0; }
}
.contact .call-btn { margin-inline-start: auto; }
@media print { .contact .call-btn { display: none !important; } }
/* עיגולי המקומות הקרובים: צמודים יותר לטקסט */
.near-circle { width: 136px; padding: 10px; gap: 4px; }
.near-name { font-size: 1.2rem; }
.near-row { gap: 16px; }
@media (max-width: 640px) { .near-circle { width: 104px; padding: 8px; } }

/* 5. טבלה */
.l5 { margin-top: 32px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.l5-row { display: grid; grid-template-columns: 1.6fr .7fr 1.6fr .7fr 1fr 1.3fr 50px; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: var(--fs-sm); transition: background .2s; }
.l5-head { border-top: 0; background: var(--night); color: #fff; font-weight: 700; font-size: var(--fs-xs); padding-block: 14px; }
a.l5-row:hover { background: rgba(104, 166, 145, .1); }
.l5-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--night); }
.l5-letter { padding: 10px 22px 6px; border-top: 1px solid var(--line); background: var(--paper); font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--sage-deep); }
.l5-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-inline-end: 8px; }
.l5-dot.on { background: var(--sage); }
.l5 .go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--night); }
.l5 .go .ico { width: 15px; height: 15px; }
a.l5-row:hover .go { background: var(--grad-sage); }

@media (max-width: 760px) {
  .l5-row { grid-template-columns: 1fr auto 40px; }
  .l5-row > :nth-child(3), .l5-row > :nth-child(4), .l5-row > :nth-child(5), .l5-row > :nth-child(6) { display: none; }
}

.l5-km { display: block; font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; color: var(--sage-deep); }
.l5 .chip-sample { margin-inline: 8px; vertical-align: middle; }
@media (max-width: 760px) {
  .l5-row { grid-template-columns: 1fr auto 40px; padding-inline: 14px; }
  .l5-row > :nth-child(3), .l5-row > :nth-child(4), .l5-row > :nth-child(5), .l5-row > :nth-child(6) { display: none; }
  .l5-letter { padding-inline: 14px; }
}

/* סרגל האותיות מסנן את הטבלה: "הכל" או אות אחת */
.letters { align-items: center; }
.letters button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.letters button.letters-all { width: auto; padding-inline: 16px; border-radius: 999px; font-size: var(--fs-sm); margin-inline-end: 6px; }
.letters button:hover { background: var(--grad-sage); border-color: transparent; color: var(--night); }
.letters button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }

/* העיגולים: הגרדיאנט מכסה גם את אזור המסגרת, כדי שלא יופיע קו דק בצד */
.letters a, .letters button, .near-circle, .round-btn, .call-btn, .place-row .go, .l5 .go { background-origin: border-box !important; background-clip: border-box !important; }

/* כפתור החיוג בעמוד המקום: רקע בהיר ומסגרת כחולה, ירוק רק במעבר עכבר, בלי צל */
.call-btn { background: var(--surface); border: 1.5px solid var(--night); color: var(--night); transition: background .2s, border-color .2s; }
.call-btn:hover { background: var(--grad-sage); border-color: transparent; box-shadow: none; transform: none; }
.car-track.auto-loop { scroll-snap-type: none; scroll-behavior: auto; }

/* האדר בגלילה: פס צף מזכוכית מטושטשת, במרחק שווה מלמעלה ומהצדדים */
.site-header { --float-gap: 14px; transition: background .3s, box-shadow .3s; }
.site-header::before { content: ''; position: absolute; z-index: -1; inset: var(--float-gap) var(--float-gap) 0; border-radius: 999px; background: rgba(250, 251, 249, .62); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 12px 34px -14px rgba(8, 14, 44, .28); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.site-header .wrap { transition: transform .3s; }
.site-header.scrolled, .home .site-header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; --h-fg: var(--night); --h-fg-2: var(--ink-2); --h-hover: rgba(8, 14, 44, .07); }
.site-header.scrolled::before { opacity: 1; transform: none; }
.site-header.scrolled .wrap { transform: translateY(calc(var(--float-gap) / 2)); }
.site-header.scrolled .brand-mark { color: var(--night); }
.site-header.scrolled .header-cta { background: var(--night); color: #fcfcfc; }
@media (max-width: 760px) { .site-header { --float-gap: 8px; } }

/* עמודים פנימיים: ההאדר שקוף ויושב מעל הפס הכהה של ההירו, כמו בדף הבית. בגלילה מקבל את פס הזכוכית שלמעלה */
body:has(.top-band) .site-header:not(.scrolled) { background: transparent; box-shadow: none; }
.top-band { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }

/* רווח בין כותרת לפסקה: כ-8px בעין (בין תחתית האותיות לראש השורה הבאה) */
:is(h2, h3, h4):has(+ :is(p, ul, ol)) { line-height: 1.05; }
:is(h2, h3, h4, .news-card h3) + p, .prose :is(h2, h3, h4) + :is(p, ul, ol), .news-card h3 + p { margin-top: 2px; }
/* רווח כותרת-פסקה: כ-16px בעין */
:is(h2, h3, h4, .news-card h3) + p, .prose :is(h2, h3, h4) + :is(p, ul, ol), .news-card h3 + p { margin-top: 9px; }

/* ==========================================================================
   נגישות ורספונסיביות (תקן 5568 / WCAG 2.1 AA). תיקונים בלבד, בלי שינוי עיצובי
   ========================================================================== */
/* ניגודיות: גוון "faint" כהה מעט, כדי לעמוד ב-4.5:1 על הרקעים הבהירים */
:root { --faint: #4c6f93; }

/* פוקוס גלוי גם על רקע כהה (האדר, פס עליון, פוטר, תפריט נייד) */
:is(.site-header, .top-band, .site-footer, .mobile-nav, .hero, .lightbox) :focus-visible { outline-color: var(--sage-light); }
.skip:focus-visible { outline: 3px solid var(--sage-light); outline-offset: 2px; }
.foot-form :is(input, textarea):focus-visible, .join-form input:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }
.join-form input:focus-visible { outline-color: var(--sage-deep); }

/* שדה שסומן כלא תקין */
:is(.foot-form, .join-form, #rep-form) [aria-invalid="true"]:not([type=checkbox]) { border-color: #e48a80 !important; }
:is(.foot-form, .join-form) [aria-invalid="true"][type=checkbox] { outline: 2px solid #e48a80; outline-offset: 2px; }

/* מצב הנתון ההלכתי: האפשרות שנבחרה מסומנת גם בסימן, לא רק בצבע */
.param-opts { list-style: none; padding: 0; }
.param-opts li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.param-opts li.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.param-opts li.on::before { content: '✓ '; }
.param-opts .sr-only { padding: 0; border: 0; }

/* עמוד מקום: ב-DOM הפרטים קודמים למפה (סדר קריאה ופוקוס). במחשב המפה נשארת בעמודה הראשונה */
@media (min-width: 981px) {
  .place-layout > .map-col { grid-column: 1; grid-row: 1; }
  .place-layout > .info { grid-column: 2; grid-row: 1; }
}

/* פוטר: בטלפון הטופס מתחת לכותרת, ברוחב מלא */
@media (max-width: 860px) { .foot-report { grid-template-columns: minmax(0, 1fr); } }

/* כפתור עצירת התנועה בקרוסלת החדשות */
.car-pause { margin-top: 2px; }

/* מטרות מגע של 44 פיקסלים לפחות בטלפון ובטאבלט */
@media (pointer: coarse), (max-width: 1024px) {
  .round-btn { width: 44px; height: 44px; }
  .btn, .btn-sm, .foot-form .ff-send, .jf-send, .need-insp .btn, .news-filter button, .eruv-tabs button, .seg button, .seg-pills span { min-height: 44px; }
  .map-tool, .leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
  .letters button { width: 44px; height: 44px; }
  .seg button { min-width: 44px; justify-content: center; }
  .to-map, .hero-suggest a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-links { gap: 0 18px; }
  .foot-form input:not(.rep-hp):not([type=checkbox]), .foot-form textarea, .join-form input:not([type=checkbox]):not(.rep-hp) { min-height: 44px; }
  .toolbar .search-field input, .search-onnight .search-field input { min-height: 44px; }
  .ff-check, .jf-check { min-height: 44px; align-items: center; }
}

/* הגדלת טקסט עד 200%: מילים ארוכות נשברות ולא יוצרות גלילה לרוחב */
h1, h2, h3, .prose, .desc, .contact-name, .result-name { overflow-wrap: break-word; }

/* תנועה מופחתת: גם בלי מעברים ואנימציות של גלילה */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .btn:hover .ico-go, .link:hover .ico { transform: none; }
}

/* מצב ניגודיות גבוהה של מערכת ההפעלה */
@media (forced-colors: active) {
  .btn, .round-btn, .map-tool, .param, .search-field, .sf-box { border: 1px solid CanvasText; }
  :focus-visible { outline: 2px solid Highlight !important; }
}

/* ---------- מסכים רחבים: כל האתר גדל באותו יחס ----------
   העיצוב בנוי לרוחב של כ-1280 פיקסלים. במסך רחב יותר מגדילים הכל יחד (טקסט, כפתורים, מרווחים),
   כך שמסך של 1920 נראה כמו 1280 מוגדל פי 1.5. מחשב נייד, טאבלט וטלפון לא משתנים.
   גבהים שתלויים בגובה המסך (vh) מחולקים ב--z, כדי שלא יגדלו מעבר למסך. */
:root { --z: 1; }
@media (min-width: 1440px) { :root { --z: 1.125; } }
@media (min-width: 1600px) { :root { --z: 1.25; } }
@media (min-width: 1760px) { :root { --z: 1.375; } }
@media (min-width: 1900px) { :root { --z: 1.5; } }
@media (min-width: 2240px) { :root { --z: 1.75; } }
@media (min-width: 2560px) { :root { --z: 2; } }
/* מגדילים את חלקי האתר עצמם ולא את כל המסמך: תוספים בדפדפן (מנהלי סיסמאות וכו') מוסיפים אייקונים ישירות ל-body,
   ומחשבים את המיקום בלי ההגדלה. אם כל המסמך מוגדל, האייקון נוחת רחוק מדי ויוצר שטח ריק אחרי הפוטר. */
@media (min-width: 1440px) {
  body > :is(.skip, .site-header, .mobile-nav, main, .site-footer, .palette, .lightbox, .toast, .insp-pop, .modal-backdrop, .site-credit) { zoom: var(--z); }
  html { scroll-padding-top: calc((var(--header-h) + 16px) * var(--z)); }
}
/* זכוכית בהאדר: השוליים בצדדים שווים לשוליים מעל ומתחת לכפתור (בצדדים: מהכפתור ומהלוגו עד קצה הזכוכית) */
.site-header { --edge-h: 35px; --glass-pad: calc((var(--header-h) - var(--float-gap) - var(--edge-h)) / 2); }
@media (max-width: 960px) { .site-header { --edge-h: 38px; } }
.site-header::before { inset-inline: max(var(--float-gap), calc(var(--gutter) - var(--glass-pad))); }
/* קרדיט מתחת לפוטר */
.site-credit { background: var(--paper); text-align: center; padding: 14px var(--gutter); font-size: 14px; color: var(--ink-2); }
.site-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(8, 14, 44, .3); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.site-credit a:hover { color: var(--night); border-bottom-color: var(--sage); }
@media print { .site-credit { display: none; } }
