/* =====================================================================
   קניון הבאר – אירועים, כרטוס והגרלות · עיצוב משותף לכל המסכים
   ירוק הקניון (כמו אתר הסביבון) + זהב להדגשות
   ===================================================================== */
:root {
  --green: #1a8238; --green-d: #105c26; --green-dd: #0b3d1a; --green-l: #e7f4eb; --green-ll: #f3faf5;
  --gold: #f2b51c; --gold-d: #a87400; --gold-l: #fff6d9;
  --ink: #17201a; --muted: #5d6b62; --faint: #8a968e;
  --bg: #f2f5f2; --card: #ffffff; --line: #e2e8e3; --line-2: #cfd8d1;
  --red: #c8281c; --red-l: #fdeceb; --amber: #b45309; --amber-l: #fff4e0;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 6px 20px rgba(16, 40, 24, .07);
  --font: -apple-system, BlinkMacSystemFont, "SF Hebrew", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  color-scheme: only light;   /* בלי "מצב כהה כפוי" של סמסונג/שיאומי/כרום שמשנה את הצבעים */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  /* כשהדפדפן גולל לשדה (פוקוס / קישור פנימי) – שלא ייעלם מתחת לבר העליון או התחתון */
  scroll-padding-top: 76px; scroll-padding-bottom: 84px; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  min-height: 100vh; min-height: 100dvh; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  overflow-wrap: break-word;   /* מילה ארוכה במיוחד לא תחרוג מהמסך */
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--green); }
[hidden] { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
/* אייפון לרוחב: התוכן לא נכנס מתחת ל"אי"/לחריץ */
.wrap, .wrap-wide { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- כותרת המותג ---------- */
.brandbar {
  background: linear-gradient(160deg, #2fae4f 0%, var(--green) 45%, var(--green-d) 100%);
  color: #fff; padding: calc(14px + env(safe-area-inset-top)) 0 14px;
}
.brandbar .wrap, .brandbar .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.2px; color: #fff; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: #ffffff22; border: 1px solid #ffffff44;
  display: grid; place-items: center; font-size: 18px;
}
.brand small { display: block; font-weight: 600; font-size: 12.5px; opacity: .85; letter-spacing: 0; }

/* ---------- כרטיסים וטפסים ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; }
.stack > * + * { margin-top: 14px; }
.field label, .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 14px; color: var(--red); margin-top: 5px; font-weight: 600; }
.input, select.input {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 18px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line-2); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 23px, 24px 23px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-left: 40px;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px #1a823822; }
.input.bad { border-color: var(--red); box-shadow: 0 0 0 4px #c8281c1a; }
.input[type=tel], .input.ltr-input { direction: ltr; text-align: right; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; min-width: 52px; min-height: 52px; border-radius: var(--radius-s); border: 1.5px solid var(--line-2);
  background: #fff; font-size: 19px; font-weight: 700; transition: background .15s, border-color .15s, transform .1s;
}
.seg button[aria-pressed=true] { background: var(--green); border-color: var(--green); color: #fff; }
.seg button:active { transform: scale(.96); }
.seg.text button { font-size: 16px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); background: #fff;
  display: grid; place-items: center; transition: background .15s, border-color .15s; margin-top: 1px;
}
.check .box::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); opacity: 0; }
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px #1a823833; }
.check span.txt { font-size: 15.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px; border-radius: 14px; font-weight: 800; font-size: 18px;
  background: var(--green); color: #fff; box-shadow: 0 2px 0 var(--green-d), 0 6px 16px #1a823833;
  transition: transform .1s, filter .15s, opacity .15s; text-decoration: none; -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.block { width: 100%; }
.btn.big { min-height: 60px; font-size: 20px; }
.btn.gold { background: linear-gradient(180deg, #ffd35c, var(--gold)); color: #3a2600; box-shadow: 0 2px 0 var(--gold-d), 0 6px 16px #f2b51c55; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.soft { background: var(--green-l); color: var(--green-d); box-shadow: none; }
.btn.danger { background: var(--red-l); color: var(--red); box-shadow: none; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 11px; }
.linkbtn { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px;
  display: inline-flex; align-items: center; min-height: 44px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #ffffff66; border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 800; background: var(--green-l); color: var(--green-d); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.badge.open { background: var(--green-l); color: var(--green-d); }
.badge.full { background: var(--amber-l); color: var(--amber); }
.badge.closed, .badge.past, .badge.started { background: #eef0ee; color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.notice { border-radius: var(--radius-s); padding: 14px 16px; font-weight: 700; }
.notice.warn { background: var(--amber-l); color: #7a3d06; }
.notice.bad { background: var(--red-l); color: #8f1c13; }
.notice.good { background: var(--green-l); color: var(--green-dd); }
.notice.info { background: #eef3ff; color: #1e3a8a; }

/* ---------- הודעות קופצות ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px);
  background: #17201aee; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 15.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #8f1c13f0; }

/* ---------- חלון (מודאל) ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; background: #0b1a1055; animation: fade .18s ease; }
.modal[hidden] { display: none; }
.modal .sheet {
  padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right));
  width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--card);
  border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease;
  overscroll-behavior: contain;
}
.modal.wide .sheet { max-width: 980px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 21px; }
.xbtn { width: 40px; height: 40px; border-radius: 50%; background: #eef1ee; font-size: 20px; flex: none; }
@media (min-width: 700px) { .modal { align-items: center; } .modal .sheet { border-radius: 22px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

/* ---------- כניסת צוות ---------- */
.login-card { max-width: 420px; margin: 40px auto 0; }
.login-card h1 { font-size: 24px; margin-bottom: 4px; }

/* =====================================================================
   מבנה האתר: רקע חגיגי, בר עליון, בר תחתון (בנייד), פוטר
   ===================================================================== */
/* רקע: ירוק הקניון (כמו אתר הסביבון) + שכבת קישוטים מצוירת (canvas – ראו KB.festiveBg).
   שכבה קבועה מאחורי הכל – עובד גם באייפון, שלא תומך ב-background-attachment: fixed */
.bg-layer { position: fixed; top: 0; right: 0; left: 0; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 45% at 100% 0%, #f2b51c2e 0%, transparent 70%),
    radial-gradient(55% 45% at 0% 100%, #f2b51c24 0%, transparent 70%),
    radial-gradient(ellipse 130% 90% at 50% -15%, #2fae4f 0%, #1f9441 38%, #177a35 68%, #0f5a28 100%); }
.bg-layer canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; }

/* מבנה עמוד: הפוטר תמיד בתחתית המסך, גם כשיש מעט תוכן */
body.site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.site > main { flex: 1 0 auto; }
body.site > .site-footer { flex-shrink: 0; }

/* בר עליון: ירוק כהה + פס זהב – נבדל מהרקע */
.site-top { position: sticky; top: 0; z-index: 100; color: #fff;
  background: linear-gradient(180deg, #0e4a23 0%, #0a3a1b 100%);
  box-shadow: 0 6px 22px #031e0c55; padding-top: env(safe-area-inset-top); }
.site-top::after { content: ""; position: absolute; top: auto; right: 0; bottom: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #c98f0a, #ffe08a 30%, #f2b51c 50%, #ffe08a 70%, #c98f0a); }
.site-top .in { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 64px; flex-wrap: wrap; }
.site-top .brand { color: #fff; }
.site-top .brand small { color: #bfe3cb; opacity: 1; }
.site-top .brand-mark { background: linear-gradient(160deg, #ffe08a, #f2b51c); border: 0; color: #3a2600; box-shadow: 0 3px 12px #f2b51c55; }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a, .topnav button { color: #e3f3e8; text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 13px; border-radius: 11px; transition: background .15s, color .15s;
  display: inline-flex; align-items: center; min-height: 40px; }
@media (hover: hover) { .topnav a:hover, .topnav button:hover { background: #ffffff1c; color: #fff; } }
.topnav a[aria-current=page] { background: linear-gradient(180deg, #ffd35c, #f2b51c); color: #3a2600; box-shadow: 0 2px 0 #a87400; }
.site-top .live-dot { color: #d9f2e1; }

/* "מידע" בבר העליון – רק בטלפון (לאורך עד 600px, או לרוחב במסך נמוך עם מסך מגע). באייפד ובמחשב – מוסתר */
.topnav .tn-info { display: none; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff30; }
@media (max-width: 600px) and (orientation: portrait), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .topnav .tn-info { display: inline-flex; }
}

.bottombar { display: none; }
/* תצוגת טלפון (בר תחתון): רק טלפונים – עד 600px לאורך. אייפד מיני לאורך (744px) מקבל תצוגת טאבלט */
@media (max-width: 600px) and (orientation: portrait) {
  .topnav .tn-main { display: none; }
  .bottombar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 100;
    background: linear-gradient(180deg, #0e4a23, #0a3a1b); padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); box-shadow: 0 -6px 22px #031e0c55; }
  .bottombar::before { content: ""; position: absolute; top: 0; right: 0; bottom: auto; left: 0; height: 2px;
    background: linear-gradient(90deg, #c98f0a, #ffe08a 30%, #f2b51c 50%, #ffe08a 70%, #c98f0a); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
    color: #bfe3cb; text-decoration: none; font-size: 12px; font-weight: 700; position: relative; }
  .bottombar .ic { font-size: 22px; line-height: 1; filter: grayscale(.35); transition: transform .15s, filter .15s; }
  .bottombar [aria-current=page] { color: #ffd35c; }
  .bottombar [aria-current=page] .ic { filter: none; transform: translateY(-1px) scale(1.1); }
  .bottombar [aria-current=page]::before { content: ""; position: absolute; top: 2px; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: #ffd35c; }
  body.has-bottombar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* בדפים עם פוטר: הפוטר עצמו נמשך מתחת לבר התחתון (בלי פס ריק בסוף הדף) */
  body.has-bottombar.has-footer { padding-bottom: 0; }
  .has-footer .site-footer .bottom { padding-bottom: calc(22px + 64px + env(safe-area-inset-bottom)); }
  /* מקלדת פתוחה: הבר התחתון נעלם (אחרת הוא צף מעל המקלדת ומסתיר את השדה), והבר העליון נגלל עם הדף */
  .typing .bottombar { display: none !important; }
  .typing .site-top { position: relative; }
}

/* פוטר: ירוק כהה מאוד + פס זהב – נבדל מהרקע */
.site-footer { position: relative; margin-top: 48px; background: linear-gradient(180deg, #0a3517 0%, #062611 100%); color: #d9ecdf; }
.site-footer::before { content: ""; position: absolute; top: 0; right: 0; bottom: auto; left: 0; height: 3px;
  background: linear-gradient(90deg, #c98f0a, #ffe08a 30%, #f2b51c 50%, #ffe08a 70%, #c98f0a); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 44px;
  padding: 44px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left)); }
.site-footer .cols > div { flex: 1 1 190px; }
.site-footer .cols > div:first-child { flex: 1.7 1 280px; }
.site-footer h4 { color: #ffd35c; font-size: 16px; margin-bottom: 10px; }
.site-footer p, .site-footer li { font-size: 14.5px; line-height: 1.6; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: none; opacity: .92; }
@media (hover: hover) { .site-footer a:hover { opacity: 1; text-decoration: underline; } }
.site-footer li a { display: inline-block; padding: 5px 0; }   /* אזור לחיצה גדול יותר בטלפון */
.site-footer ol { padding-right: 18px; display: grid; gap: 4px; font-size: 14.5px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .brand small { color: #bfe3cb; }
.site-footer .brand-mark { background: linear-gradient(160deg, #ffe08a, #f2b51c); border: 0; color: #3a2600; }
.site-footer .bottom { border-top: 1px solid #ffffff1a; padding: 16px max(16px, env(safe-area-inset-right)) 22px max(16px, env(safe-area-inset-left)); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: #a9c7b2; }
.site-footer .bottom a { color: #cfe3d5; }
.site-footer .foot-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.site-footer .foot-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.bg-toggle { color: #cfe3d5; font-size: 13px; font-weight: 700; min-height: 44px; padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* טקסט שיושב ישירות על הרקע הירוק (לא בתוך כרטיס לבן) */
.festive .page-head h1 { color: #fff; text-shadow: 0 2px 12px #031e0c66; }
.festive .page-head h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: 10px;
  background: linear-gradient(90deg, #ffe08a, #f2b51c); }
.festive .page-head p { color: #eaf8ee; text-shadow: 0 1px 8px #031e0c80; }
.festive > main .live-dot, .festive .page-head .live-dot { color: #e2f5e8; }
.festive .live-dot::before { background: #ffd35c; box-shadow: 0 0 0 0 #ffd35c99; animation-name: livepulse-gold; }
.festive .live-dot.off::before { background: #ffffff55; animation: none; }
@keyframes livepulse-gold { 70% { box-shadow: 0 0 0 8px #ffd35c00; } 100% { box-shadow: 0 0 0 0 #ffd35c00; } }
.festive .after-ticket .muted { color: #e2f5e8; }
.festive .after-ticket .linkbtn { color: #fff; }
.festive #vLoading p { color: #e2f5e8; }

/* ---------- כרטיס אירוע עם תמונה ---------- */
.ev-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: linear-gradient(160deg, #2fae4f, #105c26); }
.ev-img.ph { display: grid; place-items: center; color: #ffffffcc; font-size: 46px; }

/* =====================================================================
   ממשק ניהול: חדרים
   ===================================================================== */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 20px; padding-bottom: 40px; }
.rooms { position: sticky; top: 84px; background: #ffffffd9; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 10px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rooms h3 { font-size: 13px; color: var(--muted); padding: 4px 10px 8px; letter-spacing: .3px; }
.rooms button, .rooms a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; padding: 11px 12px; border-radius: 12px;
  font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; transition: background .15s; }
@media (hover: hover) { .rooms button:hover, .rooms a:hover { background: #f0f4f1; } }
.rooms button[aria-current=page] { background: var(--green); color: #fff; box-shadow: 0 4px 14px #1a823840; }
.rooms .ic { width: 26px; text-align: center; font-size: 18px; }
.rooms hr { border: 0; border-top: 1px solid var(--line); margin: 10px 6px; }
/* טבלה רחבה גוללת בתוך המסגרת שלה – לא מרחיבה את כל הדף */
.admin-shell > main { min-width: 0; }
.room-head { margin-bottom: 16px; }
.room-head h2 { font-size: 24px; letter-spacing: -.3px; }
.room-head p { color: var(--muted); margin-top: 2px; }
.festive .room-head h2 { color: #fff; text-shadow: 0 2px 12px #031e0c55; }
.festive .room-head p { color: #e2f5e8; }
.festive .preview-card .lbl { color: #e2f5e8; }
@media (max-width: 600px) and (orientation: portrait) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .rooms { display: none; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .admin-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 14px; }
  .rooms button, .rooms a { padding: 9px 10px; font-size: 14.5px; }
}

.upload-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .upload-grid { grid-template-columns: minmax(0, 1fr); } }
.dropzone { position: relative; border: 2px dashed #1a823855; border-radius: 16px; background: var(--green-ll); overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--green); background: var(--green-l); }
@media (hover: hover) { .dropzone:hover { border-color: var(--green); background: var(--green-l); } }
.dropzone .ph { text-align: center; color: var(--green-d); padding: 14px; }
.dropzone .ph b { display: block; font-size: 18px; margin-top: 6px; }
.dropzone .ph span { font-size: 13.5px; color: var(--muted); }
.dropzone img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; cursor: pointer; }
.img-actions { display: flex; gap: 8px; margin-top: 8px; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; font-size: 16.5px; }
.counter { font-size: 12.5px; color: var(--faint); text-align: left; margin-top: 4px; direction: ltr; }
.btn.upload { background: linear-gradient(180deg, #2fbf57, #1a8238); box-shadow: 0 3px 0 #105c26, 0 10px 24px #1a823855; font-size: 21px; min-height: 62px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--green-d); padding: 6px 0; }
.preview-card { position: sticky; top: 84px; }
.preview-card .lbl { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.preview-card .pc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.preview-card .pc .body { padding: 14px 16px 18px; }
.preview-card .pc h3 { font-size: 19px; margin: 8px 0 4px; overflow-wrap: anywhere; }
.preview-card .pc .desc { font-size: 14.5px; color: var(--ink); margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green-d); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fbf57; box-shadow: 0 0 0 0 #2fbf5788; animation: livepulse 1.8s infinite; }
.live-dot.off { color: var(--faint); } .live-dot.off::before { background: var(--faint); animation: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px #2fbf5700; } 100% { box-shadow: 0 0 0 0 #2fbf5700; } }

/* ---------- אנימציות כלליות ---------- */
.fade-in { animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =====================================================================
   התאמה לכל הטלפונים (אייפון, סמסונג, שיאומי, מתקפלים...)
   ===================================================================== */
/* אייפון: גלילת "גומי" בקצוות מגלה את רקע ה-html – צובעים אותו כמו הבר והפוטר */
html.festive-html { background: #062611; }
html.festive-html body { background: transparent; }

/* מסך צר מאוד (מסך חיצוני של גלקסי פולד ~280px, אייפון SE ראשון 320px) */
@media (max-width: 340px) {
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .seg { gap: 5px; }
  .seg button { min-width: 34px; font-size: 17px; }
  .card { padding: 18px 14px; }
  /* תיבת התמונה: גובה קבוע במקום יחס 16:9 (שהיה נמוך מדי לטקסט). לא min-height + aspect-ratio –
     כרום הופך את זה לרוחב מינימלי ומרחיב את המסך */
  .dropzone { aspect-ratio: auto; height: 170px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand small { font-size: 11.5px; }
  .topnav a, .topnav button { padding: 8px 8px; font-size: 14px; }
}

/* טלפון לרוחב (מסך נמוך): בר עליון קומפקטי שלא נשאר דבוק ותופס חצי מסך */
@media (orientation: landscape) and (max-height: 500px) {
  .site-top { position: relative; }
  .site-top .in { min-height: 52px; }
  .site-top .brand small { display: none; }
  .topnav a, .topnav button { padding: 7px 10px; font-size: 14px; }
  .rooms, .preview-card { position: static; }
  html { scroll-padding-top: 12px; scroll-padding-bottom: 12px; }
}

/* דפדפנים ישנים בלי aspect-ratio (אייפון iOS 14 ומטה) */
@supports not (aspect-ratio: 1 / 1) {
  .ev-img.ph { height: 190px; }
  .dropzone { min-height: 190px; }
}
