/* Zineph v3.5 — public layer (see includes/views/head.php). Loaded after app.css.
   Owned by the public-site pages: index, service, book, booking-success, pay,
   login/register/forgot/reset, 404/403. Prefixes: .pub- (general), .grp- (group
   booking). Nothing here touches the staff/admin shell. */

/* ---------- Basics shared by every public page ---------- */
html { -webkit-text-size-adjust: 100%; }
body.is-public, .public { overflow-x: clip; }
.pub-container { max-width: 1200px; margin: 0 auto; }
.pub-container--narrow { max-width: 1000px; }
.pub-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.public :focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
[data-theme="dark"] .public :focus-visible { outline-color: var(--brand-light); }
/* Inputs on phones: 16px stops iOS/Android zooming in on focus */
.public .input, .public .textarea, .public select.input { font-size: 16px; }

/* ---------- Header with phone menu ---------- */
.pub-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.pub-header.is-stuck, .pub-menu-open .pub-header { border-bottom-color: var(--divider); }
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .pub-header { background: var(--bg); } }
.pub-header__in {
  max-width: 1400px; margin: 0 auto; padding: 0.75rem 2rem;
  display: flex; align-items: center; gap: 1rem; min-width: 0;
}
.pub-header__logo { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.pub-header__logo .brandmark__img { max-width: 150px; }
.pub-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.pub-nav a {
  padding: 0.6rem 0.85rem; border-radius: var(--radius-pill); color: var(--ink-2);
  font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
.pub-nav a:hover { background: var(--surface-2); color: var(--ink); }
.pub-header__acts { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.pub-nav + .pub-header__acts { margin-left: 0.5rem; }
.pub-header__acts:first-child, .pub-header__logo + .pub-header__acts { margin-left: auto; }
.pub-header .icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pub-header__book { white-space: nowrap; font-weight: 600; }
.pub-menu-btn {
  display: none; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--ink); font-size: 0.85rem; font-weight: 500; cursor: pointer;
}
.pub-menu-btn svg { width: 20px; height: 20px; }
.pub-menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pub-menu {
  max-width: 1400px; margin: 0 auto; padding: 0.25rem 1rem 1rem;
  border-top: 1px solid var(--divider); background: var(--bg);
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.pub-menu[hidden] { display: none; }
.pub-menu > .btn { margin-top: 0.75rem; }
.pub-menu__list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pub-menu__list a, .pub-menu__theme {
  display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 0.25rem;
  border-bottom: 1px solid var(--divider); color: var(--ink); text-decoration: none;
  font-size: 1.05rem; background: none; text-align: left; cursor: pointer;
}
.pub-menu__list li:last-child a, .pub-menu__list li:last-child .pub-menu__theme { border-bottom: 0; }
.pub-menu__theme { color: var(--ink-3); font-size: 0.95rem; }
.pub-wide-inline { display: inline; }

@media (max-width: 860px) {
  .pub-nav, .pub-wide { display: none !important; }
  .pub-wide-inline { display: none; }
  .pub-menu-btn { display: inline-flex; }
  .pub-header__in { padding: 0.6rem 1rem; gap: 0.5rem; }
  .pub-header .pub-header__acts { margin-left: auto; }
  .pub-header__book { padding: 0 1rem; }
}
@media (max-width: 360px) {
  .pub-header__logo .brandmark__img { max-width: 112px; }
  .pub-menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pub-menu-btn { padding: 0; width: 44px; justify-content: center; }
}

/* ---------- Home: hero ---------- */
.pub-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pub-hero__eyebrow { margin-bottom: 1rem; }
.pub-hero__title { font-size: clamp(2.1rem, 6vw, 4.25rem); }
.pub-hero__sub { margin-bottom: 1.5rem; color: var(--ink-2); }
.pub-hero__cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.pub-hero__book { font-size: 1.05rem; font-weight: 600; min-height: 56px; padding: 0 2rem; }
.pub-hero__book svg { width: 20px; height: 20px; }
.pub-hero__wa { min-height: 56px; }
.pub-hero__wa svg { width: 18px; height: 18px; color: #25d366; }

.pub-steps {
  list-style: none; padding: 0; margin: 2rem auto 0; max-width: 760px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; text-align: left;
}
.pub-step {
  display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.85rem 0.9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  line-height: 1.3; min-width: 0;
}
.pub-step strong { display: block; font-weight: 600; font-size: 0.95rem; }
.pub-step__t { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.1rem; }
.pub-step__n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-dark); color: #fff; font-weight: 600; font-size: 0.85rem;
}
[data-theme="dark"] .pub-step__n { background: var(--brand); color: var(--bg); }

.pub-group {
  display: flex; align-items: center; gap: 0.85rem; max-width: 760px; margin: 0.75rem auto 0;
  padding: 0.85rem 1rem; text-align: left; text-decoration: none; color: var(--ink);
  background: var(--brand-tint); border: 1px dashed var(--brand); border-radius: var(--radius-md);
  min-height: 56px;
}
.pub-group:hover { background: var(--brand-soft); color: var(--ink); }
.pub-group__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--brand-dark);
}
.pub-group__icon svg { width: 22px; height: 22px; }
.pub-group__text { flex: 1; min-width: 0; line-height: 1.35; }
.pub-group__text strong { display: block; font-weight: 600; }
.pub-group__text span { display: block; font-size: 0.85rem; color: var(--ink-3); }
.pub-group__go { font-size: 1.75rem; line-height: 1; color: var(--brand-dark); }

/* ---------- Home: sections ---------- */
.pub-section { padding: 3.5rem 2rem; }
.pub-section--alt { background: var(--surface-2); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.pub-section--promo { padding-top: 2rem; padding-bottom: 2rem; background: linear-gradient(135deg, var(--brand-tint), var(--surface-2)); border-top: 1px solid var(--divider); }
.pub-section--fade { border-top: 1px solid var(--divider); background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.pub-h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 0.5rem; font-weight: 300; }
.pub-h2 em { color: var(--brand); font-style: italic; }
.pub-h2--left { text-align: left; }
.pub-lead { max-width: 560px; margin: 0.5rem auto 0; line-height: 1.55; }

/* Category tabs (sideways scroll on phones, wrap on desktop) */
.pub-cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem;
}
.pub-cat {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 52px; padding: 0.4rem 1rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
  text-align: left; line-height: 1.2; flex: 0 0 auto;
}
.pub-cat:hover { border-color: var(--brand); }
.pub-cat__name { font-weight: 600; font-size: 0.92rem; }
.pub-cat__meta { font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.1rem; white-space: nowrap; }
.pub-cat[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pub-cat[aria-selected="true"] .pub-cat__meta { color: inherit; opacity: 0.8; }
[data-theme="dark"] .pub-cat[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--bg); }

.pub-menu-lists { max-width: 860px; margin: 0 auto; }
.pub-list + .pub-list { margin-top: 1.5rem; }
.pub-menu-lists.is-tabbed .pub-list + .pub-list { margin-top: 0; }
.pub-list[hidden] { display: none; }
.pub-list__h { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 0.6rem; }
.pub-menu-lists.is-tabbed .pub-list__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pub-list__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.4rem; font-size: 0.9rem; }
.pub-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pub-svc {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem 0.75rem 1rem;
}
.pub-svc__info { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: block; }
.pub-svc__info:hover .pub-svc__name { color: var(--brand-dark); }
.pub-svc__name { display: block; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; overflow-wrap: break-word; }
.pub-svc__desc {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.1rem;
}
.pub-svc__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; margin-top: 0.3rem; font-size: 0.85rem; }
.pub-svc__dur { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink-3); }
.pub-svc__dur svg { width: 14px; height: 14px; }
.pub-svc__price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pub-svc__book { flex: 0 0 auto; min-height: 44px; min-width: 76px; font-weight: 600; }

/* Team */
.pub-team__card { text-align: center; }
.pub-team__av { margin: 0 auto 1rem; }
.pub-team__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; }
.pub-team__bio { color: var(--ink-3); line-height: 1.55; margin-top: 0.4rem; }

/* Visit */
.pub-visit { gap: 3rem; align-items: center; }
.pub-contact { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pub-contact li { display: flex; gap: 0.85rem; align-items: flex-start; }
.pub-contact li > span:last-child { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.pub-contact__icon {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
}
.pub-contact__icon svg { width: 18px; height: 18px; }
.pub-contact__main { font-weight: 500; color: inherit; text-decoration: none; }
.pub-contact .small a { display: inline-block; padding: 0.35rem 0; }
.pub-hours { padding: 0.55rem 0; border-bottom: 1px solid var(--divider); gap: 1rem; }
.pub-hours.is-today { font-weight: 600; }
.pub-today {
  display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand-dark); font-size: 0.68rem; font-weight: 600; vertical-align: 1px;
}

/* Footer */
.pub-footer { padding: 2.5rem 1.5rem 2rem; border-top: 1px solid var(--divider); text-align: center; color: var(--ink-muted); font-size: 0.85rem; }
.pub-footer__logo { display: inline-block; margin-bottom: 0.5rem; }
.pub-footer__tag { letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.25rem; }
.pub-footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.25rem; margin-bottom: 0.5rem; }
.pub-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .pub-hero { padding: 1.5rem 1rem 2rem; }
  .pub-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 0.75rem; }
  .pub-hero__title br { display: none; }
  .pub-hero__sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .pub-hero__cta { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .pub-hero__cta .btn { width: 100%; }
  .pub-hero__wa { min-height: 48px; border: 0; }
  .pub-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
  .pub-step { border: 0; border-radius: 0; background: none; align-items: center; padding: 0.7rem 0.9rem; }
  .pub-step + .pub-step { border-top: 1px solid var(--divider); }
  .pub-step strong { display: inline; }
  .pub-step__t { display: inline; margin-left: 0.25rem; }
  .pub-step__t::before { content: "— "; }
  .pub-section { padding: 2.5rem 1rem; }
  .pub-cats {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-left: -1rem; margin-right: -1rem; padding: 0 1rem 4px; scroll-padding: 0 1rem;
  }
  .pub-cats::-webkit-scrollbar { display: none; }
  .pub-svc { padding: 0.7rem 0.75rem 0.7rem 0.9rem; }
  .pub-promos {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.75rem; scrollbar-width: none;
    margin-left: -1rem; margin-right: -1rem; padding: 0 1rem 4px; scroll-padding: 0 1rem;
  }
  .pub-promos::-webkit-scrollbar { display: none; }
  .pub-promos > .card { flex: 0 0 86%; scroll-snap-align: start; }
  .pub-team { grid-template-columns: minmax(0, 1fr); }
  .pub-team__card { display: flex; gap: 1rem; text-align: left; align-items: flex-start; }
  .pub-team__av { margin: 0; flex: 0 0 auto; width: 56px; height: 56px; font-size: 1.1rem; }
  .pub-visit { gap: 1.5rem; }
}

/* WhatsApp + chat floats: never on top of a sticky action bar */
body.pub-has-bar .wa-float { bottom: calc(var(--pub-bar-h, 76px) + 0.75rem); }
body.pub-has-bar .lc-bubble:not(.bk-docked) { bottom: calc(var(--pub-bar-h, 76px) + 0.75rem); }
body.pub-has-bar .toast { bottom: calc(var(--pub-bar-h, 76px) + 1rem); }
@media (max-width: 760px) {
  .pub-page .wa-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  body.pub-has-bar .wa-float { bottom: calc(var(--pub-bar-h, 76px) + 0.75rem); }
}

/* ---------- Service page ---------- */
.pub-svcpage { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.5rem 4rem; }
.pub-crumbs { margin-bottom: 1rem; overflow-wrap: anywhere; }
.pub-crumbs a { display: inline-block; padding: 0.4rem 0; }
.pub-svcpage__grid { gap: 2rem; align-items: start; }
.pub-svcpage__img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pub-svcpage__img--blank {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint));
  display: flex; align-items: center; justify-content: center; color: var(--brand-dark);
}
.pub-svcpage__img--blank span { font-family: var(--font-display); font-style: italic; font-size: 3rem; opacity: 0.4; }
.pub-svcpage__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; margin: 0.4rem 0 1rem; overflow-wrap: break-word; }
.pub-pop {
  display: inline-block; vertical-align: middle; margin-left: 0.25rem; padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-dark);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.pub-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.25rem; }
.pub-fact {
  flex: 1 1 0; min-width: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
}
.pub-fact dt { font-size: 0.75rem; color: var(--ink-muted); }
.pub-fact dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.pub-fact__price { color: var(--brand-dark); }
[data-theme="dark"] .pub-fact__price { color: var(--brand); }
.pub-svcpage__desc { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.pub-svcpage__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pub-svcpage__cta .btn-gold { font-weight: 600; }
.pub-svcpage__wa svg { width: 16px; height: 16px; color: #25d366; }
.pub-ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--ink-3); }
.pub-ticks li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.pub-ticks li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--success); font-weight: 700; }
.pub-svcpage__sec { margin-top: 3rem; }
.pub-svcpage__h2 { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; margin-bottom: 1rem; text-align: center; }
.pub-svcpage__sec .pub-svcs { max-width: 860px; margin: 0 auto; }

/* Sticky "Book this" bar — phones only (the header has the button on wide screens) */
.pub-bar { display: none; }
@media (max-width: 860px) {
  .pub-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(60, 25, 40, 0.10);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  [data-theme="dark"] .pub-bar { box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45); }
  .pub-bar__in { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; }
  .pub-bar__sum { flex: 1; min-width: 0; }
  .pub-bar__name { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pub-bar__meta { font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pub-bar__meta strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
  .pub-bar__go { flex: 0 0 auto; min-height: 48px; padding: 0 1.25rem; font-weight: 600; font-size: 0.95rem; }
  .pub-has-bar .pub-svcpage { padding-bottom: calc(var(--pub-bar-h, 76px) + 2rem); }
  .pub-svcpage { padding: 0.75rem 1rem 2rem; }
  .pub-svcpage__grid { gap: 1rem; }
  .pub-svcpage__img { aspect-ratio: 16 / 9; border-radius: var(--radius-md); }
  .pub-svcpage__img--blank span { font-size: 2rem; }
  .pub-svcpage__cta { flex-direction: column; }
  .pub-svcpage__cta .btn { width: 100%; }
  .pub-svcpage__sec { margin-top: 2rem; }
  .pub-svcpage__h2 { text-align: left; font-size: 1.35rem; }
  .pub-fact { padding: 0.6rem 0.7rem; }
  .pub-fact dd { font-size: 1.12rem; }
  .pub-svc-body .wa-float { display: none; }   /* "Ask on WhatsApp" is on the page; the bar owns the bottom edge */
}

/* ---------- Booking wizard: "Who's coming?" + group booking (.grp-) ---------- */
.grp-who { margin: 0 0 1.25rem; }
.grp-who__label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; }
.grp-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; max-width: 520px; }
.grp-seg__opt {
  display: flex; align-items: center; gap: 0.55rem; min-height: 60px; padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  color: var(--ink); text-align: left; cursor: pointer; line-height: 1.25;
  transition: border-color 0.15s, background 0.15s;
}
.grp-seg__opt svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--ink-3); }
.grp-seg__opt strong { display: block; font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.grp-seg__opt > span { min-width: 0; }
.grp-seg__sub { display: block; font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.1rem; }
.grp-seg__opt:hover { border-color: var(--brand); }
.grp-seg__opt[aria-checked="true"] { border-color: var(--brand-dark); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand-dark); }
.grp-seg__opt[aria-checked="true"] svg { color: var(--brand-dark); }
[data-theme="dark"] .grp-seg__opt[aria-checked="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
[data-theme="dark"] .grp-seg__opt[aria-checked="true"] svg { color: var(--brand); }

.grp-editor[hidden] { display: none; }
.grp-tip {
  font-size: 0.85rem; line-height: 1.45; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem; margin-bottom: 1rem;
}
.grp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.grp-person {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  padding: 0.85rem 0.9rem; scroll-margin: 90px 0 calc(var(--bk-bar-h, 96px) + 20px);
}
.grp-person.is-empty { border-style: dashed; border-color: var(--brand-light); }
.grp-person__head { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.grp-person__n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-dark); color: #fff; font-size: 0.8rem; font-weight: 700;
}
[data-theme="dark"] .grp-person__n { background: var(--brand); color: var(--bg); }
.grp-person__who { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.grp-person__name { margin-top: 0.4rem; }
.grp-person__name label { display: block; font-size: 0.8rem; margin-bottom: 0.25rem; color: var(--ink-2); }
.grp-person__name .input { min-height: 46px; }
.grp-person__rm {
  flex: 0 0 auto; min-height: 44px; padding: 0 0.6rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 1px solid transparent; color: var(--ink-muted); font-size: 0.82rem; cursor: pointer;
}
.grp-person__rm span[aria-hidden] { font-size: 1.25rem; line-height: 1; }
.grp-person__rm:hover { background: var(--danger-soft); color: var(--danger); }
.grp-chips { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.grp-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%;
  padding: 0.15rem 0.15rem 0.15rem 0.75rem; border-radius: var(--radius-pill);
  background: var(--brand-tint); border: 1px solid var(--brand-soft); font-size: 0.85rem; min-height: 40px;
}
.grp-chip__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grp-chip__price { color: var(--ink-3); font-size: 0.78rem; white-space: nowrap; }
.grp-chip__x {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 1.2rem; cursor: pointer;
}
.grp-chip__x:hover { background: var(--brand-dark); color: #fff; }
.grp-person__sum { margin-top: 0.45rem; }
.grp-person__warn { margin: 0.6rem 0 0; font-size: 0.85rem; }
.grp-person__empty { margin: 0.65rem 0 0; font-size: 0.88rem; color: var(--ink-3); }
.grp-person__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.grp-person__acts .btn { min-height: 44px; }
.grp-person.grp-flash { animation: grpFlash 1.2s ease; }
@keyframes grpFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: none; } }
.grp-add {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  min-height: 52px; margin-top: 0.75rem; border-radius: var(--radius-md);
  border: 1.5px dashed var(--brand); background: transparent; color: var(--brand-dark);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
[data-theme="dark"] .grp-add { color: var(--brand); }
.grp-add svg { width: 18px; height: 18px; }
.grp-add:hover:not(:disabled) { background: var(--brand-tint); }
.grp-add:disabled { opacity: 0.55; cursor: not-allowed; border-style: solid; border-color: var(--border); color: var(--ink-3); }
.grp-limit { margin: 0.5rem 0 0; text-align: center; }

/* The service list: inline for one person, a sheet for one person of a group */
.grp-sheet__head, .grp-sheet__foot { display: none; }
#bk-panel-1.is-group .grp-picker:not(.is-sheet) { display: none; }
.grp-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(20, 10, 15, 0.45); }
.grp-backdrop[hidden] { display: none; }
body.grp-lock { overflow: hidden; }
body.grp-lock .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 70; }
/* .public is its own stacking context, so the sheet can't rise above the
   fixed action bar / chat bubble — hide those while the sheet is open
   (the sheet has its own Done bar). */
body.grp-lock .bk-bar, body.grp-lock .lc-bubble:not(.bk-docked), body.grp-lock .wa-float { display: none; }
.grp-picker.is-sheet {
  position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column;
  background: var(--bg); overscroll-behavior: contain;
}
.grp-picker.is-sheet .grp-sheet__head {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--divider); background: var(--surface);
}
.grp-sheet__titles { flex: 1; min-width: 0; }
.grp-sheet__title { font-size: 1.25rem; font-weight: 400; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-sheet__x { width: 44px; min-height: 44px; padding: 0; flex: 0 0 auto; }
.grp-sheet__x svg { width: 20px; height: 20px; }
.grp-picker.is-sheet .grp-sheet__body { flex: 1; overflow-y: auto; padding: 1rem; -webkit-overflow-scrolling: touch; }
.grp-picker.is-sheet .grp-sheet__foot {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -8px 24px rgba(60, 25, 40, 0.08);
}
.grp-sheet__sum { flex: 1; min-width: 0; font-size: 0.88rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-sheet__done { flex: 0 0 auto; min-height: 48px; min-width: 120px; font-weight: 600; }
.grp-picker.is-sheet #services-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grp-picker.is-sheet .bk-cats { margin-left: 0; margin-right: 0; }
@media (min-width: 761px) {
  .grp-picker.is-sheet {
    inset: 4vh auto; left: 50%; transform: translateX(-50%); width: min(980px, 94vw);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  }
}
@media (max-width: 640px) {
  .grp-picker.is-sheet #services-grid { grid-template-columns: minmax(0, 1fr); }
  .grp-picker.is-sheet .bk-cats { margin-left: -1rem; margin-right: -1rem; padding: 0 1rem 2px; }
}

/* Step 2 — times show when the whole group is done */
.grp-slots-hint { margin: 0 0 0.6rem; }
.bk-slots.grp-slots { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.bk-slots.grp-slots .slot { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; min-height: 52px; gap: 0.1rem; }
.grp-slot__t { font-weight: 500; }
.grp-slot__end { font-size: 0.7rem; color: var(--ink-muted); font-weight: 400; }
.bk-slots .slot.selected .grp-slot__end { color: inherit; opacity: 0.9; }
@media (max-width: 640px) {
  .bk-slots.grp-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Step 2 — the plan per person */
.grp-sum {
  border-radius: var(--radius-md); padding: 0.75rem 0.9rem; margin: 0 0 0.9rem;
  background: var(--success-soft); color: var(--ink); border-left: 3px solid var(--success); line-height: 1.45;
}
.grp-sum.is-staggered { background: var(--info-soft); border-left-color: var(--info); }
.grp-sum__main { font-weight: 600; }
.grp-sum__sub { font-size: 0.88rem; margin-top: 0.2rem; color: var(--ink-2); }
.grp-sum__end { margin-top: 0.35rem; font-size: 0.92rem; }
.grp-plan { display: grid; gap: 1rem; }
.grp-pp { border-top: 1px solid var(--divider); padding-top: 0.85rem; }
.grp-pp:first-child { border-top: 0; padding-top: 0; }
.grp-pp__head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.grp-pp__who { flex: 1; min-width: 0; }
.grp-pp__name { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.grp-pp__when { font-size: 0.85rem; color: var(--brand-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .grp-pp__when { color: var(--brand); }
.grp-pp__tag {
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  background: var(--success-soft); color: var(--success); white-space: nowrap;
}
.grp-pp__tag.is-later { background: var(--info-soft); color: var(--info); }
.grp-pp__why { margin: -0.2rem 0 0.6rem; line-height: 1.4; }

/* Review / confirmation — per person */
.grp-review { margin-top: 0.75rem; display: grid; gap: 0.9rem; }
.grp-review__head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.grp-review__head .grp-person__n { width: 24px; height: 24px; font-size: 0.72rem; }
.grp-review__sub { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.grp-review .bk-plan { margin-top: 0.4rem; }
.grp-review__note { margin: 0.75rem 0 0; }
.grp-basket div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-basket__list.grp-basket { display: block; -webkit-line-clamp: unset; }

/* ---------- Booking received (booking-success.php) & payment (pay.php) ---------- */
.pub-done { max-width: 600px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.pub-done__hero { text-align: center; margin: 0.5rem 0 1.25rem; }
.pub-done__tick {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center;
}
.pub-done__tick svg { width: 32px; height: 32px; }
.pub-done__title { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 300; margin-bottom: 0.25rem; }
.pub-done__title em { color: var(--brand); font-style: italic; }
.pub-done__card { margin-bottom: 1rem; }
.pub-done__ref {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.9rem; border-radius: var(--radius-md); background: var(--brand-tint); border: 1px dashed var(--brand);
}
.pub-done__refno { font-size: 1.35rem; letter-spacing: 0.06em; color: var(--brand-dark); font-weight: 500; }
[data-theme="dark"] .pub-done__refno { color: var(--brand); }
.pub-done__when { margin: 1rem 0 0.25rem; }
.pub-done__date { font-family: var(--font-display); font-size: 1.3rem; }
.pub-done__person { border-top: 1px solid var(--divider); margin-top: 0.75rem; padding-top: 0.6rem; }
.pub-done__phead { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin-bottom: 0.2rem; }
.pub-done__phead .grp-person__n { width: 24px; height: 24px; font-size: 0.72rem; }
.pub-done__items { list-style: none; margin: 0; padding: 0; }
.pub-done__items li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0; }
.pub-done__t { font-weight: 600; font-size: 0.85rem; color: var(--brand-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-theme="dark"] .pub-done__t { color: var(--brand); }
.pub-done__what { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pub-done__svc { font-weight: 500; }
.pub-done__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pub-done .bk-totals { border-top: 1px solid var(--divider); margin-top: 0.5rem; padding-top: 0.5rem; }
.pub-done__h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; }
.pub-next { list-style: none; counter-reset: nx; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.pub-next li { counter-increment: nx; position: relative; padding-left: 2.4rem; line-height: 1.4; min-height: 28px; }
.pub-next li::before {
  content: counter(nx); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.pub-next strong { display: block; font-weight: 600; }
.pub-next span { display: block; font-size: 0.88rem; color: var(--ink-3); }
.pub-next span.mono { display: inline; }
.pub-done__acts { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.pub-done__acts .btn { width: 100%; min-height: 48px; }
.pub-done__acts .btn-lg { font-weight: 600; }

/* pay.php */
.pub-pay { max-width: 600px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.pub-pay .card__head { flex-wrap: wrap; gap: 0.5rem; }
.pub-pay__sum { background: var(--surface-2); padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; }
.pub-pay__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; font-size: 0.92rem; }
.pub-pay__grid > div { overflow-wrap: anywhere; }
.pub-pay__people div + div { margin-top: 0.2rem; }
.pub-pay__opt { display: flex !important; align-items: flex-start; gap: 0.65rem; padding: 0.85rem 1rem; min-height: 56px;
  border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.pub-pay__opt input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand-dark); }
.pub-pay__opt:has(input:checked) { border-color: var(--brand-dark); background: var(--brand-tint); }
.pub-pay .chips .chip { min-height: 44px; display: inline-flex; align-items: center; }
.pub-pay__next { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- Sign in / register / password pages ---------- */
.pub-auth .input { min-height: 50px; }
.pub-auth .field__label { font-weight: 500; color: var(--ink-2); }
.pub-auth .btn-lg { min-height: 52px; font-weight: 600; }
.pub-pw { position: relative; }
.pub-pw .input { padding-right: 4.75rem; }
.pub-pw__btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  min-height: 42px; min-width: 64px; padding: 0 0.75rem; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--brand-dark); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
[data-theme="dark"] .pub-pw__btn { color: var(--brand); }
.pub-pw__btn:hover { background: var(--surface-2); }
.pub-check { min-height: 44px; display: inline-flex; align-items: center; gap: 0.5rem; }
.pub-check input { width: 20px; height: 20px; }
.pub-forgot { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; font-weight: 500; }
.pub-auth .flex-between { flex-wrap: wrap; gap: 0.25rem 1rem; }
.pub-guest {
  margin-top: 1rem; padding: 1rem; border-radius: var(--radius-md);
  background: var(--brand-tint); border: 1px dashed var(--brand); text-align: center; line-height: 1.45;
}
.pub-guest strong { display: block; font-weight: 600; }
.pub-guest span { display: block; font-size: 0.88rem; color: var(--ink-3); margin: 0.2rem 0 0.75rem; }
.pub-guest .btn { min-height: 48px; font-weight: 600; }
@media (max-width: 640px) {
  .pub-auth > div { min-height: 0 !important; align-items: flex-start !important; padding: 1.25rem 1rem 2rem !important; }
  .pub-auth .card__body { padding: 1.25rem 1.1rem; }
}
@media (min-width: 900px) {
  .grp-people { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
html:has(.pub-header) { scroll-padding-top: 76px; }
