/* TRIP-TIP · home.css · מסך פתיחה מלא-מסך, שאלות מקובצות, התאמה לכל רזולוציה
 * פותח ומתוחזק על ידי רוני שניידר · חתימה: Claude (TRIP-TIP thread) · 12/11/2026 · v1.3 */
:root { --hh: 64px; }
.topbar { min-height: var(--hh); }

/* ---- מסך פתיחה: תופס את כל גובה המסך, בלי גלילה ---- */
.hero4 { display: flex; flex-direction: column; align-items: center; height: calc(100dvh - var(--hh) - 8px); min-height: 520px; gap: 10px; padding: 6px 0 10px; text-align: center; }
.h4-top { flex: 0 0 auto; }
.hero4 h1 { font-size: clamp(26px, 4.2vw, 56px); line-height: 1.1; margin: 8px 0 0; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.hero4 h1 .grad { display: block; font-size: .62em; }
.h4-stage { position: relative; flex: 1 1 auto; width: min(1100px, 100%); min-height: 0; border-radius: 40px; overflow: hidden; }
.h4-aurora { position: absolute; inset: -20%; z-index: 0; background: radial-gradient(40% 40% at 30% 35%, rgba(46,230,197,.28), transparent 70%), radial-gradient(45% 45% at 72% 60%, rgba(255,122,89,.30), transparent 70%), radial-gradient(35% 35% at 50% 20%, rgba(140,123,255,.32), transparent 70%); filter: blur(30px); animation: aur 14s ease-in-out infinite alternate; }
@keyframes aur { to { transform: translate3d(3%, -2%, 0) scale(1.08) rotate(3deg); } }
.hero4 .hero-globe { position: absolute; inset: 0 0 64px 0; z-index: 1; }
.h4-hint { position: absolute; top: 10px; inset-inline: 0; margin: auto; width: max-content; max-width: 92%; z-index: 3; font-size: 14px; color: #cfe0ff; background: rgba(10,20,48,.6); border: 1px solid rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); }
.h4-card { position: absolute; z-index: 4; inset-inline-start: 18px; top: 50px; width: min(280px, 70%); display: grid; gap: 6px; text-align: start; padding: 16px 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(24,44,96,.92), rgba(10,20,48,.92)); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 24px 60px rgba(0,0,0,.6); backdrop-filter: blur(12px); animation: rise .3s ease both; }
.h4-card[hidden] { display: none; }
.h4-card b { font-size: 26px; font-family: Heebo; } .h4-card small { color: #9fb0d8; }
.h4-card .cta.small { padding: 10px 16px; font-size: 15px; margin-top: 6px; }
.h4x { position: absolute; top: 8px; inset-inline-end: 8px; border: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }

/* כפתור "בואו נתכנן" בצורת מטוס */
.fly-cta { position: absolute; z-index: 5; bottom: 8px; inset-inline: 0; margin: auto; width: max-content; max-width: 94%; display: flex; align-items: center; gap: 14px; border: 0; cursor: pointer; padding: 10px 30px 10px 12px; border-radius: 999px; color: #1b1030; background: linear-gradient(120deg, #ff7a59, #ffb25a 45%, #ffd166); box-shadow: 0 14px 44px rgba(255,122,89,.55), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s; }
.fly-cta:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 60px rgba(255,122,89,.75), inset 0 2px 0 rgba(255,255,255,.55); }
.fly-cta:active { transform: translateY(1px) scale(.98); }
.fc-plane { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, #1b2a5e, #0b1433); color: #ffd166; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.45); transform: rotate(-45deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.fly-cta:hover .fc-plane { transform: rotate(-45deg) translate(5px, -5px); }
.fc-ring { position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(255,209,102,.6); animation: ping 2.4s ease-out infinite; pointer-events: none; }
@keyframes ping { from { transform: scale(.96); opacity: .9; } to { transform: scale(1.12, 1.5); opacity: 0; } }
.fc-txt { display: grid; text-align: start; line-height: 1.15; } .fc-txt b { font-size: 24px; font-family: Heebo; font-weight: 900; } .fc-txt small { font-size: 12.5px; opacity: .8; font-weight: 600; }
.h4-feat { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.h4-feat span { font-size: 13.5px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #dbe6ff; }

/* ---- שאלות: קבוצות, התאמה לגובה המסך ---- */
.wizard { display: flex; flex-direction: column; height: calc(100dvh - var(--hh) - 8px); min-height: 480px; padding: 6px 0 8px; }
.wizard .q-head { flex: 0 0 auto; margin: 8px 0 10px; }
.wizard .q-head h2 { font-size: clamp(24px, 3.4vw, 40px); }
.wizard .q-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 12px; scrollbar-width: thin; }
.wizard .q-nav { flex: 0 0 auto; margin-top: 6px; position: static; }
.wizard .chips-sum { flex: 0 0 auto; margin-top: 4px; max-height: 56px; overflow: hidden; }
.qgroup { margin: 0 0 14px; }
.qgroup h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--gold, #ffd166); letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.qgroup h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,209,102,.4), transparent); }
.qgroup .choices { grid-template-columns: repeat(auto-fill, minmax(min(168px, 44%), 1fr)); gap: 10px; }
.choice .lb { font-weight: 800; }
.choice small { font-size: 12px; line-height: 1.35; color: #aab9e0; }
.choice.rec { border-color: rgba(255,209,102,.55) !important; }
.recb { position: absolute; top: -9px; inset-inline-start: 8px; font-style: normal; font-size: 11px; font-weight: 800; color: #1b1030; background: linear-gradient(90deg, #ffd166, #ffb25a); padding: 2px 8px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.35); z-index: 2; }
.wizard .choice { padding: 12px 8px 10px; }
.wizard .choice .ic { font-size: 30px; }
@media (max-height: 760px) { .wizard .choice .ic { font-size: 24px; } .wizard .choice small { display: none; } .hero4 h1 { font-size: clamp(22px, 3.4vw, 40px); } }
@media (max-width: 700px) {
  :root { --hh: 56px; }
  .hero4 h1 { font-size: 26px; } .hero4 .hero-globe { inset: 0 0 74px 0; }
  .fc-txt b { font-size: 20px; } .fc-plane { width: 48px; height: 48px; font-size: 22px; } .fly-cta { padding-inline-end: 22px; }
  .h4-card { inset-inline: 12px; width: auto; top: 44px; }
  .h4-feat span { font-size: 12px; padding: 4px 10px; }
  .qgroup .choices { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1600px) { .h4-stage { width: min(1500px, 100%); } .hero4 h1 { font-size: clamp(34px, 3.6vw, 64px); } }

/* ---- מצב "התאמה למסך": בלי גלילה במסך הפתיחה ובשאלות ---- */
body.fit { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.fit main { flex: 1 1 auto; min-height: 0; padding-bottom: 0; }
body.fit .hero4, body.fit .wizard { height: 100%; min-height: 0; }
body.fit .foot { flex: 0 0 auto; padding: 4px 12px 6px; margin: 0; }
body.fit .foot .src { display: none; }
body.fit .credit { padding: 5px 14px; gap: 10px; border-radius: 12px; }
body.fit .credit-logo { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
body.fit .credit b { font-size: 13px; } body.fit .credit small { display: none; }
@media (max-width: 700px) { body.fit .credit b { font-size: 12px; } }

/* כרטיס מדידה בכדור */
.h4-card { width: min(330px, 78%); max-height: calc(100% - 150px); overflow: auto; top: 44px; padding: 12px 14px; }
.h4route { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; } .h4route i { font-style: normal; color: #2ee6c5; }
.h4stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.h4stats > div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 8px 10px; text-align: center; }
.h4stats b { display: block; font-size: 20px; color: #ffd166; } .h4stats small { font-size: 11.5px; }
.h4btns { display: grid; gap: 6px; margin-top: 4px; } .h4btns .ghost.small { font-size: 13px; padding: 8px 12px; }

/* ---- מחשב: רוחב מלא, בלי עמודת טלפון באמצע ---- */
@media (min-width: 1000px) {
  .wizard .q-head { text-align: center; }
  .panel { max-width: min(1280px, 100%); width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; padding: 28px 34px; }
  .panel > h4, .panel > .choices, .panel > .nights-pill, .panel > .toggle, .panel > .ages, .panel > .origin { grid-column: 1 / -1; }
  .dest-search { max-width: min(1000px, 100%); }
  .wizard .choices.big { grid-template-columns: repeat(3, 1fr); }
  .wizard .qgroup .choices { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .wizard .q-nav { max-width: 1280px; width: 100%; margin-inline: auto; }
  .chips-sum { justify-content: center; }
  .dests, .dest-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
}
@media (min-width: 1500px) { .wizard .qgroup .choices { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .wizard .choice .ic { font-size: 36px; } .wizard .choice .lb { font-size: 17px; } }

/* תיקון: ב-body.fit ה-main נמתח לכל הרוחב (לא "עמודת טלפון" במרכז) */
body.fit main { width: 100%; max-width: min(1760px, 100%); align-self: center; }

/* ====== מסך בית v1.8: לוח מידע מלא סביב הכדור, רקע דינמי, בלי מסגרת ====== */
body.home .sky .route, body.home .sky .mountains, body.home .sky .cloud, body.home .sky::before, body.home .sky::after { display: none !important; }
.hero5 { position: relative; display: grid; grid-template-columns: minmax(240px, 22%) minmax(0, 1fr) minmax(260px, 24%); gap: 20px; height: 100%; min-height: 0; padding: 6px 4px 8px; align-items: stretch; }
.h5-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.h5-bg i { position: absolute; inset: -2%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; animation: kb 22s ease-in-out infinite alternate; filter: saturate(1.15); }
.h5-bg i.on { opacity: 1; }
@keyframes kb { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.h5-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 4px; scrollbar-width: none; }
.h5-col h3 { margin: 4px 0 2px; font-size: 15px; color: var(--gold, #ffd166); font-weight: 800; }
.h5-dest, .h5-preset { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: rgba(10,20,48,.62); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); transition: transform .2s, border-color .2s, background .2s; }
.h5-dest:hover, .h5-preset:hover { transform: translateY(-2px) scale(1.015); border-color: rgba(255,209,102,.7); background: rgba(20,38,86,.78); }
.h5-ph { flex: none; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, #3a5bd9, #8c4de0) center/cover; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.h5-pi { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, rgba(255,122,89,.35), rgba(255,209,102,.3)); }
.h5-di { display: grid; gap: 2px; min-width: 0; } .h5-di b { font-size: 16px; } .h5-di small { color: #b8c6ee; font-size: 12.5px; }
.h5-preset i { margin-inline-start: auto; font-style: normal; color: #ffd166; font-size: 20px; }
.h5-wx, .h5-stats { padding: 10px 12px; border-radius: 18px; background: rgba(10,20,48,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); }
#h5wxl { display: grid; gap: 4px; font-size: 14px; } #h5wxl div { display: flex; justify-content: space-between; }
.h5-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: auto; } .h5-stats b { display: block; font-size: 22px; color: #ffd166; } .h5-stats small { color: #b8c6ee; }
.h5-mid { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; }
.h5-mid .h4-stage { flex: 1 1 auto; width: 100%; background: none; border-radius: 0; overflow: visible; }
.hero5 .hero-globe { inset: 0 0 70px 0; }
.hero5 h1 { text-shadow: 0 4px 28px rgba(0,0,0,.8); }
.hero5 .h4-hint { top: 0; }
.hero5 .h4-card { top: 36px; inset-inline-start: 0; }
@media (max-width: 1000px) { .hero5 { grid-template-columns: 1fr; } .h5-col { display: none; } .h5-bg { opacity: .8; } }
.h5-zoom { position: absolute; z-index: 4; inset-inline-end: 6px; top: 46%; display: grid; gap: 8px; }
.h5-zoom button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(10,20,48,.7); color: #fff; font-size: 22px; cursor: pointer; backdrop-filter: blur(8px); transition: transform .15s, background .15s; }
.h5-zoom button:hover { background: rgba(255,209,102,.3); transform: scale(1.08); }
@media (max-width: 700px) { .hero5 h1 { font-size: 22px; } .h5-zoom button { width: 40px; height: 40px; } }
.ver { font-size: 11px; opacity: .65; font-family: Heebo, sans-serif; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); }
