/* ═══ VYTHO — /booking · page styles, loads after site.css ═══════
   The widget markup is either the static fallback in the HTML (API
   down) or built at runtime by js/booking.js. Both use the same bw-*
   classes, so everything here styles both states. Monochrome only.
   ═══════════════════════════════════════════════════════════════ */

.booking-hero { padding-bottom: clamp(28px, 5vh, 56px); }
.booking-body { position: relative; padding: 0 0 clamp(80px, 12vh, 150px); }
.booking-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px clamp(28px, 4vw, 64px); align-items: start;
}

/* ─── side list ────────────────────────────────────────────────── */
.booking-side { position: sticky; top: calc(var(--head-h) + 24px); }
.booking-points { display: grid; border-top: 1px solid var(--line); }
.booking-points li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.5; color: var(--fog);
}
.booking-points strong { display: block; color: var(--white); font-weight: 650; }
.booking-points a { color: var(--white); border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s var(--ease); }
.booking-points a:hover { border-color: var(--white); }

/* ─── widget: two dark cards ───────────────────────────────────── */
#booking-widget {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; align-items: start;
}
.bw-pane {
  min-width: 0; background: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 32px);
}
#booking-widget[aria-disabled="true"] .bw-pane { opacity: 0.55; pointer-events: none; user-select: none; }
.bw-label { display: block; font-size: 14px; font-weight: 600; color: var(--grey); line-height: 1.4; }

/* month switcher */
.bw-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 14px; }
.bw-month strong { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--white); }
.bw-month button {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  color: var(--fog); font-size: 20px; line-height: 1;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.bw-month button:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }

/* calendar grid */
.bw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.bw-grid .dow { font-size: 12px; font-weight: 600; color: var(--grey-dim); text-align: center; padding: 2px 0 8px; }
.bw-day {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--white);
}
.bw-day.is-muted { color: rgba(255, 255, 255, 0.22); }
.bw-day.is-closed { color: var(--grey-dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }
.bw-day.is-open, .bw-day.is-free { color: var(--white); border-color: var(--line); }
.bw-day.is-free { background: var(--ink-3); }
.bw-day.is-open { cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.bw-day.is-open:hover { background: var(--ink-3); border-color: var(--line-strong); }
.bw-day.is-sel, .bw-day.is-open.is-sel:hover { background: var(--white); color: var(--ink-0); border-color: var(--white); font-weight: 700; }
.bw-day:focus-visible { outline-offset: 2px; border-radius: 8px; }

/* times */
.bw-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 16px; }
.bw-slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: transparent;
  font-family: var(--font-mono); font-size: 14px; color: var(--white);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.bw-slot > span[aria-hidden] { display: none; }
button.bw-slot { cursor: pointer; }
button.bw-slot:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }
.bw-slot.is-pick, button.bw-slot.is-pick:hover { background: var(--white); color: var(--ink-0); border-color: var(--white); font-weight: 600; }
.bw-hint { color: var(--grey); font-size: 14.5px; line-height: 1.5; padding: 12px 0 0; }

/* form */
.bw-cta { margin-top: 20px; }
.bw-cta .btn { width: 100%; }
#booking-widget .btn-arrow { display: none; }
.bw-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bw-field { display: grid; gap: 6px; }
.bw-field > span { font-size: 13px; font-weight: 600; color: var(--grey); }
.bw-field input, .bw-field select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--ink-0); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  color: var(--white); font: inherit; font-size: 15px; line-height: 1.3;
  transition: border-color 0.25s var(--ease);
}
.bw-field input::placeholder { color: var(--grey-dim); }
.bw-field input:hover, .bw-field select:hover { border-color: rgba(255, 255, 255, 0.35); }
.bw-field input:focus-visible, .bw-field select:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-color: var(--white); }
.bw-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B9B9B9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.bw-field select option { background: var(--ink-1); color: var(--white); }
.bw-form .bw-cta { margin-top: 6px; }
.bw-msg { font-size: 14px; color: var(--fog); margin: 0; line-height: 1.5; }
.bw-msg:empty { display: none; }

/* success */
.bw-success {
  grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 12px;
  padding: clamp(40px, 7vw, 76px) clamp(20px, 4vw, 48px);
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-card);
}
.bw-check { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--white); }
.bw-check::before { content: '('; color: var(--grey); }
.bw-check::after { content: ')'; color: var(--grey); }
.bw-success h3 {
  margin-top: 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 740;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--white); text-wrap: balance;
}
.bw-okline { font-size: 15px; color: var(--white); }
.bw-oksub { color: var(--fog); max-width: 40ch; text-wrap: pretty; }
.bw-success .btn { margin-top: 12px; }

/* fallback note (static markup only; removed once the API answers) */
.bw-soon {
  grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-btn);
  font-size: 14.5px; line-height: 1.5; color: var(--fog);
}
.bw-soon .mono { flex: none; color: var(--white); }
.bw-soon a { color: var(--white); border-bottom: 1px solid var(--line-strong); white-space: nowrap; transition: border-color 0.3s var(--ease); }
.bw-soon a:hover { border-color: var(--white); }

/* ─── responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-side { position: static; }
  .booking-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 720px) {
  #booking-widget { grid-template-columns: 1fr; }
  .booking-points { grid-template-columns: 1fr; }
}
