/* ============================================================
   BaClick Booking — גיליון יחיד
   ------------------------------------------------------------
   ⚠⚠ קובץ אחד לכל ארבע הערכות ולכל המסכים. ההבדל בין הערכות
   נעשה במחלקה על ה-body (‏.layout-experience וכו') ולא בקובץ
   נפרד — החלפת ערכה בדשבורד היא שינוי מחלקה, בלי טעינה ובלי
   מסך לבן.

   ⚠ ארבעה גיליונות היו גם ארבעה מקומות לתקן כל באג, ושלושה
   מהם ייבדקו פחות. במוצר רב-דיירים זה לא באג של לקוח אחד —
   זה באג של רבע מהם.

   ⚠⚠⚠ כל צבע שנוגע בזהות הדייר הוא משתנה שנכתב ב-theme.js.
   ‏hex קשיח כאן הוא צבע שלא ישתנה אצל אף לקוח, לנצח.
   ============================================================ */

:root {
  /* נכתבים בזמן ריצה ע"י theme.js — הערכים כאן הם רק כדי
     שהמסך לא יהיה שבור בשנייה שלפני. */
  --bk-primary: #2f6f5e;
  --bk-primary-dark: #23574a;
  --bk-primary-soft: #e8f2ee;
  --bk-on-primary: #ffffff;
  --bk-accent: #c9a227;
  --bk-on-accent: #15202b;
  --bk-font: system-ui, sans-serif;

  /* ניטרליים — אינם תלויים בדייר. */
  --ink: #1b2430;
  --ink-soft: #5a6673;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --danger: #b3261e;
  --radius: 14px;
  --wrap: 1080px;
}

/* ⚠⚠ אין ערכת לילה באתר הציבורי, ובכוונה. אתר של צימר הוא
   מצגת עם תמונות שצולמו באור מסוים; היפוך צבעים אוטומטי הופך
   אותן לזרות. ⚠ הדשבורד ירש ערכת לילה כשתהיה בקשה אמיתית. */

* { box-sizing: border-box; }

/* ⚠⚠⚠ **חייב להופיע לפני כל כלל שקובע display.**
   התכונה ‏hidden מקבלת ‏display:none מגיליון הדפדפן בלבד, וכל
   כלל שלנו גובר עליה. ‏.boot מוגדר ‏display:grid — כלומר
   ‏boot.hidden = true ב-ui.mount() לא הסתיר כלום, ומסך הפתיחה
   נשאר תלוי מעל האתר של הצימר.

   ⚠ נתפס בפועל בבדיקה מול השרת ב-7.9.2026, לא בקריאת הקוד:
   אין כאן שום שגיאה, שום אזהרה בקונסולה, וה-JS "עבד". */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--bk-font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  /* ⚠ 16px מינימום. פחות מזה גורם ל-iOS לזום על מיקוד בשדה,
     והמשתמש נשאר עם דף מוגדל באמצע טופס ההזמנה. */
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--bk-primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.block { padding: 42px 0; }
.empty, .fineprint { color: var(--ink-soft); font-size: .9rem; }
.fineprint em { font-style: normal; opacity: .75; }
.fineprint--rule { border-inline-start: 3px solid var(--bk-accent);
                   padding-inline-start: 10px; }
.note, .notice { background: var(--bg-soft); border: 1px solid var(--line);
                 border-radius: var(--radius); padding: 12px 14px;
                 margin: 14px 0; }
.back { display: inline-block; margin: 16px 0; color: var(--ink-soft);
        text-decoration: none; }

/* ------------------------------------------------------------
   מסך הפתיחה והשגיאה
   ------------------------------------------------------------ */
.boot { min-height: 60vh; display: grid; place-items: center; gap: 14px; }
.boot__text { color: var(--ink-soft); }
.boot__spinner, .spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--bk-primary);
  animation: spin .8s linear infinite; margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ⚠ מכבד העדפת תנועה מופחתת. מסתובב אינסופי הוא בדיוק מה
   שההעדפה הזו נועדה לכבות. */
@media (prefers-reduced-motion: reduce) {
  .boot__spinner, .spin { animation-duration: 3s; }
}
.fatal { max-width: 540px; margin: 18vh auto; padding: 0 24px;
         text-align: center; }
.fatal__body { color: var(--ink-soft); }

/* ------------------------------------------------------------
   כפתורים
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  /* ⚠⚠ 44px גובה מגע מינימלי. כפתור "הזמן" שקשה לפגוע בו
     בנייד הוא בדיוק אחוז ההמרה שהמוצר מוכר. */
  min-height: 44px;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--bk-primary); color: var(--bk-on-primary); }
.btn--primary:hover { background: var(--bk-primary-dark); }
.btn--ghost { background: transparent; color: var(--bk-primary-dark);
              border-color: var(--line); }
.btn--wa { background: #25d366; color: #06281a; }
.btn--copy { background: var(--bk-accent); color: var(--bk-on-accent); }
.btn--sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn--wide { width: 100%; }

/* ------------------------------------------------------------
   כותרת ראשית
   ------------------------------------------------------------ */
.hero { position: relative; display: grid; }
.hero__img { width: 100%; height: min(66vh, 560px); object-fit: cover; }
.hero__text {
  position: absolute; inset-block-end: 0; inset-inline: 0;
  padding: 28px 20px; color: #fff;
  /* ⚠ הדרגתי ולא שכבה אחידה: כיסוי מלא הופך תמונה של צימר
     לאפורה, וזו התמונה שמוכרת. */
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}
.hero--plain { background: var(--bk-primary); min-height: 42vh;
               place-items: center; }
.hero--plain .hero__text { position: static; background: none;
                           text-align: center; }
.hero__title { margin: 0; }
.hero__tag { margin: .3em 0 1em; opacity: .95; }

/* ------------------------------------------------------------
   רשתות וכרטיסים
   ------------------------------------------------------------ */
.grid { display: grid; gap: 16px; }
.grid--units { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
            width: 100%; }
.tile { margin: 0; }

.card { border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; background: var(--bg); display: flex;
        flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 16px; display: grid; gap: 8px; align-content: start;
              flex: 1; }
.card__meta { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.card__price { margin: 0; }
.card__price--none { color: var(--ink-soft); }
.card--secrets { padding: 6px 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { background: var(--bk-primary-soft); border-radius: 999px;
            padding: 5px 12px; font-size: .88rem; }

/* ------------------------------------------------------------
   טופס ההזמנה
   ------------------------------------------------------------ */
.bookbox { margin: 26px 0; }
.bookform, .form {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--bg-soft);
}
.field { display: grid; gap: 5px; font-size: .88rem; color: var(--ink-soft); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); width: 100%;
}
.field input:focus-visible, .field select:focus-visible,
.field textarea:focus-visible, .btn:focus-visible, .tab:focus-visible {
  /* ⚠ מסגרת מיקוד גלויה. הסרתה היא אתר שאי אפשר למלא במקלדת,
     וזה גם דרישת נגישות וגם משתמשים אמיתיים. */
  outline: 3px solid var(--bk-accent); outline-offset: 2px;
}
.field input[type=color] { padding: 4px; height: 44px; }
.guestfields { grid-column: 1 / -1; display: grid; gap: 14px; }
.row { grid-column: 1 / -1; display: grid; gap: 12px;
       grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.quote { grid-column: 1 / -1; }
.quote__lines { list-style: none; padding: 0; margin: 0 0 8px;
                display: grid; gap: 2px; font-size: .92rem; }
.quote__lines li { display: flex; justify-content: space-between; }
.quote__lines .is-weekend { font-weight: 600; }
.quote__total { display: flex; justify-content: space-between;
                border-top: 1px solid var(--line); padding-top: 8px;
                margin: 0; font-size: 1.1rem; }
.quote__err { color: var(--danger); margin: 0; }

.done { text-align: center; padding: 8vh 20px; }
.done__id code { background: var(--bg-soft); padding: 3px 8px;
                 border-radius: 6px; }

/* ------------------------------------------------------------
   הקונסיירז'
   ------------------------------------------------------------ */
.room { padding-bottom: 40px; }
.room__head { padding: 22px 0 8px; }
.room__stay { color: var(--ink-soft); margin: 0 0 12px; }
.room__contact { display: flex; gap: 8px; flex-wrap: wrap; }
.secret { display: flex; align-items: center; justify-content: space-between;
          gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.secret:last-child { border-bottom: 0; }
.secret__label { display: block; font-size: .82rem; color: var(--ink-soft); }
.secret__value { font-size: 1.15rem; font-weight: 700; word-break: break-all; }
.secret__hint { display: block; font-size: .8rem; color: var(--ink-soft); }
.upsells, .guide, .links { list-style: none; padding: 0; display: grid;
                           gap: 12px; }
.upsell { display: flex; justify-content: space-between; align-items: center;
          gap: 12px; border: 1px solid var(--line);
          border-radius: var(--radius); padding: 12px 14px; }
.upsell h4, .guide__item h4 { margin: 0 0 2px; }
.upsell p, .guide__item p { margin: 0; color: var(--ink-soft);
                            font-size: .9rem; }
.guide__item { border-inline-start: 3px solid var(--bk-accent);
               padding-inline-start: 12px; }

/* ------------------------------------------------------------
   פרסומות
   ------------------------------------------------------------
   ⚠⚠⚠ מוגבל לשלושת המקומות המותרים. הסגנון כאן **אינו** ההגנה
   — ההגנה היא ב-ads.js — אבל הוא חלק מהחוזה: פרסומת חייבת
   להיראות כמו פרסומת, עם תווית, ולא כמו המלצה של הצימר.
   ------------------------------------------------------------ */
.ad { border: 1px dashed var(--line); border-radius: var(--radius);
      padding: 10px; margin: 22px 0; background: var(--bg-soft); }
.ad__tag { font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft);
           text-transform: uppercase; }
.ad__slot { min-height: 90px; display: grid; place-items: center; }

/* ------------------------------------------------------------
   תחתית
   ------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px;
        color: var(--ink-soft); font-size: .9rem; }
.foot__by a { color: inherit; }
.contact__row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   דשבורד
   ------------------------------------------------------------ */
.dash { max-width: var(--wrap); margin: 0 auto; padding: 20px; }
.dash__head { display: flex; justify-content: space-between;
              align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0;
        border-bottom: 1px solid var(--line); }
.tab { font: inherit; padding: 9px 15px; border-radius: 999px;
       border: 1px solid var(--line); background: var(--bg);
       cursor: pointer; white-space: nowrap; min-height: 40px; }
.tab.is-on { background: var(--bk-primary); color: var(--bk-on-primary);
             border-color: var(--bk-primary); }
.dash__body { padding: 18px 0; display: grid; gap: 22px; }

.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: start; padding: 9px 8px;
                   border-bottom: 1px solid var(--line); }
.tbl th { color: var(--ink-soft); font-weight: 600; }
/* ⚠ טבלה גולשת אופקית בנייד במקום לדחוס עמודות לבלתי קריא. */
.dash__body { overflow-x: auto; }

.pill { border-radius: 999px; padding: 2px 10px; font-size: .82rem;
        background: var(--bg-soft); }
.pill--confirmed { background: #e6f4ea; }
.pill--request { background: #fff4d6; }
.pill--cancelled, .pill--expired, .pill--suspended { background: #fde8e6; }

.pending { border: 2px solid var(--bk-accent); border-radius: var(--radius);
           padding: 14px; }
.pend { display: flex; justify-content: space-between; gap: 12px;
        flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pend:last-child { border-bottom: 0; }
.pend__act { display: flex; gap: 8px; }

.alert { border: 2px solid var(--danger); border-radius: var(--radius);
         padding: 14px; }
.alert h2 { color: var(--danger); }

.feed { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
        padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed__meta { color: var(--ink-soft); font-size: .86rem; }
.feed__err { color: var(--danger); font-size: .86rem; }

.unitrow { margin-bottom: 16px; }
.row--upsell { border-top: 1px dashed var(--line); padding-top: 10px; }

.layouts { grid-column: 1 / -1; display: grid; gap: 12px;
           grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.layoutpick { display: grid; gap: 6px; cursor: pointer; font-size: .86rem;
              border: 2px solid var(--line); border-radius: var(--radius);
              padding: 10px; }
.layoutpick.is-on { border-color: var(--bk-primary); }
.layoutpick input { position: absolute; opacity: 0; }
.layoutpick__prev { height: 64px; border-radius: 8px; display: block;
                    background: var(--bg-soft); }
/* ⚠ תצוגה מקדימה סכמטית ולא צילום מסך. צילום מסך הופך לשקר
   ברגע שמישהו משנה את ה-CSS, ואיש לא יזכור לעדכן אותו. */
.prev--experience { background: linear-gradient(180deg, var(--bk-primary) 60%,
                    var(--bg-soft) 60%); }
.prev--converter  { background: linear-gradient(180deg, var(--bg-soft) 45%,
                    var(--bk-primary) 45%); }
.prev--boutique   { background: linear-gradient(180deg, var(--bg) 30%,
                    var(--bk-primary) 30%, var(--bk-primary) 40%,
                    var(--bg) 40%); }
.prev--rustic     { background: repeating-linear-gradient(90deg,
                    var(--bk-accent) 0 22%, var(--bg-soft) 22% 25%); }

.switch { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.switch input { width: 22px; height: 22px; }
.signin, .landing { max-width: 620px; margin: 10vh auto; text-align: center; }
.landing__lead { font-size: 1.15rem; }
.landing__points { text-align: start; display: grid; gap: 8px;
                   padding-inline-start: 20px; }

/* ------------------------------------------------------------
   הודעה קצרה
   ------------------------------------------------------------ */
.toast {
  position: fixed; inset-block-end: 18px; inset-inline: 16px;
  margin: 0 auto; max-width: 460px; background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 12px; text-align: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .18s, transform .18s; z-index: 90;
}
.toast--on { opacity: 1; transform: none; }

/* ============================================================
   ארבע הערכות
   ------------------------------------------------------------
   ⚠⚠ סדר ודגש בלבד. אותו DOM, אותם בלוקים — ראו את ההערה
   בראש screens/site.js.
   ============================================================ */

/* --- החוויה: תמונה גדולה, סיפור, הזמנה בהמשך --- */
.layout-experience .hero__img { height: min(76vh, 640px); }

/* --- הממיר: ווידג'ט ההזמנה עולה למעלה, גיבוב לחיצות --- */
.layout-converter .hero__img { height: min(44vh, 380px); }
.layout-converter .block--units { order: -1; }
.layout-converter .block--about { padding-top: 12px; }
.layout-converter .bookbox { order: -1; margin-top: 0; }
.layout-converter .unit { display: flex; flex-direction: column; }
/* ⚠ ה-CTA דביק בנייד. זו כל ההבדל של הערכה הזו: הכפתור תמיד
   על המסך. ⚠⚠ **לא** בשולחני — שם הוא רק גוזל שטח. */
@media (max-width: 700px) {
  .layout-converter .hero__cta {
    position: fixed; inset-block-end: 12px; inset-inline: 16px;
    z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  }
  /* ⚠ מרווח בתחתית כדי שהכפתור הדביק לא יכסה את התחתית. */
  .layout-converter .foot { padding-bottom: 76px; }
}

/* --- הבוטיק: שקט, מרווח, טיפוגרפיה --- */
.layout-boutique { --radius: 4px; }
.layout-boutique .block { padding: 72px 0; }
.layout-boutique .wrap { max-width: 900px; }
.layout-boutique h1, .layout-boutique h2 { font-weight: 300;
                                           letter-spacing: .01em; }
.layout-boutique .grid--gallery {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.layout-boutique .btn { border-radius: 2px; }

/* --- הכפרי: גלריה ראשונה, גוונים חמים, פחות כרומים --- */
.layout-rustic { --bg-soft: #f6f1e8; --line: #e0d6c6; --radius: 10px; }
.layout-rustic .block--gallery { order: -1; padding-top: 0; }
.layout-rustic .hero__img { height: min(58vh, 480px); }
.layout-rustic .card { border-width: 2px; }
.layout-rustic .tile img { aspect-ratio: 1 / 1; }

/* ⚠⚠ ‏order עובד רק בתוך מיכל flex/grid. ה-main הוא המיכל,
   ובלי ההצהרה הזו ‏order בערכות למעלה אינו עושה **כלום** —
   וזו תקלה שקטה לחלוטין: הכול "עובד", והערכות פשוט נראות זהות. */
#app { display: flex; flex-direction: column; }
#app > * { flex: 0 0 auto; }

@media print {
  /* ⚠ הצימר מדפיס את מסך הקונסיירז' ותולה בחדר. */
  .btn, .ad, .tabs, .toast { display: none !important; }
}

/* ============================================================
   פורטל ה-B2C
   ------------------------------------------------------------
   ⚠⚠ הפורטל אינו נושא ערכה של דייר — הוא הדף שלנו, ולכן הוא
   משתמש בברירות המחדל של ‎:root. אין כאן layout-* כי אין דייר.
   ============================================================ */
.phero { background: var(--bk-primary); color: var(--bk-on-primary);
         padding: 54px 0 44px; text-align: center; }
.phero h1 { margin: 0 0 .3em; }
.phero__lead { margin: 0; opacity: .95; font-size: 1.05rem; }

.strip h2 { margin-bottom: .2em; }
.zcard { position: relative; }
/* ⚠ הקישור עוטף את כל הכרטיס. אזור לחיצה קטן בנייד הוא
   אחוזי המרה, וזה בדיוק מה שהפורטל מוכר לדיירים. */
.zcard__link { display: flex; flex-direction: column; height: 100%;
               text-decoration: none; color: inherit; }
.zcard__where { color: var(--ink-soft); }
.card__img--none { display: block; aspect-ratio: 4 / 3;
                   background: linear-gradient(140deg, var(--bk-primary-soft),
                                               var(--bg-soft)); }

/* ⚠⚠⚠ תגים, ולא מונים ולא כוכבים. ראו directory_api.py:
   כל מספר גלוי הופך את הפורטל ללוח מובילים, ובלוח מובילים
   רוב הלקוחות המשלמים מפסידים. */
.badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
          padding: 0; margin: 0 0 2px; }
.badge { font-size: .74rem; font-weight: 600; padding: 3px 9px;
         border-radius: 999px; background: var(--bk-primary-soft);
         color: var(--bk-primary-dark); }
.badge--new { background: #fff4d6; color: #6b5200; }
.badge--region_top, .badge--booked { background: var(--bk-accent);
                                     color: var(--bk-on-accent); }

.chips--regions li a { display: inline-flex; gap: 6px; align-items: center;
                       text-decoration: none; color: inherit; }
.chip__n { opacity: .6; font-size: .82rem; }

.block--pitch { background: var(--bg-soft); border-top: 1px solid var(--line); }
.empty-portal { text-align: center; padding: 6vh 0; }
