/* Shared compact date and guest search. Homepage and /booking both use it. */
.ws-book {
  position: relative;
  width: min(100%, 760px);
  margin-top: 18px;
  color: var(--ws-ink, #202824);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ws-book-bar { display: flex; align-items: stretch; min-height: 64px; border-radius: 999px; background: #fff; box-shadow: 0 10px 28px rgba(16, 28, 22, .16); }
.ws-book-summary { display: none; }
.ws-book-chips { display: flex; flex: 1; min-width: 0; }
.ws-book-chip, .ws-book-summary { flex: 1; min-width: 0; min-height: 64px; border: 0; background: transparent; text-align: left; padding: 8px 18px; cursor: pointer; font: inherit; color: inherit; }
.ws-book-chip + .ws-book-chip { box-shadow: inset 1px 0 0 var(--ws-line, #e4e5dd); }
.ws-book-chip span, .ws-book-summary span { display: block; color: var(--ws-muted, #69736d); font-size: .68rem; font-weight: 750; }
.ws-book-chip strong, .ws-book-summary strong { display: block; margin-top: 2px; font-size: .92rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-book-submit, .ws-book-apply, .ws-book-panel-head button, .ws-stepper button, .ws-cal button { font: inherit; }
.ws-book-submit { flex: 0 0 auto; align-self: center; min-height: 48px; margin: 8px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ws-green, #304d3c); color: #fff; font-weight: 750; cursor: pointer; }
.ws-book-submit:hover, .ws-book-apply:hover { background: #243c2e; }
.ws-book-chip:focus-visible, .ws-book-summary:focus-visible, .ws-book-submit:focus-visible, .ws-book-apply:focus-visible, .ws-stepper button:focus-visible, .ws-cal button:focus-visible { outline: 3px solid #f3d27a; outline-offset: 2px; }
.ws-book-backdrop { position: fixed; inset: 0; z-index: 1300; background: rgba(16, 24, 20, .42); }
.ws-book-backdrop[hidden], .ws-book-panel[hidden] { display: none !important; }
.ws-book-panel { position: absolute; z-index: 1310; top: calc(100% + 10px); left: 0; width: min(100%, 360px); max-height: min(70vh, 520px); overflow: auto; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(16, 28, 22, .2); }
.ws-book-panel[data-anchor="end"] { left: 24%; }
.ws-book-panel[data-anchor="guests"] { left: auto; right: 86px; width: min(100%, 280px); }
.ws-book-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ws-book-panel-head button, .ws-book-apply { min-height: 44px; border: 0; border-radius: 999px; background: var(--ws-green, #304d3c); color: #fff; font-weight: 750; cursor: pointer; }
.ws-book-panel-head button { padding: 0 14px; background: #eef1ec; color: var(--ws-ink, #202824); }
.ws-book-apply { width: 100%; margin-top: 12px; }
.ws-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ws-cal-head strong { font-size: .95rem; }
.ws-cal-head button, .ws-cal-day { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.ws-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ws-cal-dow { color: var(--ws-muted, #69736d); font-size: .72rem; text-align: center; line-height: 32px; }
.ws-cal-day { font-weight: 700; }
.ws-cal-day[aria-pressed="true"], .ws-cal-day.is-range { background: #e7efe8; }
.ws-cal-day[aria-pressed="true"] { background: var(--ws-green, #304d3c); color: #fff; }
.ws-cal-day:disabled { color: #c5cbc6; cursor: default; }
.ws-guest-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.ws-stepper { display: flex; align-items: center; min-height: 44px; border: 1px solid var(--ws-line, #e4e5dd); border-radius: 999px; background: #fff; }
.ws-stepper button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.ws-stepper output { min-width: 2ch; text-align: center; font-weight: 750; }
.ws-book-error { margin: 8px 16px 0; font-size: .78rem; line-height: 1.4; color: #9a3412; font-weight: 700; }
.ws-book-panel.is-guests .ws-cal-root { display: none; }
@media (max-width: 767px) {
  .ws-book { width: 100%; margin-top: 14px; }
  .ws-book-chips { display: none; }
  .ws-book-summary { display: block; flex: 1; min-height: 58px; }
  .ws-book-bar { min-height: 58px; }
  .ws-book-submit { width: auto; min-height: 44px; padding: 0 18px; }
  .ws-book-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: min(86svh, 680px); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .ws-book-panel.is-guests .ws-cal-root, .ws-book-panel .ws-cal-root { display: block; }
}
body.ws-sheet-open { overflow: hidden; }

/* Homepage sticky search: shown below the fixed header from the moment the hero bar reaches
   it (both scroll directions), hidden when the hero bar is back. Sits under the header
   (z-index 1000) and under the docked calendar/guest panel (1310). Fixed → no layout shift. */
.ws-book-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 28, 22, .12);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.ws-book-sticky.is-shown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .ws-book-sticky { transition: opacity 160ms ease; }
}
.ws-book-sticky .ws-book-bar {
  width: min(100%, 860px);
  min-height: 52px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}
.ws-book-sticky .ws-book-chip,
.ws-book-sticky .ws-book-summary {
  min-height: 52px;
  padding: 6px 16px;
}
.ws-book-sticky .ws-book-submit {
  min-height: 40px;
  margin: 6px 8px;
}
.ws-book-panel.is-docked {
  position: fixed;
  right: auto;
  z-index: 1310;
}
@media (max-width: 767px) {
  .ws-book-sticky {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .ws-book-sticky .ws-book-bar,
  .ws-book-sticky .ws-book-summary { width: 100%; min-height: 52px; }
}
