/* Reservation page + reservation desk (/admin1/).
   Uses only the design's color variables, so it fits both designs. */

.booking { padding-bottom: 88px; }
.booking__notice { padding: 16px 20px; margin-bottom: 24px; border: 1px solid var(--line); background: var(--surface-2); border-radius: calc(var(--radius) * .6); font-weight: 600; }
.booking__steps { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .booking__steps { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.booking__steps.is-offline { opacity: .45; pointer-events: none; }
.booking__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); scroll-margin-top: calc(var(--header-h) + 16px); }
.booking__panel--wide { grid-column: 1 / -1; }
.booking__panel[hidden] { display: none; }
.booking__step { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; margin-bottom: 18px; }
.booking__step span {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-family: var(--font-body); font-size: .95rem; font-weight: 700;
}
.booking__hint { color: var(--ink-soft); margin-bottom: 14px; }
.booking__summary { font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.booking__error { color: var(--spicy); font-weight: 600; margin: 4px 0 12px; }
.booking__error a { color: inherit; }

/* Calendar */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { margin: 0; font-family: var(--font-display); font-size: 1.35rem; text-transform: capitalize; }
.cal__nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.cal__nav:hover:not(:disabled) { border-color: var(--ink); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__weekdays, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__weekdays span { text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-soft); padding: 4px 0; text-transform: capitalize; }
.cal__day {
  aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; position: relative;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cal__day::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; }
.cal__day.is-open::after { background: var(--veg); }
.cal__day.is-open:hover, .cal__day.is-loading:hover { border-color: var(--ink); }
.cal__day.is-loading { color: var(--ink); }
.cal__day.is-full { color: var(--ink-soft); text-decoration: line-through; background: var(--surface-2); cursor: not-allowed; }
.cal__day.is-closed, .cal__day.is-past { color: var(--ink-soft); background: transparent; border-color: transparent; opacity: .5; cursor: default; font-weight: 400; }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--ink-soft); }
.cal__day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cal__day[aria-pressed="true"]::after { background: var(--bg); }
.cal__blank { aspect-ratio: 1; }
.cal__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }
.cal__legend li { display: flex; align-items: center; gap: 7px; }
.cal__dot { width: 9px; height: 9px; border-radius: 50%; }
.cal__dot--open { background: var(--veg); }
.cal__dot--full { background: var(--ink-soft); }
.cal__dot--closed { border: 1px solid var(--ink-soft); }

/* Times */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { color: var(--ink-soft); background: var(--surface-2); text-decoration: line-through; opacity: .6; cursor: not-allowed; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Form */
.booking__form { display: grid; gap: 16px 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .booking__form { grid-template-columns: 1fr 1fr; } .booking__form .field--wide, .booking__form .booking__error, .booking__form > .btn { grid-column: 1 / -1; } }
.booking__form > .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label, .block-times legend { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) * .6);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--spicy); outline: 2px solid var(--spicy); }
.field__hint { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Done */
.booking__success { text-align: center; max-width: 36rem; margin: 0 auto; padding: 40px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.booking__success:focus { outline: none; }
.booking__success-icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--veg); }
.booking__success h2 { font-size: 1.8rem; }
.booking__success p { color: var(--ink-soft); font-size: 1.08rem; }

/* Call-to-action blocks on home and visit pages */
.reserve-cta { text-align: center; padding-block: clamp(48px, 7vw, 80px); }
.reserve-cta .section-title { margin-bottom: .3em; }
.reserve-cta p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto 1.4em; }

/* ---------- Reservation desk ---------- */
.admin { padding-bottom: 88px; max-width: 980px; }
.admin__head { padding-bottom: 8px; text-align: left; }
.admin-login { max-width: 420px; display: grid; gap: 16px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.admin-bar__status { margin: 0 auto 0 0; color: var(--ink-soft); font-weight: 600; }
.admin-section { margin-top: 36px; }
.admin-section__title { font-size: 1.5rem; margin-bottom: 14px; cursor: default; }
details.admin-section > summary { cursor: pointer; }
.admin-count { color: var(--accent); }
.res-list { display: grid; gap: 12px; }
.res { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: calc(var(--radius) * .6); padding: 16px 18px; }
.res p { margin: 0 0 6px; }
.res--pending { border-left-color: var(--accent); }
.res--confirmed { border-left-color: var(--veg); }
.res--declined, .res--cancelled { opacity: .7; }
.res--block { border-left-color: var(--ink-soft); }
.res__when { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res__badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.res__notes { color: var(--ink-soft); font-style: italic; }
.res__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-block { display: grid; gap: 16px; max-width: 640px; margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; }
.block-times { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.block-times[hidden] { display: none; }
.slots--small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.slot--check { font-weight: 600; }
.slot--check input { width: 18px; height: 18px; }

/* "Book at least 2.5 hours ahead" block */
.booking__rule {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 24px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: calc(var(--radius) * .6);
}
.booking__rule > .icon { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.booking__rule p { margin: 0; color: var(--ink-soft); }
.booking__rule .booking__rule-title { color: var(--ink); font-weight: 700; margin-bottom: 4px; }

/* Narrow phones: smaller gaps and padding so the whole calendar fits the screen */
@media (max-width: 420px) {
  .booking__panel { padding: 16px 12px; }
  .cal__weekdays, .cal__days { gap: 4px; }
  .cal__day { min-height: 0; }
}

/* "Send us a message" form on the Visit page */
.contact { padding-block: clamp(40px, 6vw, 72px) 88px; }
.contact .section-title { margin-bottom: .3em; }
.contact__lead { color: var(--ink-soft); margin-bottom: 22px; }
.contact .booking__form > .field__hint { grid-column: 1 / -1; }
.contact [hidden] { display: none; }

/* Reservation desk: messages and visitor statistics */
.res__message { white-space: pre-wrap; background: var(--surface-2); padding: 10px 14px; border-radius: calc(var(--radius) * .5); }
.admin-sub { margin-top: 14px; }
.admin-sub > summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }
.stats-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.stats-range [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.stats-totals { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-bottom: 18px; }
.stats-totals p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.stats-totals__num { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.stats-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; padding: 10px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); touch-action: pan-y; }
.stats-chart__col { flex: 1; min-width: 2px; height: 100%; display: flex; align-items: flex-end; border-radius: 2px; }
.stats-chart__bar { width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; transition: opacity .15s, background-color .15s; }
/* Pointing at a bar: it darkens, the others fade, and a label above it shows the date and visits */
.stats-chart.is-pointing .stats-chart__bar { opacity: .35; }
.stats-chart.is-pointing .is-active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.stats-chart.is-pointing .is-active .stats-chart__bar { opacity: 1; background: var(--ink); }
.stats-chart__tip { position: absolute; z-index: 2; transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: .8rem; line-height: 1.3; text-align: center; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.stats-chart.is-pointing .stats-chart__tip { opacity: 1; }
.stats-chart__tip strong { display: block; font-size: .95rem; }
.stats-lists { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stats-lists { grid-template-columns: 1fr 1fr; } }
.stats-list { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); padding: 16px 18px; }
.stats-list h3 { font-size: 1.15rem; margin-bottom: 10px; }
.stats-list ol { list-style: none; display: grid; gap: 6px; }
.stats-list li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 5px 8px; }
.stats-list__bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 4px; }
.stats-list__name, .stats-list__num { position: relative; }
.stats-list__num { font-weight: 700; font-variant-numeric: tabular-nums; }
/* The hint under the name / phone field lights up when a character was not accepted */
.field__hint { transition: color .2s ease; }
.field__hint.is-warned { color: var(--spicy); font-weight: 600; }
