/* Branded calendar (site/booking-calendar.js) for the reservation popup. Colours come from the venue
   tokens. The native date input stays underneath, transparent, so checks can still fill() it. */
.rp-datepick.bc-field { position: relative; }
.rp-datepick.bc-field input#bookingDate {
  position: absolute; right: 0; top: 0; width: 1px; min-height: 0; height: 1px;
  opacity: 0; pointer-events: none; border: 0; padding: 0;
}
.bc-trigger {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 8px 16px; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 600 .95rem/1.2 var(--font-body), system-ui, sans-serif; text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bc-trigger.is-empty { color: var(--muted); }
.bc-trigger:hover, .bc-trigger[aria-expanded="true"] { border-color: var(--brand); }
.bc-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.bc-trigger__text::first-letter { text-transform: uppercase; }
.bc-trigger__icon { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.bc-pop {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 8px);
  width: min(340px, 100%); box-sizing: border-box; padding: 16px 16px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 18px;
  box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--ink) 35%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
  animation: bc-in .18s cubic-bezier(.22, 1, .36, 1);
}
.bc-pop[hidden] { display: none; }
@keyframes bc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.bc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bc-month { margin: 0; font: 400 1.3rem/1.1 var(--font-heading), serif; color: var(--ink); }
.bc-month::first-letter { text-transform: uppercase; }
.bc-nav {
  width: 36px; height: 36px; min-width: 0; min-height: 0; box-sizing: border-box; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); background: var(--surface);
  color: var(--ink); font-size: 1.35rem; line-height: 1; padding: 0 0 2px;
}
.bc-nav:hover:not([disabled]) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.bc-nav[disabled] { opacity: .3; cursor: default; }

.bc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.bc-grid--wk { margin-bottom: 4px; }
.bc-grid--wk span { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.bc-day {
  width: 100%; min-width: 0; height: 40px; min-height: 0; padding: 0; margin: 0; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 600 .92rem/1 var(--font-body), system-ui, sans-serif; position: relative;
  transition: background .15s ease, color .15s ease;
}
.bc-day:hover:not([disabled]) { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.bc-day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand); }
.bc-day.is-selected, .bc-day.is-selected:hover { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.bc-day[disabled] { color: color-mix(in srgb, var(--ink) 28%, transparent); cursor: default; }
.bc-day.is-closed[disabled] { text-decoration: line-through; text-decoration-thickness: 1px; }
.bc-day:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bc-day.is-out { pointer-events: none; }

.bc-foot { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: .76rem; color: var(--muted); }
.bc-foot::first-letter { text-transform: uppercase; }
.bc-foot i { width: 14px; height: 1px; background: currentColor; display: inline-block; }

@media (max-width: 640px) { .bc-pop { left: 0; right: 0; width: auto; } }
@media (prefers-reduced-motion: reduce) { .bc-pop { animation: none; } .bc-day, .bc-trigger { transition: none; } }
