/* Hero demo loop (demo.js). Every value here is the loop's seam frame: what shows at 0 s, under reduced
   motion and with JS off. Demo-only parts stay display:none until demo.js adds html.demo-on.
   Only transform and opacity ever animate, and only from demo.js. */
.demo-only { display: none; }
html.demo-on .demo-only { display: block; }
html.demo-on .dm.demo-only { display: flex; }
.shot-hero .demo-only { pointer-events: none; }
.shot-hero .m-app { position: relative; }

/* Guests table overlay: the "None yet" twin and the landed-row tint. demo.js places them. */
.demo-layer { position: absolute; inset: 0; }
.demo-twin { position: absolute; display: flex; align-items: center; color: var(--m-ink2); white-space: nowrap; opacity: 0; }
.demo-tint { position: absolute; background: rgba(14,120,196,0.10); opacity: 0; }

.demo-scrim { position: absolute; inset: 0; z-index: 2; background: rgba(11,46,68,0.32); opacity: 0; }
.demo-cursor { position: absolute; left: 0; top: 0; z-index: 4; margin: -1.5px 0 0 -1.5px; transform-origin: 1.5px 1.5px; opacity: 0; }
.demo-cursor path { fill: #0B2E44; stroke: #FFFFFF; stroke-width: 1.5; stroke-linejoin: round; }

/* The pause control: a real button, outside the inert mock. */
.demo-pause {
  position: absolute; top: 12px; right: 12px; z-index: 5; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer;
}
.demo-pause:hover { background: #F3F7F9; }

/* The New booking dialog (Sheet.tsx, desktop): head, a body that scrolls by translateY, a foot that stays. */
.dm {
  position: absolute; z-index: 3; top: 12px; bottom: 12px; left: 50%; width: 560px; margin-left: -280px;
  flex-direction: column; overflow: hidden; border-radius: 16px; background: #FFFFFF;
  box-shadow: 0 8px 16px -4px rgba(11,46,68,0.08), 0 32px 64px -16px rgba(11,46,68,0.26), 0 0 0 1px var(--m-line-strong);
  opacity: 0;
}
.dm svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dm-head { display: flex; align-items: flex-start; gap: 12px; flex: none; padding: 20px 16px 12px 20px; }
.dm-head-t { flex: 1; min-width: 0; }
.dm-head-t > b { display: block; font-size: 16px; line-height: 22px; }
.dm-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--m-ink2); }
.dm-x { flex: none; margin: 3px 4px 0 0; color: var(--m-ink2); }
.dm-stack { display: grid; }
.dm-stack > * { grid-area: 1 / 1; }
.dm-stack > * + * { opacity: 0; }

.dm-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dm-page { position: absolute; top: 0; left: 0; right: 0; padding: 0 20px 20px; }
[data-demo="body-b"] > * { opacity: 0; }
.dm-done { bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; opacity: 0; }
.dm-done b { font-size: 18px; line-height: 24px; }
.dm-done span { color: var(--m-ink2); line-height: 20px; }

/* Body parts, from the app's own labels and sizes. */
.dm-ghost { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0 0 4px -8px; padding: 0 8px; border-radius: 10px; font-weight: 600; }
.dm-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; font-size: 13px; line-height: 18px; }
.dm-lt { display: flex; align-items: center; gap: 8px; }
.dm-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(14,120,196,0.10); color: #0C5A8E; font-size: 12px; font-weight: 600; }
.dm-tools { display: flex; gap: 8px; }
.dm-out { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 10px; border: 1px solid var(--m-line-strong); border-radius: 8px; background: #FFFFFF; font-weight: 500; }
.dm-sq { width: 32px; padding: 0; font-size: 16px; }
.dm-sq-l { width: 36px; height: 36px; }
.dm-range { margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--m-ink2); }
.dm-strip { display: flex; gap: 6px; }
.dm-day { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 64px; border: 1px solid var(--tbd); border-radius: 10px; background: var(--tbg); }
.shot .dm-day small { font-weight: 500; line-height: 16px; }
.dm-day b { font-size: 16px; line-height: 20px; }
.dm-day i { font-size: 10px; font-style: normal; font-weight: 500; line-height: 12px; color: var(--ttx); }
.dm-day.sel { border: 2px solid var(--m-brand); }
.shot .dm-day.sel small, .dm-day.sel b { color: #0C5A8E; }
.dm-day.off { opacity: 0.7; }
.dm-day.off b { text-decoration: line-through; }
.dm-full { display: flex; }
.dm-full > span { flex: 1; text-align: center; }
.dm-dis { opacity: 0.5; }
.dm-why { display: flex; margin-top: 4px; }
.dm-why span { flex: 1; font-size: 11px; line-height: 14px; text-align: center; color: var(--m-ink2); }
.dm-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--m-sunken); font-size: 13px; line-height: 18px; }
.shot .dm-cap { margin-bottom: 4px; line-height: 16px; }
.dm-msg { padding: 10px 12px; border-radius: 12px; background: var(--m-sunken); line-height: 20px; }
.dm-time { display: flex; align-items: center; gap: 8px; }
.dm-tbox { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 132px; height: 44px; padding: 0 14px; border: 1px solid var(--m-line-strong); border-radius: 10px; font-size: 16px; font-weight: 600; }
.dm-list { margin-top: 8px; overflow: hidden; border: 1px solid var(--m-line-strong); border-radius: 12px; }
.dm-gr { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; }
.dm-gr + .dm-gr { border-top: 1px solid var(--m-line); }
.dm-gr > span:nth-child(2) { flex: 1; min-width: 0; }
.dm-gr.on { background: rgba(14,120,196,0.10); }
.dm-gr svg { flex: none; color: var(--m-brand); stroke-width: 2; }
.dm-pax { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.dm-pax > .dm-lt { gap: 12px; font-size: 13px; }
.dm-step { display: flex; align-items: center; gap: 8px; }
.dm-paxn { display: grid; place-items: center; width: 56px; height: 44px; border-radius: 10px; background: rgba(14,120,196,0.10); color: #0C5A8E; font-size: 18px; }
.dm-pick { position: relative; }
.m-seg .dm-on { position: absolute; inset: 0; opacity: 0; }
.dm-price { color: var(--m-ink); }
.dm-pre { margin-right: 6px; color: var(--m-ink2); }
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip { position: relative; padding: 7px 14px; border-radius: 8px; background: var(--m-sunken); font-weight: 500; color: var(--m-ink2); }
.dm-chip .dm-chip { position: absolute; inset: 0; }
.dm-chip.on { background: #FFFFFF; color: var(--m-ink); box-shadow: var(--m-shadow-xs), 0 0 0 1px var(--m-line-strong); opacity: 0; }
.dm-note { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--m-ink2); }

.dm-foot { display: grid; flex: none; padding: 16px 20px; border-top: 1px solid var(--m-line); background: rgba(230,238,242,0.6); }
.dm-foot > * { grid-area: 1 / 1; }
.dm-hint { margin-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--m-ink2); }
.dm-row { display: flex; align-items: center; gap: 16px; }
.dm-total b { display: block; font-size: 16px; line-height: 22px; }
.dm-save { min-width: 200px; height: 48px; margin-left: auto; opacity: 0.45; }
.dm-foot-c { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; opacity: 0; }
.dm-foot-c .m-btn { height: 44px; }
.dm-line { border: 1px solid var(--m-line-strong); background: #FFFFFF; color: var(--m-ink); }

/* Phones: the same desktop dialog, pinned inside the crop. No close mark: the Pause button sits there. */
@media (max-width: 639px) {
  .dm { left: 12px; right: 12px; width: auto; margin-left: 0; }
  .dm-x { display: none; }
  .dm-head { padding: 12px 16px; }
  .dm-page { padding: 0 16px 16px; }
  .dm-foot { padding: 12px 16px 16px; }
  .dm-save { flex: 1; min-width: 0; }
}
