/* TRIP-TIP · map.css · מפה עם נקודות-תמונה, כרטיס פרטים, מסלול בכרטיסים, כדור ארץ, פריסה רחבה
 * פותח ומתוחזק על ידי רוני שניידר · חתימה: Claude (TRIP-TIP thread) · 12/11/2026 · v1.2 */

/* ---------- פריסה רחבה למסך רגיל ---------- */
main { max-width: min(1760px, 100%); padding-inline: clamp(16px, 3vw, 56px); }
.topbar { padding-inline: clamp(16px, 3vw, 56px); }
.choices { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dests { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 1200px) {
  .hero3d { padding-top: 5vh; gap: 48px; }
  .scene { height: min(640px, 62vh); }
  .dossier { display: block; }
  .d-hero { min-height: 420px; }
  .cards3 { gap: 20px; }
  .safety { grid-template-columns: repeat(4, 1fr); }
}
.lead2 { color: var(--mute); margin: -4px 0 14px; }
.muted { color: var(--mute); font-size: 13px; }
.hstars { color: var(--gold); letter-spacing: 2px; }

/* ---------- כדור ארץ ---------- */
.globe-cv { display: block; margin: 0 auto; max-width: 100%; }
.hero-globe { position: absolute; inset: 0; z-index: 1; }
.hero3d .scene { height: min(600px, 60vh); min-height: 360px; perspective: none; }
.hero3d .halo { transform: none; z-index: 0; }
.globe3d { width: min(420px, 78vw); height: min(420px, 78vw); margin: 0 auto 10px; position: relative; }
.hero-globe-mini { position: absolute; top: 16px; inset-inline-end: 24px; width: 230px; height: 230px; z-index: 2; pointer-events: none; opacity: .95; }
.d-hero-in { position: relative; z-index: 3; }
.loading .globe { display: none; }

/* ---------- כפתורי סינון ---------- */
.map-ctl { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button { border: 1px solid var(--line); background: var(--glass); padding: 7px 13px; border-radius: 999px; font-size: 13.5px; transition: background .2s, border-color .2s, transform .15s; }
#dayChips button { border-bottom: 3px solid var(--c, var(--teal)); }
.chipset button:hover { transform: translateY(-1px); }
.chipset button.on { background: rgba(255,122,89,.22); border-color: var(--coral); }
#dayChips button.on { background: var(--glass2); border-color: var(--c, var(--teal)); }

/* ---------- מפה + כרטיס פרטים ---------- */
.mapwrap { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.5); background: #0e1d40; }
#map { height: clamp(520px, 80vh, 920px); border-radius: 0; border: 0; }
.mapwrap:fullscreen #map { height: 100vh; }
.pm { position: relative; width: 58px; height: 58px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s; }
.pm .pi { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c); background: linear-gradient(135deg, #223a7a, #14224a); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.85); overflow: hidden; }
.pm::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--c); border-bottom: 0; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.pm .pn { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px; background: var(--c); color: #111; font: 800 13px Heebo, sans-serif; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 2px #fff; }
.pm .pt { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; padding: 2px 9px; border-radius: 999px; font: 600 12px Heebo, sans-serif; color: #fff; background: rgba(8,16,40,.82); opacity: 0; pointer-events: none; transition: opacity .2s; }
.pm:hover { transform: scale(1.18); z-index: 5; }
.pm:hover .pt, .pm.sel .pt, .pm.itin .pt { opacity: 1; }
.pm:not(.itin) { width: 44px; height: 44px; }
.pm:not(.itin) .pi { font-size: 18px; }
.pm:not(.itin) .pt { top: 48px; }
.pm:not(.itin):not(:hover):not(.sel) .pt { opacity: 0; }
.pm.sel { transform: scale(1.3); z-index: 9; }
.pm.sel .pi { box-shadow: 0 0 0 3px var(--c), 0 0 28px var(--c), 0 8px 18px rgba(0,0,0,.6); }
.pm .pi.hasimg { font-size: 0; }

.sheet { position: absolute; z-index: 8; top: 12px; bottom: 12px; inset-inline-start: 12px; width: min(420px, calc(100% - 24px)); overflow: auto; border-radius: 20px; background: linear-gradient(180deg, rgba(18,34,74,.97), rgba(10,20,48,.97)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 80px rgba(0,0,0,.65); backdrop-filter: blur(14px); transform: translateX(0); animation: sheetin .35s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
.sheet[hidden] { display: none; }
@keyframes sheetin { from { opacity: 0; transform: translateX(30px) scale(.98); } }
.sh-img { position: relative; height: 230px; background: linear-gradient(135deg, #2b3d8f, #7a3e8e); background-size: cover; background-position: center; display: grid; place-items: center; }
.sh-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,40,.25), rgba(10,20,48,.95) 100%); }
.sh-img.hasimg::after { background: linear-gradient(180deg, rgba(8,16,40,.05) 40%, rgba(10,20,48,.96) 100%); }
.sh-emo { font-size: 64px; position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.sh-cat { position: absolute; z-index: 2; bottom: 12px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #111; background: var(--c); }
.sh-x { position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(8,16,40,.75); color: #fff; font-size: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.sh-x:hover { background: var(--coral); }
.sh-body { padding: 4px 20px 22px; display: grid; gap: 10px; }
.sh-body h3 { font-size: 26px; margin: 0; line-height: 1.15; }
.sh-body h4 { margin: 14px 0 2px; font-family: Heebo; font-weight: 700; color: var(--gold); font-size: 15px; }
.sh-sub { color: var(--mute); }
.sh-visit { font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; }
.sh-body p { margin: 0; line-height: 1.75; color: #e6ecff; }
.sh-wiki { color: #fff; }
.sh-load { color: var(--mute) !important; font-size: 13px; }
.facts { margin: 4px 0; display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--mute); } .facts dd { margin: 0; line-height: 1.5; }
.wk { width: 100%; border-collapse: collapse; font-size: 14px; }
.wk td { padding: 5px 4px; border-bottom: 1px dashed var(--line); }
.wk td:last-child { text-align: left; color: var(--teal); }
.wk-all { color: var(--teal); }
.sh-tip { background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.3); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- מסלול בכרטיסים ---------- */
.rails-h { margin-top: 30px; }
.rails-h small { color: var(--mute); font-size: 14px; font-family: Heebo; margin-inline-start: 10px; }
.rails { display: grid; gap: 18px; margin-top: 12px; }
.rail-day { border-radius: var(--r); overflow: hidden; background: var(--glassHi, none), rgba(16,30,70,.5); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 14px 16px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pcard { position: relative; flex: 0 0 auto; width: 224px; display: grid; grid-template-rows: 130px auto; text-align: right; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: rgba(10,20,48,.8); color: var(--ink); text-decoration: none; scroll-snap-align: start; padding: 0; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.pcard.mini { width: 184px; grid-template-rows: 70px auto; opacity: .92; }
.pc-img { display: grid; place-items: center; font-size: 36px; background: linear-gradient(135deg, #2b3d8f, #7a3e8e); background-size: cover; background-position: center; }
.pcard.mini .pc-img { font-size: 28px; }
.pc-time { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(8,16,40,.82); font: 400 13px 'Secular One', Heebo; color: var(--gold); }
.pc-body { padding: 10px 12px 12px; display: grid; gap: 3px; align-content: start; }
.pc-body b { font-size: 15px; line-height: 1.25; }
.pc-body small { color: var(--mute); line-height: 1.4; }
.pc-body .oh { justify-self: start; margin-top: 3px; }
.pcard:hover { border-color: var(--coral); }
.pcard:focus-visible, .pm:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.navday { display: block; text-align: center; padding: 12px; text-decoration: none; border-top: 1px solid var(--line); color: var(--teal); }

/* ---------- אירועים ---------- */
.shows { background: linear-gradient(135deg, rgba(255,93,143,.16), rgba(140,123,255,.14)); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px 16px; margin-bottom: 18px; }

/* ---------- התקדמות גלילה והופעה ---------- */
.sprog { position: fixed; top: 0; right: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral)); box-shadow: 0 0 12px rgba(255,209,102,.6); }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- נייד ---------- */
@media (max-width: 900px) {
  #map { height: 62vh; min-height: 420px; }
  .sheet { top: auto; bottom: 0; inset-inline: 0; width: 100%; max-height: 62%; border-radius: 22px 22px 0 0; animation: sheetup .35s cubic-bezier(.2,.8,.2,1); }
  @keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
  .sh-img { height: 170px; }
  .hero-globe-mini { width: 120px; height: 120px; top: 10px; }
  .pcard { width: 190px; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .sheet { animation: none; } }
@media print { .mapwrap, .map-ctl, .sprog { display: none !important; } .rail { flex-wrap: wrap; overflow: visible; } .rail-day { break-inside: avoid; } }
