/* Vanilla Booking design system. Colors, font, radius and spacing come from /theme.css (client theme.json). */

@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("../fonts/heebo-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("../fonts/heebo-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 600; font-display: swap; src: url("../fonts/heebo-hebrew-600-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url("../fonts/heebo-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("../fonts/heebo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("../fonts/heebo-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+FEFF; }
@font-face { font-family: "Heebo"; font-weight: 600; font-display: swap; src: url("../fonts/heebo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+FEFF; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url("../fonts/heebo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+FEFF; }

:root, .theme-light, .theme-dark {
  --s1: calc(var(--space, 8px) * 0.5);  /* 4 */
  --s2: var(--space, 8px);              /* 8 */
  --s3: calc(var(--space, 8px) * 1.5);  /* 12 */
  --s4: calc(var(--space, 8px) * 2);    /* 16 */
  --s5: calc(var(--space, 8px) * 3);    /* 24 */
  --s6: calc(var(--space, 8px) * 4);    /* 32 */
  --touch: 48px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 8px 32px rgb(0 0 0 / 0.16);
  --tint-success: color-mix(in srgb, var(--color-success) 14%, var(--color-surface));
  --ink-success: color-mix(in srgb, var(--color-success) 55%, var(--color-text-primary));
  --tint-warning: color-mix(in srgb, var(--color-warning) 16%, var(--color-surface));
  --ink-warning: color-mix(in srgb, var(--color-warning) 50%, var(--color-text-primary));
  --tint-error: color-mix(in srgb, var(--color-error) 12%, var(--color-surface));
  --ink-error: color-mix(in srgb, var(--color-error) 60%, var(--color-text-primary));
  --muted: color-mix(in srgb, var(--color-text-secondary) 20%, var(--color-surface));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--font-family); font-size: 16px; line-height: 1.5;
  background: var(--color-background); color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--color-primary-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 6px; }
[v-cloak] { display: none; }
.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; }
.skip-link { position: absolute; inset-inline-start: var(--s2); top: -100px; z-index: 100; background: var(--color-surface); padding: var(--s2) var(--s4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--s2); }

/* Typography: H1 32 bold, H2 24 semibold, H3 20 semibold, body 16, caption 14 */
h1, .h1 { font-size: 32px; font-weight: 700; line-height: 1.25; margin: 0 0 var(--s2); }
h2, .h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0 0 var(--s2); }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0 0 var(--s1); }
p { margin: 0 0 var(--s3); }
.caption { font-size: 14px; }
.muted { color: var(--color-text-secondary); }
.price { color: var(--color-primary-text); font-weight: 600; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s5); }
.row { display: flex; align-items: center; gap: var(--s2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }

/* Layout */
.page { max-width: 480px; margin: 0 auto; padding: var(--s4) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom)); }
.page-wide { max-width: 1200px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); padding: var(--s2) var(--s3); padding-top: calc(var(--s2) + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--color-background) 88%, transparent); backdrop-filter: blur(12px);
}
.topbar .logo { height: 40px; color: var(--color-accent); display: flex; justify-content: center; flex: 1; }
.topbar .logo svg { height: 100%; width: auto; max-width: 220px; }
.logo-hero { color: var(--color-accent); display: flex; justify-content: center; }
.logo-hero svg { width: min(240px, 70%); height: auto; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: var(--s5) 0 var(--s3); }
.section-title h2 { margin: 0; font-size: 20px; }

/* Icons */
.icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-btn {
  min-width: var(--touch); min-height: var(--touch); display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; border-radius: 999px; cursor: pointer; color: var(--color-text-primary);
}
.icon-btn:hover { background: var(--color-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--touch); padding: 0 var(--s5); border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: filter .15s, background .15s, transform .05s;
  background: var(--color-primary); color: var(--color-on-primary); white-space: nowrap;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-secondary { background: var(--color-secondary); color: var(--color-text-primary); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary-text); }
.btn-text { background: transparent; color: var(--color-primary-text); padding: 0 var(--s2); }
.btn-danger { background: var(--tint-error); color: var(--ink-error); }
.btn-success { background: var(--tint-success); color: var(--ink-success); }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 14px; }
.btn[disabled], .btn.is-loading { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { opacity: 0.8; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards and lists */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; text-align: start; width: 100%; font: inherit; }
.card-link:hover { border-color: var(--color-primary); }
.card.selected { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 45%, transparent); }
.list { display: flex; flex-direction: column; gap: var(--s3); }
.media-row { display: flex; gap: var(--s3); align-items: stretch; }
.thumb { width: 88px; height: 88px; border-radius: var(--radius-md); object-fit: cover; flex: none; background: var(--color-secondary); }
.thumb-sm { width: 56px; height: 56px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--color-secondary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--color-accent); }
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.divider { height: 1px; background: var(--color-border); margin: var(--s3) 0; border: 0; }
.empty { text-align: center; color: var(--color-text-secondary); padding: var(--s5) var(--s3); }
.empty .icon { width: 40px; height: 40px; color: var(--color-primary); margin-bottom: var(--s2); }

/* Badges, tags, chips */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--color-secondary); color: var(--color-text-primary); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--tint-success); color: var(--ink-success); }
.badge-warning { background: var(--tint-warning); color: var(--ink-warning); }
.badge-error { background: var(--tint-error); color: var(--ink-error); }
.badge-primary { background: color-mix(in srgb, var(--color-primary) 25%, var(--color-surface)); color: color-mix(in srgb, var(--color-primary-text) 75%, var(--color-text-primary)); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 14px; background: var(--color-secondary); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border); background: var(--color-surface); cursor: pointer; font-size: 14px;
}
.chip[aria-pressed="true"], .chip.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips-scroll { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); scrollbar-width: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 500; color: var(--color-text-secondary); }
.input, select.input, textarea.input {
  width: 100%; min-height: var(--touch); padding: var(--s3) var(--s4); border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text-primary); font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent); }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); color: var(--color-text-secondary); pointer-events: none; }
.input-icon .input { padding-right: 52px; } /* the app is RTL; physical side so LTR inputs (phone) work too */
.input-ltr { direction: ltr; text-align: right; }
.error-text { color: var(--ink-error); font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: var(--s3); min-height: var(--touch); padding: var(--s2) 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-primary); flex: none; }
.switch { position: relative; display: flex; align-items: center; gap: var(--s3); cursor: pointer; min-height: var(--touch); }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--muted); position: relative; transition: background .2s; flex: none; margin: 0; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.switch input:checked { background: var(--color-primary); }
.switch input:checked::after { transform: translateX(-20px); } /* RTL: on = knob on the left */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 380px) { .form-grid { grid-template-columns: 1fr; } }

/* OTP */
.otp { display: flex; gap: var(--s2); justify-content: center; direction: ltr; }
.otp input { width: 46px; height: 56px; text-align: center; font-size: 22px; font-weight: 600; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); background: var(--color-surface); }
.otp input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent); }

/* Stepper */
.stepper { display: flex; justify-content: space-between; position: relative; margin: var(--s2) 0 var(--s5); padding: 0; list-style: none; }
.stepper::before { content: ""; position: absolute; top: 15px; inset-inline: 12%; height: 1.5px; background: var(--color-border); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; font-size: 14px; color: var(--color-text-secondary); }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); border: 1.5px solid var(--color-border); font-size: 14px; font-weight: 600; }
.stepper li.done .dot { background: var(--color-secondary); border-color: var(--color-primary); color: var(--color-primary-text); }
.stepper li.current { color: var(--color-primary-text); font-weight: 600; }
.stepper li.current .dot { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }

/* Month calendar */
.month { padding: var(--s4); }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.month-grid .dow { font-size: 14px; color: var(--color-text-secondary); padding: var(--s1) 0; }
.day {
  aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 15px;
  background: var(--muted); color: var(--color-text-secondary); cursor: default;
}
.day.free { background: var(--tint-success); color: var(--ink-success); font-weight: 600; cursor: pointer; }
.day.full { background: transparent; border: 1.5px dashed var(--color-border); cursor: pointer; }
.day.selected { background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; }
.day.today { box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.day.empty-cell { background: none; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: center; font-size: 14px; color: var(--color-text-secondary); margin-top: var(--s4); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Time slots */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.slot {
  min-height: var(--touch); border-radius: var(--radius-md); border: 1.5px solid transparent; font-weight: 500; cursor: pointer;
  background: color-mix(in srgb, var(--color-primary) 22%, var(--color-surface)); color: var(--color-text-primary); direction: ltr;
}
.slot:hover { border-color: var(--color-primary); }
.slot[aria-pressed="true"] { background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; }

/* Sticky action bar */
.actionbar { position: sticky; bottom: 0; padding: var(--s3) 0 calc(var(--s3) + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--color-background) 30%); margin-top: var(--s5); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.gallery img, .gallery button { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); border: 0; padding: 0; background: var(--color-secondary); cursor: zoom-in; }
.gallery-strip { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-strip img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-md); scroll-snap-align: start; flex: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .9); display: flex; align-items: center; justify-content: center; padding: var(--s4); }
.lightbox img { max-height: 90dvh; border-radius: var(--radius-md); }
.lightbox .icon-btn { position: absolute; top: calc(var(--s3) + env(safe-area-inset-top)); inset-inline-end: var(--s3); color: #fff; }

/* Sheets, dialogs, toasts */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .4); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--s4) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  animation: up .2s ease-out;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--color-border); margin: 0 auto var(--s3); }
@media (min-width: 720px) { .backdrop { align-items: center; } .sheet { border-radius: var(--radius-lg); } }
.dialog { max-width: 400px; border-radius: var(--radius-lg); margin: auto; }
.backdrop.center { align-items: center; padding: var(--s4); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.toasts { position: fixed; z-index: 95; inset-inline: var(--s4); top: calc(var(--s3) + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: var(--s2); align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-lg); border-inline-start: 4px solid var(--color-success); animation: up .2s; }
.toast.error { border-color: var(--color-error); }
.toast.warning { border-color: var(--color-warning); }

/* Drawer menu */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .4); animation: fade .15s; }
.drawer nav { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 85vw); background: var(--color-surface); padding: calc(var(--s4) + env(safe-area-inset-top)) var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s1); }
.menu-item { display: flex; align-items: center; gap: var(--s3); min-height: var(--touch); padding: 0 var(--s3); border-radius: var(--radius-md); color: inherit; text-decoration: none; background: none; border: 0; width: 100%; text-align: start; cursor: pointer; font-size: 16px; }
.menu-item:hover, .menu-item.active { background: var(--color-secondary); }

/* Bottom navigation (admin) */
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: flex; justify-content: space-around;
  background: var(--color-surface); border-top: 1px solid var(--color-border); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s2) 0; min-height: 56px; font-size: 12px; color: var(--color-text-secondary); text-decoration: none; position: relative; }
.bottom-nav a.active { color: var(--color-primary-text); font-weight: 600; }
.bottom-nav .count { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--color-error); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.has-bottom-nav { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

/* Segmented control */
.segmented { display: inline-flex; background: var(--color-secondary); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.segmented button { border: 0; background: none; min-height: 36px; padding: 0 var(--s4); border-radius: var(--radius-pill); cursor: pointer; font-size: 14px; font-weight: 500; }
.segmented button[aria-pressed="true"] { background: var(--color-surface); box-shadow: var(--shadow); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--muted), var(--color-secondary), var(--muted)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-md); min-height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Card links that are also flex rows keep their flex layout */
.card-link.row, .card-link.media-row { display: flex; }
.card-link.row-between { display: flex; }
div.ltr { display: block; text-align: right; }
