/* ==========================================================================
   Public booking pages. Every colour and typeface comes from the tenant's
   brand (set as CSS variables by theme.js); this file only decides how they
   are used.
   ========================================================================== */

:root {
  --brand: #1f3a5f;
  --accent: #c4863a;
  --bg: #f6f5f1;
  --brand-ink: #fff;
  --font-display: Georgia, serif;
  --font-text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 600;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --ink: #141d26;
  --ink-2: #3b4752;
  --muted: #69747e;
  --faint: #9aa3ab;
  --card: #ffffff;
  --line: color-mix(in srgb, var(--bg) 82%, #3a3326 18%);
  --line-soft: color-mix(in srgb, var(--bg) 55%, #ffffff 45%);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, #ffffff);
  --brand-soft-2: color-mix(in srgb, var(--brand) 14%, #ffffff);
  --brand-line: color-mix(in srgb, var(--brand) 32%, #ffffff);
  --danger: #b4372a;
  --danger-soft: #fbeeec;
  --ok: #2c7a45;
  --shadow: 0 1px 2px rgba(20, 29, 38, 0.04), 0 12px 32px -16px rgba(20, 29, 38, 0.16);
  --shadow-lg: 0 1px 2px rgba(20, 29, 38, 0.04), 0 30px 70px -36px rgba(20, 29, 38, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }

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

/* ---------- Page frame ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 22px;
}
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo img { height: var(--logo-h, 44px); width: auto; }
.brand-name { font: var(--display-weight) 20px/1.1 var(--font-display); color: var(--brand); letter-spacing: -0.01em; }
.topbar-contact { font-size: 13.5px; color: var(--muted); text-align: right; line-height: 1.4; }
.topbar-contact a { color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar-contact a:hover { color: var(--brand); }

.foot {
  padding: 22px 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
}
.foot a { color: inherit; }
.powered { opacity: 0.85; }

/* ---------- Card ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booker {
  display: grid;
  grid-template-columns: minmax(280px, 330px) 1fr minmax(220px, 250px);
  min-height: 560px;
  animation: rise 0.45s var(--ease) backwards;
}
.booker.step-details { grid-template-columns: minmax(280px, 330px) 1fr; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Left: who and what ---------- */

.info {
  padding: 30px 30px 26px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, #fff) 0%, #fff 100%);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: -6px 0 -4px -8px;
  padding: 6px 10px 6px 6px;
  border: 0;
  background: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--brand); background: var(--brand-soft); }
.back-link .ic { width: 16px; height: 16px; }

.who { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--brand-soft-2);
  color: var(--brand);
  font: var(--display-weight) 18px/1 var(--font-display);
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.avatar.sm { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -6px; }
.who-name { font-weight: 650; font-size: 15px; line-height: 1.25; }
.who-title { color: var(--muted); font-size: 13.5px; line-height: 1.3; margin-top: 2px; }

.event-title {
  text-wrap: balance;
  margin: 0;
  font: var(--display-weight) clamp(25px, 2.4vw, 30px) / 1.12 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.meta li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.meta .ic { color: var(--muted); margin-top: 1px; }
.meta small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }

.desc { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.62; white-space: pre-line; }

.picked {
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  border-radius: var(--r);
  padding: 14px 16px;
  display: grid;
  gap: 3px;
  animation: rise 0.35s var(--ease) backwards;
}
.picked-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); opacity: 0.85; }
.picked-date { font-weight: 650; font-size: 15px; }
.picked-time { color: var(--ink-2); font-size: 14.5px; }
.picked-zone { color: var(--muted); font-size: 12.5px; }

.info-foot { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.info-foot .ic { width: 15px; height: 15px; }

/* ---------- Middle: calendar ---------- */

.cal { padding: 26px 30px 24px; display: flex; flex-direction: column; min-width: 0; }
.panel-title { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.cal-month { margin: 0; font: var(--display-weight) 21px/1.2 var(--font-display); letter-spacing: -0.01em; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { text-align: center; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 2px 0 8px; }
.day {
  position: relative;
  aspect-ratio: 1;
  max-height: 52px;
  width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  cursor: default;
  transition: background 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.day.open { background: var(--brand-soft); color: var(--brand); font-weight: 650; cursor: pointer; }
.day.open:hover { background: var(--brand-soft-2); }
.day.open:active { transform: scale(0.96); }
.day.sel { background: var(--brand); color: var(--brand-ink); }
.day.sel:hover { background: var(--brand); }
.day.today::after {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.day.pad { visibility: hidden; }
.grid.loading .day.open { background: transparent; color: var(--faint); font-weight: 500; }
.grid.loading { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

.cal-empty {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--bg) 60%, #fff);
  border: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tz {
  margin-top: auto;
  padding-top: 20px;
  position: relative;
}
.tz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px 8px 10px;
  margin-left: -10px;
  border-radius: 999px;
  border: 0;
  background: none;
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
}
.tz-btn:hover, .tz-btn[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand); }
.tz-btn .ic { width: 16px; height: 16px; }
.tz-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-btn .tz-now { color: var(--muted); font-variant-numeric: tabular-nums; }
.tz-pop {
  position: absolute;
  bottom: calc(100% - 12px);
  left: -10px;
  width: min(360px, 86vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 20;
  overflow: hidden;
  animation: rise 0.2s var(--ease) backwards;
}
.tz-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.tz-search input { border: 0; outline: 0; width: 100%; font-size: 14px; color: var(--ink); background: none; }
.tz-list { max-height: 280px; overflow: auto; padding: 6px; margin: 0; list-style: none; }
.tz-list .grp { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.tz-opt { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-sm); font-size: 14px; text-align: left; }
.tz-opt:hover, .tz-opt.active { background: var(--brand-soft); }
.tz-opt[aria-selected="true"] { color: var(--brand); font-weight: 650; }
.tz-opt small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Right: times ---------- */

.times {
  border-left: 1px solid var(--line-soft);
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 640px;
}
.times-day { margin: 0 0 6px; font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.times-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.times-count { color: var(--muted); font-size: 13px; margin: 0; }
.fmt-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.fmt-toggle button { border: 0; background: none; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; color: var(--muted); }
.fmt-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.slots { overflow-y: auto; margin: 0 -8px; padding: 2px 8px 12px; scrollbar-width: thin; flex: 1; mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); }
.slot-group + .slot-group { margin-top: 14px; }
.slot-group h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.slot-row { display: flex; gap: 6px; margin-bottom: 8px; }
.slot {
  flex: 1 1 0;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--brand-line);
  background: #fff;
  color: var(--brand);
  font-weight: 650;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: flex-grow 0.28s var(--ease), background 0.15s, color 0.15s, border-color 0.15s;
  min-width: 0;
}
.slot:hover { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.slot-row.on .slot { background: color-mix(in srgb, var(--ink) 86%, var(--brand)); border-color: transparent; color: #fff; box-shadow: none; }
.slot-next {
  flex: 0 0 0;
  width: 0;
  padding: 0;
  overflow: hidden;
  height: 46px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 650;
  font-size: 15px;
  opacity: 0;
  transition: flex-grow 0.28s var(--ease), opacity 0.2s;
  white-space: nowrap;
}
.slot-row:not(.on) { gap: 0; }
.slot-row:not(.on) .slot-next { visibility: hidden; }
.slot-row.on .slot-next { flex: 1 1 0; width: auto; opacity: 1; }
.slot-next:hover { filter: brightness(1.08); }

.pick-bar { display: none; }

.times-empty { color: var(--muted); font-size: 14px; display: grid; gap: 12px; align-content: start; padding-top: 6px; }

/* ---------- Details form ---------- */

.details { padding: 30px 36px 32px; max-width: 620px; width: 100%; animation: rise 0.35s var(--ease) backwards; }
.details h2 { margin: 0 0 4px; font: var(--display-weight) 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.details .sub { margin: 0 0 24px; color: var(--muted); font-size: 14.5px; }
.form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field .opt { font-weight: 500; color: var(--faint); }
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 15.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: color-mix(in srgb, var(--line) 60%, var(--ink) 25%); }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.field.err .input { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent); }
.field-err { font-size: 13px; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.field-err .ic { width: 15px; height: 15px; }

/* Meeting format choice (in person / phone / video) */
.formats { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.formats legend { padding: 0; margin-bottom: 4px; }
.format { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.format:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--brand) 50%); }
.format:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.format input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid color-mix(in srgb, var(--line) 50%, var(--ink) 30%); border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
.format input:checked { border-color: var(--brand); }
.format input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.format-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--brand); }
.format-ic .ic { width: 17px; height: 17px; }
.format-t b { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.format-t small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.formats.err .format { border-color: var(--danger); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 12.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid color-mix(in srgb, var(--line) 50%, var(--ink) 30%); border-radius: 5px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--brand-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check strong { color: var(--ink-2); font-weight: 650; font-size: 13.5px; display: block; margin-bottom: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 650; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-soft); color: #7d2318; font-size: 14px; line-height: 1.45; }
.alert .ic { margin-top: 1px; }
.fine { font-size: 12.5px; color: var(--faint); margin: 2px 0 0; text-align: center; }

/* ---------- Confirmation / manage ---------- */

.done {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 44px 36px;
  text-align: center;
  animation: rise 0.45s var(--ease) backwards;
}
.seal { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-soft-2); color: var(--brand); display: grid; place-items: center; }
.seal svg { width: 30px; height: 30px; stroke-width: 2.2; }
.seal path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.5s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.seal.muted { background: color-mix(in srgb, var(--bg) 70%, #fff); color: var(--muted); }
.seal.muted path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.done h1 { text-wrap: balance; margin: 0 0 10px; font: var(--display-weight) clamp(26px, 3.2vw, 34px) / 1.15 var(--font-display); letter-spacing: -0.015em; }
.done .lede { margin: 0 auto 26px; max-width: 42ch; color: var(--ink-2); font-size: 15.5px; }

.summary { text-align: left; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 22px; }
.summary-row { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 15px 18px; align-items: start; }
.summary-row + .summary-row { border-top: 1px solid var(--line-soft); }
.summary-row .ic { color: var(--muted); margin-top: 2px; }
.summary-row b { display: block; font-weight: 650; font-size: 15px; }
.summary-row span { color: var(--ink-2); font-size: 14.5px; word-break: break-word; }
.summary-row small { display: block; color: var(--muted); font-size: 13px; }
.summary.canceled b, .summary.canceled span:first-of-type { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }

.add-cal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.add-cal-label { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.done-links { font-size: 14px; color: var(--muted); display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.done-links a { font-weight: 600; }

.confirm-cancel { text-align: left; border: 1px solid #efd3ce; background: #fffaf9; border-radius: var(--r); padding: 18px; margin-bottom: 20px; display: grid; gap: 14px; animation: rise 0.3s var(--ease) backwards; }
.confirm-cancel h3 { margin: 0; font-size: 15.5px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Directory pages (tenant + host) ---------- */

.dir { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; animation: rise 0.45s var(--ease) backwards; }
.dir .info { border-right: 1px solid var(--line-soft); }
.profile-photo { width: 76px; height: 76px; font-size: 26px; }
.dir-name { text-wrap: balance; margin: 0; font: var(--display-weight) 28px/1.12 var(--font-display); letter-spacing: -0.015em; }
.dir-title { margin: 4px 0 0; color: var(--muted); }
.dir-list { padding: 18px; display: grid; gap: 8px; align-content: start; }
.dir-list h2 { margin: 12px 12px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.ev {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px 18px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease);
  background: #fff;
}
.ev:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-1px); }
.ev-bar { align-self: stretch; border-radius: 4px; background: var(--ev, var(--brand)); }
.ev h3 { margin: 0 0 4px; font: var(--display-weight) 18.5px/1.25 var(--font-display); letter-spacing: -0.005em; }
.ev p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; }
.ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta .ic { width: 15px; height: 15px; color: var(--muted); }
.ev-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); transition: background 0.15s, color 0.15s; }
.ev:hover .ev-go { background: var(--brand); color: var(--brand-ink); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.person { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--r); text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.2s; }
.person:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }

/* ---------- States ---------- */

.skeleton { min-height: 560px; display: grid; grid-template-columns: 320px 1fr; }
.skeleton .info { gap: 14px; }
.sk { background: linear-gradient(90deg, #efede8 0%, #f7f6f2 50%, #efede8 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notfound { max-width: 520px; margin: 8vh auto; text-align: center; padding: 44px 36px; }
.notfound h1 { margin: 0 0 10px; font: var(--display-weight) 28px/1.2 var(--font-display); }
.notfound p { color: var(--muted); margin: 0 0 22px; }

/* ---------- Embedded (inside a client's website) ---------- */

body.embedded { background: transparent; }
body.embedded .page { padding: 0; min-height: 0; max-width: none; }
body.embedded .topbar, body.embedded .foot { display: none; }
body.embedded .card { box-shadow: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .booker { grid-template-columns: 300px 1fr; }
  .booker .times { grid-column: 2; border-left: 0; border-top: 1px solid var(--line-soft); max-height: none; }
  .booker .info { grid-row: span 2; }
}

@media (max-width: 720px) {
  .page { padding: 14px 12px 28px; }
  .topbar { padding: 4px 6px 14px; }
  .brand-logo img { height: calc(var(--logo-h, 44px) * 0.82); }
  .topbar-contact .lbl { display: none; }
  .booker, .booker.step-details, .dir, .skeleton { grid-template-columns: 1fr; min-height: 0; }
  .booker .info, .dir .info { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 22px 20px; gap: 16px; }
  .booker .times { grid-column: auto; padding: 20px; }
  .cal { padding: 20px 16px 18px; }
  .details { padding: 22px 20px 26px; }
  .row-2 { grid-template-columns: 1fr; }
  .info .desc { font-size: 14px; }
  .info-foot { display: none; }
  .done { padding: 32px 20px 26px; }
  .dir-list { padding: 12px; }
  .ev { padding: 16px 14px; gap: 14px; }
  .slots { mask-image: none; overflow: visible; margin: 0; padding: 0; }
  .slot-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot-row { margin: 0; }
  .slot { height: 48px; font-size: 14.5px; }
  .slot-row.on .slot-next { display: none; }
  .pick-bar:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -18px rgba(20, 29, 38, 0.3);
    animation: up 0.25s var(--ease) both;
  }
  .pick-bar-text { display: grid; line-height: 1.3; }
  .pick-bar-text b { font-size: 16px; }
  .pick-bar-text span { font-size: 13px; color: var(--muted); }
  .pick-bar .btn { height: 46px; padding: 0 26px; }
  .times { padding-bottom: 96px; }
}
@keyframes up { from { transform: translateY(100%); } }

/* iPhone Safari zooms into any form field under 16px when it's tapped, and
   stays zoomed — which is what makes the page scroll sideways. */
@media (max-width: 720px), (pointer: coarse) {
  .input, input, select, textarea, .tz-search input { font-size: 16px; }
}
