/* ============================================================
   Shevy Travels - גיליון סגנון ראשי
   פלטה: "הרפתקה" - שקיעה כתומה, ג'ונגל עמוק, חול ולגונה
   ============================================================ */

:root {
  /* --- צבעים --- */
  --ink:        #07161a;   /* רקע כהה מאוד */
  --ink-2:      #0c2229;   /* רקע כהה משני */
  --ink-3:      #123039;   /* כרטיסים על רקע כהה */
  --sand:       #f6ecdc;   /* רקע בהיר */
  --sand-2:     #ece0cb;
  --cream:      #fffaf2;

  --ember:      #ff6b35;   /* כתום שקיעה - צבע ראשי */
  --ember-dark: #e04f1c;
  --amber:      #ffc145;   /* צהוב-זהב - הדגשות */
  --lagoon:     #2ec4b6;   /* טורקיז - אקסנט */
  --lagoon-dk:  #17998f;
  --clay:       #c1440e;

  --text:       #10242a;
  --text-soft:  #4a6169;
  --text-invert:#f4efe6;
  --text-invert-soft: rgba(244,239,230,0.72);

  --line:       rgba(16,36,42,0.12);
  --line-dark:  rgba(255,255,255,0.10);

  /* --- טיפוגרפיה --- */
  --font-display: "Secular One", "Arial Hebrew", sans-serif;
  --font-body:    "Assistant", "Segoe UI", Arial, sans-serif;

  /* --- מידות --- */
  --wrap:  1200px;
  --pad:   clamp(1rem, 4vw, 3rem);
  --r-sm:  10px;
  --r:     18px;
  --r-lg:  28px;

  --shadow:    0 10px 30px rgba(7,22,26,0.10);
  --shadow-lg: 0 24px 60px rgba(7,22,26,0.22);

  --header-h: 74px;
}

/* ============ בסיס ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--sand);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

img, video, canvas { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.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;
}

/* ============ כפתורים ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .82em 1.7em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--clay));
  color: #fff;
  box-shadow: 0 10px 26px rgba(255,107,53,0.35);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255,107,53,0.45); }

.btn-ghost {
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.06);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: #fff; }

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: var(--ink-2); }

.btn-lagoon {
  background: var(--lagoon);
  color: #04292a;
  box-shadow: 0 10px 26px rgba(46,196,182,0.3);
}

.btn-sm { padding: .6em 1.2em; font-size: .92rem; }

/* ============ תגיות וכותרות מקטע ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--ember);
  border-radius: 2px;
}
.on-dark .eyebrow { color: var(--amber); }
.on-dark .eyebrow::before { background: var(--amber); }

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }
.on-dark { background: var(--ink); color: var(--text-invert); }
.on-dark .section-head p { color: var(--text-invert-soft); }

/* ============ כותרת עליונה ============ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(7,22,26,0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--amber), var(--ember), var(--lagoon), var(--amber));
  display: grid; place-items: center;
  font-size: 1rem;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.logo small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; opacity: .7; line-height: 1; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: rgba(255,255,255,0.86);
  font-size: .97rem;
  position: relative;
  padding-block: .3em;
}
.nav a::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--amber);
  transition: width .22s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; color: #fff; font-size: 1.6rem; padding: .2em .4em; }

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-inline-start: auto; }
  .nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    background: rgba(7,22,26,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad) 2rem;
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    border-block-end: 1px solid var(--line-dark);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .85em 0; border-block-end: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: kenburns 14s ease-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
.hero-slide video, .hero-slide img { width: 100%; height: 100%; object-fit: cover; }

@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(0,-1.5%,0); }
}

.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(7,22,26,0.96) 0%, rgba(7,22,26,0.55) 42%, rgba(7,22,26,0.28) 100%),
    radial-gradient(90% 70% at 80% 20%, rgba(255,107,53,0.20), transparent 60%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad) clamp(3rem, 8vh, 6rem);
}
.hero-inner .eyebrow { color: var(--amber); }
.hero-inner .eyebrow::before { background: var(--amber); }

.hero h1 { max-width: 15ch; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--amber), var(--ember));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-dots {
  position: absolute; z-index: 3;
  inset-block-end: 1.6rem; inset-inline-start: var(--pad);
  display: flex; gap: .5rem;
}
.hero-dots button {
  width: 30px; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,0.32);
  transition: background .25s ease, width .25s ease;
}
.hero-dots button.active { background: var(--amber); width: 46px; }

.scroll-hint {
  position: absolute; z-index: 3;
  inset-block-end: 1.4rem; inset-inline-end: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .74rem; letter-spacing: .16em; color: rgba(255,255,255,.6);
}
.scroll-hint span:last-child { animation: bob 1.8s ease-in-out infinite; font-size: 1.1rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ פס נתונים ============ */
.stats {
  background: var(--ink-2);
  color: var(--text-invert);
  border-block: 1px solid var(--line-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-dark);
}
.stat {
  background: var(--ink-2);
  padding: 2rem 1rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--amber), var(--ember));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: .93rem; color: var(--text-invert-soft); }

/* ============ הרצאות ============ */
.talks { background: var(--cream); position: relative; }
.talks::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--amber), var(--lagoon));
}

.talk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.talk-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  border: 1px solid var(--line);
}
.talk-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.talk-thumb {
  aspect-ratio: 16/10;
  position: relative;
  display: grid; place-items: center;
  font-size: 3.6rem;
  color: #fff;
}
.talk-card:nth-child(1) .talk-thumb { background: linear-gradient(140deg, #ff6b35, #c1440e); }
.talk-card:nth-child(2) .talk-thumb { background: linear-gradient(140deg, #2ec4b6, #0e6b70); }
.talk-card:nth-child(3) .talk-thumb { background: linear-gradient(140deg, #ffc145, #e0821c); }
.talk-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 55%);
}
.talk-body { padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.talk-body h3 { margin-bottom: .4rem; }
.talk-body p { color: var(--text-soft); font-size: .98rem; flex: 1; }

.talk-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1rem;
}
.chip {
  font-size: .8rem;
  padding: .3em .85em;
  border-radius: 999px;
  background: rgba(46,196,182,0.14);
  color: var(--lagoon-dk);
  font-weight: 600;
}
.chip.warm { background: rgba(255,107,53,0.13); color: var(--ember-dark); }

.talks-cta {
  margin-top: 2.5rem;
  background: linear-gradient(120deg, var(--ink), var(--ink-3));
  color: var(--text-invert);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  justify-content: space-between;
}
.talks-cta h3 { margin: 0 0 .3rem; }
.talks-cta p { margin: 0; color: var(--text-invert-soft); }

/* ============ הגלובוס ============ */
/* ============ מקטע המפה: חלל ============ */
.map-section {
  position: relative;
  overflow: hidden;
  color: var(--text-invert);
  /* ערפיליות רחוקות על רקע כמעט־שחור */
  background:
    radial-gradient(62% 46% at 80% 6%,   rgba(124,58,196,0.26), transparent 62%),
    radial-gradient(54% 44% at 12% 84%,  rgba(0,138,190,0.20),  transparent 64%),
    radial-gradient(74% 58% at 46% 44%,  rgba(22,46,84,0.55),   transparent 74%),
    #020509;
}

/* שדה כוכבים */
/* שדה הכוכבים הנע. שלוש שכבות באותה תבנית, בגדלים ובמהירויות
   שונות - וזה מה שיוצר את תחושת העומק (פרלקסה). התזוזה בכל
   שכבה שווה בדיוק לגודל האריח, ולכן הלולאה חלקה ובלי קפיצה. */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='31' cy='57' r='1.1' opacity='.75'/%3E%3Ccircle cx='118' cy='22' r='.7' opacity='.5'/%3E%3Ccircle cx='196' cy='91' r='1.3' opacity='.85'/%3E%3Ccircle cx='268' cy='38' r='.6' opacity='.45'/%3E%3Ccircle cx='341' cy='120' r='1' opacity='.7'/%3E%3Ccircle cx='412' cy='47' r='.8' opacity='.55'/%3E%3Ccircle cx='488' cy='103' r='1.4' opacity='.9'/%3E%3Ccircle cx='559' cy='29' r='.7' opacity='.5'/%3E%3Ccircle cx='631' cy='88' r='1' opacity='.65'/%3E%3Ccircle cx='677' cy='150' r='.6' opacity='.4'/%3E%3Ccircle cx='58' cy='168' r='.9' opacity='.6'/%3E%3Ccircle cx='143' cy='214' r='1.2' opacity='.8'/%3E%3Ccircle cx='229' cy='177' r='.6' opacity='.45'/%3E%3Ccircle cx='305' cy='241' r='1' opacity='.7'/%3E%3Ccircle cx='389' cy='199' r='.7' opacity='.5'/%3E%3Ccircle cx='466' cy='258' r='1.3' opacity='.85'/%3E%3Ccircle cx='541' cy='212' r='.8' opacity='.55'/%3E%3Ccircle cx='618' cy='273' r='1' opacity='.7'/%3E%3Ccircle cx='24' cy='299' r='.7' opacity='.5'/%3E%3Ccircle cx='101' cy='352' r='1.1' opacity='.75'/%3E%3Ccircle cx='187' cy='318' r='.6' opacity='.4'/%3E%3Ccircle cx='262' cy='389' r='1.4' opacity='.9'/%3E%3Ccircle cx='348' cy='334' r='.8' opacity='.55'/%3E%3Ccircle cx='424' cy='401' r='1' opacity='.68'/%3E%3Ccircle cx='509' cy='347' r='.7' opacity='.48'/%3E%3Ccircle cx='585' cy='412' r='1.2' opacity='.8'/%3E%3Ccircle cx='661' cy='358' r='.9' opacity='.6'/%3E%3Ccircle cx='47' cy='441' r='1' opacity='.7'/%3E%3Ccircle cx='132' cy='487' r='.6' opacity='.42'/%3E%3Ccircle cx='218' cy='453' r='1.3' opacity='.85'/%3E%3Ccircle cx='294' cy='519' r='.8' opacity='.55'/%3E%3Ccircle cx='371' cy='466' r='1' opacity='.7'/%3E%3Ccircle cx='455' cy='531' r='.7' opacity='.48'/%3E%3Ccircle cx='532' cy='478' r='1.1' opacity='.75'/%3E%3Ccircle cx='608' cy='544' r='.6' opacity='.4'/%3E%3Ccircle cx='684' cy='491' r='1.2' opacity='.8'/%3E%3Ccircle cx='69' cy='578' r='.8' opacity='.55'/%3E%3Ccircle cx='155' cy='623' r='1' opacity='.68'/%3E%3Ccircle cx='241' cy='592' r='.7' opacity='.45'/%3E%3Ccircle cx='318' cy='657' r='1.3' opacity='.85'/%3E%3Ccircle cx='402' cy='604' r='.6' opacity='.42'/%3E%3Ccircle cx='478' cy='669' r='1' opacity='.7'/%3E%3Ccircle cx='563' cy='616' r='.9' opacity='.6'/%3E%3Ccircle cx='639' cy='681' r='1.1' opacity='.75'/%3E%3C/g%3E%3C/svg%3E");
}
.star-layer {
  position: absolute;
  inset: -1100px;
  background-image: var(--stars);
  background-repeat: repeat;
  will-change: transform;
}
.star-layer.l1 {
  background-size: 700px 700px;
  opacity: .85;
  animation: driftA 150s linear infinite;
}
.star-layer.l2 {
  background-size: 430px 430px;
  opacity: .5;
  animation: driftB 95s linear infinite;
}
.star-layer.l3 {
  background-size: 1000px 1000px;
  opacity: .35;
  animation: driftC 240s linear infinite;
}
@keyframes driftA {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-700px, -700px, 0); }
}
@keyframes driftB {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(430px, -430px, 0); }
}
@keyframes driftC {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -1000px, 0); }
}

/* מטאורים - חולפים מדי פעם, לא ברצף */
.meteor {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}
.meteor::after {
  content: "";
  position: absolute;
  top: 50%; left: 2px;
  width: 96px; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(255,255,255,.8), transparent);
}
@keyframes meteor {
  0%           { opacity: 0; transform: translate3d(0, 0, 0); }
  3%           { opacity: 1; }
  16%          { opacity: 1; }
  22%, 100%    { opacity: 0; transform: translate3d(-340px, 230px, 0); }
}
.meteor.m1 { top: 11%; right: 6%;  animation: meteor 15s linear infinite 3s; }
.meteor.m2 { top: 34%; right: 44%; animation: meteor 21s linear infinite 11s; }
.meteor.m3 { top: 7%;  right: 74%; animation: meteor 27s linear infinite 19s; }

/* רמז לשביל החלב, באלכסון */
.map-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg,
    transparent 32%,
    rgba(150,190,255,0.055) 47%,
    rgba(190,170,255,0.035) 54%,
    transparent 66%);
}

/* התוכן מעל שכבות הרקע */
.map-section > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .star-layer, .meteor { animation: none !important; }
  .meteor { display: none; }
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 980px) {
  .map-layout { grid-template-columns: 1fr; }
}

.globe-stage {
  position: relative;
  aspect-ratio: 1;
  max-height: 74vh;
  width: 100%;
  margin-inline: auto;
}
#globe { width: 100%; height: 100%; touch-action: none; outline: none; }
#globe:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 50%; }

.globe-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-invert-soft);
  font-size: .95rem;
  gap: .8rem;
}
.globe-loading .spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.globe-tip {
  position: absolute;
  pointer-events: none;
  padding: .35em .8em;
  border-radius: 999px;
  background: rgba(7,22,26,.92);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: .88rem;
  white-space: nowrap;
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 5;
}
.globe-tip.show { opacity: 1; }

.globe-hint {
  text-align: center;
  font-size: .88rem;
  color: var(--text-invert-soft);
  margin-top: .8rem;
}
.globe-hint kbd {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  padding: .1em .5em;
  font-family: inherit;
  font-size: .85em;
}

/* ============ הלשונית שליד הגלובוס ============ */
.rail-tabs {
  display: flex;
  gap: .3rem;
  padding: .3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.rail-tabs button {
  flex: 1;
  padding: .55em .6em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .92rem;
  color: rgba(255,255,255,.62);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.rail-tabs button:hover { color: #fff; }
.rail-tabs button.active {
  background: linear-gradient(135deg, var(--ember), var(--clay));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,107,53,.32);
}

.rail-panel {
  display: none;
  flex-direction: column;
  gap: .3rem;
  max-height: 52vh;
  overflow-y: auto;
  padding-inline-end: .4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.rail-panel.active { display: flex; }
.rail-panel::-webkit-scrollbar { width: 6px; }
.rail-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

.rail-panel button {
  display: flex; align-items: center; gap: .7rem;
  width: 100%;
  padding: .6em .8em;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.86);
  text-align: start;
  transition: background .18s ease, color .18s ease;
  font-size: .98rem;
}
.rail-panel button:hover,
.rail-panel button.active {
  background: rgba(255,107,53,.16);
  color: #fff;
}
.rail-panel button.active { box-shadow: inset 0 0 0 1px rgba(255,107,53,.5); }
.rail-panel .flag { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.rail-panel .yr { margin-inline-start: auto; font-size: .8rem; opacity: .55; }


/* פריט בטאב "סיפורים נבחרים" */
.story-item { align-items: flex-start !important; padding: .7em .8em !important; }
.story-item .si-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.story-item .si-txt b { font-weight: 600; font-size: .97rem; }
.story-item .si-txt span { font-size: .82rem; opacity: .6; }

@media (max-width: 980px) {
  .rail-panel { max-height: 40vh; }
  .rail-tabs { max-width: 420px; }
}

/* ============ מגירת המדינה ============ */
/* ============ חלון המדינה: מודאל במרכז המסך ============ */
/* הרקע הדהוי - מכהה ומטשטש את כל האתר שמאחור */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,9,14,.72);
  backdrop-filter: blur(9px) saturate(.7);
  -webkit-backdrop-filter: blur(9px) saturate(.7);
  opacity: 0; pointer-events: none;
  transition: opacity .55s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* שכבת המרכוז */
.drawer {
  position: fixed; inset: 0; z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 2.5rem);
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear .5s;
}
.drawer.open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

/* החלון עצמו - נפתח בזום־אין עם זוהר */
.drawer-inner {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 940px);
  background: var(--cream);
  color: var(--text);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(.88) translateY(24px);
  opacity: 0;
  box-shadow:
    0 40px 120px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.08);
  transition:
    transform .62s cubic-bezier(.16,.84,.24,1),
    opacity .42s ease,
    box-shadow .62s ease;
}
.drawer.open .drawer-inner {
  transform: none;
  opacity: 1;
  /* הזוהר שנדלק סביב החלון כשהוא נפתח */
  box-shadow:
    0 40px 120px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 90px rgba(255,138,79,.28);
}

.drawer-head {
  position: relative;
  padding: 2.2rem var(--pad) 1.4rem;
  background: linear-gradient(140deg, var(--ink), var(--ink-3));
  color: var(--text-invert);
  flex-shrink: 0;
}
.drawer-head h2 { margin-bottom: .2rem; }
.drawer-head .tagline { color: var(--amber); margin: 0; font-size: 1.02rem; }
.drawer-head .yr {
  display: inline-block; margin-top: .7rem;
  font-size: .82rem; letter-spacing: .1em;
  padding: .25em .9em; border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.drawer-close {
  position: absolute;
  inset-block-start: 1rem; inset-inline-end: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.3rem;
  transition: background .2s ease, transform .2s ease;
}
.drawer-close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.8rem var(--pad) 2.5rem; }

.media-frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.media-frame.ratio-16-9 { aspect-ratio: 16/9; }
.media-frame.ratio-9-16 { aspect-ratio: 9/16; max-height: 70vh; margin-inline: auto; }
.media-frame iframe, .media-frame video { width: 100%; height: 100%; border: 0; }

.media-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--r);
  border: 2px dashed rgba(16,36,42,.2);
  background: repeating-linear-gradient(45deg, rgba(46,196,182,.06) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; text-align: center;
  color: var(--text-soft);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.media-placeholder b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: .3rem; }

.story { margin-bottom: 2rem; }
.story h3 {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .5rem;
}
.story h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember); flex-shrink: 0;
}
.story p { color: var(--text-soft); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .6rem;
  margin-top: .9rem;
}
.photo-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-sm);
  cursor: zoom-in;
  transition: transform .25s ease;
}
.photo-grid img:hover { transform: scale(1.04); }

.drawer-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ============ ליווי טיולים ============ */
.trips-section { background: var(--sand); }
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.trip-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.trip-card:hover { transform: translateY(-6px); }
.trip-card .num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(255,107,53,.16);
  position: absolute;
  inset-block-start: .6rem; inset-inline-end: 1.1rem;
}
.trip-card .icon { font-size: 2rem; margin-bottom: .7rem; }
.trip-card h3 { margin-bottom: .35rem; }
.trip-card p { color: var(--text-soft); font-size: .97rem; margin: 0; }

/* ============ המלצות ============ */
.quotes { background: var(--ink); color: var(--text-invert); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.3rem;
}
.quote {
  background: var(--ink-3);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line-dark);
}
.quote .stars { color: var(--amber); margin-bottom: .6rem; letter-spacing: .1em; }
.quote p { font-size: 1.02rem; }
.quote footer { color: var(--text-invert-soft); font-size: .9rem; }
.quote footer b { color: var(--amber); font-weight: 600; }

/* ============ טופס יצירת קשר ============ */
.contact { background: var(--cream); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-links { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.contact-links a {
  display: flex; align-items: center; gap: .8rem;
  padding: .9em 1.1em;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.contact-links a:hover { transform: translateX(-4px); border-color: var(--ember); }
.contact-links .ic { font-size: 1.3rem; }
.contact-links b { display: block; font-family: var(--font-display); font-weight: 400; }
.contact-links span { font-size: .88rem; color: var(--text-soft); }

.form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .8em 1em;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgba(255,107,53,.13);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form-note { font-size: .84rem; color: var(--text-soft); text-align: center; margin: .9rem 0 0; }
.form-status { margin-top: .9rem; font-size: .95rem; text-align: center; }
.form-status.ok { color: var(--lagoon-dk); font-weight: 600; }
.form-status.err { color: var(--clay); font-weight: 600; }

/* ============ פוטר ============ */
.site-footer {
  background: var(--ink);
  color: var(--text-invert-soft);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text-invert); font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.site-footer a:hover { color: var(--amber); }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  font-size: 1.15rem;
  transition: background .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--ember); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .86rem;
}

/* ============ אנימציית כניסה ============ */
/* מוסתר רק אם JS רץ (המחלקה .js נוספת ב-<head>).
   אחרת, אם משהו נתקע בטעינת הסקריפט, כל האתר היה נשאר שקוף. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============ לייטבוקס לתמונות ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4,12,15,.94);
  display: none; place-items: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--r); object-fit: contain; }

/* ============ תגיות ביקורים וסיפורים ============ */
/* ראש המגירה: תגית לכל ביקור */
.drawer-head .yr {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: .8rem;
  padding: 0; background: none; border-radius: 0;
}
.drawer-head .yr span {
  font-size: .8rem; letter-spacing: .06em;
  padding: .25em .85em; border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.14);
}

/* שנת הביקור לצד כותרת הסיפור */
.story-year {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .04em;
  padding: .2em .7em; border-radius: 999px;
  background: rgba(46,196,182,.16);
  color: var(--lagoon-dk);
}

/* הדגשה זמנית כשמגיעים לסיפור מהלשונית */
.story.highlight {
  border-radius: var(--r);
  animation: storyPulse 2.4s ease;
}
@keyframes storyPulse {
  0%, 100% { background: transparent; box-shadow: none; }
  12%, 58% {
    background: rgba(255,193,69,.15);
    box-shadow: 0 0 0 12px rgba(255,193,69,.15);
  }
}

.globe-tip.is-trip { border-color: rgba(255,107,53,.55); }

/* ============ דגלים ============ */
/* נטען רק אם הדפדפן לא מרנדר דגלים בעצמו (בעיקר ווינדוס) */
.needs-flag-font .flag {
  font-family: "Noto Color Emoji", sans-serif;
}
/* אם גם הגופן נכשל - מסתירים במקום להציג "CO" */
.no-flags .flag { display: none !important; }

/* ============ גריד וידאו אנכי ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.video-grid.single {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}
.video-grid .media-frame { margin-bottom: 0; }

.media-frame { position: relative; margin: 0 0 1.5rem; }
.media-frame.ratio-9-16 { max-height: none; }
.media-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem .8rem .6rem;
  font-size: .84rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  pointer-events: none;
}

/* הדגשה זמנית של סרטון שהגיעו אליו מהלשונית */
.media-frame.highlight {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ============ פריט וידאו בלשונית ============ */
.video-item { align-items: center !important; }
.vi-thumb {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: .8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ember), var(--clay));
}
.rail-empty {
  font-size: .88rem;
  color: var(--text-invert-soft);
  line-height: 1.6;
  margin: .4rem .3rem;
}
.rail-empty code {
  background: rgba(255,255,255,.1);
  padding: .1em .45em;
  border-radius: 5px;
  font-size: .92em;
  direction: ltr;
  display: inline-block;
}

/* שלושה טאבים - מעט צר יותר */
.rail-tabs button { font-size: .82rem; padding: .6em .5em; }

/* ============ כפתורי הזום בגלובוס ============ */
.globe-zoom {
  position: absolute;
  inset-block-end: 4%;
  inset-inline-start: 2%;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  z-index: 4;
}
.globe-zoom button {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255,255,255,.85);
  background: rgba(10,26,36,.62);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.globe-zoom button:hover {
  background: rgba(255,138,79,.85);
  color: #fff;
  transform: scale(1.08);
}
.globe-zoom button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.globe-zoom button[data-zoom="reset"] { font-size: .95rem; }

/* ============ דגל לצד שם המדינה בחלון ============ */
.drawer-head h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .2rem;
}
.drawer-head h2 .flag {
  font-size: 1.9rem;
  line-height: 1;
  flex-shrink: 0;
}
