/* ============================================================
 * css-owner.css  —  Owner Area ("אזור אישי")
 * Section 1: integration glue (gallery editor, auth tabs, google btn,
 *   pending banner, villa switcher, gamify block, admin guards).
 * Section 2: MOCKUP DESIGN SYSTEM (authoritative; merged from
 *   owner-editor.css + owner-screens.css + owner-gamify.css).
 *   Appended last so mockup rules win on shared class names.
 * Build: scripts concat; do not hand-edit Section 2 — rerun the build.
 * ============================================================ */

/* ===== SECTION 1: integration glue (prior, preserved) ===== */
/* ============================================================
   תפוסה מלאה · אזור אישי (Owner Area)
   נשען על css-chrome (טוקנים + reset). מוסיף topbar/sidebar/screens.
   ============================================================ */

/* ============ Gamification block (edit screen — Round 5) ============ */
.gam-block{ background:linear-gradient(135deg,#FFF8DF 0%,#FFF2EA 100%); border:1px solid #F8E29A; border-radius:24px; padding:22px 24px; margin:0 0 22px; box-shadow:0 4px 16px rgba(180,140,60,.10); }
.gam-top{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.completion{ display:flex; align-items:center; gap:18px; flex:1 1 320px; min-width:0; }
.completion svg{ flex:none; }
.completion-tx{ flex:1 1 auto; min-width:0; }
.ctx-title{ font-family:"Rubik",sans-serif; font-weight:800; font-size:18px; color:#3B342A; margin-bottom:10px; line-height:1.3; }
.strength{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.strength .seg{ width:38px; height:8px; border-radius:999px; background:#F0E7D2; }
.strength.strength-weak  .seg-1{ background:#E26D6D; }
.strength.strength-good  .seg-1, .strength.strength-good  .seg-2{ background:#F4D472; }
.strength.strength-great .seg{ background:#7FB893; }
.strength-l{ margin-inline-start:8px; color:#5A5145; font-size:13.5px; font-weight:600; }
.strength-l b{ color:#3B342A; font-weight:800; }

.badges{ display:flex; gap:10px; flex-wrap:wrap; }
.badge{ display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px; background:#FFFDF8; border:1.5px solid #F0E7D2; font-size:13.5px; font-weight:700; transition:transform .2s ease, box-shadow .2s ease; }
.badge svg{ flex:none; }
.badge.unlocked{ background:linear-gradient(135deg,#FFF8DF,#FCEFC0); border-color:#F4D472; color:#5A4607; box-shadow:0 4px 12px rgba(239,195,74,.18); }
.badge.locked{ opacity:.55; color:#8C8273; }

.gam-checklist{ margin-top:16px; background:rgba(255,253,248,.7); border-radius:16px; padding:14px 18px; }
.gam-checklist .gcl-h{ font-weight:800; color:#3B342A; margin-bottom:8px; font-size:14.5px; }
.gam-checklist ul{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:6px 18px; }
@media(max-width:640px){ .gam-checklist ul{ grid-template-columns:1fr; } }
.gam-checklist li{ display:flex; align-items:center; gap:10px; padding:5px 0; font-size:14px; color:#5A5145; }
.gam-checklist li.done .gcl-l{ color:#5A5145; }
.gam-checklist li.todo .gcl-l{ color:#3B342A; }
.gam-checklist .gcl-tick{ flex:none; width:18px; height:18px; display:grid; place-items:center; }
.gam-checklist .gcl-l{ flex:0 1 auto; min-width:0; }
.gam-checklist .gcl-jump{ flex:none; margin-inline-start:6px; color:#E68A5C; font-weight:700; text-decoration:none; font-size:13px; white-space:nowrap; }
.gam-checklist .gcl-jump:hover{ text-decoration:underline; }

.gam-tip{ margin-top:14px; display:flex; align-items:center; gap:10px; background:rgba(255,242,234,.85); border:1px solid #FFD0B6; border-radius:14px; padding:11px 14px; color:#8A4B2C; font-weight:600; font-size:13.5px; }
.gam-tip svg{ flex:none; }
.gam-tip span{ flex:1 1 auto; min-width:0; }

/* Achievements header (Round B — "ההישגים שלכם X מתוך 4") */
.gam-achv{ flex:1 1 360px; min-width:0; }
.gm-ach-h{ margin:0 0 12px; font-family:"Rubik",sans-serif; font-weight:800; font-size:15px; color:#3B342A; }
.gm-ach-n{ font-weight:800; color:#5A4607; background:#FFF8DF; border:1px solid #F4D472; border-radius:999px; padding:2px 11px; margin-inline-start:6px; font-size:13.5px; }

/* "איך לבלוט" rotating tips carousel (Round B) */
.gm-tips{ position:relative; margin-top:16px; min-height:74px; background:rgba(255,253,248,.85); border:1px solid #F8E29A; border-radius:14px; padding:13px 16px; }
.gm-tips-h{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:14px; color:#8A4B2C; margin-bottom:8px; }
.gm-tips-h svg{ flex:none; }
.gm-tip{ display:none; margin:0; font-size:13.5px; line-height:1.55; color:#5A5145; font-weight:600; }
.gm-tip.on{ display:block; animation:gmTipIn .4s ease; }
@keyframes gmTipIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* Mobile (#16): medals stack 2x2, ring centered, tips readable */
@media(max-width:560px){
  .gam-block{ padding:18px 16px; }
  .gam-top{ gap:18px; justify-content:center; }
  .completion{ flex:1 1 100%; justify-content:center; text-align:center; }
  .gam-achv{ flex:1 1 100%; }
  .badges{ display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
  .badge{ justify-content:center; }
  .gm-tip{ font-size:13px; }
}


:root{
  --topbar-h:64px; --sidebar-w:248px;
  --r-pill:999px; --r-sm:12px; --r-md:16px; --r-lg:22px; --r-xl:30px;
  --shadow-xs:0 1px 3px rgba(60,42,24,.06);
  --shadow-pop:0 18px 50px rgba(60,42,24,.22);
  --line-soft:#F0E7D6;
  --butter-50:var(--amber-50); --butter-100:var(--amber-100); --butter-300:var(--amber-300); --butter-400:var(--amber-600); --butter-500:var(--amber-700); --butter-600:var(--amber-800); --butter-ink:var(--amber-800);
  --peach-50:#FCF1E6; --peach-100:var(--peach-bg); --peach-200:var(--peach-line); --peach-300:#E89B6C; --peach-400:#C9743F; --peach-ink:#A0541C;
  --mint:#5BB089; --mint-deep:#2E7D5B; --mint-50:#E3F0E9;
  --white:#FFFFFF; --line-strong:#E2D6BC;
}

/* Owner page swaps the V3 site-foot + site-hdr for an app shell */
body.tfusa-owner{ background:var(--sand-50); }
body.tfusa-owner .site-hdr, body.tfusa-owner .site-foot, body.tfusa-owner .bottom-bar, body.tfusa-owner .m-searchbar, body.tfusa-owner #drawer, body.tfusa-owner #fav-pop, body.tfusa-owner #search-sheet, body.tfusa-owner #scrim{ display:none !important; }

/* ============ TOPBAR ============ */
.own-topbar{
  position:sticky; top:0; z-index:30;
  background:rgba(255,253,248,.92); backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line-soft); height:var(--topbar-h);
  display:flex; align-items:center; gap:16px;
  padding:0 22px;
}
.admin-bar .own-topbar{ top:32px; }
@media(max-width:782px){ .admin-bar .own-topbar{ top:46px; } }
.own-topbar .tb-brand{ display:inline-flex; align-items:center; gap:9px; font-family:var(--serif); font-weight:800; color:var(--ink-900); }
.own-topbar .tb-brand img{ height:34px; width:auto; display:block; }
.own-topbar .tb-burger{
  width:42px; height:42px; border-radius:12px; border:1.5px solid var(--line); background:var(--cream);
  display:none; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-900);
}
.own-topbar .tb-burger svg{ width:21px; height:21px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
@media(max-width:880px){ .own-topbar .tb-burger{ display:inline-flex; } }
.own-topbar .tb-page{display:flex; align-items:center; gap:12px; min-width:0;}
.own-topbar .tb-page .tp-ic{ width:38px; height:38px; flex:none; border-radius:12px; background:var(--butter-50); display:grid; place-items:center; }
.own-topbar .tb-page .tp-ic svg{ width:20px; height:20px; stroke:var(--butter-500); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.own-topbar .tb-page .tp-tx{ min-width:0; }
.own-topbar .tb-page .tp-tx b{ display:block; font-family:var(--serif); font-weight:800; font-size:17px; color:var(--ink-900); line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.own-topbar .tb-page .tp-tx span{ font-size:12.5px; color:var(--ink-500); white-space:nowrap; }
.own-topbar .tb-spacer{ flex:1; }
.own-topbar .tb-save{ display:inline-flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-500); padding:7px 13px; border-radius:999px; background:var(--mint-50); color:var(--mint-deep); font-weight:700; }
.own-topbar .tb-save svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2.4; stroke-linecap:round; }
.own-topbar .tb-user{ display:flex; align-items:center; gap:9px; padding:5px 6px 5px 13px; background:var(--cream); border:1.5px solid var(--line); border-radius:999px; cursor:pointer; text-decoration:none; color:inherit; }
.own-topbar .tb-user .av{ width:32px; height:32px; border-radius:50%; flex:none; background:linear-gradient(150deg, var(--peach-300), var(--butter-300)); display:grid; place-items:center; font-family:var(--serif); font-weight:800; color:#fff; font-size:14px; }
.own-topbar .tb-user .un{ font-size:13.5px; font-weight:600; color:var(--ink-900); }
@media(max-width:560px){ .own-topbar .tb-user .un{ display:none; } }

/* ============ SHELL ============ */
.own-shell{ display:grid; grid-template-columns:var(--sidebar-w) 1fr; min-height:calc(100vh - var(--topbar-h)); }
@media(max-width:880px){ .own-shell{ grid-template-columns:1fr; } }

/* ============ SIDEBAR ============ */
.own-side{
  background:var(--cream); border-inline-end:1px solid var(--line-soft);
  padding:22px 16px; position:sticky; top:var(--topbar-h);
  align-self:start; max-height:calc(100vh - var(--topbar-h)); overflow-y:auto;
}
.admin-bar .own-side{ top:calc(var(--topbar-h) + 32px); max-height:calc(100vh - var(--topbar-h) - 32px); }
@media(max-width:880px){
  .own-side{ position:fixed; top:var(--topbar-h); inset-inline-start:0; bottom:0; width:280px; z-index:90; transform:translateX(100%); transition:transform .26s var(--ease); box-shadow:-12px 0 32px rgba(60,42,24,.18); }
  body.tfusa-owner.side-open .own-side{ transform:none; }
  .own-side-scrim{ position:fixed; inset:0; background:rgba(20,12,4,.4); opacity:0; pointer-events:none; transition:opacity .22s; z-index:80; }
  body.tfusa-owner.side-open .own-side-scrim{ opacity:1; pointer-events:auto; }
}
.sb-group-label{ font-size:11px; font-weight:800; letter-spacing:.12em; color:var(--ink-300); text-transform:uppercase; padding:14px 12px 8px; }
.sb-nav{ display:flex; flex-direction:column; gap:2px; }
.sb-nav a{ display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:13px; color:var(--ink-700); font-size:14.5px; font-weight:600; transition:background .14s, color .14s; }
.sb-nav a svg{ width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.sb-nav a:hover{ background:var(--sand-100); color:var(--ink-900); }
.sb-nav a.on{ background:var(--butter-50); color:var(--butter-ink); }
.sb-nav .sb-badge{ margin-inline-start:auto; background:var(--peach-100); color:var(--peach-400); font-size:11.5px; font-weight:800; padding:2px 8px; border-radius:999px; }
.sb-help{ margin-top:22px; padding:16px; background:linear-gradient(150deg, var(--peach-50), var(--butter-50)); border:1px solid var(--peach-100); border-radius:18px; }
.sb-help h5{ font-size:14px; font-weight:700; margin-bottom:5px; }
.sb-help p{ font-size:12.5px; color:var(--ink-500); margin-bottom:12px; line-height:1.5; }
.sb-help .btn{ width:100%; justify-content:center; padding:10px; font-size:13.5px; }

/* ============ MAIN CANVAS ============ */
.own-main{ padding:28px 24px 60px; min-width:0; }
@media(max-width:560px){ .own-main{ padding:20px 16px 40px; } }
.own-canvas{ max-width:840px; margin:0 auto; }
.own-canvas-wide{ max-width:1080px; margin:0 auto; }
.scr-head{ margin:2px 4px 22px; }
.scr-head h1{ font-size:clamp(24px,4vw,30px); font-weight:800; margin-bottom:6px; }
.scr-head p{ color:var(--ink-500); font-size:14.5px; max-width:60ch; line-height:1.5; }
.scr-head .villa-pill{ display:inline-flex; align-items:center; gap:7px; background:var(--butter-50); border:1px solid var(--butter-100); color:var(--butter-ink); font-size:12.5px; font-weight:700; padding:5px 11px; border-radius:999px; margin-bottom:12px; }
.scr-head .villa-pill svg{ width:14px; height:14px; stroke:currentColor; stroke-width:2; fill:none; }

/* shared panel */
.panel{ background:var(--white); border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow-xs); padding:24px; margin-bottom:20px; }
@media(max-width:560px){ .panel{ padding:18px 16px; border-radius:18px; } }
.panel-head{ display:flex; align-items:flex-start; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.panel-head h2{ font-size:18px; font-weight:700; }
.panel-head .ph-sub{ font-size:13px; color:var(--ink-500); margin-top:3px; }

/* metrics */
.metrics{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
@media(max-width:860px){ .metrics{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:420px){ .metrics{ grid-template-columns:1fr; } }
.metric{ background:var(--white); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-xs); padding:18px; }
.metric .m-ic{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; margin-bottom:12px; }
.metric .m-ic svg{ width:21px; height:21px; stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.metric .m-ic.views{ background:var(--butter-50); } .metric .m-ic.views svg{ stroke:var(--butter-500); }
.metric .m-ic.wa{ background:var(--mint-50); } .metric .m-ic.wa svg{ stroke:var(--mint-deep); }
.metric .m-ic.tel{ background:var(--peach-50); } .metric .m-ic.tel svg{ stroke:var(--peach-400); }
.metric .m-ic.fav{ background:#FBEAF0; } .metric .m-ic.fav svg{ stroke:#D6709A; }
.metric .m-val{ font-family:var(--serif); font-weight:800; font-size:28px; color:var(--ink-900); line-height:1; }
.metric .m-lab{ font-size:13px; color:var(--ink-500); margin-top:5px; }

/* villa-list card on dashboard */
.own-villa-list{ display:flex; flex-direction:column; gap:12px; }
.own-villa-row{ display:flex; align-items:center; gap:14px; padding:13px 14px; border-radius:16px; background:var(--cream); border:1px solid var(--line); transition:border-color .15s, background .15s; }
.own-villa-row:hover{ border-color:var(--butter-300); background:var(--butter-50); }
.own-villa-row .ovr-img{ width:60px; height:60px; flex:none; border-radius:12px; background-size:cover; background-position:center; border:1px solid var(--line); background-color:var(--sand-100); }
.own-villa-row .ovr-body{ flex:1; min-width:0; }
.own-villa-row .ovr-name{ font-weight:700; font-size:15.5px; color:var(--ink-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.own-villa-row .ovr-meta{ font-size:12.5px; color:var(--ink-500); margin-top:3px; }
.own-villa-row .ovr-actions{ display:flex; gap:7px; flex:none; }
.own-villa-row .ovr-actions a, .own-villa-row .ovr-actions button{ padding:8px 13px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink-700); font-size:13px; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.own-villa-row .ovr-actions a:hover{ border-color:var(--butter-400); color:var(--butter-ink); }
.own-villa-row .status-pill{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:3px 9px; border-radius:999px; }
.own-villa-row .status-pill.live{ background:var(--mint-50); color:var(--mint-deep); }
.own-villa-row .status-pill.pending{ background:var(--peach-50); color:var(--peach-400); }
.own-villa-row .status-pill.draft{ background:var(--sand-100); color:var(--ink-500); }

/* ============ FORM (edit-villa + settings) ============ */
.field{ display:block; margin-bottom:14px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color:var(--ink-700); margin-bottom:6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number], .field input[type=url], .field input[type=password], .field textarea, .field select{
  width:100%; box-sizing:border-box; padding:12px 14px;
  background:var(--cream); border:1.5px solid var(--line); border-radius:12px;
  font:inherit; font-size:14.5px; color:var(--ink-900);
  transition:border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--butter-400); background:var(--white); }
.field textarea{ min-height:120px; resize:vertical; line-height:1.55; }
.field .hint{ font-size:12px; color:var(--ink-500); margin-top:6px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.amen-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
@media(max-width:680px){ .amen-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:420px){ .amen-grid{ grid-template-columns:1fr; } }
.amen-chip{ display:flex; align-items:center; gap:10px; padding:11px 13px; background:var(--cream); border:1.5px solid var(--line); border-radius:14px; cursor:pointer; transition:all .14s; }
.amen-chip input{ position:absolute; opacity:0; pointer-events:none; }
.amen-chip:has(input:checked){ background:var(--butter-50); border-color:var(--butter-400); color:var(--butter-ink); }
.amen-chip .ac-tick{ width:18px; height:18px; border-radius:6px; border:1.5px solid var(--ink-300); display:grid; place-items:center; flex:none; }
.amen-chip:has(input:checked) .ac-tick{ background:var(--butter-400); border-color:var(--butter-400); color:#fff; }
.amen-chip:has(input:checked) .ac-tick::after{ content:"✓"; font-size:12px; font-weight:800; }
.amen-chip span:last-child{ font-size:14px; font-weight:600; }

/* card (used as form section) */
.card{ background:var(--white); border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow-xs); margin-bottom:18px; overflow:hidden; }
.card-head{ display:flex; align-items:center; gap:12px; padding:18px 22px; background:linear-gradient(180deg, var(--cream), var(--white)); border-bottom:1px solid var(--line-soft); }
.card-head .ch-ic{ width:38px; height:38px; border-radius:12px; background:var(--butter-50); display:grid; place-items:center; }
.card-head .ch-ic svg{ width:20px; height:20px; stroke:var(--butter-500); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.card-head .ch-tx h3{ font-size:16px; font-weight:700; }
.card-head .ch-tx p{ font-size:12.5px; color:var(--ink-500); margin-top:2px; }
.card-body{ padding:22px; }
@media(max-width:560px){ .card-body{ padding:18px 16px; } .card-head{ padding:16px 18px; } }

/* notif row for settings toggles */
.notif-row{ display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--line-soft); }
.notif-row:first-of-type{ border-top:none; }
.notif-row .nr-tx{ flex:1; min-width:0; }
.notif-row .nr-tx b{ display:block; font-size:14.5px; font-weight:600; color:var(--ink-900); }
.notif-row .nr-tx span{ font-size:12.5px; color:var(--ink-500); }
.switch{ position:relative; width:46px; height:26px; flex:none; cursor:pointer; display:inline-block; }
.switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:2; }
.switch .track{ position:absolute; inset:0; background:var(--line-strong); border-radius:99px; transition:background .2s; }
.switch .knob{ position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.18); transition:transform .2s var(--ease); }
.switch input:checked ~ .track{ background:var(--butter-400); }
.switch input:checked ~ .knob{ transform:translateX(-20px); }

/* pending banner on top of edit form */
.pending-banner{ display:flex; align-items:center; gap:14px; background:linear-gradient(135deg, var(--peach-100), var(--butter-50)); border:1px solid var(--peach-200); border-radius:18px; padding:14px 18px; margin-bottom:18px; color:var(--peach-ink); font-size:14px; line-height:1.5; }
.pending-banner svg{ width:22px; height:22px; flex:none; stroke:var(--peach-400); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pending-banner b{ display:block; font-weight:800; }
.pending-banner span{ color:var(--ink-700); }

/* CTA / buttons */
.btn-row{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.btn.btn-primary, .btn.btn-amber{ background:var(--butter-400); color:#3a2a08; padding:12px 22px; font-size:14.5px; box-shadow:0 5px 14px rgba(214,164,28,.28); }
.btn.btn-primary:hover{ background:var(--butter-500); }
.btn.btn-link{ background:none; border:none; color:var(--peach-400); font-weight:700; padding:8px 12px; cursor:pointer; }
.btn.btn-link:hover{ color:var(--peach-ink); text-decoration:underline; }

/* login/register card */
.own-auth{ max-width:480px; margin:48px auto; background:var(--white); border:1px solid var(--line); border-radius:24px; box-shadow:0 18px 50px rgba(60,42,24,.10); padding:32px; }
.own-auth h2{ font-size:24px; margin-bottom:6px; }
.own-auth .muted{ color:var(--ink-500); font-size:14px; margin-bottom:22px; }
.own-auth .own-tabs{ display:flex; gap:6px; background:var(--cream); padding:5px; border-radius:14px; margin-bottom:22px; }
.own-auth .own-tabs button{ flex:1; padding:10px; border-radius:10px; border:none; background:transparent; font:inherit; font-weight:700; cursor:pointer; color:var(--ink-500); font-size:14px; }
.own-auth .own-tabs button.on{ background:var(--white); color:var(--ink-900); box-shadow:0 2px 6px rgba(60,42,24,.08); }
.own-auth .own-pane{ display:none; }
.own-auth .own-pane.on{ display:block; }
.own-auth .own-err{ background:#FCEAEA; color:#9C2828; border-radius:12px; padding:11px 14px; margin-bottom:16px; font-size:13.5px; }
.own-auth .own-ok{ background:var(--mint-50); color:var(--mint-deep); border-radius:12px; padding:11px 14px; margin-bottom:16px; font-size:13.5px; }
.own-auth .btn-block{ width:100%; justify-content:center; padding:13px; font-size:15px; margin-top:6px; }

/* leads list */
.leads-list{ display:flex; flex-direction:column; gap:12px; }
.lead{ display:grid; grid-template-columns:auto 1fr auto; gap:14px; padding:16px 18px; background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-xs); align-items:center; }
.lead .l-av{ width:46px; height:46px; border-radius:14px; background:var(--mint-50); display:grid; place-items:center; flex:none; }
.lead .l-av svg{ width:23px; height:23px; stroke:var(--mint-deep); fill:none; stroke-width:1.9; stroke-linecap:round; }
.lead .l-name{ font-weight:700; font-size:15px; color:var(--ink-900); }
.lead .l-meta{ font-size:12.5px; color:var(--ink-500); margin-top:3px; }
.lead .l-when{ font-size:12px; color:var(--ink-300); white-space:nowrap; }
@media(max-width:560px){ .lead{ grid-template-columns:auto 1fr; } .lead .l-when{ grid-column:2; } }

/* subscription plan card */
.plan-hero{ background:linear-gradient(150deg, var(--butter-100), var(--peach-50)); border:1px solid var(--butter-300); border-radius:28px; padding:26px; margin-bottom:20px; }
.plan-hero h2{ font-family:var(--serif); font-weight:800; font-size:26px; color:var(--ink-900); margin-bottom:5px; }
.plan-hero .ph-price{ font-size:14px; color:var(--ink-700); margin-bottom:14px; }
.plan-hero .ph-price b{ font-family:var(--serif); font-weight:800; font-size:22px; color:var(--ink-900); }
.plan-hero .ph-renew{ background:var(--white); border-radius:14px; padding:13px 16px; font-size:13px; color:var(--ink-700); display:inline-block; }
.plan-incl{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media(max-width:600px){ .plan-incl{ grid-template-columns:1fr; } }
.plan-incl .pi{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink-700); }
.plan-incl .pc{ width:24px; height:24px; border-radius:50%; background:var(--mint-50); display:grid; place-items:center; flex:none; }
.plan-incl .pc::after{ content:"✓"; font-size:12px; color:var(--mint-deep); font-weight:800; }

/* calendar (small) */
.calbig{ margin-top:4px; }
.calbig .dow-row{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:8px; }
.calbig .dow{ text-align:center; font-size:12px; font-weight:700; color:var(--ink-300); }
.calbig .days{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cbd{ min-height:62px; border-radius:14px; border:1.5px solid var(--line); background:var(--white); padding:7px 9px; display:flex; flex-direction:column; cursor:pointer; transition:all .12s; }
.cbd:hover{ border-color:var(--butter-300); }
.cbd .d-num{ font-family:var(--serif); font-weight:700; font-size:14px; color:var(--ink-700); }
.cbd.blank{ background:transparent; border:none; cursor:default; }
/* ============ Owner-area #3: "המשך עם Google" placeholder button ============ */
.btn-google{ background:#FFFFFF !important; color:#3B342A !important; border:1.5px solid #E0E0E0 !important; display:inline-flex; align-items:center; justify-content:center; gap:10px; font-weight:700; transition:background .15s ease, box-shadow .15s ease; }
.btn-google:hover{ background:#FAFAFA !important; box-shadow:0 4px 12px rgba(60,60,60,.08); }
.btn-google svg{ flex:none; }
.own-divider{ display:flex; align-items:center; gap:12px; color:#8C8273; font-size:13px; margin:14px 0; }
.own-divider::before, .own-divider::after{ content:""; flex:1; height:1px; background:#F0E7D2; }
.own-divider span{ flex:none; }

/* Owner-area #10: gallery upload zone + status banner */
.own-gal-upload{ display:flex; align-items:center; gap:14px; padding:18px 22px; border:2px dashed var(--line); border-radius:18px; cursor:pointer; background:var(--cream); margin-bottom:14px; transition:border-color .15s, background .15s; }
.own-gal-upload:hover{ border-color:var(--butter-400); background:var(--butter-50); }
.own-gal-upload svg{ flex:none; stroke:var(--butter-ink); }
.own-gal-upload span{ display:flex; flex-direction:column; gap:2px; }
.own-gal-upload b{ color:var(--ink-900); font-weight:700; }
.own-gal-upload small{ color:var(--ink-500); font-size:12.5px; }
.own-gal-status{ padding:10px 14px; border-radius:12px; background:var(--mint-50); color:var(--mint-deep); font-weight:600; margin-bottom:14px; font-size:13.5px; }
.own-gal-status.err{ background:var(--peach-50); color:var(--peach-ink); }

/* Owner-area #10: gallery editor — tile grid with delete buttons */
.own-gallery .own-gal-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; }
.own-gal-tile{ position:relative; aspect-ratio:4/3; border-radius:12px; overflow:hidden; background:var(--cream); border:1px solid var(--line); }
.own-gal-tile img{ width:100%; height:100%; object-fit:cover; display:block; }
.own-gal-del{ position:absolute; top:6px; inset-inline-end:6px; width:28px; height:28px; border-radius:50%; border:none; background:rgba(0,0,0,.55); color:#fff; font-size:18px; font-weight:700; line-height:1; cursor:pointer; display:grid; place-items:center; transition:background .15s; }
.own-gal-del:hover{ background:#E26D6D; }
/* designer R2 #3: per-photo area selector on the owner tile */
.own-gal-area{ position:absolute; bottom:6px; inset-inline-start:6px; inset-inline-end:6px; max-width:calc(100% - 12px); border:none; border-radius:8px; background:rgba(0,0,0,.64); color:#fff; font-family:inherit; font-size:12.5px; font-weight:700; padding:5px 7px; cursor:pointer; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.own-gal-area option{ color:#1c1812; background:#fff; }
.own-gal-empty{ color:var(--ink-500); padding:18px; text-align:center; grid-column:1 / -1; }

/* Owner-area #11: range-block button + selection ring */
.cal-mode{ display:inline-flex; align-items:center; gap:7px; background:var(--cream); border:1.5px solid var(--line); border-radius:14px; padding:8px 14px; font-weight:700; font-size:13.5px; color:var(--ink-700); cursor:pointer; transition:background .15s, border-color .15s; }
.cal-mode.on{ background:var(--peach-50); border-color:var(--peach-400); color:var(--peach-ink); }
.cal-mode svg{ flex:none; stroke:currentColor; }
.calbig.range-mode .cbd:not(.past):not(.blank):hover{ outline:2px solid var(--peach-400); outline-offset:-2px; }
.cbd.sel{ box-shadow: inset 0 0 0 3px var(--peach-deep, #E68A5C); border-radius:8px; }

/* ============ Subscription screen (Phase 6 — mocked, no payment provider) ============ */
.plan-hero{ background:linear-gradient(135deg,#FCEFC0 0%,#FFE4D4 100%); border-radius:24px; padding:28px 30px; margin-bottom:18px; box-shadow:0 4px 18px rgba(180,140,60,.12); }
.plan-hero .ph-line{ color:var(--peach-ink); font-weight:700; font-size:13px; letter-spacing:.04em; margin-bottom:6px; }
.plan-hero h2{ font-family:var(--serif); font-weight:800; font-size:28px; color:var(--ink-900); margin:0 0 10px; }
.plan-hero .ph-price{ font-size:18px; color:var(--ink-900); }
.plan-hero .ph-price b{ font-size:24px; font-weight:800; }
.plan-hero .ph-price span{ color:var(--ink-500); font-size:14px; }
.plan-hero .ph-renew{ margin-top:14px; padding:10px 14px; background:rgba(255,255,255,.7); border-radius:14px; font-weight:600; color:var(--ink-700); font-size:14.5px; display:inline-block; }
.plan-incl{ display:grid; grid-template-columns:repeat(2,1fr); gap:11px 18px; }
@media(max-width:600px){ .plan-incl{ grid-template-columns:1fr; } }
.plan-incl .pi{ display:flex; align-items:center; gap:11px; color:var(--ink-900); font-size:15px; }
.plan-incl .pi .pc{ width:22px; height:22px; border-radius:50%; background:var(--mint-50); position:relative; flex:none; }
.plan-incl .pi .pc::after{ content:""; position:absolute; left:7px; top:5px; width:6px; height:10px; border:solid var(--mint-deep); border-width:0 2px 2px 0; transform:rotate(45deg); }
.no-fees{ margin-top:18px; background:var(--mint-50); border-radius:14px; padding:12px 16px; color:var(--mint-deep); font-weight:700; }
.pay-list .pay-empty{ color:var(--ink-500); padding:18px 0; text-align:center; }
.upgrade-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; background:var(--white); border:2px dashed var(--line); border-radius:18px; padding:18px 22px; margin-top:14px; }
.upgrade-row .muted{ color:var(--ink-500); font-size:13.5px; }
@media(max-width:600px){ .upgrade-row{ flex-direction:column; align-items:stretch; text-align:center; } .upgrade-row .btn{ width:100%; } }

.cbd.past{ background:var(--cream); opacity:.55; cursor:not-allowed; }
.cbd.busy{ background:var(--peach-100); border-color:var(--peach-200); }
.cbd.busy .d-num{ color:var(--peach-ink); }
.cbd.free{ background:var(--mint-50); border-color:#CFE8D6; }
.cbd.free .d-num{ color:var(--mint-deep); }
.cal-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.cal-month-nav{ display:flex; align-items:center; gap:10px; }
.cal-month-nav button{ width:36px; height:36px; border-radius:50%; border:1.5px solid var(--line); background:var(--white); cursor:pointer; display:grid; place-items:center; }
.cal-month-nav button svg{ width:16px; height:16px; stroke:var(--ink-700); fill:none; stroke-width:2.4; stroke-linecap:round; }
.cal-month-nav .cmn-title{ font-family:var(--serif); font-weight:800; font-size:18px; color:var(--ink-900); min-width:120px; text-align:center; }


/* ============================================================ */
/* ===== SECTION 2: MOCKUP DESIGN SYSTEM (authoritative) ===== */
/* ============================================================ */

/* --- owner-editor.css --- */
/* =========================================================
   אזור אישי · עריכת דף וילה · תפוסה מלאה
   שפה: צהוב חמאה בהיר על שמנת ולבן, אקסנט אפרסק רך,
   פינות מעוגלות מאוד, אוויר, טיפוגרפיה עברית עגולה. RTL, מובייל פירסט.
   ========================================================= */

:root{
  /* ---- בסיס שמנת ולבן ---- */
  --page:#FFFBF1;          /* רקע עמוד, שמנת חמה בהירה */
  --cream:#FFFDF8;         /* משטחים רכים */
  --white:#FFFFFF;         /* כרטיסים */

  /* ---- צהוב חמאה ---- */
  --butter-50:#FFF8DF;
  --butter-100:#FCEFC0;
  --butter-200:#F8E29A;
  --butter-300:#F4D472;
  --butter-400:#EFC34A;    /* צבע המותג, כפתור פרסום */
  --butter-500:#E3B232;    /* hover */
  --butter-ink:#5A4607;    /* טקסט על צהוב */

  /* ---- אפרסק רך, אקסנט ---- */
  --peach-50:#FFF2EA;
  --peach-100:#FFE4D4;
  --peach-200:#FFD0B6;
  --peach-400:#F6A982;     /* אקסנט */
  --peach-ink:#8A4B2C;

  /* ---- ירוק רך לאישורים ---- */
  --mint:#7FB893;
  --mint-deep:#3F8C5E;
  --mint-50:#EAF6EE;

  /* ---- דיו חם ---- */
  --ink-900:#3B342A;
  --ink-700:#5A5145;
  --ink-500:#8C8273;       /* טקסט תומך */
  --ink-300:#B7AD9C;
  --line:#F0E7D2;
  --line-soft:#F6EFE0;

  /* ---- פינות מעוגלות מאוד ---- */
  --r-xs:14px;
  --r-sm:18px;
  --r-md:24px;
  --r-lg:32px;
  --r-xl:40px;
  --r-pill:999px;

  --shadow-sm:0 2px 10px rgba(90,70,7,.05), 0 10px 30px rgba(90,70,7,.04);
  --shadow-md:0 6px 20px rgba(90,70,7,.08), 0 20px 50px rgba(90,70,7,.06);
  --shadow-pop:0 12px 34px rgba(90,70,7,.16), 0 4px 12px rgba(90,70,7,.10);

  --serif:"Rubik", system-ui, sans-serif;   /* כותרות, עגול וצעיר */
  --sans:"Heebo", system-ui, sans-serif;     /* גוף וממשק */

  --topbar-h:68px;
  --sidebar-w:262px;
  --maxw:760px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:var(--sans);
  background:var(--page);
  color:var(--ink-900);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:var(--serif); font-weight:700; line-height:1.12; letter-spacing:-.01em;}
button{font-family:inherit;}
input,textarea,select{font-family:inherit;}
::selection{background:var(--butter-200);}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-thumb{background:var(--line); border-radius:99px; border:3px solid var(--page);}

/* =========================================================
   סרגל עליון של מצב עריכה (sticky)
   ========================================================= */
.topbar{
  position:sticky; top:0; z-index:60;
  height:var(--topbar-h);
  background:rgba(255,251,241,.86);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:14px;
  padding:0 18px;
}
.tb-menu{
  width:44px; height:44px; flex:none; border:none; background:transparent;
  border-radius:var(--r-sm); display:none; align-items:center; justify-content:center;
  cursor:pointer; color:var(--ink-700);
}
.tb-menu:hover{background:var(--butter-50);}
.tb-menu svg{width:24px; height:24px; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round;}

.tb-mode{
  display:flex; align-items:center; gap:10px; min-width:0;
}
.tb-mode .live-dot{
  width:9px; height:9px; border-radius:50%; flex:none;
  background:var(--peach-400);
  box-shadow:0 0 0 4px var(--peach-100);
  animation:pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot{0%,100%{box-shadow:0 0 0 4px var(--peach-100);}50%{box-shadow:0 0 0 8px rgba(246,169,130,.16);}}
.tb-mode .label{font-size:14px; color:var(--ink-700); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tb-mode .label b{color:var(--ink-900); font-weight:700;}

.tb-spacer{flex:1;}

.tb-save{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13.5px; color:var(--mint-deep); font-weight:600;
  background:var(--mint-50); border:1px solid #DCEEE2;
  padding:8px 14px; border-radius:var(--r-pill);
  white-space:nowrap; transition:opacity .3s ease;
}
.tb-save .sv-check{width:18px;height:18px; display:grid; place-items:center; border-radius:50%; background:var(--mint); color:#fff;}
.tb-save .sv-check svg{width:12px;height:12px; stroke:#fff; stroke-width:3; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.tb-save.saving{color:var(--ink-500); background:var(--cream); border-color:var(--line);}
.tb-save.saving .sv-check{background:var(--ink-300);}
.tb-save.saving .sv-check svg{animation:spin .8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
/* draft / not-yet-published status pill: muted, no "live" green check */
.tb-save.is-draft{color:var(--ink-500); background:var(--cream); border-color:var(--line);}
.tb-save.is-draft .sv-dot{width:9px;height:9px;border-radius:50%;background:var(--ink-300);}
/* unsaved-changes resting state (warm peach, not green) */
#tb-save.dirty{color:var(--peach-ink); background:var(--peach-50); border-color:var(--peach-100);}
#tb-save.dirty .sv-txt{color:var(--peach-400);}
#tb-save.dirty .sv-check{background:var(--peach-400);}
/* page-strength chip in the sticky strip */
.tb-strength{font-weight:600;font-size:12px;line-height:1;padding:6px 10px;border-radius:var(--r-pill);background:var(--butter-50);color:var(--ink-700);white-space:nowrap;}
.tb-strength b{font-weight:800;}
.tb-strength.is-weak{background:var(--peach-50);color:var(--peach-400);}
.tb-strength.is-great{background:var(--mint);color:var(--ink-900);}
/* "השלמה" jump highlight on the targeted card */
.jump-flash{animation:jumpFlash 1.4s ease;}
@keyframes jumpFlash{0%{box-shadow:0 0 0 0 rgba(239,195,74,.0);}15%{box-shadow:0 0 0 4px rgba(239,195,74,.55);}100%{box-shadow:0 0 0 0 rgba(239,195,74,0);}}
/* all-villas dashboard: per-villa view breakdown rows in the side card */
.villa-row-mini{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--line-soft,#F0E7D2);text-decoration:none;color:inherit;}
.villa-row-mini:last-child{border-bottom:none;}
.villa-row-mini .vrm-name{flex:1 1 auto;min-width:0;font-weight:700;font-size:14px;color:var(--ink-900,#3B342A);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.villa-row-mini .vrm-meter{flex:none;display:flex;align-items:center;gap:8px;}
.villa-row-mini .vrm-bar{width:74px;height:7px;border-radius:99px;background:var(--line,#F0E7D2);overflow:hidden;}
.villa-row-mini .vrm-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--butter-300,#EFC34A),var(--peach-300,#F6A982));border-radius:99px;}
.villa-row-mini .vrm-meter b{font-size:13px;color:var(--ink-700,#5A5145);min-width:30px;text-align:left;font-variant-numeric:tabular-nums;}
.villa-row-mini:hover .vrm-name{color:var(--peach-500,#E68A5C);}

/* ===================== round-3 owner-edit improvements ===================== */
/* select fields (area region) styled like .inp */
.inp-select{position:relative;display:flex;align-items:center;}
.inp-select .region-select{appearance:none;-webkit-appearance:none;border:none;background:transparent;font:inherit;font-size:15px;color:var(--ink-900,#3B342A);width:100%;padding:0 2px;cursor:pointer;}
.inp-select .ci-caret{width:18px;height:18px;stroke:var(--ink-400,#8C8273);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;pointer-events:none;}

/* perfect-for / not-suitable toggle */
.pf-toggle{display:inline-flex;background:var(--sand-100,#F3EADB);border-radius:var(--r-pill,999px);padding:4px;margin-bottom:16px;gap:2px;}
.pf-seg{font:inherit;font-weight:700;font-size:14px;border:none;background:transparent;color:var(--ink-500,#8C8273);padding:8px 18px;border-radius:var(--r-pill,999px);cursor:pointer;transition:background .15s,color .15s,box-shadow .15s;}
.pf-seg.on{background:var(--white,#fff);color:var(--ink-900,#3B342A);box-shadow:var(--shadow-sm,0 2px 6px rgba(40,28,12,.08));}
.pf-seg-neg.on{color:#B4452F;}
.pf-panel[hidden]{display:none;}
/* not-suitable chips (negative styling) */
.uns-chips{display:flex;flex-wrap:wrap;gap:9px;}
.uns-chip{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--ink-700,#5A5145);background:var(--white,#fff);border:1.5px solid var(--line,#F0E7D2);border-radius:var(--r-pill,999px);padding:8px 15px;cursor:pointer;user-select:none;transition:all .15s;}
.uns-chip .tick{width:15px;height:15px;display:none;}
.uns-chip .tick svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2.6;stroke-linecap:round;}
.uns-chip:hover{border-color:#E7B6AB;}
.uns-chip.on{background:#C0492F;border-color:#C0492F;color:#fff;}
.uns-chip.on .tick{display:inline-flex;}

/* amenities accordion */
.amen-acc{display:flex;flex-direction:column;gap:10px;}
.amen-group{border:1px solid var(--line,#F0E7D2);border-radius:16px;overflow:hidden;background:var(--white,#fff);}
.amen-group-h{width:100%;display:flex;align-items:center;gap:11px;padding:13px 15px;background:transparent;border:none;cursor:pointer;font:inherit;text-align:start;}
.amen-group-h .agh-ic{width:30px;height:30px;border-radius:9px;background:var(--butter-50,#FBF4E2);display:grid;place-items:center;flex:none;}
.amen-group-h .agh-ic svg{width:17px;height:17px;stroke:var(--butter-600,#D6A02E);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.amen-group-h .agh-t{flex:1 1 auto;font-weight:700;font-size:15px;color:var(--ink-900,#3B342A);}
.amen-group-h .agh-cnt{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--mint,#4E9C7A);color:#fff;font-size:12px;font-weight:700;display:none;place-items:center;}
.amen-group-h .agh-cnt:not(:empty){display:grid;}
.amen-group-h .agh-caret{width:18px;height:18px;stroke:var(--ink-400,#8C8273);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .2s;}
.amen-group.open .agh-caret{transform:rotate(180deg);}
.amen-group-body{display:none;padding:0 15px 15px;}
.amen-group.open .amen-group-body{display:block;}

/* gallery: upload guidance + per-file feedback */
.gp-add .gp-hint{display:block;margin-top:6px;font-size:11.5px;color:var(--ink-400,#8C8273);font-weight:600;}
.gal-feedback{margin-top:14px;display:flex;flex-direction:column;gap:7px;}
.gal-feedback .gfb{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;padding:9px 12px;border-radius:11px;}
.gal-feedback .gfb svg{width:16px;height:16px;flex:none;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.gal-feedback .gfb.warn{background:#FDF1E7;color:#B4652A;}.gal-feedback .gfb.warn svg{stroke:#D98A3D;}
.gal-feedback .gfb.bad{background:#FCEAEA;color:#9C2828;}.gal-feedback .gfb.bad svg{stroke:#C0492F;}
.gal-feedback .gfb.good{background:var(--mint-50,#E7F4ED);color:var(--mint-deep,#2F6B50);}.gal-feedback .gfb.good svg{stroke:var(--mint,#4E9C7A);}

/* address geocode button */
.inp .addr-go{flex:none;width:34px;height:34px;border-radius:10px;border:none;background:var(--butter-50,#FBF4E2);display:grid;place-items:center;cursor:pointer;transition:background .15s;}
.inp .addr-go:hover{background:var(--butter-100,#F6E9C4);}
.inp .addr-go svg{width:18px;height:18px;stroke:var(--butter-600,#D6A02E);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* Google calendar sync box */
.gcal-sync{margin-top:18px;border:1px dashed var(--line,#F0E7D2);border-radius:14px;padding:14px 16px;background:var(--cream,#FFFDF8);}
.gcal-sync .gcs-head{display:flex;gap:11px;align-items:flex-start;}
.gcal-sync .gcs-ic{width:34px;height:34px;border-radius:9px;background:var(--butter-50,#FBF4E2);display:grid;place-items:center;flex:none;}
.gcal-sync .gcs-ic svg{width:18px;height:18px;stroke:var(--butter-600,#D6A02E);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.gcal-sync .gcs-head b{font-size:14.5px;color:var(--ink-900,#3B342A);display:block;margin-bottom:2px;}
.gcal-sync .gcs-row{display:flex;gap:9px;margin-top:12px;}
.gcal-sync .gcs-row input{flex:1 1 auto;min-width:0;border:1px solid var(--line,#F0E7D2);border-radius:10px;padding:9px 12px;font-size:12.5px;color:var(--ink-600,#6B6253);background:var(--white,#fff);direction:ltr;text-align:left;}
@media(max-width:560px){ .gcal-sync .gcs-row{flex-direction:column;} }

/* save-success modal */
.save-modal{position:fixed;inset:0;z-index:1300;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(40,28,12,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
.save-modal.show{display:flex;animation:smFade .2s ease;}
@keyframes smFade{from{opacity:0}to{opacity:1}}
.save-modal-card{width:100%;max-width:420px;background:var(--cream,#FFFDF8);border-radius:22px;box-shadow:0 24px 60px rgba(40,28,12,.3);padding:30px 26px;text-align:center;animation:smPop .25s cubic-bezier(.2,.9,.3,1.2);}
@keyframes smPop{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}
.save-modal-card .sm-ic{width:64px;height:64px;border-radius:50%;background:var(--mint-50,#E7F4ED);display:grid;place-items:center;margin:0 auto 16px;}
.save-modal-card .sm-ic svg{width:34px;height:34px;stroke:var(--mint,#4E9C7A);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.save-modal-card h3{margin:0 0 8px;font-size:20px;color:var(--ink-900,#3B342A);}
.save-modal-card p{margin:0 0 20px;font-size:14.5px;line-height:1.6;color:var(--ink-600,#6B6253);}
.save-modal-card .sm-ok{width:100%;justify-content:center;}

/* ===== custom villa switcher dropdown ===== */
.villa-switch2{position:relative;}
.vs2-btn{display:inline-flex;align-items:center;gap:9px;font:inherit;font-weight:700;font-size:14px;color:var(--ink-900,#3B342A);background:var(--white,#fff);border:1px solid var(--line,#F0E7D2);border-radius:var(--r-pill,999px);padding:9px 14px;cursor:pointer;max-width:240px;transition:border-color .15s,box-shadow .15s;}
.vs2-btn:hover{border-color:var(--butter-300,#EFC34A);}
.villa-switch2.open .vs2-btn{border-color:var(--butter-400,#E3B232);box-shadow:0 0 0 3px var(--butter-50,#FBF4E2);}
.vs2-btn .vs2-home{width:17px;height:17px;stroke:var(--butter-600,#D6A02E);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.vs2-btn .vs2-cur{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;}
.vs2-btn .vs2-caret{width:16px;height:16px;stroke:var(--ink-400,#8C8273);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .2s;}
.villa-switch2.open .vs2-caret{transform:rotate(180deg);}
.vs2-pop{position:absolute;top:calc(100% + 8px);inset-inline-end:0;width:320px;max-width:84vw;background:var(--white,#fff);border:1px solid var(--line,#F0E7D2);border-radius:18px;box-shadow:0 18px 50px rgba(40,28,12,.22);padding:8px;z-index:60;display:none;animation:vs2In .16s ease;}
.villa-switch2.open .vs2-pop{display:block;}
@keyframes vs2In{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.vs2-search{position:relative;padding:4px 4px 8px;}
.vs2-search svg{position:absolute;inset-inline-start:14px;top:13px;width:16px;height:16px;stroke:var(--ink-400,#8C8273);fill:none;stroke-width:2;stroke-linecap:round;}
.vs2-search input{width:100%;border:1px solid var(--line,#F0E7D2);border-radius:11px;padding:10px 12px 10px 38px;font:inherit;font-size:14px;background:var(--sand-50,#FAF5EA);}
.vs2-list{max-height:340px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;}
.vs2-opt{display:flex;align-items:center;gap:11px;width:100%;border:none;background:transparent;border-radius:12px;padding:9px 10px;cursor:pointer;font:inherit;text-align:start;transition:background .12s;}
.vs2-opt:hover{background:var(--sand-100,#F3EADB);}
.vs2-opt.on{background:var(--butter-50,#FBF4E2);}
.vs2-opt .vs2-thumb{width:38px;height:38px;border-radius:10px;background:var(--sand-100,#F3EADB) center/cover no-repeat;flex:none;}
.vs2-opt .vs2-ic{width:38px;height:38px;border-radius:10px;background:var(--ink-50,#F3EFE7);display:grid;place-items:center;flex:none;}
.vs2-opt .vs2-ic svg{width:19px;height:19px;stroke:var(--ink-700,#5A5145);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.vs2-opt .vs2-name{flex:1 1 auto;min-width:0;font-weight:700;font-size:14.5px;color:var(--ink-900,#3B342A);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.vs2-opt .vs2-sub{font-size:12px;color:var(--ink-400,#8C8273);font-weight:600;}
.vs2-opt .vs2-status{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;flex:none;}
.vs2-opt .vs2-status.live{background:var(--mint-50,#E7F4ED);color:var(--mint-deep,#2F6B50);}
.vs2-opt .vs2-status.draft{background:var(--sand-100,#F3EADB);color:var(--ink-500,#8C8273);}
.vs2-opt .vs2-status.pending{background:#FDF1E7;color:#B4652A;}
.vs2-opt .vs2-check{width:18px;height:18px;stroke:var(--butter-600,#D6A02E);fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none;opacity:0;}
.vs2-opt.on .vs2-check{opacity:1;}
.vs2-opt.vs2-all{border-bottom:1px solid var(--line-soft,#F4ECDD);border-radius:12px 12px 0 0;margin-bottom:2px;padding-bottom:11px;}
.vs2-empty{padding:18px;text-align:center;color:var(--ink-400,#8C8273);font-size:13.5px;}
.vs2-add{display:block;padding:12px 16px;font-weight:600;color:var(--ink-700);border-top:1px solid var(--line);text-decoration:none;border-radius:0 0 12px 12px;}
.vs2-add:hover{background:var(--butter-50,#FBF4E2);}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:var(--r-pill); cursor:pointer;
  font-weight:600; font-size:15px; padding:12px 22px;
  transition:transform .16s cubic-bezier(.2,.7,.2,1), background .16s ease, box-shadow .16s ease, color .16s ease;
  white-space:nowrap;
}
.btn:active{transform:scale(.97);}
.btn svg{width:18px;height:18px; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.btn-primary{background:var(--butter-400); color:var(--butter-ink); box-shadow:0 8px 18px rgba(239,195,74,.36);}
.btn-primary:hover{background:var(--butter-500); box-shadow:0 6px 16px rgba(227,178,50,.42);}
.btn-ghost{background:var(--white); color:var(--ink-700); border:1.5px solid var(--line);}
.btn-ghost:hover{border-color:var(--butter-300); color:var(--ink-900); background:var(--cream);}
.btn-soft{background:var(--peach-50); color:var(--peach-ink); border:1.5px solid var(--peach-100);}
.btn-soft:hover{background:var(--peach-100);}

.tb-preview{padding:10px 16px; font-size:14px;}
.tb-preview .eye-on,.tb-preview .eye-off{display:none;}
body:not(.preview) .tb-preview .eye-on{display:inline;}
body.preview .tb-preview .eye-off{display:inline;}
.tb-publish{padding:11px 20px;}
.tb-publish.clean{opacity:.55; pointer-events:none;}
@media(max-width:560px){
  .tb-publish .pub-txt{display:none;}
  .tb-publish{padding:11px 14px;}
  .tb-mode .label{display:none;}
}

/* =========================================================
   פריסה: סרגל צד + גוף
   ========================================================= */
.shell{display:flex; align-items:flex-start;}

.sidebar{
  width:var(--sidebar-w); flex:none;
  position:sticky; top:var(--topbar-h);
  height:calc(100vh - var(--topbar-h));
  background:var(--cream);
  border-left:1px solid var(--line);
  padding:24px 18px;
  display:flex; flex-direction:column; gap:6px;
  overflow-y:auto;
}
.sb-brand{display:flex; align-items:center; gap:11px; padding:6px 8px 20px;}
.sb-brand .mark{
  width:40px; height:40px; border-radius:13px; flex:none;
  background:linear-gradient(150deg,var(--butter-300),var(--peach-200));
  display:grid; place-items:center; color:#fff;
}
.sb-brand .mark svg{width:23px;height:23px; stroke:#fff; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.sb-brand .wm{font-family:var(--serif); font-weight:800; font-size:19px; color:var(--ink-900); line-height:1;}
.sb-brand .wm span{color:var(--peach-400);}
.sb-brand .wm small{display:block; font-family:var(--sans); font-size:11.5px; font-weight:500; color:var(--ink-500); margin-top:4px; letter-spacing:.02em;}

.sb-group-label{font-size:11.5px; font-weight:700; letter-spacing:.12em; color:var(--ink-300); padding:14px 12px 6px;}
.nav-item{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border-radius:var(--r-sm);
  color:var(--ink-700); font-size:15px; font-weight:500;
  text-decoration:none; cursor:pointer; border:none; background:transparent;
  width:100%; text-align:right; transition:background .14s ease, color .14s ease;
}
.nav-item svg{width:21px;height:21px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; flex:none;}
.nav-item:hover{background:var(--butter-50); color:var(--ink-900);}
.nav-item.active{background:var(--butter-100); color:var(--butter-ink); font-weight:700;}
.nav-item.active svg{stroke:var(--butter-ink);}
.nav-item .chev{margin-inline-start:auto; width:16px;height:16px; opacity:.5;}

.sb-help{
  margin-top:auto; background:var(--peach-50); border:1px solid var(--peach-100);
  border-radius:var(--r-md); padding:16px;
}
.sb-help .h-ic{width:34px;height:34px;border-radius:11px;background:var(--peach-100);display:grid;place-items:center;margin-bottom:10px;}
.sb-help .h-ic svg{width:19px;height:19px;stroke:var(--peach-ink);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.sb-help h5{font-family:var(--serif); font-size:14.5px; color:var(--peach-ink); margin-bottom:4px;}
.sb-help p{font-size:12.5px; color:var(--ink-500); line-height:1.5; margin-bottom:12px;}
.sb-help .h-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:var(--white);border:1.5px solid var(--peach-200);color:var(--peach-ink);font-weight:600;font-size:13px;padding:9px;border-radius:var(--r-pill);cursor:pointer;}
.sb-help .h-btn:hover{background:var(--peach-100);}
.sb-help .h-btn svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none;}

/* drawer backdrop (mobile) */
.scrim{position:fixed; inset:0; background:rgba(59,52,42,.4); backdrop-filter:blur(2px); z-index:55; opacity:0; pointer-events:none; transition:opacity .25s ease;}
.scrim.show{opacity:1; pointer-events:auto;}

/* =========================================================
   גוף, כרטיסי תוכן
   ========================================================= */
.main{flex:1; min-width:0; padding:26px 22px 120px;}
.canvas{max-width:var(--maxw); margin:0 auto;}

.page-intro{margin:4px 4px 22px;}
.page-intro h1{font-size:clamp(26px,5.5vw,34px); font-weight:800; margin-bottom:8px;}
.page-intro p{color:var(--ink-500); font-size:15.5px; max-width:52ch;}
.page-intro .villa-pill{display:inline-flex;align-items:center;gap:7px;background:var(--butter-50);border:1px solid var(--butter-100);color:var(--butter-ink);font-size:13px;font-weight:600;padding:6px 13px;border-radius:var(--r-pill);margin-bottom:14px;}
.page-intro .villa-pill svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none;}

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
  padding:26px;
  margin-bottom:20px;
  scroll-margin-top:calc(var(--topbar-h) + 16px);
}
@media(max-width:560px){ .card{padding:20px 17px; border-radius:var(--r-md);} }

.card-head{display:flex; align-items:flex-start; gap:13px; margin-bottom:6px;}
.card-head .ch-ic{
  width:42px;height:42px;border-radius:13px;flex:none;
  background:var(--butter-50); display:grid; place-items:center;
}
.card-head .ch-ic svg{width:22px;height:22px;stroke:var(--butter-500);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.card-head .ch-tx{flex:1; min-width:0;}
.card-head h2{font-size:20px; font-weight:700; display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.card-head .step-n{font-family:var(--sans); font-size:12px; font-weight:700; color:var(--ink-300); letter-spacing:.05em;}
.card-head .ch-sub{font-size:13.5px; color:var(--ink-500); margin-top:3px;}

/* רמז קצר מתחת לכותרת הכרטיס, עם מונה חי */
.card-tip{margin:6px 0 14px; font:500 13px/1.5 inherit; color:var(--ink-500);}
.card-tip .tip-n{color:var(--ink-900); font-weight:700;}

.card-body{margin-top:18px;}

/* רמז עריכה ידידותי */
.hint{
  display:flex; align-items:flex-start; gap:9px;
  background:var(--butter-50); border:1px solid var(--butter-100);
  border-radius:var(--r-sm); padding:11px 14px;
  font-size:13px; color:var(--butter-ink); line-height:1.5;
  margin-bottom:16px;
}
.hint svg{width:17px;height:17px;flex:none;stroke:var(--butter-500);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;margin-top:2px;}
.hint.peach{background:var(--peach-50);border-color:var(--peach-100);color:var(--peach-ink);}
.hint.peach svg{stroke:var(--peach-400);}

/* =========================================================
   שדות עריכה inline
   ========================================================= */
.field{margin-bottom:16px;}
.field:last-child{margin-bottom:0;}
.field > label{display:block; font-size:13px; font-weight:600; color:var(--ink-700); margin-bottom:7px;}
.field > label .opt{color:var(--ink-300); font-weight:500;}
/* "חובה" next to a label. Peach rather than red: this is a field still to fill, not an error
   the owner already made, and the editor never shouts at someone mid-way through a form. */
.field > label .req{
  display:inline-block; margin-inline-start:6px; padding:1px 7px; border-radius:999px;
  background:var(--peach-50,#fdf1ea); color:var(--butter-ink); border:1px solid var(--peach-200,#f3c9b5);
  font-size:11px; font-weight:700; vertical-align:1px;
}

.inp{
  position:relative; display:flex; align-items:center;
  background:var(--cream); border:1.5px solid var(--line);
  border-radius:var(--r-sm); transition:border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.inp:hover{border-color:var(--butter-200);}
.inp:focus-within{border-color:var(--butter-400); background:var(--white); box-shadow:0 0 0 4px var(--butter-50);}
.inp input, .inp textarea{
  flex:1; width:100%; border:none; background:transparent; outline:none;
  font-size:16px; color:var(--ink-900); padding:13px 15px; resize:none;
}
.inp input::placeholder, .inp textarea::placeholder{color:var(--ink-300);}
.inp .pencil{
  position:absolute; inset-inline-end:13px; width:17px;height:17px;
  stroke:var(--ink-300); stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round;
  opacity:0; transition:opacity .16s ease; pointer-events:none;
}
.inp:hover .pencil{opacity:1;}
.inp:focus-within .pencil{opacity:0;}
.inp .prefix{padding-inline-start:15px; color:var(--ink-500); font-size:15px; font-weight:600; white-space:nowrap;}
.inp .suffix{padding-inline-end:15px; color:var(--ink-500); font-size:14px; white-space:nowrap;}

.two-col{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media(max-width:520px){ .two-col{grid-template-columns:1fr;} }

/* בורר מספר (stepper) */
.steppers{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
@media(max-width:520px){ .steppers{grid-template-columns:1fr;} }
.stepper{
  background:var(--cream); border:1.5px solid var(--line); border-radius:var(--r-md);
  padding:16px 14px; text-align:center; transition:border-color .16s ease;
}
.stepper:hover{border-color:var(--butter-200);}
.stepper .st-lab{font-size:13px; color:var(--ink-500); font-weight:600; display:flex; align-items:center; justify-content:center; gap:7px; margin-bottom:12px;}
.stepper .st-lab svg{width:17px;height:17px;stroke:var(--ink-400,#9c9384);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.st-ctrl{display:flex; align-items:center; justify-content:center; gap:14px;}
.st-btn{
  width:38px;height:38px;border-radius:50%; flex:none; cursor:pointer;
  background:var(--white); border:1.5px solid var(--line); color:var(--ink-700);
  display:grid; place-items:center; transition:all .14s ease;
}
.st-btn:hover{border-color:var(--butter-400); color:var(--butter-500); background:var(--butter-50);}
.st-btn:active{transform:scale(.9);}
.st-btn:disabled{opacity:.35; cursor:not-allowed;}
.st-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;}
.st-val{font-family:var(--serif); font-size:26px; font-weight:800; color:var(--ink-900); min-width:38px;}

/* =========================================================
   גלריה
   ========================================================= */
.gal-meta{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px;}
.gal-count{display:inline-flex; align-items:center; gap:9px; font-size:14px; color:var(--ink-700); font-weight:600;}
.gal-count .bar{width:120px; height:8px; border-radius:99px; background:var(--line); overflow:hidden;}
.gal-count .bar i{display:block; height:100%; background:linear-gradient(90deg,var(--butter-300),var(--peach-300,#FFC09B)); border-radius:99px; transition:width .4s ease;}
.gal-count b{color:var(--ink-900);}

.gal-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
@media(max-width:560px){ .gal-grid{grid-template-columns:repeat(2,1fr);} }
.gphoto{position:relative; aspect-ratio:4/3; border-radius:14px; overflow:hidden; background:var(--sand-100,#F3EADB);}
.gphoto img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;}
.gphoto .g-tools{
  position:absolute; inset:0; border-radius:var(--r-md); pointer-events:none;
  display:flex; align-items:flex-start; justify-content:space-between; padding:9px;
  opacity:0; transition:opacity .16s ease;
}
.gphoto:hover .g-tools{opacity:1;}
.gphoto.is-primary .g-tools{opacity:1;}
.g-tools .g-btn{
  pointer-events:auto; width:32px;height:32px;border-radius:50%; cursor:pointer; border:none;
  background:rgba(59,52,42,.62); color:#fff; display:grid; place-items:center; backdrop-filter:blur(4px);
  transition:background .14s ease, transform .14s ease;
}
.g-tools .g-btn:hover{background:rgba(59,52,42,.85); transform:scale(1.08);}
.g-tools .g-btn svg{width:16px;height:16px;stroke:#fff;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.g-tools .g-star.on{background:var(--butter-400);}
.g-tools .g-star.on svg{fill:#fff;stroke:#fff;}
.gphoto .primary-tag{
  position:absolute; inset-block-end:9px; inset-inline-start:9px;
  display:none; align-items:center; gap:5px;
  background:var(--butter-400); color:var(--butter-ink);
  font-size:11.5px; font-weight:700; padding:5px 11px; border-radius:var(--r-pill);
  box-shadow:var(--shadow-sm);
}
.gphoto .primary-tag svg{width:13px;height:13px;fill:currentColor;stroke:none;}
.gphoto.is-primary .primary-tag{display:inline-flex;}

/* A photo the owner uploaded onto a LIVE page: real to them, not yet on the site. The dashed
   outline says "not final" at a glance, which no wording inside a 140px tile ever could. */
.gphoto.is-pending{outline:2px dashed var(--butter-400); outline-offset:-2px;}
.gphoto .pending-tag{
  position:absolute; inset-block-start:9px; inset-inline-start:9px; z-index:2;
  background:var(--butter-400); color:var(--butter-ink);
  font-size:11px; font-weight:700; padding:4px 10px; border-radius:var(--r-pill);
  box-shadow:var(--shadow-sm);
}

/* ---- compact gallery preview (a few thumbs + manage button) ---- */
.gal-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.gpv-thumb{position:relative;width:84px;height:84px;border-radius:14px;overflow:hidden;background:var(--sand-100,#F3EADB);flex:none;}
.gpv-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.gpv-thumb.has-more img{filter:brightness(.55);}
.gpv-thumb .gpv-more{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;}
.gpv-manage{display:inline-flex;align-items:center;gap:9px;font:inherit;font-weight:700;font-size:14px;color:var(--ink-800,#3B342A);background:var(--white,#fff);border:1.5px solid var(--line,#F0E7D2);border-radius:var(--r-pill,999px);padding:11px 18px;cursor:pointer;transition:border-color .15s,background .15s;}
.gpv-manage:hover{border-color:var(--butter-400,#EFC34A);background:var(--butter-50,#FBF4E2);}
.gpv-manage svg{width:18px;height:18px;stroke:var(--butter-500,#E3B232);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* ---- full-gallery manager modal ---- */
body.gal-locked{overflow:hidden;}
.gal-modal{position:fixed;inset:0;z-index:1200;display:none;align-items:flex-start;justify-content:center;padding:5vh 16px;background:rgba(40,28,12,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);overflow:auto;}
.gal-modal.show{display:flex;}
.gal-modal-card{width:100%;max-width:860px;background:var(--cream,#FFFDF8);border-radius:22px;box-shadow:0 24px 60px rgba(40,28,12,.28);overflow:hidden;}
.gal-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line-soft,#F0E7D2);}
.gal-modal-head h3{margin:0;font-size:18px;color:var(--ink-900,#3B342A);}
.gal-modal-x{width:38px;height:38px;border-radius:50%;border:1px solid var(--line,#F0E7D2);background:var(--white,#fff);display:grid;place-items:center;cursor:pointer;}
.gal-modal-x svg{width:18px;height:18px;stroke:var(--ink-700,#5A5145);fill:none;stroke-width:2;stroke-linecap:round;}
.gal-modal-x:hover{background:var(--sand-100,#F3EADB);}
.gal-modal-body{padding:20px 22px 24px;max-height:78vh;overflow:auto;}
@media(max-width:560px){ .gal-modal-card{border-radius:18px;} .gal-modal-body{padding:14px;} }

.gal-video{margin-top:16px; display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center;}
@media(max-width:520px){ .gal-video{grid-template-columns:1fr;} }
.gal-video .gv-add{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer; white-space:nowrap;
  background:var(--cream); border:1.5px dashed var(--butter-200); color:var(--ink-700);
  font-weight:600; font-size:14px; padding:13px 18px; border-radius:var(--r-sm);
}
.gal-video .gv-add:hover{border-color:var(--butter-400); background:var(--butter-50);}
.gal-video .gv-add svg{width:19px;height:19px;stroke:var(--butter-500);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}

/* =========================================================
   צ'יפים, "מושלם ל" + מתקנים
   ========================================================= */
/* --- chip search + pinned "הכי מבוקשים" row (2026-07-22) --- */
.chip-scope{display:block;}
.chip-search{
  position:relative; display:flex; align-items:center; gap:9px; margin-bottom:14px;
  background:var(--cream); border:1.5px solid var(--line); border-radius:var(--r-pill);
  padding:9px 15px; transition:border-color .16s ease, background .16s ease;
}
.chip-search:focus-within{border-color:var(--butter-300); background:var(--white,#fff);}
.chip-search > svg{width:17px; height:17px; flex:none; stroke:var(--ink-300); fill:none; stroke-width:2.2; stroke-linecap:round;}
.chip-search input{
  flex:1; min-width:0; border:none; background:transparent; outline:none;
  font:inherit; font-size:14.5px; color:var(--ink-900);
}
/* The browser's own clear button sits on the wrong side in RTL and draws a second, differently
   styled affordance next to ours. Suppress it and let Esc / select-all do the clearing. */
.chip-search input::-webkit-search-cancel-button{display:none;}
.chip-search-none{font-size:13px; color:var(--ink-500); white-space:nowrap;}
.chip-search-none[hidden]{display:none;}

.chip-fav{margin-bottom:16px;}
.chip-fav[hidden]{display:none;}
.chip-fav-h{
  display:inline-flex; align-items:center; gap:6px; margin-bottom:10px;
  font-size:12.5px; font-weight:700; color:var(--butter-ink); letter-spacing:.2px;
}
.chip-fav-h svg{width:14px; height:14px; fill:var(--butter-400); stroke:none;}
/* A soft tray behind the pinned row, so it reads as a promoted group rather than as the first
   few chips of the long list that follows it. */
.chip-fav .chips{
  background:linear-gradient(135deg,var(--butter-50),var(--peach-50,#fdf1ea));
  border:1px solid var(--butter-200); border-radius:16px; padding:12px;
}
.chip[hidden], .uns-chip[hidden], .amen-group[hidden]{display:none;}

.chips{display:flex; gap:10px; flex-wrap:wrap;}
.chip{
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  background:var(--cream); border:1.5px solid var(--line); color:var(--ink-700);
  font-size:14.5px; font-weight:600; padding:10px 17px; border-radius:var(--r-pill);
  transition:all .15s ease; user-select:none;
}
.chip svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.chip:hover{border-color:var(--butter-300); background:var(--butter-50);}
.chip .tick{width:0; overflow:hidden; transition:width .18s ease;}
.chip.on{background:var(--butter-100); border-color:var(--butter-300); color:var(--butter-ink);}
.chip.on .tick{width:17px;}
.chip.on.peach{background:var(--peach-100); border-color:var(--peach-200); color:var(--peach-ink);}

.amen-cat{margin-bottom:20px;}
.amen-cat:last-child{margin-bottom:0;}
.amen-cat .ac-h{display:flex; align-items:center; gap:10px; margin-bottom:12px;}
.amen-cat .ac-h .ac-ic{width:30px;height:30px;border-radius:9px;background:var(--peach-50);display:grid;place-items:center;flex:none;}
.amen-cat .ac-h .ac-ic svg{width:17px;height:17px;stroke:var(--peach-400);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.amen-cat .ac-h h4{font-size:15.5px; font-weight:700; color:var(--ink-900);}
.amen-cat .ac-h .ac-cnt{margin-inline-start:auto; font-size:12.5px; color:var(--ink-300); font-weight:600;}

/* =========================================================
   מחיר
   ========================================================= */
.price-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media(max-width:520px){ .price-grid{grid-template-columns:1fr;} }
/* flatten the price field to a single clean framed row (no box-in-box) */
#card-price .inp{display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--cream); padding:0 14px; height:52px; box-shadow:none;}
#card-price .inp:hover{border-color:var(--line);}
#card-price .inp:focus-within{border-color:var(--butter-500); background:var(--cream); box-shadow:none;}
#card-price .inp input{border:0; background:transparent; flex:1; font:600 16px/1 inherit; color:var(--ink-900); outline:0; text-align:right; padding:0;}
#card-price .prefix{padding-inline-start:0; color:var(--ink-500); font-weight:700;}
#card-price .suffix{padding-inline-end:0; color:var(--ink-500); font-size:13px;}
#card-price .field>label{display:block; margin:0 0 6px; font:600 13px/1 inherit; color:var(--ink-700);}
.rec{
  display:flex; align-items:flex-start; gap:11px; margin-top:14px;
  background:var(--mint-50); border:1px solid #DCEEE2; border-radius:var(--r-sm);
  padding:13px 15px; font-size:13.5px; color:var(--ink-700); line-height:1.5;
}
.rec svg{width:18px;height:18px;flex:none;stroke:var(--mint-deep);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;margin-top:1px;}
.rec b{color:var(--mint-deep);}

/* =========================================================
   תיאור, עורך טקסט
   ========================================================= */
.desc-tools{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:11px;}
.desc-tools .tmpl{
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  background:var(--peach-50); border:1px solid var(--peach-100); color:var(--peach-ink);
  font-size:12.5px; font-weight:600; padding:7px 13px; border-radius:var(--r-pill);
}
.desc-tools .tmpl:hover{background:var(--peach-100);}
.desc-tools .tmpl svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.desc-area textarea{min-height:150px; line-height:1.7;}
.char-count{display:flex; justify-content:space-between; align-items:center; margin-top:8px; font-size:12.5px; color:var(--ink-500);}
.char-count .cc-n{font-weight:600;}
.char-count .cc-n.warn{color:var(--peach-ink);}

/* =========================================================
   מפה
   ========================================================= */
.map-wrap{margin-top:14px; border-radius:var(--r-md); overflow:hidden; border:1px solid var(--line); position:relative;}
.map-wrap .map-frame{position:relative; height:230px; background:var(--butter-50);}
.map-wrap iframe{width:100%; height:100%; border:0; display:block; filter:saturate(.92) hue-rotate(-6deg);}
.map-pin-badge{
  position:absolute; top:14px; inset-inline-start:14px; z-index:2;
  display:flex; align-items:center; gap:9px;
  background:rgba(255,253,248,.94); backdrop-filter:blur(6px);
  border:1px solid var(--line); border-radius:var(--r-pill);
  padding:8px 14px 8px 10px; box-shadow:var(--shadow-sm); pointer-events:none;
}
.map-pin-badge .mp{width:26px;height:26px;border-radius:50%;background:var(--peach-400);display:grid;place-items:center;flex:none;}
.map-pin-badge .mp svg{width:15px;height:15px;stroke:#fff;stroke-width:2;fill:none;}
.map-pin-badge b{font-size:13.5px;color:var(--ink-900);}
.map-pin-badge span{font-size:11.5px;color:var(--ink-500);display:block;}

/* =========================================================
   מדיניות וזמינות, לוח שנה
   ========================================================= */
.policy-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media(max-width:520px){ .policy-grid{grid-template-columns:1fr;} }
.seg{display:flex; gap:8px; flex-wrap:wrap;}
.seg .opt{
  cursor:pointer; flex:1; min-width:max-content; text-align:center;
  background:var(--cream); border:1.5px solid var(--line); color:var(--ink-700);
  font-size:14px; font-weight:600; padding:11px 14px; border-radius:var(--r-sm);
  transition:all .14s ease;
}
.seg .opt:hover{border-color:var(--butter-300);}
.seg .opt.on{background:var(--butter-100); border-color:var(--butter-300); color:var(--butter-ink);}

.time-row{display:flex; gap:10px;}
.time-row .inp{flex:1;}

/* calendar */
.cal{margin-top:6px; background:var(--cream); border:1.5px solid var(--line); border-radius:var(--r-md); padding:16px;}
.cal-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;}
.cal-top .cal-nav{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line);background:var(--white);cursor:pointer;display:grid;place-items:center;color:var(--ink-700);}
.cal-top .cal-nav:hover{border-color:var(--butter-300);color:var(--butter-500);}
.cal-top .cal-nav svg{width:17px;height:17px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.cal-top .cal-month{font-family:var(--serif); font-weight:700; font-size:17px; color:var(--ink-900);}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:5px;}
.cal-dow{text-align:center; font-size:11.5px; font-weight:700; color:var(--ink-300); padding-bottom:6px;}
.cal-day{
  aspect-ratio:1; display:grid; place-items:center; border-radius:11px; cursor:pointer;
  font-size:14px; font-weight:600; color:var(--ink-700); background:var(--white); border:1.5px solid transparent;
  transition:all .12s ease;
}
.cal-day:hover{border-color:var(--butter-300);}
.cal-day.blank{background:transparent; cursor:default;}
.cal-day.past{color:var(--ink-300); background:transparent; cursor:not-allowed; text-decoration:line-through;}
.cal-day.busy{background:var(--peach-100); color:var(--peach-ink); border-color:var(--peach-200);}
.cal-day.busy::after{content:""; }
.cal-legend{display:flex; gap:18px; margin-top:14px; flex-wrap:wrap;}
.cal-legend .lg{display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink-500);}
.cal-legend .lg i{width:14px;height:14px;border-radius:5px;display:inline-block;}
.cal-legend .lg i.free{background:var(--white); border:1.5px solid var(--line);}
.cal-legend .lg i.busy{background:var(--peach-100); border:1.5px solid var(--peach-200);}

/* =========================================================
   עזרה גדולה בתחתית
   ========================================================= */
.help-banner{
  background:linear-gradient(140deg, var(--peach-50), var(--butter-50));
  border:1px solid var(--peach-100); border-radius:var(--r-lg);
  padding:26px; display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  margin-top:8px;
}
.help-banner .hb-av{
  width:62px;height:62px;border-radius:50%;flex:none; overflow:hidden;
  background:var(--peach-200); box-shadow:0 0 0 4px var(--white);
}
.help-banner .hb-av image-slot{width:100%;height:100%;}
.help-banner .hb-tx{flex:1; min-width:200px;}
.help-banner .hb-tx h3{font-size:19px; color:var(--ink-900); margin-bottom:5px;}
.help-banner .hb-tx p{font-size:14px; color:var(--ink-700); line-height:1.55;}
.help-banner .hb-btn{flex:none;}

/* =========================================================
   מצב תצוגה מקדימה (preview): מסתיר אמצעי עריכה
   ========================================================= */
body.preview .hint,
body.preview .desc-tools,
body.preview .gal-video .gv-add,
body.preview .char-count,
body.preview .card-head .step-n,
body.preview .inp .pencil,
body.preview .g-tools .g-btn{ display:none !important; }

body.preview .inp{background:transparent; border-color:transparent;}
body.preview .inp:hover{border-color:transparent;}
body.preview .stepper,
body.preview .cal,
body.preview .map-wrap{border-style:solid;}
body.preview .st-btn{display:none;}
body.preview .chip:not(.on){display:none;}
body.preview .chip.on{cursor:default;}
body.preview .chip.on .tick{width:17px;}
body.preview .seg .opt:not(.on){display:none;}
body.preview .gv-add{display:none;}
body.preview .preview-note{display:flex;}

.preview-note{
  display:none; align-items:center; gap:9px; justify-content:center;
  background:var(--peach-100); color:var(--peach-ink);
  border-radius:var(--r-pill); padding:10px 18px; font-size:13.5px; font-weight:600;
  max-width:max-content; margin:0 auto 20px;
}
.preview-note svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none;}

/* toast */
.toast{
  position:fixed; inset-block-end:24px; inset-inline-start:50%; transform:translate(-50%,20px);
  background:var(--ink-900); color:#fff; padding:13px 22px; border-radius:var(--r-pill);
  font-size:14px; font-weight:600; display:flex; align-items:center; gap:10px;
  box-shadow:var(--shadow-pop); opacity:0; pointer-events:none; transition:all .3s cubic-bezier(.2,.7,.2,1); z-index:90;
}
.toast.show{opacity:1; transform:translate(-50%,0);}
.toast svg{width:18px;height:18px;stroke:var(--butter-300);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;}

/* =========================================================
   רספונסיביות: סרגל צד הופך למגירה
   ========================================================= */
@media(max-width:920px){
  .tb-menu{display:flex;}
  /* המגירה: סרגל צד נפתח כפאנל בגובה מלא מצד ימין */
  .sidebar{
    position:fixed; top:0; right:0; left:auto; bottom:0; height:100dvh; max-height:100dvh; z-index:58;
    transform:translateX(100%); transition:transform .28s cubic-bezier(.2,.7,.2,1);
    box-shadow:var(--shadow-pop); width:286px; max-width:86vw; overflow-y:auto;
  }
  .sidebar.open{transform:translateX(0);}
  /* גוף בגובה מלא, ללא סרגל צד דביק בתצוגת מובייל */
  .main{padding-top:22px; width:100%;}
  .shell{display:block;}
  /* הרקע הכהה (scrim) פעיל רק כשהמגירה פתוחה */
  .scrim{display:block;}
}
@media(min-width:921px){ .scrim{display:none;} }

/* =========================================================
   תצוגה מקדימה · דף הוילה כמו שהלקוח רואה (iframe מלא)
   ========================================================= */
.vp-preview{
  position:fixed; inset:var(--topbar-h) 0 0 0; z-index:59;
  height:calc(100dvh - var(--topbar-h));
  background:var(--page); display:none;
}
body.preview .vp-preview{display:block;}
.vp-preview iframe{width:100%; height:100%; border:0; display:block; background:var(--page);}
.vp-preview-loading{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:12px;
  color:var(--ink-500); font-size:15px; font-weight:600; background:var(--page); z-index:1;
}
.vp-preview-loading.hide{display:none;}
.vp-preview-loading .spin{width:26px; height:26px; border-radius:50%; border:3px solid var(--butter-100); border-top-color:var(--butter-400); animation:spin .8s linear infinite;}

/* בתצוגה מקדימה, הסתרת כלי העריכה בטופבר */
body.preview .tb-save,
body.preview .tb-publish{display:none;}
body.preview{overflow:hidden;}
/* תווית "תצוגה חיה" בטופבר */
.tb-livebadge{display:none; align-items:center; gap:7px; background:var(--peach-100); color:var(--peach-ink); font-size:12.5px; font-weight:700; padding:7px 13px; border-radius:var(--r-pill); white-space:nowrap;}
.tb-livebadge svg{width:15px; height:15px; stroke:currentColor; stroke-width:2; fill:none;}
body.preview .tb-livebadge{display:inline-flex;}

/* ============================================================
   APPENDED: site-wide logo replacement
   ============================================================ */
/* ============================================================
   \u05dc\u05d5\u05d2\u05d5 \u05de\u05e8\u05db\u05d6\u05d9 \u00b7 \u05ea\u05e4\u05d5\u05e1\u05d4 \u05de\u05dc\u05d0\u05d4
   Paints uploads/logo.png as the background of every legacy
   brand container (.logo, .brand-tag, .lockup, .fbb-mark) and
   hides the old SVG + text inside. Zero HTML changes needed.
   Artwork aspect: ~2.11:1
   ============================================================ */

.logo, .brand-tag, .lockup, .fbb-mark{
  background-image:url('uploads/logo.png') !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  background-origin:content-box !important;
}
.logo > *, .brand-tag > *, .lockup > *, .fbb-mark > *{
  display:none !important;
}

/* explicit sizes per context (width:height roughly 2.11:1) */
.logo{ width:142px; height:38px; gap:0 !important; }
.hdr .logo{ width:152px; height:40px; transition:width .22s ease, height .22s ease; }
.hdr.scrolled .logo{ width:128px; height:34px; }
.mmenu .logo{ width:138px; height:36px; }
.footer .foot-brand .logo,
.foot-top .foot-brand .logo{ width:168px; height:44px; }
.topbar .logo{ width:132px; height:34px; }

.brand-tag{ width:172px; height:54px; padding:8px 14px !important; gap:0 !important; }
.brand-tag.float{ width:182px; height:58px; }
.site-hdr.scrolled .brand-tag.float{ width:158px; height:50px; transition:width .22s ease, height .22s ease; }
.drawer-head .brand-tag{ width:160px; height:50px; padding:7px 12px !important; box-shadow:none !important; }
.foot-brand .brand-tag{ width:172px; height:54px; padding:9px 14px !important; max-width:100%; }
@media(max-width:1180px){
  .foot-brand .brand-tag{ width:148px; height:48px; padding:8px 12px !important; }
}

.lockup{ width:260px; height:72px; gap:0 !important; }
.brand-card .lockup{ width:248px; height:68px; }

/* footer base copyright \u2014 tiny inline */
.fbb-mark{
  width:84px !important; height:24px !important;
  padding:0 !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
/* the adjacent \u05ea\u05e4\u05d5\u05e1\u05d4 \u05de\u05dc\u05d0\u05d4 in copyright now lives in the logo image */
.fbase-brand b{ display:none !important; }

/* dark design system card \u2014 add a soft glow so the artwork pops */
.brand-card.dark .lockup{
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.35));
}

/* the brand-tag overlap (signature dip below header line) keeps working
   because .brand-tag.float still owns its margin-bottom from header-lab.css */

/* --- owner-screens.css --- */
/* =========================================================
   אזור אישי · מסכים נוספים (דשבורד, לוח שנה, הפניות, הגדרות, מנוי)
   נשען על owner-editor.css לטוקנים, כפתורים, סרגל צד, טופבר, toast.
   ========================================================= */

/* ---- טופבר גנרי לעמודי האזור האישי ---- */
.tb-page{display:flex; align-items:center; gap:12px; min-width:0;}
.tb-page .tp-ic{
  width:40px; height:40px; flex:none; border-radius:13px;
  background:var(--butter-50); display:grid; place-items:center;
}
.tb-page .tp-ic svg{width:22px; height:22px; stroke:var(--butter-500); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.tb-page .tp-tx{min-width:0;}
.tb-page .tp-tx b{display:block; font-family:var(--serif); font-weight:800; font-size:18px; color:var(--ink-900); line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tb-page .tp-tx span{font-size:12.5px; color:var(--ink-500); white-space:nowrap;}

.tb-live{padding:10px 16px; font-size:14px;}
.tb-user{
  display:flex; align-items:center; gap:9px; padding:5px 6px 5px 13px;
  background:var(--cream); border:1.5px solid var(--line); border-radius:var(--r-pill);
  cursor:pointer; transition:border-color .15s ease;
}
.tb-user:hover{border-color:var(--butter-300);}
.tb-user .av{width:34px; height:34px; border-radius:50%; flex:none; background:linear-gradient(150deg,var(--peach-200),var(--butter-300)); display:grid; place-items:center; font-family:var(--serif); font-weight:800; color:#fff; font-size:15px;}
.tb-user .un{font-size:13.5px; font-weight:600; color:var(--ink-900);}
@media(max-width:560px){ .tb-user .un{display:none;} .tb-user{padding:5px;} .tb-page .tp-tx span{display:none;} }

/* ---- כותרת עמוד פנימית ---- */
.scr-head{margin:2px 4px 22px;}
.scr-head h1{font-size:clamp(25px,4.6vw,32px); font-weight:800; margin-bottom:7px;}
.scr-head p{color:var(--ink-500); font-size:15px; max-width:56ch;}
.scr-head .villa-pill{display:inline-flex; align-items:center; gap:7px; background:var(--butter-50); border:1px solid var(--butter-100); color:var(--butter-ink); font-size:13px; font-weight:600; padding:6px 13px; border-radius:var(--r-pill); margin-bottom:13px;}
.scr-head .villa-pill svg{width:15px; height:15px; stroke:currentColor; stroke-width:2; fill:none;}

.canvas-wide{max-width:1080px; margin:0 auto;}

/* =========================================================
   פאנל לבן כללי
   ========================================================= */
.panel{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow-sm);
  padding:24px; margin-bottom:20px;
}
@media(max-width:560px){ .panel{padding:18px 16px; border-radius:var(--r-md);} }
.panel-head{display:flex; align-items:flex-start; gap:12px; margin-bottom:18px; flex-wrap:wrap;}
.panel-head .ph-tx{flex:1; min-width:0;}
.panel-head h2{font-size:19px; font-weight:700;}
.panel-head .ph-sub{font-size:13.5px; color:var(--ink-500); margin-top:3px;}

/* segmented toggle (range) */
.seg-toggle{display:inline-flex; background:var(--cream); border:1.5px solid var(--line); border-radius:var(--r-pill); padding:4px; gap:4px;}
.seg-toggle button{
  border:none; background:transparent; cursor:pointer;
  font-family:var(--sans); font-size:13.5px; font-weight:600; color:var(--ink-500);
  padding:7px 16px; border-radius:var(--r-pill); transition:all .15s ease; white-space:nowrap;
}
.seg-toggle button:hover{color:var(--ink-900);}
.seg-toggle button.on{background:var(--butter-400); color:var(--butter-ink); box-shadow:0 3px 8px rgba(239,195,74,.35);}

/* =========================================================
   דשבורד · כרטיסי מדדים
   ========================================================= */
.dash-grid{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:20px; align-items:start;}
@media(max-width:980px){ .dash-grid{grid-template-columns:1fr;} }

/* Five cards now (impressions leads the row). auto-fit with a 190px floor rather than a hard
   repeat(5,1fr): at the standard canvas five fixed columns squeeze the 32px figures, and this
   lets the row settle at 5, 4, 3 or 2 columns on its own as the canvas narrows. */
.metrics{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px; margin-bottom:20px;}
@media(max-width:860px){ .metrics{grid-template-columns:repeat(2,1fr);} }
@media(max-width:420px){ .metrics{grid-template-columns:1fr;} }
.metric{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm); padding:20px; position:relative; overflow:hidden;
}
.metric .m-ic{width:42px; height:42px; border-radius:13px; display:grid; place-items:center; margin-bottom:14px;}
.metric .m-ic svg{width:22px; height:22px; stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
/* Impressions sit one step BEFORE views in the funnel, so they read as the calmer, more
   neutral tone of the pair rather than competing with it. */
.metric .m-ic.imp{background:var(--sand-100,#F1EADD);} .metric .m-ic.imp svg{stroke:var(--ink-500);}
.metric .m-ic.views{background:var(--butter-50);} .metric .m-ic.views svg{stroke:var(--butter-500);}
.metric .m-ic.wa{background:var(--mint-50);} .metric .m-ic.wa svg{stroke:var(--mint-deep);}
.metric .m-ic.tel{background:var(--peach-50);} .metric .m-ic.tel svg{stroke:var(--peach-400);}
.metric .m-ic.fav{background:#FBEAF0;} .metric .m-ic.fav svg{stroke:#D6709A;}
.metric .m-val{font-family:var(--serif); font-weight:800; font-size:32px; color:var(--ink-900); line-height:1;}
.metric .m-lab{font-size:13.5px; color:var(--ink-500); margin-top:6px;}
.metric .m-delta{display:inline-flex; align-items:center; gap:5px; margin-top:13px; font-size:13px; font-weight:700; padding:5px 11px; border-radius:var(--r-pill);}
.metric .m-delta svg{width:14px; height:14px; stroke:currentColor; stroke-width:2.6; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.metric .m-delta.up{background:var(--mint-50); color:var(--mint-deep);}
.metric .m-delta.down{background:var(--peach-50); color:#C76A3F;}
.metric .m-delta small{font-weight:500; color:var(--ink-500);}

/* =========================================================
   גרף קו
   ========================================================= */
.chart-wrap{position:relative;}
.chart-svg{width:100%; height:auto; display:block; overflow:visible;}
.chart-legend{display:flex; gap:20px; margin-top:14px; flex-wrap:wrap;}
.chart-legend .cl{display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-700); font-weight:600;}
.chart-legend .cl i{width:22px; height:4px; border-radius:99px; display:inline-block;}
.chart-legend .cl i.views{background:var(--butter-400);}
.chart-legend .cl i.leads{background:var(--peach-400);}
.chart-dot{transition:opacity .2s ease;}
.chart-tip{position:absolute; pointer-events:none; background:var(--ink-900); color:#fff; font-size:12.5px; font-weight:600; padding:7px 11px; border-radius:12px; opacity:0; transform:translate(-50%,-130%); white-space:nowrap; transition:opacity .15s ease; box-shadow:var(--shadow-pop); z-index:5;}
.chart-tip b{color:var(--butter-300);}

/* =========================================================
   טבלת מקורות
   ========================================================= */
.src-list{display:flex; flex-direction:column; gap:4px;}
.src-row{display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:13px 8px; border-radius:var(--r-sm); transition:background .14s ease;}
.src-row:hover{background:var(--butter-50);}
.src-row .s-ic{width:38px; height:38px; border-radius:11px; background:var(--cream); border:1px solid var(--line); display:grid; place-items:center; flex:none;}
.src-row .s-ic svg{width:19px; height:19px; stroke:var(--ink-700); stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.src-row .s-tx b{font-size:15px; font-weight:600; color:var(--ink-900); display:block;}
.src-row .s-tx span{font-size:12.5px; color:var(--ink-500);}
.src-row .s-meter{display:flex; align-items:center; gap:12px; min-width:0;}
.src-row .s-bar{width:clamp(80px,18vw,180px); height:9px; border-radius:99px; background:var(--cream); border:1px solid var(--line); overflow:hidden;}
.src-row .s-bar i{display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--butter-300),var(--peach-300,#f6ae85));}
.src-row .s-pct{font-family:var(--serif); font-weight:800; font-size:17px; color:var(--ink-900); min-width:44px; text-align:end;}
@media(max-width:560px){ .src-row{grid-template-columns:auto 1fr; } .src-row .s-meter{grid-column:1 / -1; justify-content:space-between;} }

/* =========================================================
   טיפים לשיפור
   ========================================================= */
.tips-card{
  background:linear-gradient(165deg, var(--peach-50), var(--butter-50));
  border:1px solid var(--peach-100); border-radius:var(--r-lg);
  padding:22px; position:sticky; top:calc(var(--topbar-h) + 16px);
}
.tips-card .tc-head{display:flex; align-items:center; gap:11px; margin-bottom:8px;}
.tips-card .tc-head .ti{width:38px;height:38px;border-radius:12px;background:var(--white);display:grid;place-items:center;box-shadow:var(--shadow-xs);}
.tips-card .tc-head .ti svg{width:21px;height:21px;stroke:var(--peach-400);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.tips-card .tc-head h3{font-size:17px; color:var(--ink-900);}
.tips-card > p{font-size:13px; color:var(--ink-500); margin-bottom:16px; line-height:1.5;}
.tip-item{background:var(--white); border:1px solid rgba(255,226,209,.7); border-radius:var(--r-md); padding:15px; margin-bottom:12px; display:flex; gap:12px; align-items:flex-start;}
.tip-item:last-child{margin-bottom:0;}
.tip-item .tk{width:34px;height:34px;border-radius:10px;flex:none;display:grid;place-items:center;background:var(--butter-50);}
.tip-item .tk svg{width:18px;height:18px;stroke:var(--butter-500);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.tip-item .tt{flex:1; min-width:0;}
.tip-item .tt b{display:block; font-size:14px; font-weight:700; color:var(--ink-900); margin-bottom:3px;}
.tip-item .tt p{font-size:12.5px; color:var(--ink-500); line-height:1.5;}
.tip-item .tt .tip-go{display:inline-flex; align-items:center; gap:5px; margin-top:9px; font-size:12.5px; font-weight:700; color:var(--peach-ink); cursor:pointer; background:none; border:none;}
.tip-item .tt .tip-go svg{width:14px;height:14px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.tip-item .tt .tip-go:hover{gap:8px;}

/* =========================================================
   לוח שנה גדול
   ========================================================= */
.cal-toolbar{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:18px;}
.cal-month-nav{display:flex; align-items:center; gap:14px;}
.cal-month-nav .cmn-btn{width:42px;height:42px;border-radius:50%;border:1.5px solid var(--line);background:var(--white);cursor:pointer;display:grid;place-items:center;color:var(--ink-700);transition:all .14s ease;}
.cal-month-nav .cmn-btn:hover{border-color:var(--butter-400);color:var(--butter-500);background:var(--butter-50);}
.cal-month-nav .cmn-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:2.3;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.cal-month-nav .cmn-title{font-family:var(--serif); font-weight:800; font-size:22px; color:var(--ink-900); min-width:150px; text-align:center;}

.cal-legend-big{display:flex; gap:10px; flex-wrap:wrap;}
.cal-legend-big .lg{display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--ink-700); background:var(--cream); border:1px solid var(--line); padding:7px 13px; border-radius:var(--r-pill);}
.cal-legend-big .lg i{width:13px;height:13px;border-radius:5px;display:inline-block;}
.cal-legend-big .lg i.free{background:var(--mint-50); border:1.5px solid var(--mint);}
.cal-legend-big .lg i.busy{background:var(--peach-100); border:1.5px solid var(--peach-400);}
.cal-legend-big .lg i.special{background:var(--butter-100); border:1.5px solid var(--butter-400);}

.cal-modes{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;}
.cal-mode{display:inline-flex; align-items:center; gap:8px; cursor:pointer; background:var(--cream); border:1.5px solid var(--line); color:var(--ink-700); font-size:13.5px; font-weight:600; padding:9px 15px; border-radius:var(--r-pill); transition:all .14s ease;}
.cal-mode svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.cal-mode:hover{border-color:var(--butter-300);}
.cal-mode.on{background:var(--butter-100); border-color:var(--butter-400); color:var(--butter-ink);}

.calbig{margin-top:4px;}
.calbig .dow-row{display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-bottom:10px;}
.calbig .dow{text-align:center; font-size:13px; font-weight:700; color:var(--ink-300);}
.calbig .days{display:grid; grid-template-columns:repeat(7,1fr); gap:8px;}
.cbd{
  position:relative; min-height:74px; border-radius:16px; cursor:pointer;
  border:1.5px solid var(--line); background:var(--white); padding:9px 10px;
  display:flex; flex-direction:column; transition:all .12s ease; user-select:none;
}
@media(max-width:560px){ .cbd{min-height:54px; padding:6px; border-radius:13px;} }
.cbd .d-num{font-family:var(--serif); font-weight:700; font-size:16px; color:var(--ink-700);}
@media(max-width:560px){ .cbd .d-num{font-size:13px;} }
.cbd:hover{border-color:var(--butter-400); transform:translateY(-1px); box-shadow:var(--shadow-sm);}
.cbd.blank{background:transparent; border:none; cursor:default; pointer-events:none;}
.cbd.past{background:var(--cream); cursor:not-allowed; opacity:.5;}
.cbd.past .d-num{text-decoration:line-through; color:var(--ink-300);}
.cbd.free{background:var(--mint-50); border-color:#CFE8D6;}
.cbd.free .d-num{color:var(--mint-deep);}
.cbd.busy{background:var(--peach-100); border-color:var(--peach-200);}
.cbd.busy .d-num{color:var(--peach-ink);}
.cbd.special{background:var(--butter-100); border-color:var(--butter-300);}
.cbd.special .d-num{color:var(--butter-ink);}
.cbd.sel{box-shadow:0 0 0 3px var(--butter-400); border-color:var(--butter-400);}
.cbd .d-tag{margin-top:auto; font-size:11px; font-weight:700; line-height:1.3;}
@media(max-width:560px){ .cbd .d-tag{display:none;} }
.cbd.busy .d-tag{color:var(--peach-ink);}
.cbd.free .d-tag{color:var(--mint-deep);}
.cbd .d-price{margin-top:auto; font-size:11.5px; font-weight:800; color:var(--butter-ink); font-family:var(--serif);}
@media(max-width:560px){ .cbd .d-price{font-size:9px;} }
.cbd .d-dot{position:absolute; top:8px; inset-inline-end:8px; width:7px; height:7px; border-radius:50%;}
.cbd.special .d-dot{background:var(--butter-500);}

.cal-help{display:flex; align-items:flex-start; gap:10px; background:var(--butter-50); border:1px solid var(--butter-100); border-radius:var(--r-sm); padding:12px 15px; font-size:13px; color:var(--butter-ink); line-height:1.5; margin-top:18px;}
.cal-help svg{width:18px;height:18px;flex:none;stroke:var(--butter-500);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;margin-top:1px;}

/* mini popover for special price */
.pop-backdrop{position:fixed; inset:0; background:rgba(59,52,42,.4); backdrop-filter:blur(3px); z-index:95; display:none; align-items:center; justify-content:center; padding:20px;}
.pop-backdrop.show{display:flex;}
.pop{background:var(--white); border-radius:var(--r-lg); box-shadow:var(--shadow-pop); padding:24px; width:min(380px,100%); animation:popIn .2s ease;}
@keyframes popIn{from{transform:scale(.94); opacity:0;}to{transform:scale(1); opacity:1;}}
.pop h4{font-size:19px; margin-bottom:5px;}
.pop p{font-size:13.5px; color:var(--ink-500); margin-bottom:18px;}
.pop .pop-actions{display:flex; gap:10px; margin-top:20px;}
.pop .pop-actions .btn{flex:1;}

/* =========================================================
   הפניות
   ========================================================= */
.lead-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px;}
@media(max-width:560px){ .lead-stats{grid-template-columns:1fr;} }
.lead-stat{background:var(--white); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-sm); padding:18px 20px; display:flex; align-items:center; gap:14px;}
.lead-stat .ls-n{font-family:var(--serif); font-weight:800; font-size:28px; color:var(--ink-900);}
.lead-stat .ls-l{font-size:13.5px; color:var(--ink-500);}
.lead-stat .ls-d{width:10px;height:10px;border-radius:50%;flex:none;}
.lead-stat .ls-d.new{background:var(--peach-400);}
.lead-stat .ls-d.prog{background:var(--butter-400);}
.lead-stat .ls-d.done{background:var(--mint);}

.lead-filters{display:flex; gap:9px; flex-wrap:wrap; margin-bottom:18px;}
.lead-filter{display:inline-flex; align-items:center; gap:8px; cursor:pointer; background:var(--white); border:1.5px solid var(--line); color:var(--ink-700); font-size:14px; font-weight:600; padding:9px 16px; border-radius:var(--r-pill); transition:all .14s ease;}
.lead-filter .cnt{background:var(--cream); color:var(--ink-500); font-size:12px; font-weight:700; min-width:21px; height:21px; padding:0 6px; border-radius:99px; display:grid; place-items:center;}
.lead-filter:hover{border-color:var(--butter-300);}
.lead-filter.on{background:var(--butter-100); border-color:var(--butter-400); color:var(--butter-ink);}
.lead-filter.on .cnt{background:var(--white); color:var(--butter-ink);}

.leads{display:flex; flex-direction:column; gap:14px;}
.lead{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm);
  padding:20px; display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center;
  transition:box-shadow .16s ease, transform .16s ease;
}
.lead:hover{box-shadow:var(--shadow-md); transform:translateY(-1px);}
@media(max-width:680px){ .lead{grid-template-columns:1fr; gap:14px;} }
/* ---- referrals period picker ---- */
.lead-period{display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:4px 0 14px;}
.lp-chips{display:flex; gap:8px; flex-wrap:wrap;}
.lp-chip{
  display:inline-flex; align-items:center; padding:8px 16px; border-radius:var(--r-pill);
  border:1px solid var(--line); background:var(--white); color:var(--ink-700);
  font-size:13.5px; font-weight:700; text-decoration:none;
  transition:border-color .16s ease, background .16s ease;
}
.lp-chip:hover{border-color:var(--amber-600);}
.lp-chip.on{background:var(--amber-100); border-color:var(--amber-600); color:var(--ink-900);}
.lp-range{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-inline-start:auto;}
.lp-lab{font-size:12.5px; font-weight:700; color:var(--ink-500);}
.lp-range input[type="date"]{
  padding:7px 11px; border:1px solid var(--line); border-radius:var(--r-md);
  background:var(--white); color:var(--ink-900); font-family:inherit; font-size:13px;
}
.lp-range .lp-go{padding:8px 16px; font-size:13.5px;}
.lead-scope{font-size:13px; color:var(--ink-500); margin:0 0 12px;}
.lead-scope.warn{color:var(--peach-ink); font-weight:700;}
@media(max-width:640px){
  .lp-range{margin-inline-start:0; width:100%;}
  .lp-range input[type="date"]{flex:1; min-width:0;}
}

.lead .l-ch{width:52px; height:52px; border-radius:15px; flex:none; display:grid; place-items:center;}
.lead .l-ch svg{width:26px; height:26px; stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.lead .l-ch.wa{background:var(--mint-50);} .lead .l-ch.wa svg{stroke:var(--mint-deep);}
.lead .l-ch.tel{background:var(--peach-50);} .lead .l-ch.tel svg{stroke:var(--peach-400);}
.lead .l-ch.book{background:var(--butter-50);} .lead .l-ch.book svg{stroke:var(--butter-500);}
.lead .l-ch.web{background:var(--cream);} .lead .l-ch.web svg{stroke:var(--ink-500);}
.lead .l-body{min-width:0;}
.lead .l-top{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:7px;}
.lead .l-name{font-family:var(--serif); font-weight:700; font-size:17px; color:var(--ink-900);}
.lead .l-goal{display:inline-flex; align-items:center; gap:5px; background:var(--butter-50); border:1px solid var(--butter-100); color:var(--butter-ink); font-size:12.5px; font-weight:700; padding:4px 11px; border-radius:var(--r-pill);}
/* Which villa this lead arrived at. Rendered only in all-villas mode, where the list mixes
   villas and a row without it would be unreadable. Deliberately cooler than .l-goal so the
   guest's intent stays the loudest thing in the row. */
.lead .l-villa{display:inline-flex; align-items:center; gap:5px; background:var(--cream); border:1px solid var(--line); color:var(--ink-700); font-size:12px; font-weight:700; padding:4px 10px; border-radius:var(--r-pill);}
.lead .l-villa svg{width:13px; height:13px; flex:none; fill:none; stroke:var(--ink-500); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}
.lead .l-meta{display:flex; gap:18px; flex-wrap:wrap; font-size:13.5px; color:var(--ink-500);}
.lead .l-meta span{display:inline-flex; align-items:center; gap:6px;}
.lead .l-meta svg{width:15px;height:15px;stroke:var(--ink-300);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.lead .l-meta b{color:var(--ink-700); font-weight:600;}
.lead .l-side{display:flex; flex-direction:column; align-items:flex-end; gap:10px;}
@media(max-width:680px){ .lead .l-side{flex-direction:row; align-items:center; justify-content:space-between;} }
.lead .l-when{font-size:12.5px; color:var(--ink-300); white-space:nowrap;}

/* status select pill */
.status-sel{position:relative;}
.status-sel .ss-btn{display:inline-flex; align-items:center; gap:8px; cursor:pointer; border:1.5px solid; background:var(--white); font-size:13.5px; font-weight:700; padding:9px 15px; border-radius:var(--r-pill); transition:all .14s ease;}
.status-sel .ss-btn .sd{width:9px;height:9px;border-radius:50%;}
.status-sel .ss-btn svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.6;}
.status-sel[data-status=new] .ss-btn{border-color:var(--peach-200); color:#C76A3F; background:var(--peach-50);}
.status-sel[data-status=new] .ss-btn .sd{background:var(--peach-400);}
.status-sel[data-status=prog] .ss-btn{border-color:var(--butter-300); color:var(--butter-ink); background:var(--butter-50);}
.status-sel[data-status=prog] .ss-btn .sd{background:var(--butter-400);}
.status-sel[data-status=done] .ss-btn{border-color:#CFE8D6; color:var(--mint-deep); background:var(--mint-50);}
.status-sel[data-status=done] .ss-btn .sd{background:var(--mint);}
.status-sel .ss-menu{position:absolute; inset-inline-end:0; top:calc(100% + 6px); background:var(--white); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-pop); padding:6px; z-index:20; min-width:160px; display:none;}
.status-sel.open .ss-menu{display:block;}
.status-sel .ss-menu button{display:flex; align-items:center; gap:9px; width:100%; text-align:start; background:none; border:none; cursor:pointer; font-family:var(--sans); font-size:14px; font-weight:600; color:var(--ink-700); padding:10px 12px; border-radius:12px;}
.status-sel .ss-menu button:hover{background:var(--butter-50);}
.status-sel .ss-menu button .sd{width:9px;height:9px;border-radius:50%;}
.status-sel .ss-menu .sd.new{background:var(--peach-400);}
.status-sel .ss-menu .sd.prog{background:var(--butter-400);}
.status-sel .ss-menu .sd.done{background:var(--mint);}

.lead.hide{display:none;}

/* =========================================================
   הגדרות חשבון
   ========================================================= */
.set-card{background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:24px; margin-bottom:18px;}
@media(max-width:560px){ .set-card{padding:18px 16px;} }
.set-card .sc-head{display:flex; align-items:center; gap:12px; margin-bottom:18px;}
.set-card .sc-head .si{width:40px;height:40px;border-radius:12px;background:var(--butter-50);display:grid;place-items:center;flex:none;}
.set-card .sc-head .si svg{width:21px;height:21px;stroke:var(--butter-500);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.set-card .sc-head h2{font-size:18px; font-weight:700;}
.set-card .sc-head .sc-sub{font-size:13px; color:var(--ink-500); margin-top:2px;}

/* toggle switch */
.notif-row{display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--line-soft);}
.notif-row:first-of-type{border-top:none;}
.notif-row .nr-tx{flex:1; min-width:0;}
.notif-row .nr-tx b{display:block; font-size:15px; font-weight:600; color:var(--ink-900);}
.notif-row .nr-tx span{font-size:13px; color:var(--ink-500);}
.switch{position:relative; width:52px; height:30px; flex:none; cursor:pointer;}
.switch input{position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer;}
.switch .track{position:absolute; inset:0; background:var(--line-strong,#E2D6BC); border-radius:99px; transition:background .2s ease;}
.switch .knob{position:absolute; top:3px; inset-inline-start:3px; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.18); transition:transform .2s cubic-bezier(.2,.7,.2,1);}
.switch input:checked + .track{background:var(--butter-400);}
.switch input:checked ~ .knob{transform:translateX(-22px);}

/* =========================================================
   חבילת המנוי
   ========================================================= */
.plan-hero{
  background:linear-gradient(150deg, var(--butter-100), var(--peach-50));
  border:1px solid var(--butter-200); border-radius:var(--r-xl);
  padding:28px; margin-bottom:20px; position:relative; overflow:hidden;
}
.plan-hero::after{content:""; position:absolute; inset-block-start:-60px; inset-inline-start:-40px; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.6), transparent 70%); pointer-events:none;}
.plan-hero .ph-row{display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap; position:relative;}
.plan-hero .ph-badge{display:inline-flex; align-items:center; gap:7px; background:var(--white); color:var(--butter-ink); font-size:12.5px; font-weight:700; padding:6px 13px; border-radius:var(--r-pill); margin-bottom:13px; box-shadow:var(--shadow-xs);}
.plan-hero .ph-badge svg{width:14px;height:14px;stroke:var(--butter-500);stroke-width:2.2;fill:none;}
.plan-hero h2{font-family:var(--serif); font-weight:800; font-size:30px; color:var(--ink-900);}
.plan-hero .ph-price{font-size:15px; color:var(--ink-700); margin-top:6px;}
.plan-hero .ph-price b{font-family:var(--serif); font-weight:800; font-size:24px; color:var(--ink-900);}
.plan-hero .ph-renew{background:var(--white); border-radius:var(--r-md); padding:14px 18px; box-shadow:var(--shadow-xs); min-width:180px;}
.plan-hero .ph-renew .lbl{font-size:12.5px; color:var(--ink-500); display:flex; align-items:center; gap:7px;}
.plan-hero .ph-renew .lbl svg{width:15px;height:15px;stroke:var(--peach-400);stroke-width:2;fill:none;}
.plan-hero .ph-renew .val{font-family:var(--serif); font-weight:800; font-size:18px; color:var(--ink-900); margin-top:5px;}
@media(max-width:560px){
  .plan-hero{padding:22px 18px;}
  .plan-hero h2{font-size:25px;}
  .plan-hero .ph-renew{min-width:0; width:100%;}
}

.plan-incl{display:grid; grid-template-columns:repeat(2,1fr); gap:14px 24px; margin-top:8px;}
@media(max-width:600px){ .plan-incl{grid-template-columns:1fr; gap:13px;} }
.plan-incl .pi{display:flex; align-items:center; gap:11px; font-size:14.5px; color:var(--ink-700); min-width:0;}
.plan-incl .pi span:last-child{flex:1; min-width:0; line-height:1.4;}
.plan-incl .pi .pc{width:26px;height:26px;border-radius:50%;background:var(--mint-50);display:grid;place-items:center;flex:none;}
.plan-incl .pi .pc svg{width:14px;height:14px;stroke:var(--mint-deep);stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round;}

.no-fees{display:flex; align-items:center; gap:11px; background:var(--mint-50); border:1px solid #CFE8D6; border-radius:var(--r-md); padding:14px 18px; margin-top:18px; font-size:14px; color:var(--mint-deep); font-weight:600; line-height:1.4;}
.no-fees svg{width:20px;height:20px;stroke:var(--mint-deep);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none;}

/* payment history — responsive list (no fragile table) */
.pay-list{display:flex; flex-direction:column;}
.pay-item{
  display:grid; grid-template-columns:1fr auto auto auto; gap:16px; align-items:center;
  padding:16px 8px; border-top:1px solid var(--line-soft);
}
.pay-item:first-child{border-top:none;}
.pay-item .pi-main{min-width:0;}
.pay-item .pi-main b{display:block; font-size:15px; font-weight:600; color:var(--ink-900);}
.pay-item .pi-main span{font-size:13px; color:var(--ink-500);}
.pay-item .pi-amt{font-family:var(--serif); font-weight:800; font-size:17px; color:var(--ink-900); white-space:nowrap;}
.pay-badge{display:inline-flex; align-items:center; gap:6px; background:var(--mint-50); color:var(--mint-deep); font-size:12.5px; font-weight:700; padding:5px 11px; border-radius:var(--r-pill); white-space:nowrap;}
.pay-badge svg{width:13px;height:13px;stroke:currentColor;stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.pay-inv{display:inline-flex; align-items:center; gap:6px; color:var(--ink-500); font-size:13px; font-weight:600; cursor:pointer; background:none; border:none; white-space:nowrap;}
.pay-inv:hover{color:var(--butter-600);}
.pay-inv svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
@media(max-width:600px){
  .pay-item{grid-template-columns:1fr auto; gap:6px 14px; padding:16px 4px;}
  .pay-item .pi-amt{grid-row:1; grid-column:2; text-align:end;}
  .pay-item .pay-badge{grid-row:2; grid-column:1; justify-self:start;}
  .pay-item .pay-inv{grid-row:2; grid-column:2; justify-self:end;}
}

.upgrade-row{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; background:var(--cream); border:1.5px dashed var(--butter-200); border-radius:var(--r-md); padding:18px 22px; margin-top:18px;}
.upgrade-row .ur-tx{flex:1; min-width:0;}
.upgrade-row .ur-tx b{display:block; font-family:var(--serif); font-weight:700; font-size:16px; color:var(--ink-900); margin-bottom:3px;}
.upgrade-row .ur-tx span{font-size:13px; color:var(--ink-500);}
@media(max-width:600px){
  .upgrade-row{padding:18px;}
  .upgrade-row .btn{width:100%; justify-content:center;}
}

/* --- owner-gamify.css --- */
/* =========================================================
   אזור אישי · שכבת הכוונה וגיימיפיקציה לבעל הוילה
   מד שלמות, תגיות הישג, טיפים חכמים, חוזק הדף.
   נשען על owner-editor.css לטוקנים.
   ========================================================= */

/* ---- בלוק עליון: שלמות + איך לבלוט ---- */
.gamify{display:grid; grid-template-columns:1.35fr 1fr; gap:18px; margin-bottom:18px;}
@media(max-width:760px){ .gamify{grid-template-columns:1fr;} }

/* ===== כרטיס שלמות הפרופיל ===== */
.completion{
  background:linear-gradient(155deg, var(--butter-50), #FFF8E3 55%, var(--peach-50));
  border:1px solid var(--butter-200); border-radius:var(--r-lg);
  padding:22px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden;
}
.completion::after{content:""; position:absolute; inset-block-start:-50px; inset-inline-start:-30px; width:170px; height:170px; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.65), transparent 70%); pointer-events:none;}
.comp-top{display:flex; align-items:center; gap:18px; position:relative;}
.comp-ring{width:84px; height:84px; flex:none; position:relative;}
.comp-ring svg{width:84px; height:84px; transform:rotate(-90deg);}
.comp-ring .ring-bg{fill:none; stroke:rgba(201,154,30,.16); stroke-width:9;}
.comp-ring .ring-fg{fill:none; stroke:url(#compGrad); stroke-width:9; stroke-linecap:round; transition:stroke-dasharray .7s cubic-bezier(.2,.7,.2,1);}
.comp-ring .ring-num{position:absolute; inset:0; display:grid; place-items:center; font-family:var(--serif); font-weight:800; font-size:23px; color:var(--ink-900);}
.comp-tx{flex:1; min-width:0;}
.comp-tx h3{font-family:var(--serif); font-size:19px; color:var(--ink-900); margin-bottom:3px;}
.comp-tx p{font-size:13.5px; color:var(--ink-700); line-height:1.45;}
.comp-tx p b{color:var(--butter-ink); font-weight:700;}

/* רשימת מה נשאר */
.comp-tasks{list-style:none; margin:18px 0 0; padding:16px 0 0; border-top:1px solid rgba(201,154,30,.18); display:flex; flex-direction:column; gap:3px; position:relative;}
.comp-task{display:flex; align-items:center; gap:11px; padding:8px 9px; border-radius:13px; cursor:pointer; transition:background .14s ease; text-decoration:none;}
.comp-task:hover{background:rgba(255,255,255,.6);}
.comp-task .ct-box{width:23px; height:23px; border-radius:50%; flex:none; display:grid; place-items:center; transition:all .2s ease;}
.comp-task .ct-box svg{width:14px; height:14px; fill:none; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round;}
.comp-task.done .ct-box{background:var(--mint); }
.comp-task.done .ct-box svg{stroke:#fff;}
.comp-task.todo .ct-box{background:var(--white); border:1.5px solid var(--butter-200);}
.comp-task.todo .ct-box svg{stroke:var(--butter-400);}
.comp-task .ct-lab{flex:1; min-width:0; font-size:14px; font-weight:600; color:var(--ink-900);}
.comp-task.done .ct-lab{color:var(--ink-500); font-weight:500;}
.comp-task .ct-go{font-size:12px; font-weight:700; color:var(--peach-ink); display:inline-flex; align-items:center; gap:3px; white-space:nowrap; opacity:0; transition:opacity .14s ease;}
.comp-task.todo:hover .ct-go{opacity:1;}
.comp-task .ct-go svg{width:13px; height:13px; stroke:currentColor; stroke-width:2.6; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.comp-task.done .ct-go{display:none;}

/* ===== כרטיס איך לבלוט ===== */
.standout{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:20px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column;
}
.standout .so-head{display:flex; align-items:center; gap:10px; margin-bottom:6px;}
.standout .so-head .so-ic{width:36px; height:36px; border-radius:11px; background:var(--peach-50); display:grid; place-items:center; flex:none;}
.standout .so-head .so-ic svg{width:20px; height:20px; stroke:var(--peach-deep,#E68A5C); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.standout .so-head h3{font-family:var(--serif); font-size:17px; color:var(--ink-900);}
.standout .so-sub{font-size:12.5px; color:var(--ink-500); margin-bottom:14px;}
.so-tips{position:relative; flex:1; min-height:96px;}
.so-tip{position:absolute; inset:0; opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease; pointer-events:none; display:flex; gap:12px; align-items:flex-start;}
.so-tip.on{opacity:1; transform:none; pointer-events:auto;}
.so-tip .st-ic{width:38px; height:38px; border-radius:12px; flex:none; background:var(--butter-50); display:grid; place-items:center;}
.so-tip .st-ic svg{width:21px; height:21px; stroke:var(--butter-500); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.so-tip .st-tx b{display:block; font-size:14.5px; font-weight:700; color:var(--ink-900); margin-bottom:4px;}
.so-tip .st-tx p{font-size:13px; color:var(--ink-500); line-height:1.5;}
.so-dots{display:flex; gap:7px; margin-top:14px; justify-content:center;}
.so-dots button{width:8px; height:8px; border-radius:50%; border:none; background:var(--line-soft); cursor:pointer; padding:0; transition:all .2s ease;}
.so-dots button.on{background:var(--peach-400); width:22px; border-radius:99px;}

/* ===== תגיות הישג ===== */
.badges{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm); padding:20px 22px; margin-bottom:22px;
}
.badges-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:15px; flex-wrap:wrap;}
.badges-head h3{font-family:var(--serif); font-size:17px; color:var(--ink-900); display:flex; align-items:center; gap:9px;}
.badges-head h3 svg{width:20px; height:20px; stroke:var(--butter-500); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.badges-head .b-count{font-size:13px; color:var(--ink-500); font-weight:600;}
.badges-head .b-count b{color:var(--butter-ink); font-family:var(--serif);}
.badge-row{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
@media(max-width:680px){ .badge-row{grid-template-columns:repeat(2,1fr);} }
.badge{
  text-align:center; border-radius:var(--r-md); padding:16px 12px; border:1.5px solid var(--line);
  background:var(--cream); transition:all .25s cubic-bezier(.2,.7,.2,1); position:relative;
}
.badge .bg-medal{width:52px; height:52px; border-radius:50%; margin:0 auto 10px; display:grid; place-items:center; transition:all .25s ease;}
.badge .bg-medal svg{width:27px; height:27px; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
.badge .bg-name{font-size:13.5px; font-weight:700; color:var(--ink-900); line-height:1.25;}
.badge .bg-sub{font-size:11px; color:var(--ink-300); margin-top:3px; line-height:1.3;}
/* locked */
.badge .bg-lock{position:absolute; top:10px; inset-inline-end:10px; width:16px; height:16px;}
.badge .bg-lock svg{width:16px; height:16px; stroke:var(--ink-300); stroke-width:2; fill:none;}
.badge.locked .bg-medal{background:var(--line-soft);}
.badge.locked .bg-medal svg{stroke:var(--ink-300);}
.badge.locked .bg-name{color:var(--ink-300);}
/* unlocked */
.badge.unlocked .bg-lock{display:none;}
.badge.unlocked{background:linear-gradient(160deg, var(--butter-50), var(--peach-50)); border-color:var(--butter-200); box-shadow:0 6px 16px rgba(239,198,70,.18);}
.badge.unlocked .bg-medal{background:linear-gradient(150deg, var(--butter-300), var(--peach-300,#f6ae85)); box-shadow:0 5px 14px rgba(239,198,70,.4);}
.badge.unlocked .bg-medal svg{stroke:#fff;}
.badge.unlocked .bg-name{color:var(--ink-900);}
.badge.unlocked .bg-sub{color:var(--butter-ink);}
@keyframes badgePop{0%{transform:scale(.6); opacity:0;} 60%{transform:scale(1.12);} 100%{transform:scale(1); opacity:1;}}
.badge.just-unlocked .bg-medal{animation:badgePop .5s cubic-bezier(.2,.8,.3,1.2);}

/* ===== משפחת הנעילה: מקטע/גוף/הערה נעולים =====
   משפחה אחת לשימוש חוזר בכל המסכים, לא אוברליי ייעודי לכל מקום.
   השפה החזותית היא של .upgrade-row (מסגרת מקווקוות על שמנת) כדי שתיקרא ילידית,
   לצד האידיום הקיים של .badge.locked שמעליה. רק טוקנים קיימים.
   שימו לב: בלוק נעול לעולם לא מרנדר node של ערך, ולכן אין כאן שום כלל טשטוש.
   טשטוש הוא אפקט CSS ולא גבול, והמספר היה נשאר קריא ב-devtools. */
.lock-panel{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px;
  background:var(--cream); border:1.5px dashed var(--butter-200); border-radius:var(--r-md);
  padding:26px 22px;
}
.lock-panel .lock-ic{
  width:44px; height:44px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:var(--butter-50); border:1px solid var(--butter-100);
}
.lock-panel .lock-ic svg{width:21px; height:21px; fill:none; stroke:var(--butter-500); stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;}
.lock-panel h3{margin:0; font-family:var(--serif); font-weight:700; font-size:16.5px; color:var(--ink-900);}
.lock-panel p{margin:0; font-size:13.5px; color:var(--ink-500); max-width:420px; line-height:1.5;}

/* גלולת "זמין בחבילה X" */
.lock-note{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--butter-50); border:1px solid var(--butter-100); border-radius:var(--r-pill);
  padding:4px 11px; font-size:12px; font-weight:700; color:var(--butter-ink); white-space:nowrap;
}
.lock-note svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}

.lock-cta{margin-top:2px;}

/* גוף כרטיס נעול: אותה שפה, פדינג מצומצם, יושב בתוך .card-body קיים */
.lock-body{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:9px;
  background:var(--cream); border:1.5px dashed var(--butter-200); border-radius:var(--r-sm);
  padding:20px 18px;
}
.lock-body .lock-ic{width:38px; height:38px;}
.lock-body .lock-ic svg{width:18px; height:18px;}
.lock-body p{margin:0; font-size:13px; color:var(--ink-500); max-width:380px; line-height:1.5;}

/* פריט ניווט נעול: עדיין לחיץ, רק מרומז */
.nav-item.locked{opacity:.62;}
.nav-item.locked .nv-lock{margin-inline-start:auto; width:13px; height:13px; flex:none;}
.nav-item.locked .nv-lock svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2;}

/* כרטיס מטריקה נעול: תווית + מנעול בלבד, ללא node של ערך */
.metric.is-locked{background:var(--cream); border-style:dashed; border-color:var(--butter-200);}
.metric.is-locked .m-ic{background:var(--line-soft);}
.metric.is-locked .m-ic svg{stroke:var(--ink-300);}
.metric.is-locked .m-lab{color:var(--ink-300); margin-top:0;}
.metric.is-locked .lock-note{margin-top:10px;}

/* ===== טיפ חכם מבוסס נתון (מוזרק לתוך כרטיסים) ===== */
.smart-tip{
  display:flex; align-items:flex-start; gap:11px; margin-bottom:16px;
  background:linear-gradient(120deg, var(--butter-50), var(--peach-50));
  border:1px solid var(--butter-100); border-radius:var(--r-sm); padding:12px 15px;
}
.smart-tip .stp-ic{width:30px; height:30px; border-radius:9px; flex:none; background:var(--white); display:grid; place-items:center; box-shadow:var(--shadow-xs);}
.smart-tip .stp-ic svg{width:17px; height:17px; stroke:var(--peach-deep,#E68A5C); stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.smart-tip .stp-tx{flex:1; min-width:0; font-size:13px; color:var(--ink-700); line-height:1.5;}
.smart-tip .stp-tx b{color:var(--butter-ink); font-weight:700;}
.smart-tip .stp-tx .stp-live{font-weight:700; color:var(--peach-ink);}

/* ===== טיפ גוגל ידידותי ===== */
.seo-tip{
  display:flex; align-items:flex-start; gap:10px; margin-bottom:16px;
  background:var(--cream); border:1px dashed var(--butter-200); border-radius:var(--r-sm); padding:12px 15px;
}
.seo-tip .seo-ic{width:30px;height:30px;border-radius:9px;flex:none;background:var(--butter-50);display:grid;place-items:center;}
.seo-tip .seo-ic svg{width:17px;height:17px;stroke:var(--butter-500);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.seo-tip .seo-tx{flex:1; min-width:0; font-size:13px; color:var(--ink-700); line-height:1.5;}
.seo-tip .seo-tx b{color:var(--ink-900); font-weight:700;}
.seo-tip .seo-tx em{font-style:normal; background:var(--butter-100); color:var(--butter-ink); padding:1px 7px; border-radius:6px; font-weight:600; white-space:nowrap;}

/* ===== מד חוזק הדף (בתוך כרטיס השלמות) ===== */
.strength{margin-top:16px; background:var(--white); border-radius:var(--r-md); padding:14px 16px; box-shadow:var(--shadow-xs);}
.strength .str-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.strength .str-top .str-lab{font-size:13px; font-weight:600; color:var(--ink-700); display:flex; align-items:center; gap:7px;}
.strength .str-top .str-lab svg{width:16px;height:16px;stroke:var(--ink-500);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.strength .str-val{font-family:var(--serif); font-weight:800; font-size:14px; padding:3px 11px; border-radius:var(--r-pill);}
.strength.weak .str-val{background:var(--peach-50); color:#C76A3F;}
.strength.good .str-val{background:var(--butter-100); color:var(--butter-ink);}
.strength.great .str-val{background:var(--mint-50,#E9F4E7); color:var(--mint-deep);}
.str-segs{display:grid; grid-template-columns:repeat(3,1fr); gap:6px;}
.str-segs i{height:8px; border-radius:99px; background:var(--line); transition:background .3s ease;}
.strength.weak .str-segs i:nth-child(1){background:#E8915F;}
.strength.good .str-segs i:nth-child(1),.strength.good .str-segs i:nth-child(2){background:var(--butter-400);}
.strength.great .str-segs i{background:var(--mint);}

/* ===== מד חוזק קטן ליד פרסום (טופבר) ===== */
.strength-pill{display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; padding:7px 13px; border-radius:var(--r-pill); white-space:nowrap;}
.strength-pill .sp-dots{display:flex; gap:3px;}
.strength-pill .sp-dots i{width:6px; height:6px; border-radius:50%; background:rgba(0,0,0,.12);}
.strength-pill.weak{background:var(--peach-50); color:#C76A3F;}
.strength-pill.weak .sp-dots i:nth-child(1){background:#E8915F;}
.strength-pill.good{background:var(--butter-100); color:var(--butter-ink);}
.strength-pill.good .sp-dots i:nth-child(1),.strength-pill.good .sp-dots i:nth-child(2){background:var(--butter-500);}
.strength-pill.great{background:var(--mint-50,#E9F4E7); color:var(--mint-deep);}
.strength-pill.great .sp-dots i{background:var(--mint);}
.strength-pill .sp-ic{width:14px;height:14px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
@media(max-width:880px){ .strength-pill .sp-txt{display:none;} }
@media(max-width:560px){ .strength-pill{display:none;} }

/* hide gamify chrome in preview (customer view) */
body.preview .gamify,
body.preview .badges,
body.preview .smart-tip,
body.preview .seo-tip,
body.preview .strength-pill{display:none !important;}

/* celebratory confetti-free toast variant */
.toast.win{background:linear-gradient(120deg,#3F8C5E,#5FAE6B);}
.toast.win svg{stroke:#fff;}

/* ===== city combobox (owner edit details) ===== */
.city-combo{position:relative}
.city-combo .inp{cursor:text}
.city-combo .ci-caret{width:18px;height:18px;stroke:var(--ink-300);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .2s ease}
.city-combo.open .ci-caret{transform:rotate(180deg)}
.city-pop{position:absolute;inset-inline:0;top:calc(100% + 6px);background:var(--white,#fff);border:1px solid var(--line,#F0E7D2);border-radius:16px;box-shadow:var(--shadow-pop,0 12px 34px rgba(90,70,7,.16));max-height:300px;overflow:auto;z-index:60;display:none;padding:6px}
.city-combo.open .city-pop{display:block}
.city-opt{padding:10px 12px;border-radius:11px;font-size:14.5px;color:var(--ink-900,#3B342A);cursor:pointer;line-height:1.3}
.city-opt:hover,.city-opt.on{background:var(--butter-50,#FFF8DF)}
.city-empty{padding:12px;color:var(--ink-500,#8C8273);font-size:13.5px;line-height:1.5}

/* ===== auth screen (logged-out) ===== */
.own-authwrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 18px;background:var(--page,#FFFBF1)}
.own-authwrap .own-auth{width:100%;max-width:420px;background:var(--white,#fff);border:1px solid var(--line,#F0E7D2);border-radius:28px;box-shadow:var(--shadow-md,0 10px 30px rgba(90,70,7,.06));padding:30px 26px}
.own-authwrap .auth-brand{margin-bottom:18px}
.own-authwrap .g_id_signin{display:flex;justify-content:center;margin:4px 0 2px}
/* ===== תגית החבילה בהדר העליון (דסקטופ בלבד) =====
   מוסתרת מתחת ל-1024: ההדר במובייל צר, והרצועה המתחלפת הייתה דוחקת את שם העמוד */
.plan-chip{display:none}
@media(min-width:1024px){
  .plan-chip{display:flex;align-items:center;gap:12px;margin-inline-start:18px;padding:6px 8px 6px 6px;border:1px solid var(--line,#F0E7D2);border-radius:999px;background:var(--white,#fff);max-width:min(46vw,560px)}
  .pchip-tag{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:5px 11px;border-radius:999px;background:color-mix(in srgb,var(--pc) 10%,transparent)}
  .pchip-tag .pt-dot{width:7px;height:7px;border-radius:50%;background:var(--pc);box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 20%,transparent)}
  .pchip-tag .pt-lb{font-size:11px;color:var(--ink-500,#8a7a63);font-weight:600}
  .pchip-tag b{font-size:13px;color:var(--pc);font-weight:800;white-space:nowrap}
  /* גובה קבוע: הפריטים מוערמים זה על זה, אז בלי גובה מפורש הרצועה קורסת */
  .pchip-roll{position:relative;flex:1 1 auto;height:34px;overflow:hidden;min-width:0}
  .pchip-roll .pr-item{position:absolute;inset:0;display:flex;align-items:center;gap:7px;font-size:12.5px;line-height:1.35;color:var(--ink-700,#5c4a33);opacity:0;animation:tfusaPchip 18s cubic-bezier(.4,0,.2,1) infinite}
  .pchip-roll .pr-item svg{flex:0 0 auto;width:14px;height:14px;fill:none;stroke:var(--butter-ink,#c99a3a);stroke-width:1.8;stroke-linejoin:round}
  .pchip-roll .pr-item em{font-style:normal;font-weight:800;color:var(--ink-900,#3C2A18);white-space:nowrap}
  /* שלושה פריטים, 18 שניות, השהיה של 6 לכל אחד: כל אחד גלוי כשליש מהמחזור */
  @keyframes tfusaPchip{
    0%,2%{opacity:0;transform:translateY(7px)}
    5%,28%{opacity:1;transform:none}
    32%,100%{opacity:0;transform:translateY(-7px)}
  }
  .pchip-up{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:7px 13px;border-radius:999px;background:var(--ink-900,#3C2A18);color:#fff;font-size:12.5px;font-weight:800;text-decoration:none;transition:transform .12s,opacity .12s}
  .pchip-up:hover{transform:translateY(-1px);opacity:.92}
  .pchip-up svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
  .plan-chip.is-top .pchip-note{font-size:12.5px;color:var(--ink-500,#8a7a63);padding-inline-end:6px}
}
/* כיבוד העדפת מערכת: מי שביקש פחות תנועה מקבל את ההערה הראשונה, קבועה */
@media(prefers-reduced-motion:reduce){
  .pchip-roll .pr-item{animation:none;opacity:0}
  .pchip-roll .pr-item:first-child{opacity:1}
}
.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}

/* ===== בקשת הסרת המקום מהאתר ===== */
/* Quiet by design. Removing a place is a legitimate option and must be findable, but it should
   never compete visually with the buttons that keep the page alive. */
.danger-zone{margin:26px 0 0}
.dz-box{border:1px solid var(--line,#F0E7D2);border-radius:16px;background:var(--white,#fff);overflow:hidden}
.dz-box > summary{
  list-style:none;cursor:pointer;padding:15px 18px;font-size:13.5px;font-weight:600;
  color:var(--ink-500,#7d7365);display:flex;align-items:center;gap:8px;
}
.dz-box > summary::-webkit-details-marker{display:none}
.dz-box > summary::before{content:"";width:7px;height:7px;border-radius:50%;background:#D9A08C;flex:none}
.dz-box > summary:hover{color:var(--ink-900,#2C261E)}
.dz-form{padding:0 18px 18px;border-top:1px solid var(--line-soft,#F6EFE2)}
.dz-form p{margin:14px 0 16px;font-size:13px;line-height:1.7;color:var(--ink-500,#7d7365)}
.dz-btn{color:#8C4A32;border-color:var(--peach-200,#F3C9B5)}
.dz-btn:hover{background:var(--peach-50,#FDF1EA)}

/* ===== הודעת רמת דיוק של הסיכה במפה ===== */
.map-precision{display:none;margin:10px 0 0;padding:10px 13px;border-radius:12px;font-size:12.5px;line-height:1.6}
.map-precision.is-exact,.map-precision.is-street,.map-precision.is-city,
.map-precision.is-locality,.map-precision.is-approx{display:block}
.map-precision.is-exact{background:var(--mint-50,#EAF7F0);color:var(--mint-deep,#276B4B)}
.map-precision.is-street,.map-precision.is-city,.map-precision.is-locality{background:var(--butter-50,#FFF6DF);color:var(--butter-ink,#8a6d1f)}
/* 'approx' means the pin answered, but not inside the locality that was asked for. It gets the
   only warm-red in the editor: every other state is a fine outcome, this one needs a second look. */
.map-precision.is-approx{background:var(--peach-50,#FDF1EA);color:#8C4A32;border:1px solid var(--peach-200,#F3C9B5)}

/* ===== "נשמר אבל לא נשלח לאישור" — מודאל שדות חובה חסרים ===== */
.save-modal-card.is-warn .sm-ic{background:var(--butter-50,#FFF6DF);border-color:var(--butter-200,#F2DFA8)}
.save-modal-card.is-warn .sm-ic svg{stroke:var(--butter-ink,#8a6d1f)}
.save-modal-card .sm-miss{list-style:none;margin:14px 0 4px;padding:12px 14px;background:var(--cream,#FFFBF1);border:1px solid var(--line,#F0E7D2);border-radius:12px;text-align:right}
.save-modal-card .sm-miss li{position:relative;padding-inline-start:18px;font-size:13.5px;line-height:1.9;font-weight:600;color:var(--ink-900,#3C2A18)}
.save-modal-card .sm-miss li::before{content:"";position:absolute;inset-inline-start:0;top:11px;width:6px;height:6px;border-radius:50%;background:var(--butter-ink,#8a6d1f)}

/* ===== מתקנים נוספים בכתיבה חופשית (כרטיס המאפיינים) ===== */
.amen-extra{margin-top:18px;padding:16px 16px 14px;border:1px dashed var(--peach-200,#f3d9c4);border-radius:16px;background:var(--cream,#FFFBF1)}
.amen-extra .ax-head{display:flex;gap:11px;align-items:flex-start;margin-bottom:13px}
.amen-extra .ax-ic{flex:0 0 auto;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--white,#fff);border:1px solid var(--line,#F0E7D2)}
.amen-extra .ax-ic svg{width:15px;height:15px;fill:none;stroke:var(--ink-500,#8a7a63);stroke-width:2.2;stroke-linecap:round}
.amen-extra .ax-head b{display:block;font-size:14.5px;line-height:1.4}
.amen-extra .ax-head span{display:block;font-size:12.5px;line-height:1.55;color:var(--ink-500,#8a7a63);margin-top:2px}
.amen-extra .ax-rows{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.amen-extra .ax-inp input{font-size:13.5px}
@media(max-width:720px){.amen-extra .ax-rows{grid-template-columns:1fr}}

/* תמחור לא מוצג במסך הכניסה. שורה אחת שמסבירה לאן הוא נעלם, כדי שהמסך לא ישתוק על השאלה */
.own-auth .auth-foot{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line,#F0E7D2);font-size:12.5px;line-height:1.6;text-align:center;color:var(--ink-500,#8a7a63)}

/* ===== villa switcher (top bar) ===== */
.villa-switch{appearance:none;-webkit-appearance:none;font:inherit;font-weight:600;font-size:14px;color:var(--ink-900,#3B342A);background:var(--white,#fff);border:1px solid var(--line,#F0E7D2);border-radius:999px;padding:9px 16px 9px 36px;cursor:pointer;max-width:220px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 13px center;background-size:16px;transition:border-color .15s,box-shadow .15s}
.villa-switch:hover{border-color:var(--butter-300,#F4D472)}
.villa-switch:focus{outline:none;border-color:var(--butter-400,#EFC34A);box-shadow:0 0 0 3px var(--butter-50,#FFF8DF)}
@media(max-width:760px){.villa-switch{max-width:130px;font-size:13px}}

/* ===== Subscription packages: registration picker + subscription grid ===== */
.plan-pick{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 18px;width:100%;max-width:360px}
.plan-opt{position:relative;text-align:right;cursor:pointer;background:var(--white,#fff);border:1.5px solid var(--peach-100,#F3E4D6);border-radius:14px;padding:12px 13px;display:flex;flex-direction:column;gap:3px;transition:border-color .15s,box-shadow .15s,transform .1s}
.plan-opt:hover{border-color:var(--pc,#c99a3a)}
.plan-opt.is-sel{border-color:var(--pc,#c99a3a);box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 18%,transparent)}
.plan-opt .po-name{font-weight:700;font-size:15px;color:var(--ink,#2b2b2b)}
.plan-opt .po-price{font-size:12px;color:var(--muted,#7a7267)}
.plan-opt .po-price b{color:var(--ink,#2b2b2b);font-size:14px}
.plan-opt .po-price small{font-size:10px;opacity:.7}
.plan-opt .po-tick{position:absolute;top:10px;left:10px;width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:var(--pc,#c99a3a);opacity:0;transform:scale(.6);transition:opacity .15s,transform .15s}
.plan-opt .po-tick svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:3}
.plan-opt.is-sel .po-tick{opacity:1;transform:scale(1)}
@media(max-width:420px){.plan-pick{grid-template-columns:1fr;max-width:320px}}

/* align-items:stretch (the grid default), NOT start. With `start` each card sized to its own
   bullet count, so the four packages rendered at four different heights with ragged bottoms and
   the upgrade buttons scattered down the page. Stretch + margin-top:auto on .pc-foot puts every
   CTA on one line, which is also what makes the four prices comparable at a glance. */
.plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:10px 0 26px;align-items:stretch}
.plan-card{position:relative;background:var(--white);border:1.5px solid var(--line);border-radius:var(--r-md);padding:24px 20px 22px;display:flex;flex-direction:column;min-height:150px;transition:box-shadow .18s ease,border-color .18s ease}
.plan-card:hover{box-shadow:var(--shadow-md)}
.plan-card.is-active{border-color:var(--pc);box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 15%,transparent)}
.plan-card.is-pending{border-style:dashed;border-color:var(--pc)}
/* header: package name in the display serif, plus the optional "your plan" tag */
.plan-card .pc-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.plan-card .pc-top h3{margin:0;font-family:var(--serif);font-size:20px;font-weight:800;color:var(--ink-900);letter-spacing:-.01em}
.plan-card .pc-badge{font-size:10.5px;font-weight:800;color:var(--white);background:var(--pc);padding:3px 9px;border-radius:var(--r-pill);white-space:nowrap}
/* price: the number carries the package colour and the display serif so it reads as the
   headline of the card; the cadence line is muted and small, giving a clear hierarchy. */
.plan-card .pc-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--ink-500);padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line-soft)}
.plan-card .pc-price b{font-family:var(--serif);font-size:30px;font-weight:800;color:var(--pc);line-height:1}
.plan-card .pc-price small{font-size:11px;color:var(--ink-300)}
.plan-card .pc-foot{margin-top:auto;padding-top:18px}
.plan-card .pc-foot .btn{width:100%;justify-content:center}
.plan-card .pc-state{display:inline-block;font-size:13px;font-weight:700;color:var(--ink-500)}
.plan-card .pc-state.on{color:var(--mint-deep)}
.plan-card .pc-state.wait{color:var(--peach-ink)}
.plan-note{display:flex;align-items:center;gap:10px;background:#fff7ec;border:1px solid #f0dcc0;border-radius:12px;padding:12px 14px;margin:0 0 16px;font-size:14px;color:#7a5a20}
.plan-note svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:#b26a00;stroke-width:2}
@media(max-width:900px){.plan-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.plan-grid{grid-template-columns:1fr}}

/* ===== תווית "מומלץ" על כרטיס חבילה =====
   מחלקה נפרדת מ-.pc-badge, שכבר תפוס למצב "החבילה שלך" (design:3833).
   ממוקמת ביחס לכרטיס עצמו ולא לטור, כי .plan-grid הוא 4 טורים / 2 ב-900px / 1 ב-520px. */
.plan-card .pc-rec{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  font-size:11px; font-weight:800; color:var(--white); background:var(--pc);
  padding:4px 14px; border-radius:var(--r-pill); white-space:nowrap;
  box-shadow:0 4px 10px color-mix(in srgb,var(--pc) 38%,transparent);
}
/* the recommended card lifts off the row: thicker ring, a faint wash of its own colour */
.plan-card.is-rec{border-color:var(--pc); border-width:2px; background:color-mix(in srgb,var(--pc) 5%,var(--white)); box-shadow:var(--shadow-md)}

/* בולטים בכרטיס החבילה */
.plan-card .pc-bullets{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.plan-card .pc-bullets li{display:flex; align-items:flex-start; gap:9px; font-size:13.5px; color:var(--ink-700); line-height:1.55}
.plan-card .pc-bullets li svg{width:14px; height:14px; flex:none; margin-top:3px; fill:none; stroke:var(--pc); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}
/* the inheritance line ("כל מה שבחבילה X") headlines the list, set off by a divider */
.plan-card .pc-bullets li.pc-inherit{font-weight:800; color:var(--ink-900); padding-bottom:10px; margin-bottom:2px; border-bottom:1px dashed var(--line)}

/* Overflow bullets: present in the DOM, folded by class. `display:none` rather than a height
   clamp because the list is a flex column with a gap, and a clamp would leave a half-row of
   text peeking under the fade. Without JS the extras simply stay closed and the comparison
   table below still carries the full matrix, so nothing becomes unreachable. */
.plan-card .pc-bullets li.pc-extra{display:none}
.plan-card .pc-bullets.show-all li.pc-extra{display:flex}
.plan-card .pc-more{
  display:flex; align-items:center; gap:5px; margin-top:11px; padding:0;
  background:none; border:none; cursor:pointer;
  font-family:inherit; font-size:12.5px; font-weight:800; color:var(--pc);
}
.plan-card .pc-more:hover{text-decoration:underline}
.plan-card .pc-more svg{
  width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:2.6;
  stroke-linecap:round; stroke-linejoin:round; transition:transform .18s ease;
}
.plan-card .pc-more[aria-expanded="true"] svg{transform:rotate(180deg)}
.pc-chip-team{
  display:inline-block; margin-inline-start:6px; font-size:10.5px; font-weight:700; white-space:nowrap;
  color:var(--butter-ink); background:var(--butter-50); border:1px solid var(--butter-100);
  border-radius:var(--r-pill); padding:1px 7px;
}

/* ===== טבלת השוואת החבילות =====
   הטבלה רחבה, ולכן היא גוללת בתוך המיכל שלה בלבד ולעולם לא מזיזה את העמוד לרוחב. */
.plan-table-heading{font-family:var(--serif); font-weight:800; font-size:19px; color:var(--ink-900); margin:26px 0 6px}
.plan-table-sub{font-size:13px; color:var(--ink-500); margin:0 0 14px}
.plan-table-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch; margin:0 0 20px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--white); box-shadow:var(--shadow-sm)}
.plan-table{width:100%; min-width:640px; border-collapse:collapse; font-size:13px}
.plan-table th,.plan-table td{padding:12px 14px; border-bottom:1px solid var(--line-soft); text-align:start}
.plan-table thead th{position:sticky; top:0; background:var(--cream); font-family:var(--serif); font-weight:800; color:var(--ink-900); font-size:13px; white-space:nowrap; text-align:center}
.plan-table thead th:first-child{text-align:start}
.plan-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--cream) 55%,transparent)}
.plan-table tbody tr:last-child td{border-bottom:0}
.plan-table td.pt-feat{color:var(--ink-700); width:34%; font-weight:600}
.plan-table td.pt-cell{text-align:center; width:16.5%}
.plan-table .pt-yes svg{width:16px; height:16px; fill:none; stroke:var(--mint-deep); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}
.plan-table .pt-no svg{width:13px; height:13px; fill:none; stroke:var(--ink-300); stroke-width:2}
/* the recommended column is tinted the full height so the eye tracks it down the table */
.plan-table th.is-rec,.plan-table td.pt-cell.is-rec{background:var(--butter-50)}
.plan-table th.is-rec{color:var(--butter-ink)}

/* מסך ההרשמה מציג גם את הכרטיסים וגם את טבלת ההשוואה, ולכן הוא רחב מכרטיס כניסה רגיל */
.own-authwrap .own-auth.has-plans{max-width:920px}
.auth-plans{margin-top:18px}
.auth-plans .plan-grid{margin-bottom:0}

/* ===== בלוק ההשוואה מול ממוצע האזור (דשבורד) ===== */
.area-cmp .ac-body{display:flex; align-items:flex-end; gap:18px; flex-wrap:wrap; padding:4px 2px 2px}
.area-cmp .ac-col{flex:1; min-width:130px}
.area-cmp .ac-lab{font-size:12.5px; color:var(--ink-500); margin-bottom:5px}
.area-cmp .ac-num{font-family:var(--serif); font-weight:800; font-size:26px; color:var(--ink-900); line-height:1}
.area-cmp .ac-num.is-area{color:var(--ink-500)}
.area-cmp .ac-meter{height:8px; border-radius:999px; background:var(--line-soft); overflow:hidden; margin-top:8px}
.area-cmp .ac-meter i{display:block; height:100%; border-radius:999px; background:var(--butter-400)}
.area-cmp .ac-meter.is-area i{background:var(--ink-300)}
.area-cmp .ac-n{font-size:12px; color:var(--ink-300); margin-top:10px}
.area-cmp .own-empty{padding:22px; text-align:center; color:var(--ink-500)}
@media(max-width:600px){ .area-cmp .ac-body{gap:12px} .area-cmp .ac-col{min-width:100%} }

/* =========================================================
   סבב 2 · תיקוני דף עריכת מקום (Dvir, 25.07)
   Appended at the end on purpose: these are overrides, and in CSS the last
   matching rule wins. Every block below names the item it answers.
   ========================================================= */

/* ---- item 18: everything typed into a field reads right-to-left ----
   Latin-value fields keep direction:ltr so a url or an email is not reordered into nonsense,
   but they still SIT on the right, which is what the screenshot was about. */
.canvas .inp input, .canvas .inp textarea, .canvas .inp select,
.set-card .inp input, .set-card .inp select, .dz-form .inp input, .dz-form .inp select{
  direction:rtl; text-align:right;
}
.canvas .inp input[type=url], .canvas .inp input[type=email],
.canvas .inp input[type=tel], .canvas .inp input[inputmode=numeric],
.set-card .inp input[type=email], .set-card .inp input[type=tel]{
  direction:ltr; text-align:right;
}
/* time inputs render their own internal segments; forcing rtl on them reverses hh:mm */
.canvas .inp input[type=time]{direction:ltr; text-align:right;}
.canvas .inp input::placeholder, .canvas .inp textarea::placeholder{text-align:right;}

/* ---- item 10: the card the gate stopped on, and the field inside it ---- */
.card.req-flash{
  border-color:var(--peach-200,#f3c9b5);
  box-shadow:0 0 0 4px var(--peach-50,#fdf1ea);
  transition:box-shadow .3s ease, border-color .3s ease;
}
.req-open{outline:none;}
.inp:has(.req-open){border-color:var(--peach-400); box-shadow:0 0 0 4px var(--peach-50);}

/* ---- item 7: same tag on both sides ---- */
.pf-conflict{
  display:flex; align-items:flex-start; gap:9px; margin-top:14px;
  background:var(--peach-50,#fdf1ea); border:1px solid var(--peach-200,#f3c9b5);
  border-radius:var(--r-sm); padding:11px 14px; font-size:13px; color:var(--peach-ink); line-height:1.55;
}
.pf-conflict[hidden]{display:none;}
.pf-conflict svg{width:17px;height:17px;flex:none;stroke:var(--peach-400);stroke-width:2;fill:none;stroke-linecap:round;margin-top:2px;}
.uns-chip.is-conflict{border-color:var(--peach-400); background:var(--peach-50);}

/* ---- items 5 + 8: the tag request box ---- */
.tag-suggest{
  margin-top:16px; padding:14px; border-radius:var(--r-sm);
  border:1px dashed var(--peach-200,#f3c9b5); background:var(--white);
}
.tag-suggest .ts-head{display:flex; align-items:flex-start; gap:10px; margin-bottom:11px;}
.tag-suggest .ts-ic{width:30px;height:30px;flex:none;border-radius:10px;background:var(--butter-50);display:grid;place-items:center;}
.tag-suggest .ts-ic svg{width:16px;height:16px;stroke:var(--butter-500);stroke-width:2.2;fill:none;stroke-linecap:round;}
.tag-suggest .ts-head b{display:block;font-size:14px;color:var(--ink-900);}
.tag-suggest .ts-head span{display:block;font-size:12.5px;color:var(--ink-500);line-height:1.5;margin-top:2px;}
.tag-suggest .ts-row{display:flex; gap:9px; align-items:center; flex-wrap:wrap;}
.tag-suggest .ts-row .inp{flex:1; min-width:180px;}
.tag-suggest .ts-send{flex:none; white-space:nowrap;}
.tag-suggest .ts-list{display:flex; flex-wrap:wrap; gap:7px; margin-top:11px;}
.tag-suggest .ts-list[hidden]{display:none;}
.ts-pill{
  display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600;
  padding:6px 11px; border-radius:999px; background:var(--butter-50); color:var(--butter-ink);
}
.ts-pill svg{width:14px;height:14px;stroke:var(--butter-500);stroke-width:2;fill:none;}
.chip-search-none{display:inline-flex; align-items:center; gap:8px; white-space:normal;}
.chip-search-none .csn-send{
  border:1px solid var(--butter-200); background:var(--white); color:var(--butter-ink);
  font-weight:700; font-size:12px; padding:4px 10px; border-radius:999px; cursor:pointer;
}
.chip-search-none .csn-send:hover{background:var(--butter-50);}

/* ---- items 3 + 4: upload progress and the way out of the photo manager ---- */
.gal-uploading{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-top:14px; padding:13px 15px; border-radius:var(--r-sm);
  background:var(--butter-50); border:1px solid var(--butter-100); color:var(--butter-ink);
}
.gal-uploading[hidden]{display:none;}
.gal-uploading .gu-spin{
  width:20px;height:20px;flex:none;border-radius:50%;
  border:2.5px solid var(--butter-100); border-top-color:var(--butter-400);
  animation:spin .8s linear infinite;
}
.gal-uploading .gu-tx{flex:1; min-width:190px;}
.gal-uploading .gu-tx b{display:block; font-size:13.5px;}
.gal-uploading .gu-tx span{display:block; font-size:12.5px; color:var(--ink-500); line-height:1.5; margin-top:2px;}
.gal-uploading .gu-bar{flex-basis:100%; height:6px; border-radius:999px; background:var(--butter-100); overflow:hidden;}
.gal-uploading .gu-bar i{display:block; height:100%; width:0; border-radius:999px; background:var(--butter-400); transition:width .25s ease;}
.gal-modal-foot{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:14px 18px; border-top:1px solid var(--line); background:var(--white);
}
.gal-modal-foot .gmf-note{font-size:12.5px; color:var(--ink-500);}

/* ---- the WordPress admin bar sits on top of the editor's own sticky strip ----
   Not in the docx, found while testing as a staff account: admins are silent owners of every
   place, so they open this screen too, and for them the burger and the publish button were both
   under the black bar. The other owner topbar (.own-topbar) was already offset; this one never
   was. WP's bar is 32px, and 46px below 783px where it also stops scrolling away. */
.admin-bar .topbar{top:32px;}
.admin-bar .sidebar{top:calc(var(--topbar-h) + 32px);}
@media(max-width:920px){
  /* The drawer is full-height and fixed, so it starts under the bar rather than beside it. Its
     close button lives 12px inside that top edge, which is exactly where the bar was landing. */
  .admin-bar .sidebar{top:32px; height:calc(100dvh - 32px);}
}
@media(max-width:782px){
  /* Below 783px WordPress serves a 46px bar and positions it ABSOLUTE, so it scrolls away with
     the page instead of staying put. Offsetting by 46 is therefore only correct at the top of
     the page - which is the only moment the strip and the bar can collide. */
  .admin-bar .topbar{top:46px;}
  .admin-bar .sidebar{top:46px; height:calc(100dvh - 46px);}
  .admin-bar .vp-preview{inset:calc(var(--topbar-h) + 46px) 0 0 0; height:calc(100dvh - var(--topbar-h) - 46px);}
}

/* ---- items 12, 14, 15: the drawer ---- */
.sb-close{
  display:none; position:absolute; inset-block-start:12px; inset-inline-start:12px;
  width:36px; height:36px; border:none; border-radius:50%; background:var(--cream);
  color:var(--ink-700); cursor:pointer; align-items:center; justify-content:center; z-index:2;
}
.sb-close svg{width:18px;height:18px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;}
.sb-logout{margin-top:14px;}
.sb-logout-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  padding:11px; border-radius:var(--r-pill); cursor:pointer;
  background:var(--white); border:1.5px solid var(--line); color:var(--ink-700);
  font-weight:600; font-size:13.5px; font-family:inherit;
}
.sb-logout-btn:hover{border-color:var(--peach-200); color:var(--peach-ink);}
.sb-logout-btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}

@media(max-width:920px){
  /* The drawer sat UNDER the topbar (z-index 58 against 60), so its top — including anything
     to close it — was covered, and it could not be scrolled (items 14 + 15). It now sits above
     both the topbar and the scrim, owns its own scrolling, and carries a visible close button. */
  .sidebar{
    z-index:120; padding-top:58px;
    overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  }
  .scrim{z-index:110;}
  .sb-close{display:flex;}
  /* While the drawer is open the page behind it must not take the scroll */
  body.nav-open{overflow:hidden;}
}

/* ---- item 13 + 16: the mobile topbar and the sideways drift ----
   Measured at 390px before this block existed: burger 44 + switcher 194 + status pill 89 +
   publish 62 + gaps 24 = 413 into a 390 strip, so the publish button sat 43px off-screen and the
   strip could not be scrolled to reach it. Everything below removes real pixels rather than
   hoping smaller text is enough. */
@media(max-width:720px){
  .topbar{gap:8px; padding:0 12px;}
  /* The mode label carries no action - it is the first thing to go. */
  .topbar .tb-mode{display:none;}
  /* The strength chip was pressed right up against the villa switcher (item 13). It is a
     read-only signal, and on a phone the actions win the space. */
  .tb-strength{display:none;}
  .tb-publish{padding:9px 13px; font-size:13px;}
  .tb-preview{padding:9px 11px;}
  /* Specificity, not source order: the base rules that reveal the label are
     `body:not(.preview) .tb-preview .eye-on` (0,3,1). A bare `.tb-preview span` loses to them,
     which is why the label survived the first attempt and squeezed the villa switcher to 21px. */
  body:not(.preview) .topbar .tb-preview .eye-on,
  body.preview .topbar .tb-preview .eye-off{display:none;}
  .tb-save{padding:6px 10px; font-size:12px;}
  /* The switcher is how an owner with several places changes which one they are editing. It may
     shrink, but it may not collapse into a caret with no name in it. */
  .topbar .villa-switch2{min-width:104px;}
}
@media(max-width:560px){
  /* The status pill says exactly what the banner at the top of the page already says, in the
     same words ("לא פורסם"), and it is the only element in the strip that cannot be acted on.
     Dropping it is what buys the publish button its place on screen. */
  .topbar .tb-save{display:none;}
  /* With the pill gone there is room for the primary action to say what it does again. It was
     reduced to a bare arrow at this width because the strip had no space — an unlabelled arrow
     as the one button that publishes a place is not a trade worth keeping now that it fits. */
  .tb-publish .pub-txt{display:inline; font-size:12.5px;}
  .tb-publish{padding:9px 12px;}
  /* The switcher shrinks instead of pushing; its own ellipsis already handles a long name. */
  .topbar .villa-switch2{max-width:42vw; min-width:0;}
  .topbar .villa-switch2 .vs2-btn{max-width:100%; min-width:0;}
  .topbar .villa-switch2 .vs2-btn > *{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .topbar{gap:6px; padding:0 8px;}
  .tb-menu{width:40px;}
}
/* The page drifting sideways under a scroll (item 16) is a child wider than the viewport. Clamp
   the containers rather than hiding the symptom on <body>: overflow:hidden on the page would
   also kill position:sticky on the topbar, which is the other half of the same complaint. */
.shell, .main, .canvas{max-width:100%; min-width:0;}
.canvas > *, .card, .card-body{min-width:0;}
.canvas img, .canvas iframe{max-width:100%;}
/* The calendar-sync URL was the one field still left-aligned (item 18). It stays LTR, because a
   url read right-to-left is nonsense, but it sits on the right like every other field. */
/* Specificity has to beat `.gcal-sync .gcs-row input` (0,2,1), which sets text-align:left —
   two classes here would lose to it no matter how late they appear in the file. */
.gcs-row input, .gcal-sync input{min-width:0; max-width:100%;}
.gcal-sync .gcs-row input{text-align:right;}
@media(max-width:720px){
  .canvas{overflow-x:clip;}
  .page-intro h1{overflow-wrap:anywhere;}
}

/* ---- item 17: "מושלם ל / לא מתאים ל" was endless on a phone ---- */
@media(max-width:720px){
  .card-perfect-compact{--x:0;} /* marker for future tuning; no visual effect */
  #card-perfect .chip, #card-perfect .uns-chip{
    font-size:13px; padding:6px 11px; gap:5px;
  }
  #card-perfect .chips{gap:7px;}
  /* The full list is still there, one tap away, but it no longer buries the rest of the form. */
  #card-perfect .chip-scope .chips.is-clamped{
    max-height:210px; overflow:hidden; position:relative;
  }
  #card-perfect .chip-scope .chips.is-clamped::after{
    content:''; position:absolute; inset-inline:0; bottom:0; height:56px;
    background:linear-gradient(to top, var(--white), rgba(255,255,255,0));
  }
  .chips-more{
    display:flex; align-items:center; justify-content:center; gap:7px; width:100%;
    margin-top:10px; padding:9px; border-radius:var(--r-pill); cursor:pointer;
    background:var(--butter-50); border:1px solid var(--butter-100);
    color:var(--butter-ink); font-weight:700; font-size:13px; font-family:inherit;
  }
}
@media(min-width:721px){ .chips-more{display:none;} }

/* ===== card 10 — hosting attributes ===== */
.hz-acc{margin-top:2px}
.hz-group .amen-group-body{padding:14px 16px 16px}
.hz-sub{margin:0 0 18px}
.hz-sub:last-child{margin-bottom:0}
.hz-sub-h{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;color:var(--ink,#2b2b2b);margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid rgba(0,0,0,.06)}
.hz-sub-ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--sand-2,#fbf3e4);flex:0 0 26px}
.hz-sub-ic svg{width:15px;height:15px;fill:none;stroke:var(--gold-d,#b8892b);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hz-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:8px}

.hz{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid rgba(0,0,0,.09);border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.hz:hover{border-color:var(--gold,#e0b654)}
.hz.on{border-color:var(--gold,#e0b654);background:var(--sand-1,#fdf8ee)}
.hz .hz-cb{position:absolute;opacity:0;width:0;height:0}
.hz-box{flex:0 0 20px;width:20px;height:20px;border-radius:6px;border:1.8px solid rgba(0,0,0,.2);display:grid;place-items:center;background:#fff;transition:all .15s}
.hz-box svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.6);transition:all .15s}
.hz.on .hz-box{background:var(--gold-d,#b8892b);border-color:var(--gold-d,#b8892b)}
.hz.on .hz-box svg{opacity:1;transform:scale(1)}
.hz-lab{flex:1 1 auto;font-size:14px;line-height:1.35}
.hz-val{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.hz-val.hide{display:none}
.hz-val input{width:72px;padding:5px 7px;border:1px solid rgba(0,0,0,.15);border-radius:8px;font:inherit;font-size:14px;text-align:center;background:#fff}
.hz-val input:focus{outline:none;border-color:var(--gold-d,#b8892b)}
.hz-pre{font-size:13px;color:#8a8a8a}

/* a contradiction, not a validation error: both halves are marked so the owner can see the pair */
.hz.clash{border-color:#d9534f;background:#fdf1f0;animation:hzShake .3s}
.hz.clash .hz-box{border-color:#d9534f}
@keyframes hzShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

.hz-alert{display:flex;gap:11px;align-items:flex-start;margin:0 0 16px;padding:13px 15px;border-radius:14px;background:#fdf1f0;border:1px solid #f0c9c6;color:#8f2d29}
.hz-alert svg{flex:0 0 20px;width:20px;height:20px;margin-top:1px;fill:none;stroke:#d9534f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hz-alert b{display:block;font-size:14px;margin-bottom:5px}
.hz-alert ul{margin:0 0 6px;padding-inline-start:18px;font-size:13.5px;line-height:1.7}
.hz-alert ul b{display:inline;margin:0}
.hz-alert span{font-size:13px;opacity:.85;line-height:1.55}
.tb-publish.is-blocked{opacity:.5;cursor:not-allowed}

.hz-times{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid rgba(0,0,0,.06)}
.hz-times .field label{display:flex;align-items:center;gap:6px}

@media (max-width:640px){
  .hz-rows{grid-template-columns:1fr}
  .hz-times{grid-template-columns:1fr}
}

/* item 13 — a refused mark shakes instead of turning an odd colour */
.chip.shake,.uns-chip.shake{animation:tagShake .32s;border-color:#d9534f !important}
@keyframes tagShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
/* item 5 — the tag the owner asked for, already on the page */
.chip.flash-hit,.uns-chip.flash-hit{box-shadow:0 0 0 3px rgba(224,182,84,.55);border-color:var(--gold-d,#b8892b)}

/* item 9 — an address the map service could not place */
.geo-fail{margin:12px 0;padding:13px 15px;border-radius:14px;background:#fff8ec;border:1px solid #f0dcb4}
.geo-fail[hidden]{display:none}
.geo-fail .gf-head{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:6px;color:#8a5b10}
.geo-fail .gf-head svg{width:18px;height:18px;flex:none;fill:none;stroke:#c8912f;stroke-width:1.9;stroke-linecap:round}
.geo-fail p{margin:0;font-size:13.5px;line-height:1.6;color:#6b6b6b}
.geo-fail .gf-alts{margin-top:11px;display:flex;flex-direction:column;gap:6px}
.geo-fail .gf-alts>span{font-size:13px;color:#8a8a8a}
.geo-fail .gf-alt{text-align:start;padding:8px 11px;border-radius:10px;border:1px solid rgba(0,0,0,.12);background:#fff;font:inherit;font-size:13.5px;cursor:pointer;line-height:1.4}
.geo-fail .gf-alt:hover{border-color:var(--gold-d,#b8892b);background:#fdf8ee}

/* ===== item 11a — the photo manager, grouped by area ===== */
.gal-areas{display:flex;gap:7px;flex-wrap:wrap;padding:12px 22px 0}
.gal-areas:empty{display:none}
.ga-tab{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:1px solid var(--line,#F0E7D2);background:var(--white,#fff);font:inherit;font-size:13px;cursor:pointer;line-height:1.4}
.ga-tab i{font-style:normal;font-size:11.5px;opacity:.6}
.ga-tab.on{background:var(--gold-d,#b8892b);border-color:var(--gold-d,#b8892b);color:#fff}
.ga-tab.on i{opacity:.85}
.ga-tab.is-todo{border-style:dashed;border-color:#d9a441;color:#8a5b10}
.ga-tab.is-todo.on{background:#8a5b10;border-color:#8a5b10;color:#fff}

/* ===== item 1 + 16 — where notifications land =====
   The toast sat at z-index 90 while the photo modal is 1200, so every confirmation inside that
   modal was painted BEHIND its own blurred backdrop. And `inset-inline-start:50%` resolves to
   right:50% in RTL, which with translateX(-50%) parks the toast off to one side instead of
   centring it — that is the note Dvir kept missing at the edge of the screen. */
.toast{
  inset-inline-start:auto; left:50%; right:auto;
  transform:translate(-50%,20px);
  z-index:2400;
  max-width:min(92vw,520px); text-align:center; justify-content:center;
}
.toast.show{transform:translate(-50%,0);}
@media(max-width:720px){
  /* clear of the sticky mobile action bar and of the phone's home indicator */
  .toast{inset-block-end:calc(84px + env(safe-area-inset-bottom,0px)); font-size:13.5px; padding:12px 18px;}
}

/* ===== item 16 — the way back out of preview =====
   On a phone the label was hidden, leaving a bare eye icon as the only exit from preview mode.
   An unlabelled icon as the single way back is not a trade worth keeping. */
@media(max-width:720px){
  body.preview .topbar .tb-preview .eye-off{display:inline !important;}
  body.preview .topbar .tb-preview{
    background:var(--gold-d,#b8892b); border-color:var(--gold-d,#b8892b); color:#fff;
    padding:9px 14px; font-size:13px; font-weight:700; order:-1;
  }
  body.preview .topbar .tb-preview svg{stroke:#fff;}
  body.preview .topbar .villa-switch2{display:none;}
}

/* ===== item 15 — the owner header on a phone =====
   Six controls on one 390px row left the villa switcher at a caret, and its dropdown ran off the
   edge because it is anchored to the switcher rather than to the screen. Two rows, and a popup
   that is pinned to the viewport. */
@media(max-width:720px){
  .topbar{flex-wrap:wrap; height:auto; padding:8px; row-gap:8px; align-items:center;}
  .topbar .tb-spacer{flex:1 1 auto;}
  .topbar .tb-preview{order:1;}
  .topbar .tb-publish{order:2;}
  /* the one full-width item, so it lands on row two and nothing follows it */
  .topbar .villa-switch2{order:5; flex:1 1 100%; max-width:100%; min-width:0;}
  .topbar .villa-switch2 .vs2-btn{width:100%; justify-content:space-between;}
  .vs2-pop{position:fixed; inset-inline:10px; top:auto; width:auto; max-width:none; z-index:1300;}
}
@media(max-width:560px){
  .topbar .villa-switch2{max-width:100%;}
}

/* ===== item 17 — no zoom on focus =====
   iOS Safari zooms the whole page whenever a focused field is under 16px, and the page never
   zooms back. Every input in the owner area is therefore 16px on a touch screen; the visual
   size is recovered with padding, not with font-size. */
@media(max-width:820px){
  .inp input, .inp textarea, .inp select,
  .own-gal-area, .chip-search-in, .ts-input, .hz-val input,
  input[type="text"], input[type="tel"], input[type="url"], input[type="email"],
  input[type="time"], input[type="number"], input[type="search"], textarea, select{
    font-size:16px !important;
  }
  .inp input, .inp textarea{padding-block:10px;}
  .hz-val input{width:84px;}
}

/* .hz-alert declares display:flex, which beats the [hidden] attribute's own display:none —
   the empty alert rendered as a pink bar above the accordions. */
.hz-alert[hidden]{display:none !important}
/* A time input has to fit HH:MM plus the browser's own clock affordance; 72px clipped it. */
.hz-val input[type="time"]{width:112px}

/* Ownership claim screen. Rows reuse .own-villa-row; only what that row lacks is here. */
.claim-cta{white-space:normal;}
.claim-status{font-size:13.5px;color:var(--ink-500);margin-top:8px;min-height:18px;}
.claim-results{margin-top:10px;}
.claim-row .ovr-img{overflow:hidden;display:block;}
.claim-row .ovr-img img{width:100%;height:100%;object-fit:cover;display:block;}
.claim-row a.ovr-name{display:block;text-decoration:none;}
.claim-row a.ovr-name:hover{text-decoration:underline;}
.claim-pick{flex:none;}
.claim-pick:disabled{opacity:.6;cursor:default;box-shadow:none;}
.claim-form{padding:14px;border-radius:16px;background:var(--butter-50);border:1px solid var(--butter-100);}
.claim-who{font-size:13.5px;color:var(--ink-700);margin-bottom:10px;overflow-wrap:anywhere;}
.claim-err{font-size:13.5px;color:#B3261E;margin-bottom:8px;}
.claim-err:empty{display:none;}
.claim-actions{display:flex;gap:10px;flex-wrap:wrap;}
.claim-done{padding:12px 14px;border-radius:14px;background:var(--mint-50);color:var(--mint-deep);font-size:14px;line-height:1.5;}
.claim-pending{margin-top:18px;}
@media(max-width:560px){
  .claim-row{flex-wrap:wrap;}
  .claim-row .ovr-body{flex:1 1 0;}
  .claim-row .claim-pick{width:100%;justify-content:center;}
  .claim-cta{width:100%;justify-content:center;margin-top:8px;}
}
