/* base.css — shared design tokens + reset + shared layout/components.
   Ported from the demo (MKD-Vibes-Demo-Site-Brief). Portal-specific tokens
   live in tokens-men.css / tokens-ladies.css and are scoped by
   html[data-portal]. This file always loads. */

/* ============================================================
   Shared tokens
   ============================================================ */
:root {
  --transition-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --transition: 240ms cubic-bezier(.2,.7,.2,1);
  --transition-slow: 520ms cubic-bezier(.22,.61,.36,1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Splash / portal-less pages get a neutral, dark canvas. */
html:not([data-portal]) {
  --bg:#0B0C10;
  --surface:#15171C;
  --surface-2:#1F242D;
  --line:#2A2F38;
  --text:#F4F6FA;
  --text-muted:#9AA4B2;
  --accent:#3E82FF;
  --accent-press:#2E6BE0;
  --gold:#C8A24A;
  --success:#34C77B;
  --danger:#FF5A5F;
  --radius:14px;
  --radius-lg:22px;
  --shadow:0 14px 40px rgba(0,0,0,.5);
  --ring:0 0 0 3px rgba(62,130,255,.35);
  --font-head-latin: "Sora", system-ui, sans-serif;
  --font-head-ar: "Cairo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --head-weight: 800;
  --head-track: -0.02em;
  --motion: var(--transition);
}
html:not([data-portal])[lang="ar"] {
  --font-head-latin: "Cairo", system-ui, sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head-latin);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  margin: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(28px, 7vw, 40px); }
h2 { font-size: clamp(22px, 5vw, 28px); }
h3 { font-size: 18px; }
p  { margin: 0; }

/* ============================================================
   App shell
   ============================================================ */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: calc(var(--safe-bottom) + 32px);
}

.app-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-header .header-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.back-btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 22px; line-height: 1;
  transition: transform var(--motion), background var(--motion), border-color var(--motion);
}
.back-btn:hover { background: var(--surface-2); }
.back-btn:active { transform: scale(.96); }
.back-btn .ic { display: block; transform: translateY(-1px); }
/* The chevron mirrors with the layout so it always points "back". */
html[dir="rtl"] .back-btn .ic { transform: translateY(-1px) scaleX(-1); }

.app-header .brand {
  font-family: var(--font-head-latin);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  font-size: 17px;
  display: flex; align-items: center; gap: 8px;
}
.app-header .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.app-header .header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: transform var(--motion), background var(--motion), border-color var(--motion);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.96); }
.icon-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lang-toggle .pip { opacity: .45; }
.lang-toggle .pip.active { opacity: 1; color: var(--accent); }

.view {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 18px 24px;
  flex: 1;
}

.section { margin-top: 22px; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.section-title h2 { font-size: 20px; }
.section-title .more {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-head-latin);
  font-weight: 700;
  letter-spacing: var(--head-track);
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  transition: transform var(--motion), background var(--motion), box-shadow var(--motion);
  width: 100%;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--gold { background: var(--gold); color: #1A1407; }
.btn--gold:hover { filter: brightness(.96); }
.btn--inline { width: auto; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 999px; }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion);
}
.card.is-link { cursor: pointer; }
.card.is-link:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.card.is-link:active { transform: scale(.99); }

/* ============================================================
   Chips & pills
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-muted);
  transition: all var(--motion);
}
.chip.is-active { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
.chip--gold { color: var(--gold); border-color: color-mix(in oklab, var(--gold) 60%, var(--line)); }
.chip--success { color: var(--success); border-color: color-mix(in oklab, var(--success) 50%, var(--line)); }
.chip--mono { font-family: var(--font-mono); letter-spacing: .04em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   Stepper
   ============================================================ */
.stepper {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stepper .step { display: inline-flex; align-items: center; gap: 6px; }
.stepper .pip { width: 18px; height: 2px; background: var(--line); border-radius: 2px; }
.stepper .step.is-done .pip,
.stepper .step.is-current .pip { background: var(--accent); }
.stepper .step.is-current { color: var(--text); }

/* ============================================================
   Slot grid + day strip
   ============================================================ */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  transition: all var(--motion);
}
.slot .tag { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.slot:hover { border-color: var(--accent); }
.slot.is-busy { opacity: .35; text-decoration: line-through; pointer-events: none; }
.slot.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.slot.is-selected .tag { color: rgba(255,255,255,.85); }

.day-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.day-strip::-webkit-scrollbar { display: none; }
.day {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-family: var(--font-mono);
  transition: all var(--motion);
}
.day .dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.day .num { font-size: 20px; font-weight: 600; margin-top: 4px; }
.day.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.day.is-selected .dow { color: rgba(255,255,255,.8); }

/* ============================================================
   Sheet (bottom modal)
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity var(--motion);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: var(--surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 18px 18px calc(28px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform var(--motion);
  max-height: 86vh;
  overflow-y: auto;
}
.sheet.is-open { transform: translateY(0); }
.sheet .handle { width: 38px; height: 4px; border-radius: 99px; background: var(--line); margin: -4px auto 12px; }

/* ============================================================
   Toast
   ============================================================ */
.toast-stack {
  position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 12px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 100; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-10px) scale(.98);
  opacity: 0;
  transition: all var(--motion);
}
.toast.is-on { transform: none; opacity: 1; }
.toast .ic { color: var(--success); }

/* ============================================================
   Motion — staggered reveals
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.view > * { animation: rise var(--motion) both; }
.view > *:nth-child(1) { animation-delay: 20ms; }
.view > *:nth-child(2) { animation-delay: 80ms; }
.view > *:nth-child(3) { animation-delay: 140ms; }
.view > *:nth-child(4) { animation-delay: 200ms; }
.view > *:nth-child(5) { animation-delay: 260ms; }
.view > *:nth-child(6) { animation-delay: 320ms; }
.view > *:nth-child(7) { animation-delay: 380ms; }
.view > *:nth-child(n+8) { animation-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  .view > * { animation: none; }
  * { transition: none !important; }
}

/* ============================================================
   Utility
   ============================================================ */
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.row  { display: flex; align-items: center; gap: 10px; }
.row.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.hide { display: none !important; }
[hidden] { display: none !important; }

.field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field input { flex: 1; background: transparent; border: 0; outline: none; font-family: var(--font-mono); letter-spacing: .04em; }
.field:focus-within { box-shadow: var(--ring); border-color: var(--accent); }

.action-bar {
  position: sticky; bottom: 0; z-index: 20;
  margin: 20px -18px -24px;
  padding: 14px 18px calc(20px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent 0%, var(--bg) 30%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}

/* RTL tweaks */
html[dir="rtl"] .stepper { direction: rtl; }
html[dir="rtl"] .day-strip { direction: rtl; }

.noscript-note { padding: 12px 18px; background: var(--surface); color: var(--text-muted); font-size: 13px; text-align: center; }

/* "Booking coming soon" status — an intentional pill, not orphaned muted text. */
.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, var(--line));
  background: color-mix(in oklab, var(--accent) 5%, transparent);
  color: var(--text-muted); font-size: 13px;
  font-family: var(--font-mono); letter-spacing: .02em;
}
.coming-soon .ic { color: var(--accent); opacity: .8; line-height: 1; }

/* Error pages */
.error-page { text-align: center; padding: 40px 0; }
.error-page h1 { font-size: clamp(48px, 16vw, 88px); color: var(--text-muted); letter-spacing: .04em; }
.error-page p { margin: 8px 0 20px; }
.error-page .btn { margin-inline: auto; }

/* ============================================================
   Splash
   ============================================================ */
.view--splash {
  padding: 12px 18px 24px;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 4vh, 26px);
}
.splash-head { text-align: center; padding: 18px 0 4px; }
.splash-eyebrow { font-size: 11px; letter-spacing: .32em; color: var(--accent); margin-bottom: 18px; }
.splash-title { font-family: var(--font-head-latin); font-weight: 800; font-size: clamp(32px, 9vw, 44px); letter-spacing: -.02em; line-height: 1.05; }
.splash-sub { margin-top: 12px; color: var(--text-muted); font-size: 14.5px; max-width: 30ch; margin-inline: auto; }

/* Mobile: content-sized cards so BOTH portals sit on one screen with tidy
   breathing room (no huge empty interiors). Desktop: two equal tall columns. */
.splash-portals { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .splash-portals { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; min-height: 56vh; } }

.portal-card {
  position: relative;
  border-radius: 28px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  text-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 190px;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms;
}
.portal-card:hover { transform: translateY(-2px); }
.portal-card:active { transform: translateY(0); }
.portal-card .portal-eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.portal-card .portal-title { font-family: var(--font-head-latin); font-weight: 800; font-size: clamp(22px, 5.4vw, 30px); letter-spacing: -.02em; margin-top: 10px; }
.portal-card .portal-cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.portal-card .portal-cta .ic { display: inline-flex; width: 30px; height: 30px; border-radius: 999px; align-items: center; justify-content: center; border: 1px solid currentColor; }
.portal-card .portal-discreet { position: absolute; inset-block-start: 26px; inset-inline-end: 22px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #C39A4E); opacity: .85; }

/* Men card (always dark, regardless of current portal) */
.portal-card--men {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(62,130,255,.22), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, rgba(18,42,77,.55), transparent 55%),
    #0E1014;
  color: #F4F6FA;
  border-color: #232936;
  font-family: "Sora", system-ui, sans-serif;
}
.portal-card--men .portal-eyebrow { color: #3E82FF; }
.portal-card--men::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: .6;
  pointer-events: none;
}

/* Ladies card (always cream, regardless of current portal) */
.portal-card--ladies {
  background: linear-gradient(160deg, #FFFFFF 0%, #FBEBE6 60%, #F4DDE3 100%);
  color: #3A2C30;
  border-color: #EFE0D8;
  font-family: "Fraunces", Georgia, serif;
}
.portal-card--ladies .portal-eyebrow { color: #C39A4E; }
.portal-card--ladies .portal-title { font-weight: 500; font-style: normal; }
.portal-card--ladies::before {
  content: "";
  position: absolute;
  inset: -50% -30% auto auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid #C39A4E;
  opacity: .35;
  pointer-events: none;
}

/* ============================================================
   M1.2 — Catalogue (customer)
   ============================================================ */
.catalogue__head h1 { margin-bottom: 6px; }
.catalogue-filters { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.field--search input { width: 100%; }
.field--search { padding: 10px 14px; }

.catalogue-cats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
.catalogue-cats::-webkit-scrollbar { display: none; }
.catalogue-cats .chip { position: relative; cursor: pointer; white-space: nowrap; user-select: none; }
.catalogue-cats .chip input {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; margin: 0;
}
.catalogue-cats .chip:focus-within { box-shadow: var(--ring); }

.catalogue-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.select { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.select__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.select select, .form-field select {
  height: 44px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.select select:focus-visible, .form-field select:focus-visible,
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: none; box-shadow: var(--ring); border-color: var(--accent);
}

/* Filter toggle rendered as a chip (e.g. ladies' "female staff only"). The
   checkbox itself is visually hidden; the chip reflects the checked state. */
.catalogue-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--toggle { cursor: pointer; user-select: none; }
.chip--toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip--toggle:focus-within { box-shadow: var(--ring); }
.chip--toggle .ic { line-height: 1; }
.chip--toggle:has(input:checked) {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
}

.catalogue-list { margin-top: 16px; transition: opacity var(--motion); }
.catalogue-list.is-loading { opacity: .5; }
.catalogue-empty { text-align: center; padding: 22px; }
.service-card .sep { opacity: .5; }
.service-card .price .iqd { color: var(--text-muted); font-weight: 400; margin-inline-start: 4px; font-size: 12px; }

/* Card lead: a service thumbnail (or monogram fallback) beside the name/meta.
   Themed by tokens, so both portals inherit their own radius/surface. */
.service-card__lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.service-card__text { min-width: 0; }
.service-card__media {
  flex: none; width: 56px; height: 56px; border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Short description line on a catalogue card (clamped to two lines). */
.service-card__blurb {
  color: var(--text-muted); font-size: 13px; line-height: 1.4; margin: 3px 0 2px;
  max-width: 46ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.service-card__mono {
  font-family: var(--font-head-latin); font-weight: 700; font-size: 20px;
  color: var(--accent); opacity: .85; letter-spacing: -.02em;
}
.badge-rec {
  color: var(--gold); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; white-space: nowrap;
}

/* Service detail */
.service-detail { position: relative; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.back-link:hover { color: var(--text); }
.service-detail__tags { margin: 14px 0 12px; }
.service-detail__desc { max-width: 52ch; margin-top: 12px; }
.service-detail__facts { margin-top: 18px; }
.service-detail__facts .row + .row { margin-top: 10px; }

/* ============================================================
   M1.2 — Branches (public)
   ============================================================ */
.branches__head h1 { margin-bottom: 6px; }
.branch-map {
  position: relative;
  height: 320px;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: grid; place-items: center;
}
.branch-map.is-ready { display: block; }
.branch-map__fallback { padding: 16px; text-align: center; }
.branch-map.is-unavailable { display: grid; }
.branch-map .maplibregl-popup-content { color: #1a1a1a; font-family: var(--font-body); font-size: 13px; }

/* ============================================================
   Public team directory (staff)
   ============================================================ */
.hero-cta { flex-wrap: wrap; }
.staff__head h1 { margin-bottom: 6px; }
.staff__head + .privacy-note { margin-top: 16px; }
.staff-list { margin-top: 18px; }
.barber-card__body { min-width: 0; }
.barber-card__skills { margin-top: 8px; }
.barber-card__branch { align-self: start; white-space: nowrap; }
/* A real photo (men's portal only) fills the avatar; ladies always show the
   monogram text, so no image is ever requested there. */
.barber-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.branch-list { margin-top: 18px; }
.branch-card { padding: 16px 18px; }
.branch-card__name { font-size: 18px; }
.branch-card__addr { margin-top: 4px; font-size: 13.5px; }
.branch-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ============================================================
   Touch ergonomics — comfortable tap targets on touch devices.
   Scoped to coarse pointers so the mouse-driven desktop stays compact.
   ============================================================ */
@media (pointer: coarse) {
  .chip { min-height: 40px; }
  .catalogue-cats .chip,
  .chip--toggle { min-height: 44px; }
  .chip-row,
  .catalogue-cats { gap: 10px; }
  .lang-toggle { min-height: 40px; padding-inline: 12px; }
  .back-btn { width: 44px; height: 44px; }
  .select select,
  .form-field select { height: 48px; }
  /* Give tappable service/branch/staff cards a touch-friendly hit area. */
  .service-card,
  .barber-card,
  .branch-card { min-height: 72px; }
}

/* ============================================================
   Desktop (second). The site is mobile-first — a single column. On wide
   screens give it room and lay the lists out as a grid so the page reads
   as intentional desktop design, not a stretched-out phone.
   ============================================================ */
@media (min-width: 900px) {
  .view { max-width: 960px; }
  .catalogue-list,
  .branch-list,
  .staff-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  /* The lists carry .stack for the mobile single column; cancel its vertical
     rhythm once they become a two-column grid (grid gap handles spacing). */
  .catalogue-list.stack > * + *,
  .branch-list.stack > * + *,
  .staff-list.stack > * + * { margin-top: 0; }
}

/* ============================================================
   M1.3 — Booking engine
   ============================================================ */

/* --- Service card: stretched detail link + a Book button --------------- */
/* The whole card links to the detail via a stretched pseudo-element; the Book
   button and any other real link sit above it (z-index) so both are reachable
   without nesting anchors. */
.service-card { position: relative; }
.service-card:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.service-card__link { color: inherit; text-decoration: none; }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-card__cta { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 10px; position: relative; z-index: 2; }
.service-card__cta .btn { position: relative; z-index: 2; }

/* "Available today" badge — a small success-toned marker with a dot. */
.badge-today {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--success); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em; white-space: nowrap;
}
.badge-today::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* --- Booking flow layout ---------------------------------------------- */
.booking__head h1 { margin-bottom: 6px; }
.booking-step-title { font-size: 16px; margin: 18px 0 10px; }
.booking-note { font-size: 13px; margin: 8px 0; }
.booking-note--discreet { display: inline-flex; align-items: center; gap: 8px; }
.booking-note--discreet .ic { color: var(--accent); opacity: .8; }
.booking-empty { text-align: center; padding: 18px; }

/* Selectable option rows (service / branch / specialist). */
.booking-option { display: flex; align-items: center; gap: 12px; }
.booking-option .price { margin-inline-start: auto; }
.booking-option__body { min-width: 0; }
.booking-option__body .name { font-weight: 600; }
.booking-option__body .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; }
.booking-option__chev { margin-inline-start: auto; color: var(--text-muted); font-size: 22px; line-height: 1; }
.avatar--any { display: grid; place-items: center; color: var(--gold); font-size: 18px; }

/* Running summary of the choices made so far. */
.booking-summary { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.booking-summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.booking-summary__val { text-align: end; }
.booking-summary__change {
  display: inline-block; margin-inline-start: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
}

/* Slot: the hidden radio drives selection; the label is the pressable pill. */
.slot { cursor: pointer; position: relative; }
.slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.slot:focus-within { box-shadow: var(--ring); border-color: var(--accent); }
.slot:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Details form. */
.booking-form { margin-top: 6px; }
.booking-details { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit;
}
.form-field small { font-size: 11.5px; }
.booking-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.booking-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Alert / conflict notice. */
.booking-alert {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--gold) 45%, var(--line));
  background: color-mix(in oklab, var(--gold) 8%, var(--surface));
  color: var(--text); font-size: 13.5px;
  display: flex; flex-direction: column; gap: 4px;
}
.booking-alert__offer { color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; }

/* Confirmation. */
.booking-confirmation { text-align: center; }
.confirm-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 20px; }
.confirm-hero__check {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--success) 16%, var(--surface));
  color: var(--success); font-size: 26px;
}
.confirm-card { text-align: start; display: flex; flex-direction: column; gap: 12px; }
.confirm-card .row.spread { gap: 12px; }

/* Split action bar (two buttons side by side). */
.action-bar--split { display: flex; gap: 10px; }
.action-bar--split .btn { flex: 1; }

/* Error-toned toast (reuses the shared toast machinery). */
.toast--error { border-color: color-mix(in oklab, var(--danger, #d64545) 50%, var(--line)); }
.toast--error.toast { color: var(--text); }

html[dir="rtl"] .booking-option__chev { transform: scaleX(-1); }
