:root {
  --brand: #5e8a70;          /* מרווה ירקרק — הצבע של "ROOMI" בלוגו */
  --brand-dark: #456b52;
  --brand-light: #e7f0e8;
  --accent: #d9a441;         /* ענבר/חרדל — הצבע של "cube" והחדרים בלוגו */
  --accent-dark: #bd8a2c;
  --ink: #33403a;
  --muted: #77857c;
  --line: #e4e3db;
  --bg: #f3efe8;             /* שמנת */
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(50, 60, 45, .08);
  --shadow-lg: 0 16px 48px rgba(50, 60, 45, .16);
  /* גרדיאנט מותג אחיד (hero, שער כניסה, מסך מעבר) */
  --brand-gradient: linear-gradient(135deg, #557f68 0%, #6b9a7d 55%, #83ac8f 100%);
}

* { box-sizing: border-box; }
/* חשוב: מבטיח שאלמנטים עם hidden באמת מוסתרים ולא חוסמים גלילה/לחיצה */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Heebo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 900; letter-spacing: -.01em; }
button { font-family: inherit; cursor: pointer; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { cursor: pointer; display: flex; align-items: center; gap: 8px; direction: ltr; }
.logo-mark { height: 52px; width: auto; display: block; }
.logo-name { font-size: 1.5rem; font-weight: 900; color: var(--brand); letter-spacing: .5px; direction: ltr; }
.logo-cube { color: var(--accent); }
.auth-name { text-align: center; font-size: 2rem; font-weight: 900; letter-spacing: 1px; direction: ltr; color: var(--brand); margin-bottom: 6px; }
.auth-name span { color: var(--accent); }
.auth-logo-img { display: block; width: 62%; max-width: 190px; margin: 0 auto 2px; }
.auth-slogan { text-align: center; color: var(--accent); font-weight: 700; letter-spacing: .5px; margin-top: 2px; }
.main-nav { display: flex; gap: 8px; }
.nav-btn {
  border: none; background: transparent; color: var(--ink);
  font-size: .95rem; font-weight: 500; padding: 9px 14px; border-radius: 10px;
  transition: background .15s;
}
.nav-btn:hover { background: var(--brand-light); }
.nav-btn.accent { background: var(--brand); color: #fff; font-weight: 700; }
.nav-btn.accent:hover { background: var(--brand-dark); }

/* ===== Hero + Search ===== */
.hero {
  background: var(--brand-gradient);
  color: #fff; padding: 52px 0 90px; position: relative;
}
.hero-brand { text-align: center; margin-bottom: 18px; }
.hero-logo { display: inline-block; background: #fff; border-radius: 20px; padding: 10px 16px; box-shadow: var(--shadow); }
.hero-logo img { height: 84px; width: auto; display: block; }
.hero-slogan-en { color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: 2px; margin-top: 12px; }
.hero-slogan-he { color: #eafaf3; font-weight: 500; font-size: .95rem; }
.hero-cta { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.cta-btn { background: #fff; color: var(--brand-dark); border: none; font-weight: 800; font-size: 1rem; padding: 13px 24px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .1s; }
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn.ghost { background: rgba(255,255,255,.16); color: #fff; }
.hero h1 { font-size: 2.6rem; }

/* מסך בית — הירו בהיר עם טקסט כהה */
.home-hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); color: var(--ink); padding: 42px 0 34px; text-align: center; }
.home-hero .hero-brand { margin-bottom: 14px; }
.home-hero .hero-logo { box-shadow: 0 8px 26px rgba(50,60,45,.12); }
.home-hero .hero-slogan-en { color: var(--brand-dark); }
.home-hero .hero-slogan-he { color: var(--brand); }
.home-title { font-size: 2.3rem; color: var(--brand-dark); margin-bottom: 10px; }
.home-lead { font-size: 1.12rem; color: #0e1c14; max-width: 640px; margin: 0 auto 22px; font-weight: 500; line-height: 1.5; }
.home-hero .hero-cta { justify-content: center; }
.home-hero .cta-btn { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.home-hero .cta-btn:hover { background: var(--brand-dark); }
.home-hero .cta-btn.outline { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); }
.home-hero .cta-btn.outline:hover { background: var(--brand-light); }

/* מסך בית — אזורים */
.home-sections { padding: 30px 20px 50px; }
.home-block { margin-bottom: 36px; }
.home-block h2 { font-size: 1.5rem; margin-bottom: 2px; }
.home-sub { color: var(--muted); margin-bottom: 16px; }
.hero .subtitle { font-size: 1.1rem; opacity: .92; max-width: 620px; margin-bottom: 26px; }
.view .subtitle { color: var(--muted); }
/* תת-הכותרת בדף החיפוש (על רקע ירוק) — שחור וברור */
#view-search .subtitle { color: #111; opacity: 1; }

.search-bar {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 14px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; min-width: 120px; }
.field.small { flex: 0 1 110px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
.btn-search {
  background: var(--accent); color: #fff; border: none; font-weight: 700;
  font-size: 1rem; padding: 12px 28px; border-radius: 10px; height: 44px;
  flex: 0 0 auto; transition: transform .1s, background .15s;
}
.btn-search:hover { background: var(--accent-dark); }
.btn-search:active { transform: scale(.97); }
.hint { color: #eafaf5; font-size: .85rem; margin-top: 14px; }

/* ===== Results ===== */
.results-section { margin-top: -50px; padding-bottom: 60px; position: relative; z-index: 5; }
.results-head { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 18px; }
.results-head h2 { color: #fff; }
.results-count { color: #eafaf5; font-weight: 500; }

.cards-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { height: 200px; background: var(--brand-light); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heart-btn {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); font-size: 1.1rem; line-height: 1;
  box-shadow: var(--shadow); transition: transform .12s;
}
.heart-btn:hover { transform: scale(1.12); }
.heart-btn.on { background: #fff; }
.heart-nav { font-weight: 700; }
.user-chip { cursor: pointer; border-radius: 10px; padding: 4px 8px; transition: background .12s; }
.user-chip:hover { background: var(--brand-light); }
.profile-ok { background: #e3f6ec; color: #128046; padding: 11px 14px; border-radius: 10px; font-weight: 600; }
.card-img .no-img {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 3rem; color: #aec5b2;
}
.card-region {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,.94); color: var(--brand-dark);
  font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 20px;
}
.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-size: 1.12rem; font-weight: 700; }
.card-city { color: var(--muted); font-size: .88rem; }
.card-amenities { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag { background: var(--brand-light); color: var(--brand-dark); font-size: .74rem; padding: 3px 9px; border-radius: 8px; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.price { font-weight: 900; color: var(--brand); font-size: 1.15rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.total-price { font-size: .82rem; color: var(--accent); font-weight: 700; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--card); border-radius: var(--radius); }
.empty-icon { font-size: 3rem; margin-bottom: 8px; }

/* ===== Host form ===== */
.form-page { padding: 40px 20px 70px; max-width: 760px; }
.host-form { display: flex; flex-direction: column; gap: 18px; background: var(--card); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 18px; }
.form-section { margin: 6px 0 -4px; color: var(--brand-dark); font-size: 1.1rem; border-bottom: 2px solid var(--brand-light); padding-bottom: 6px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 14px; border-radius: 20px; font-size: .88rem; transition: all .12s;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.btn-primary {
  background: var(--brand); color: #fff; border: none; font-weight: 700; font-size: 1.05rem;
  padding: 14px; border-radius: 12px; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(.99); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.form-error { background: #ffe9e3; color: #b93816; padding: 11px 14px; border-radius: 10px; font-size: .9rem; font-weight: 500; }

/* ===== Availability editor ===== */
.avail-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.avail-row { display: flex; align-items: center; gap: 8px; }
.avail-row input[type=date] { flex: 1; font-family: inherit; font-size: .92rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.avail-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.av-sep { color: var(--muted); font-size: .85rem; }
.av-remove { border: none; background: #ffe9e3; color: #b93816; width: 30px; height: 30px; border-radius: 8px; font-size: .85rem; flex: 0 0 auto; }
.av-remove:hover { background: #ffd6ca; }
.avail-badge { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; margin: 3px 3px 0 0; }

/* ===== Payout (host) + online payment ===== */
.payout-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 22px; }
.payout-box h3 { margin: 0 0 10px; }
.payout-current { background: #e3f6ec; color: #128046; padding: 10px 13px; border-radius: 10px; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.payout-none { background: #fff8ec; color: #8a5a12; padding: 10px 13px; border-radius: 10px; font-size: .9rem; margin-bottom: 12px; }
.payout-form { display: flex; flex-direction: column; gap: 14px; }

.approx-tag { font-size: .72rem; font-weight: 700; background: #fff3e0; color: #c26a12; padding: 2px 9px; border-radius: 20px; vertical-align: middle; }
.demo-note { background: #fff3e0; color: #a5560c; border-radius: 10px; padding: 9px 13px; font-size: .84rem; font-weight: 700; margin: 8px 0; text-align: center; }
.pay-hold-note { background: var(--brand-light); color: var(--brand-dark); border-radius: 10px; padding: 11px 14px; font-size: .9rem; font-weight: 500; }
.pay-amount { font-size: 1.15rem; font-weight: 900; color: var(--brand); margin: 12px 0; }
.pay-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-badge { font-size: .8rem; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.pay-badge.await { background: #fff3e0; color: #c26a12; }
.pay-badge.hold { background: #e7f0e8; color: var(--brand-dark); }
.pay-badge.paid { background: #e3f6ec; color: #128046; }
.pay-badge.rel { background: #f0e9dc; color: #8a5a12; }

/* ===== Payment options ===== */
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; transition: all .12s; }
.pay-opt input { accent-color: var(--brand); }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.pay-opt.disabled { opacity: .6; cursor: not-allowed; background: #faf9f5; }
.soon-badge { background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; margin-inline-start: 4px; }
.hint-note { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.pay-note { background: #fff8ec; color: #8a5a12; border-radius: 10px; padding: 10px 13px; font-size: .88rem; font-weight: 500; margin-top: 10px; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,30,35,.55); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; background: var(--card); border-radius: 20px; max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); z-index: 1;
}
.modal-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  border: none; background: rgba(255,255,255,.9); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1rem; color: var(--ink); box-shadow: var(--shadow);
}
.modal-gallery { display: flex; gap: 4px; overflow-x: auto; background: var(--brand-light); }
.modal-gallery img { height: 300px; min-width: 60%; object-fit: cover; flex: 1; }
.modal-gallery .no-img { height: 300px; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #aec5b2; }
.modal-inner { padding: 24px 26px 28px; }
.modal-inner h2 { font-size: 1.6rem; }
.modal-meta { color: var(--muted); margin-bottom: 14px; }
.modal-desc { margin: 14px 0; white-space: pre-wrap; }
.info-line { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0; }
.info-line div { background: var(--bg); padding: 9px 14px; border-radius: 10px; font-weight: 500; }
.booked-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.avail-show { margin: 12px 0; font-size: .9rem; }
.map-section { margin: 16px 0; }
.map-title { font-size: 1.05rem; margin-bottom: 8px; }
.map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.place-map, .map-wrap.leaflet-container { width: 100%; height: 240px; }
.map-wrap { height: 240px; }
.results-map { height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-loading { height: 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--brand-light); }
.map-pop { width: 170px; text-align: center; font-family: 'Heebo', sans-serif; }
.map-pop-btn { margin-top: 6px; background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; width: 100%; }
.map-pop-btn:hover { background: var(--brand-dark); }

/* בורר מיקום (דקירת סיכה) */
.map-pick { height: 300px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); cursor: crosshair; }
.pick-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.pick-label { font-size: .85rem; color: var(--brand-dark); font-weight: 700; background: var(--brand-light); padding: 5px 11px; border-radius: 20px; }

/* פילטרים בחיפוש */
.search-filters { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.filter-chk { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; background: rgba(255,255,255,.15); padding: 6px 12px; border-radius: 20px; }
.filter-chk input { accent-color: var(--accent); width: 16px; height: 16px; }

/* מתג רשימה/מפה */
.view-toggle { margin-inline-start: auto; display: flex; gap: 4px; background: rgba(255,255,255,.2); border-radius: 10px; padding: 3px; }
.tg-btn { border: none; background: transparent; color: #fff; font-weight: 700; font-size: .85rem; padding: 7px 13px; border-radius: 8px; }
.tg-btn.active { background: #fff; color: var(--brand-dark); }
.map-loading { height: 240px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--brand-light); }
.map-link { display: inline-block; margin-top: 8px; font-size: .88rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.map-link:hover { color: var(--brand-dark); text-decoration: underline; }
.app-images { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.app-images img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.book-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.book-box h3 { margin-bottom: 12px; }
.book-total { font-size: 1.3rem; font-weight: 900; color: var(--brand); margin: 12px 0; }

/* ===== Confirm / farewell modal ===== */
.warn-icon { font-size: 3rem; text-align: center; }
.confirm-q { font-weight: 800; font-size: 1.1rem; margin: 14px 0 4px; text-align: center; }
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-actions button { flex: 1; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 1rem; }
.btn-danger { background: #b93816; color: #fff; border: none; }
.btn-danger:hover { background: #9c2f11; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.modal-inner.farewell { text-align: center; padding: 40px 26px; }
.farewell-emoji { font-size: 3.4rem; animation: splashPop .5s ease; }
.modal-inner.farewell h2 { color: var(--brand); margin-top: 6px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; inset-inline: 0; margin: 0 auto; width: max-content; max-width: 90%;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; z-index: 80;
  box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .25s ease;
}
.toast.err { background: #b93816; }
.toast.ok { background: var(--brand-dark); }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Footer ===== */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0; text-align: center; color: var(--muted); font-size: .9rem; margin-top: 20px; }

/* ===== Auth gate ===== */
.auth-gate {
  position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center;
  overflow-y: auto; /* מאפשר גלילה כשהטופס גבוה מהחלון */
  padding: 20px; background: var(--brand-gradient);
}
.auth-card {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; padding: 30px 28px 32px;
  margin: auto; /* ממורכז אנכית כשיש מקום, אך ניתן לגלילה כשאין */
}
.auth-brand { font-size: 1.7rem; font-weight: 900; color: var(--brand); text-align: center; }
.auth-brand span { color: var(--accent); }
.auth-sub { text-align: center; color: var(--muted); margin: 6px 0 20px; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.auth-tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-error { background: #ffe9e3; color: #b93816; padding: 10px 13px; border-radius: 10px; font-size: .88rem; font-weight: 500; }
.role-picker { display: flex; gap: 10px; }
.role-opt {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 500; transition: all .12s;
}
.role-opt input { accent-color: var(--brand); }
.role-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }

.verify-info { color: var(--muted); font-size: .92rem; text-align: center; background: var(--brand-light); padding: 12px; border-radius: 10px; }
.verify-info b { color: var(--brand-dark); }
.verify-info .devcode { display: block; margin-top: 6px; font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: .2em; }
.verify-actions { display: flex; justify-content: space-between; gap: 8px; }
.link-btn { background: none; border: none; color: var(--brand); font-weight: 700; font-size: .88rem; padding: 4px; text-decoration: underline; }
.link-btn:hover { color: var(--brand-dark); }

/* ===== Splash / loading screen (הרכבת קוביות) ===== */
.splash {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--brand-dark);
  animation: splashFade .3s ease;
}
.splash.fade-out { opacity: 0; transition: opacity .5s ease; }
.splash-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* הרכבת התמונה מחלקים שעפים פנימה */
.cube-stage { margin-bottom: 16px; }
.cube-scene { position: relative; margin: 0 auto; }
.tile {
  position: absolute;
  background-image: url('/logo.png');
  background-repeat: no-repeat;
  opacity: 0;
  transition: transform .8s cubic-bezier(.18,.72,.28,1), opacity .5s ease;
  will-change: transform, opacity;
}

.splash-brand { font-size: 2rem; font-weight: 900; letter-spacing: 1px; direction: ltr; color: var(--brand); opacity: 0; animation: splashPop .5s ease 1.6s forwards; }
.splash-brand span { color: var(--accent); }
.splash-en { font-size: 1.35rem; font-weight: 900; letter-spacing: 2px; color: var(--brand-dark); margin-top: 8px; opacity: 0; animation: splashPop .5s ease 1.9s forwards; }
.splash-he { font-size: .95rem; font-weight: 500; color: var(--muted); opacity: 0; animation: splashPop .5s ease 2.1s forwards; }

@keyframes splashFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashPop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Notifications bell ===== */
.notif-wrap { position: relative; }
.notif-bell { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 1.15rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.notif-bell:hover { border-color: var(--brand); }
.notif-bell .nav-badge { position: absolute; top: -6px; inset-inline-start: -6px; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
  width: 330px; max-width: 86vw; max-height: 62vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); z-index: 70;
}
.notif-head { font-weight: 900; padding: 14px 16px 8px; font-size: 1.05rem; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.notif-item { display: flex; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); }
.notif-item.unread { background: var(--brand-light); }
.notif-ic { font-size: 1.2rem; flex: 0 0 auto; }
.notif-body { flex: 1; }
.notif-text { font-size: .9rem; font-weight: 500; line-height: 1.35; }
.notif-time { font-size: .74rem; color: var(--muted); margin-top: 3px; }

/* ===== User box in header ===== */
.user-box { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.user-chip b { font-size: .92rem; }
.user-chip small { color: var(--muted); font-size: .72rem; }
.logout-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 500; font-size: .85rem; }
.logout-btn:hover { border-color: var(--accent); color: var(--accent); }
.delete-acct-btn { border: 1.5px solid #f3c4b6; background: #fff; color: #b93816; border-radius: 10px; padding: 8px 12px; font-weight: 500; font-size: .85rem; }
.delete-acct-btn:hover { background: #ffe9e3; }

/* ===== Dashboards ===== */
.dash-page { padding: 40px 20px 70px; }
.dash-tabs { display: flex; gap: 8px; margin: 20px 0 22px; flex-wrap: wrap; }
.dash-tab { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 18px; font-weight: 700; color: var(--muted); }
.dash-tab.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.count-badge { background: var(--accent); color: #fff; border-radius: 20px; padding: 1px 8px; font-size: .78rem; margin-inline-start: 4px; }
.dash-tab.active .count-badge { background: rgba(255,255,255,.3); }
.dash-list { display: flex; flex-direction: column; gap: 14px; }

.req-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.req-thumb { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; background: var(--brand-light); flex: 0 0 auto; }
.req-thumb.no-img { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #aec5b2; }
.req-main { flex: 1 1 220px; }
.req-main h3 { font-size: 1.1rem; margin-bottom: 4px; }
.req-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.req-price { font-weight: 900; color: var(--brand); }
.req-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.btn-approve { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 10px 18px; font-weight: 700; }
.btn-approve:hover { background: var(--brand-dark); }
.btn-reject { background: #fff; color: #b93816; border: 1.5px solid #f3c4b6; border-radius: 10px; padding: 10px 16px; font-weight: 700; }
.btn-reject:hover { background: #ffe9e3; }
.status-pill { padding: 5px 13px; border-radius: 20px; font-size: .82rem; font-weight: 700; }
.status-pending { background: #fff3e0; color: #c26a12; }
.status-approved { background: #e3f6ec; color: #128046; }
.status-rejected { background: #ffe9e3; color: #b93816; }
.status-cancelled { background: #f0e9dc; color: #8a5a12; }
.contact-note { background: var(--brand-light); color: var(--brand-dark); border-radius: 10px; padding: 9px 13px; font-size: .88rem; font-weight: 500; margin-top: 8px; width: 100%; }
.reminder-chip { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.reminder-chip.soon { background: var(--accent); color: #fff; }
.cancel-reason { background: #f7f4ee; color: #8a5a12; border-radius: 10px; padding: 8px 12px; font-size: .85rem; font-weight: 500; margin-top: 8px; }

/* ===== Admin panel ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--brand); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.stat-card.accent .stat-num { color: var(--accent); }
.app-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.app-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.app-head h3 { margin: 0; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 18px; margin: 12px 0; }
.app-grid .k { font-size: .74rem; color: var(--muted); font-weight: 700; }
.app-grid .v { font-size: .95rem; }
.app-about { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 8px 0; }
.app-facilities { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.admin-addadmin { margin-top: 34px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.admins-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-pill { background: var(--brand-light); color: var(--brand-dark); padding: 5px 12px; border-radius: 20px; font-size: .85rem; font-weight: 700; }

/* ===== Host application / status banners ===== */
.status-banner { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; font-weight: 500; }
.status-banner.pending { background: #fff3e0; color: #a5560c; }
.status-banner.rejected { background: #ffe9e3; color: #b93816; }
.status-banner.approved { background: #e3f6ec; color: #128046; }
.status-banner b { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.checkbox-field label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--brand); }
.nav-badge { background: var(--accent); color: #fff; border-radius: 20px; padding: 0 7px; font-size: .72rem; font-weight: 900; margin-inline-start: 5px; }

/* ===== Chat ===== */
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-item { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; transition: transform .1s; }
.chat-item:hover { transform: translateY(-2px); }
.chat-item.unread { border-inline-start: 4px solid var(--accent); }
.chat-item-top { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.chat-item-place { color: var(--brand-dark); font-size: .85rem; margin-top: 2px; }
.chat-item-last { color: var(--muted); font-size: .88rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.chat-item-time { color: var(--muted); font-size: .74rem; flex: 0 0 auto; }

.chat-thread { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 70vh; }
.chat-thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--brand-light); }
.chat-back { border: none; background: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.chat-thread-title { display: flex; flex-direction: column; line-height: 1.2; }
.chat-thread-title small { color: var(--brand-dark); }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-hint { text-align: center; color: var(--muted); margin: auto; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 14px; font-size: .94rem; }
.msg-time { font-size: .68rem; opacity: .7; margin-top: 3px; }
.msg.mine { align-self: flex-start; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-end; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 22px; padding: 11px 16px; font-family: inherit; font-size: .95rem; }
.chat-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.chat-send { background: var(--brand); color: #fff; border: none; border-radius: 22px; padding: 0 22px; font-weight: 700; cursor: pointer; }
.chat-send:hover { background: var(--brand-dark); }
.btn-chat { background: var(--brand-light); color: var(--brand-dark); border: none; border-radius: 10px; padding: 11px; font-weight: 700; font-size: .95rem; width: 100%; margin-bottom: 12px; cursor: pointer; }
.btn-chat:hover { background: #d3ebe5; }
.btn-chat-sm { background: var(--brand-light); color: var(--brand-dark); border: none; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.btn-chat-sm:hover { background: #d3ebe5; }
.msg-ticks { font-weight: 700; }
.msg.mine .msg-ticks { color: rgba(255,255,255,.75); }
.msg.mine .msg-ticks.read { color: #cfeee0; }

/* ===== My places (host management) ===== */
.manage-foot { display: flex; gap: 8px; margin-top: 12px; }
.manage-foot button { flex: 1; border-radius: 10px; padding: 9px; font-weight: 700; font-size: .9rem; border: 1.5px solid var(--line); }
.btn-edit { background: var(--brand-light); color: var(--brand-dark); border-color: transparent; }
.btn-edit:hover { background: #d3ebe5; }
.btn-delete { background: #fff; color: #b93816; border-color: #f3c4b6; }
.btn-delete:hover { background: #ffe9e3; }
.place-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.place-badge { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #fff3e0; color: #c26a12; }
.place-badge.ok { background: #e3f6ec; color: #128046; }

/* ביטול הזמנה */
.btn-cancel { background: #fff; color: #b93816; border: 1.5px solid #f3c4b6; border-radius: 10px; padding: 9px 16px; font-weight: 700; }
.btn-cancel:hover { background: #ffe9e3; }

/* עריכה: תמונות קיימות */
.edit-existing { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.edit-thumb { position: relative; }
.edit-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.edit-thumb button { position: absolute; top: -6px; inset-inline-start: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #b93816; color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; }
.edit-thumb.removed img { opacity: .3; filter: grayscale(1); }

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .btn-search { width: 100%; }
  .field.small { flex: 1 1 auto; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .user-chip { align-items: flex-start; }
  .logo-slogan { display: none; }
}
