/* ===== עיר על תילה — סגנון משותף ===== */

@font-face { font-family: "Masada"; src: url("../assets/fonts/masada-light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Masada"; src: url("../assets/fonts/masada-book.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Masada"; src: url("../assets/fonts/masada-medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Masada"; src: url("../assets/fonts/masada-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Masada"; src: url("../assets/fonts/masada-bolditalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --stone: #b6aeac;
  --blue: #2a4590;
  --brown: #5d413f;
  --sage: #9ba78f;
  --lime: #d7da17;
  --red: #e84d2f;
  --earth: #583832;            /* חום של מסך המעבר */

  --ink: var(--blue);          /* צבע טקסט נוכחי */
  --page-x: 100px;             /* שוליים צדדיים בדסקטופ */
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: "Masada", "Arial Hebrew", Arial, sans-serif;
  font-weight: 400;
  background: var(--stone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== לוגו ===== */
.logo { display: block; color: var(--ink); line-height: 0; }
.logo svg { width: 100%; height: auto; display: block; }
.logo svg path { fill: currentColor; transition: fill .15s; }

/* לוגו קטן בפינה (תוכניה, מפה) */
.corner-logo {
  position: fixed;
  top: 68px;
  left: var(--page-x);
  width: 290px;
  z-index: 20;
}
.corner-logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }

/* ===== ניווט תחתון: תוכניה ——— מפה ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  width: min(1035px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 30;
  font-size: 20px;
  color: var(--ink);
}
.bottom-nav a {
  text-decoration: none;
  white-space: nowrap;
  font-weight: 400;
  padding: 6px 0;
  transition: letter-spacing .2s;
}
.bottom-nav a:hover { letter-spacing: .04em; }
.bottom-nav a[aria-current="page"] { font-weight: 700; font-style: italic; }
.bottom-nav .rule {
  flex: 1;
  height: 2px;
  background: currentColor;
}
.bottom-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ===================================================== */
/* ===== בית ===== */
/* ===================================================== */
.home {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--stone);
  transition: none;
}
.home .stage-wrap {
  position: fixed; inset: 0; overflow: hidden;
  pointer-events: none;
}
/* במה בגודל עיצוב ה-Figma (1920×950), מוגדלת כדי לכסות את המסך */
.home .stage {
  position: absolute;
  top: 50%; left: 50%;
  width: 1920px; height: 950px;
  transform: translate(-50%, -50%) scale(var(--cover, 1));
  transform-origin: center center;
}
.bg-state {
  position: absolute; inset: 0;
  visibility: hidden;
}
.bg-state.is-on { visibility: visible; }
.bg-state img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
}

.home-logo {
  position: fixed;
  left: 50%;
  top: 45.4%;
  transform: translate(-50%, -50%);
  width: min(26.7vw, 45.4vh);
  min-width: 220px;
  z-index: 10;
}

/* ===================================================== */
/* ===== תוכניה ===== */
/* ===================================================== */
.program-page {
  min-height: 100vh;
  padding: 213px 0 220px;
  position: relative;
}
.day { margin-bottom: 120px; }
.day:last-of-type { margin-bottom: 0; }

.day-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  margin: 0 245px 35px var(--page-x);
}
.day-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}
.day-title .date { margin-inline-start: .45em; }

/* כפתור עגול בשפה של נקודות המפה: עיגול צהוב 42px, טקסט כחול מהפונט */
.round-btn {
  font-family: inherit;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--lime);
  color: var(--blue);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1.3), background .15s, color .15s, opacity .15s;
}
.round-btn span { display: block; transform: translateY(-3px); }
.round-btn:hover { background: var(--blue); color: var(--lime); transform: scale(1.08); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .3; pointer-events: none; }
.round-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.row-arrows { display: flex; gap: 10px; }

.row {
  display: flex;
  gap: 60px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 245px 10px 0;
  scrollbar-width: none;
  cursor: grab;
}
.row::-webkit-scrollbar { display: none; }
.row.is-dragging { cursor: grabbing; }
.row.is-dragging .card { pointer-events: none; }
.row::after { content: ""; flex: 0 0 40px; } /* מרווח בסוף השורה */

.card {
  flex: 0 0 315px;
  scroll-snap-align: start;
  color: var(--blue);
  cursor: pointer;
}
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.row.is-dragging { user-select: none; }
.card-img {
  width: 315px;
  height: 192px;
  overflow: hidden;
  background: rgba(42, 69, 144, .12);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  -webkit-user-drag: none;
  user-select: none;
}
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding-top: 35px; }
.card-meta { margin: 0 0 20px; font-size: 15px; line-height: 1.2; }
.card-title {
  margin: 0;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  font-style: italic;
}
.card-desc { margin: 0 0 20px; font-size: 20px; line-height: 22px; font-weight: 400; }
.card-place { margin: 0; font-size: 15px; line-height: 1.2; }
.card-place a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.card-place a:hover { border-color: currentColor; }

/* ===== חלון קופץ לאירוע ===== */
.modal-open, .modal-open body { overflow: hidden; }

.ev-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 4vh 16px;
}
.ev-modal[hidden] { display: none; }

.ev-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(88, 56, 50, .62);
  opacity: 0;
  transition: opacity .3s;
}
.ev-modal.is-open .ev-backdrop { opacity: 1; }

/* חלון ריבועי: התמונה היא הרקע, ועליה תיבה אפרפרה עם הפרטים */
.ev-shell {
  --S: min(88vh, 88vw, 820px);
  position: relative;
  width: var(--S);
  height: var(--S);
  color: var(--blue);
  overflow: hidden;
}

.ev-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ev-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.ev-modal.is-full .ev-media img { opacity: 1; }
.ev-media.is-hidden img { opacity: 0 !important; }

.ev-fly {
  position: fixed;
  z-index: 600;
  object-fit: cover;
  pointer-events: none;
  max-width: none;
}

.ev-close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  opacity: 0;
  transition: opacity .2s, transform .2s cubic-bezier(.2,.8,.2,1.3), background .15s;
}
.ev-modal.is-full .ev-close { opacity: 1; transition-delay: .2s, 0s, 0s; }
.round-btn .x { position: relative; width: 18px; height: 18px; transform: none; }
.round-btn .x::before, .round-btn .x::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 3px;
  background: currentColor;
  transform: rotate(45deg);
}
.round-btn .x::after { transform: rotate(-45deg); }

/* רכיבים של מגירת המובייל במפה, מוסתרים בדסקטופ */
.sheet-close, .map-intro-m { display: none; }

.ev-body {
  position: absolute;
  right: calc(var(--S) * .045);
  bottom: calc(var(--S) * .045);
  z-index: 2;
  width: calc(var(--S) * .6);
  max-height: calc(var(--S) * .91);
  overflow: hidden;
  background: var(--stone);
  padding: calc(var(--S) * .045) calc(var(--S) * .05);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.ev-modal.is-full .ev-body { opacity: 1; transform: none; transition-delay: .08s; }

/* שבירת שורות מאוזנת, בלי מילה בודדת בשורה האחרונה */
.ev-title, .ev-lead { text-wrap: balance; }
.ev-long, .ev-facts dd { text-wrap: pretty; }

.ev-meta { margin: 0 0 14px; font-size: 15px; }
.ev-meta .sep { margin: 0 .5em; }
.ev-title {
  margin: 0 0 6px;
  font-size: clamp(26px, calc(var(--S) * .046), 38px);
  line-height: 1.05;
  font-weight: 700;
  font-style: italic;
  max-width: 16ch;
}
/* משפט משנה: Masada Medium */
.ev-lead {
  margin: 0 0 16px;
  font-size: clamp(17px, calc(var(--S) * .025), 21px);
  line-height: 1.25;
  font-weight: 500;
  max-width: 30ch;
}
.ev-long {
  margin: 0;
  font-size: clamp(16px, calc(var(--S) * .023), 19px);
  line-height: 1.38;
  font-weight: 300;
  max-width: 36ch;     /* שורות לא ארוכות מדי */
}

/* בלי קו מעל הפרטים: רק רווח */
.ev-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
  gap: 22px 56px;
  margin: calc(var(--S) * .04) 0 calc(var(--S) * .042);
}
.ev-facts dt { font-size: 14px; margin-bottom: 6px; }
.ev-facts dd { line-height: 1.25; }
.ev-facts dd { margin: 0; font-size: 17px; font-weight: 700; font-style: italic; }
.ev-facts a { text-decoration: none; border-bottom: 2px solid currentColor; }

.ev-buy {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  color: var(--blue);
  background: var(--lime);
  border: 0;
  border-radius: 26.5px;
  padding: 12px 30px 10px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .2s cubic-bezier(.2,.8,.2,1.3);
}
.ev-buy:hover { background: var(--blue); color: var(--lime); transform: scale(1.04); }
.ev-buy:active { transform: scale(.97); }
.ev-buy:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ===================================================== */
/* ===== מפה ===== */
/* ===================================================== */
.map-page {
  height: 100vh;
  height: 100svh;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}
.map-panel {
  position: absolute;
  top: clamp(250px, 41.5vh, 394px);
  left: var(--page-x);
  width: 290px;
  z-index: 15;
}
.panel-inner { transition: opacity .25s, transform .25s; }
.panel-inner.is-switching { opacity: 0; transform: translateY(8px); }

.panel-img {
  width: 290px; height: 191px;
  object-fit: cover;
  margin-bottom: 37px;
  background: rgba(42, 69, 144, .12);
}
.panel-title {
  margin: 0;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  font-style: italic;
}
.panel-text { margin: 0; font-size: 20px; line-height: 22px; font-weight: 300; }
.panel-nav {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.panel-nav:hover { letter-spacing: .04em; }

.panel-intro .intro-title {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: .95;
  font-weight: 700;
  font-style: italic;
}
.panel-intro .intro-line { width: 290px; height: 5px; background: var(--blue); margin-bottom: 26px; }
.legend { list-style: none; padding: 0; margin: 26px 0 0; font-size: 16px; }
.legend li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.legend .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.legend .dot.fill { background: var(--lime); }
.legend .dot.ring { border: 2px solid var(--lime); }
.legend .dot.street { background: var(--red); }
.legend .dot.park { background: var(--brown); }

/* המסגרת שבתוכה המפה זזה וגדלה (לא עולה על הפאנל שבצד) */
.map-viewport {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: calc(var(--page-x) + 310px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.map-viewport.is-dragging { cursor: grabbing; }
.map-viewport.is-dragging .pin { cursor: grabbing; }

.map-wrap {
  position: absolute;
  top: -49px;
  left: max(0px, calc(23.8vw - var(--page-x) - 310px));   /* המיקום מה-Figma: 457/1920 */
  width: min(64.46vw, calc((100vh - 110px) * 1.509));
  aspect-ratio: 1237.57 / 820;
  transform-origin: 0 0;
  will-change: transform;
}
.map-wrap.is-animating { transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.map-wrap > img { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* כפתורי שליטה: למעלה מימין, בגובה הלוגו */
.map-controls {
  position: fixed;
  top: 68px;
  right: var(--page-x);
  z-index: 25;
  display: flex;
  gap: 10px;
}
.map-controls [data-zoom] { margin-inline-start: 8px; }
.map-controls [data-zoom="out"] { margin-inline-start: 0; }

.panel-fig { margin: 0 0 clamp(14px, 3vh, 30px); }
.panel-fig .panel-img { margin: 0; height: clamp(120px, 19vh, 191px); }
.panel-credit { margin-top: 6px; font-size: 12px; line-height: 1.3; opacity: .75; }

.pin {
  position: absolute;
  width: 3.413%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--pz, 1));
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--lime);
  color: var(--blue);
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(13px, 1.04vw, 20px);
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1.3), background .15s, color .15s;
}
.pin span { transform: translateY(1px); }
.pin:hover { transform: translate(-50%, -50%) scale(calc(var(--pz, 1) * 1.18)); }
.pin.is-active { background: var(--blue); color: var(--lime); z-index: 4; }
/* הנקודה שמעליה העכבר (והתווית שלה) תמיד מעל הנקודות השכנות */
.pin:hover, .pin:focus-visible { z-index: 6; }
.pin:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pin::after { /* תווית שם במעבר עכבר */
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--blue);
  color: var(--stone);
  font-size: 15px;
  font-weight: 400;
  padding: 6px 10px 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.pin:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================================================== */
/* ===== מסכים קטנים יותר ===== */
/* ===================================================== */
@media (max-width: 1500px) {
  :root { --page-x: 64px; }
  .day-head { margin-right: 64px; }
  .row { padding-right: 64px; }
}

@media (max-width: 1200px) {
  .map-panel { width: 240px; top: 330px; }
  .panel-img, .panel-intro .intro-line { width: 240px; }
  .panel-img { height: 158px; margin-bottom: 24px; }
  .panel-text, .panel-title { font-size: 18px; line-height: 21px; }
  .corner-logo { width: 240px; top: 48px; }
  .map-viewport { left: calc(var(--page-x) + 260px); }
  .map-wrap { left: 0; width: calc(100vw - var(--page-x) - 280px); }
}

/* ===== מובייל וטאבלט ===== */
@media (max-width: 860px) {
  :root { --page-x: 16px; }

  .bottom-nav {
    bottom: 0;
    width: 100%;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    font-size: 18px;
  }
  /* פס אפרפר מאחורי הניווט כדי שיהיה קריא מעל הכרטיסים והמפה */
  .program-body .bottom-nav,
  .map-page-body .bottom-nav {
    background: var(--stone);
  }

  .corner-logo { top: 20px; left: 16px; width: 120px; position: absolute; }

  /* בית */
  .home-logo { width: min(68vw, 46vh); min-width: 0; top: 46%; }
  .home .bottom-nav { bottom: 28px; padding-bottom: 14px; background: none; }

  /* תוכניה */
  .program-page { padding: 150px 0 110px; }
  .day { margin-bottom: 64px; }
  .day-head { margin: 0 16px 22px; }
  .day-title { font-size: 26px; }
  .row-arrows { display: none; }
  .row { gap: 20px; padding: 0 16px 6px 0; scroll-snap-type: x mandatory; cursor: auto; scroll-padding-inline: 16px; }
  .row::after { flex-basis: 0; }
  .card { flex-basis: min(78vw, 315px); }
  .card-img { width: 100%; height: auto; aspect-ratio: 315 / 192; }
  .card-body { padding-top: 20px; }
  .card-meta { margin-bottom: 12px; }
  .card-title, .card-desc { font-size: 18px; line-height: 21px; }
  .card-desc { margin-bottom: 12px; }

  /* חלון האירוע במובייל: כרטיס אנכי, התמונה ברקע ותיבת הפרטים בתחתית */
  .ev-modal { padding: 16px; }
  .ev-shell {
    --S: calc(100vw - 32px);
    width: var(--S);
    height: min(88svh, calc(var(--S) * 2));
  }
  .ev-body {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100% - 72px);
    overflow-y: auto;
    scrollbar-width: none;
    padding: 20px 20px 22px;
  }
  .ev-body::-webkit-scrollbar { display: none; }
  .ev-title { font-size: 26px; }
  .ev-lead { font-size: 17px; }
  .ev-long { font-size: 16px; }
  .ev-facts { gap: 16px 36px; margin: 20px 0 22px; }

  /* מפה */
  .map-page { height: auto; min-height: 100svh; overflow: visible; padding: 145px 0 120px; display: flex; flex-direction: column; }
  .map-viewport { position: relative; left: auto; top: auto; bottom: auto; height: 62svh; margin: 0 0 24px; }
  .map-wrap { top: 0; left: 0; width: 200vw; }
  .map-controls { position: absolute; top: 26px; right: 16px; gap: 6px; }
  .map-controls .round-btn { width: 36px; height: 36px; font-size: 30px; }
  .pin { width: 34px; font-size: 15px; }
  .pin::after { display: none; }
  .map-intro-m { display: block; margin: 0 16px; font-size: 18px; line-height: 23px; font-weight: 300; max-width: 34ch; }

  /* מגירה שעולה מלמטה מעל התוכן */
  .map-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    z-index: 40;
    max-height: 78svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background: var(--stone);
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .42s cubic-bezier(.3, .7, .2, 1), visibility 0s linear .42s;
  }
  .map-panel::-webkit-scrollbar { display: none; }
  .map-page.has-place .map-panel {
    transform: none;
    visibility: visible;
    transition: transform .42s cubic-bezier(.3, .7, .2, 1), visibility 0s;
  }
  .sheet-close { display: grid; position: absolute; top: 14px; left: 14px; z-index: 2; }
  .map-panel .panel-fig { margin-bottom: 16px; }
  .map-panel .panel-fig .panel-img { width: calc(100% - 56px); height: auto; aspect-ratio: 290 / 191; max-height: 34svh; }
  .map-panel .panel-text { max-width: 36ch; }
  .panel-img { width: 100%; height: auto; aspect-ratio: 290 / 191; }
  .panel-intro .intro-title { font-size: 36px; }
}

/* ===================================================== */
/* ===== מסך טעינה ומעבר בין עמודים ===== */
/* ===================================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: auto;
}
.is-ready .curtain { pointer-events: none; }

.curtain-cols {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.curtain-cols span {
  flex: 1 1 0;
  background: var(--earth, #583832);
  box-shadow: 1px 0 0 var(--earth), -1px 0 0 var(--earth);   /* בלי סדקים בין המלבנים */
  transform: translateY(0);
  transition: transform .52s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.is-ready .curtain-cols span { transform: translateY(101%); }
.is-leaving .curtain-cols span { transform: translateY(0); }

.curtain-logo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(22vw, 38vh);
  min-width: 170px;
  transform: translate(-50%, -50%);
  color: var(--lime);
  transition: opacity .25s;
}
.curtain-logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.curtain-logo path {
  fill: currentColor;
  opacity: 0;
  transform: translateY(24px);
  animation: logo-in .5s cubic-bezier(.2, .8, .2, 1) forwards;
}
/* כל מילה בלוגו נבנית בתורה */
.curtain-logo g:nth-of-type(1) path { animation-delay: .15s; }
.curtain-logo g:nth-of-type(2) path { animation-delay: .45s; }
.curtain-logo g:nth-of-type(3) path { animation-delay: .75s; }@keyframes logo-in { to { opacity: 1; transform: none; } }

.curtain-line {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: min(1035px, calc(100% - 32px));
  height: 2px;
  transform: translateX(-50%);
  overflow: hidden;
}
.curtain-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  animation: line-in 1.3s cubic-bezier(.6, 0, .2, 1) .1s forwards;
}
@keyframes line-in { to { transform: scaleX(1); } }

/* לוגו מלא בלי אנימציית בנייה (במעבר בין עמודים) */
.logo-static .curtain-logo path { animation: none; opacity: 1; transform: none; }
.logo-static .curtain-line::before { animation: none; transform: scaleX(1); }

.intro-out .curtain-logo,
.intro-out .curtain-line { opacity: 0; transition: opacity .25s; }

/* ביציאה מעמוד: הלוגו מופיע רק אחרי שהמלבנים כיסו את המסך */
.is-ready .curtain-logo,
.is-ready .curtain-line { opacity: 0; }
.is-leaving .curtain-logo,
.is-leaving .curtain-line { opacity: 1; transition: opacity .25s ease .95s; }
@media (max-width: 1099px) {
  .is-leaving .curtain-logo,
  .is-leaving .curtain-line { transition-delay: .82s; }
}

/* טאבלט / אייפד: התיבה האפרפרה צרה יותר, צמודה לימין, כדי שהשורות לא יהיו ארוכות */
@media (min-width: 600px) and (max-width: 860px) {
  .ev-shell { height: min(88svh, calc(var(--S) * 1.35)); }
  .ev-body { left: auto; right: 24px; bottom: 24px; width: min(420px, 60%); padding: 28px 30px 30px; }
  .ev-title { font-size: 30px; }
  .ev-lead { font-size: 19px; }
  .ev-long { font-size: 17px; }

  /* מגירת המפה: התוכן בעמודה צרה */
  .map-panel .panel-inner { max-width: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
