/* ===================== RESERVA ===================== */
.booking { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(72px, 10vw, 120px); }
.book-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.book-head .display { font-size: clamp(2.4rem, 4.6vw, 4rem); }

.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.progress li { display: flex; flex-direction: column; gap: 8px; width: 120px; font-size: 13px; color: var(--ink-3); }
.progress li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background-color 300ms ease; }
.progress li.is-done::before, .progress li.is-current::before { background: var(--accent); }
.progress li.is-current { color: var(--ink); font-weight: 600; }
.progress li.is-done { color: var(--ink-2); }

.book-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.book-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 3vw, 40px); min-height: 520px; display: flex; flex-direction: column; }
.pane { flex: 1; }
.pane-in { animation: paneIn 320ms var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 14px)); } }
.pane-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; margin: 0 0 24px; }

.opt-list { display: grid; gap: 8px; margin-top: 20px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 16px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out); }
.opt:active { transform: scale(0.99); }
.opt b { display: block; font-weight: 600; }
.opt small { color: var(--ink-3); font-size: 13px; }
.opt-price { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
.opt-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color 160ms ease; }
.opt-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0.4); opacity: 0; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.opt[aria-checked="true"] { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 45%, var(--surface)); }
.opt[aria-checked="true"] .opt-radio { border-color: var(--accent); }
.opt[aria-checked="true"] .opt-radio::after { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--line-strong); } }

.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pro { display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out); }
.pro:active { transform: scale(0.98); }
.pro b { display: block; font-weight: 600; }
.pro small { display: block; color: var(--ink-2); font-size: 13px; }
.pro em { display: block; font-style: normal; color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 4px; }
.pro-img, .pro-any { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface-2); display: grid; place-items: center; font-size: 24px; color: var(--ink-2); }
.pro-img img { width: 100%; height: 100%; object-fit: cover; }
.pro[aria-checked="true"] { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 45%, var(--surface)); }
@media (hover: hover) and (pointer: fine) { .pro:hover { border-color: var(--line-strong); } }

.when { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; gap: 32px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head b { font-weight: 600; }
.cal-head .icon-btn { width: 38px; height: 38px; }
.cal-head .icon-btn[disabled] { opacity: 0.3; pointer-events: none; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: 12px; color: var(--ink-3); font-weight: 600; padding-bottom: 6px; }
.day { aspect-ratio: 1; border-radius: 50%; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.day:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; text-decoration: line-through; text-decoration-color: var(--line-strong); }
.day:not(:disabled) { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.day:not(:disabled):active { transform: scale(0.92); }
.day.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.day.is-few:not([aria-pressed="true"]) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .day:not(:disabled):not([aria-pressed="true"]):hover { background: color-mix(in oklab, var(--accent-soft) 60%, var(--accent) 15%); } }
.cal-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.lg { width: 12px; height: 12px; border-radius: 50%; }
.lg-few { box-shadow: inset 0 0 0 1.5px var(--accent); }

.slots-date { font-weight: 600; margin-bottom: 14px; min-height: 26px; }
.slot-group + .slot-group { margin-top: 22px; }
.slot-group h3 { font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 0 0 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; opacity: 0; animation: slotIn 260ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 18ms); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
@keyframes slotIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.slot:active { transform: scale(0.95); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .slot:not([aria-pressed="true"]):hover { border-color: var(--ink); } }
.slots-empty { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 36px 20px; text-align: center; color: var(--ink-2); }
.slots-empty i { font-size: 32px; color: var(--ink-3); }
.slots-empty p { margin-top: 8px; font-size: 14px; }

.pane-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }

.book-summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.book-summary h2 { font-size: 15px; font-weight: 600; margin: 0 0 16px; font-family: var(--font-body); letter-spacing: 0; }
.book-summary dl { margin: 0; display: grid; gap: 16px; }
.book-summary dt { font-size: 12px; color: var(--ink-3); }
.book-summary dd { margin: 2px 0 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.book-summary dd small { display: block; width: 100%; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.book-summary .is-empty dd { color: var(--ink-3); font-weight: 400; }
.sum-edit { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sum-total span { color: var(--ink-2); font-size: 14px; }
.sum-total b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 32px; letter-spacing: -0.02em; }
.sum-note { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.sum-note i { font-size: 18px; color: var(--ok); flex-shrink: 0; }

.done { text-align: left; }
.done-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 30px; margin-bottom: 22px; animation: pop 500ms var(--ease-out); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.done .lead { margin-bottom: 28px; max-width: 54ch; }
.ticket { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 24px; border-radius: 18px; background: var(--bg); border: 1px dashed var(--line-strong); }
.ticket small { display: block; font-size: 12px; color: var(--ink-3); }
.ticket b { font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-summary { position: static; order: -1; padding: 18px 20px; }
  .book-summary dl { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .sum-note { display: none; }
  .progress li { width: auto; flex: 1; }
  .progress { width: 100%; }
  .when { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pro-grid, .ticket { grid-template-columns: 1fr; }
  .book-summary dl { grid-template-columns: 1fr; }
  .progress span { font-size: 11px; }
  .pane-nav { position: sticky; bottom: 0; background: var(--surface); margin-inline: -20px; padding: 16px 20px; margin-bottom: -20px; border-radius: 0 0 var(--r-card) var(--r-card); }
  .pane-nav .btn { flex: 1; }
}
