/* GIMMEYUM Reserve — reservation-specific components layered on the shared design system
   (styles.css + components.css). OpenTable/Resy-informed: search bar, slot grid, party stepper,
   date rail, floor plan, host book, waitlist. Mobile-first; AA contrast throughout. */

/* the [hidden] attribute must win over .field{display:block} etc. (progressive-disclosure fields) */
[hidden] { display: none !important; }

.linkbtn { appearance: none; border: 0; background: transparent; color: var(--c-brand-ink); font: inherit; font-weight: 650; cursor: pointer; padding: var(--s-2); text-decoration: underline; }

/* live-updates indicator (host console) */
.livewrap { display: inline-flex; align-items: center; margin-left: var(--s-2); }
.livewrap .dot.live { background: var(--c-ok); box-shadow: 0 0 0 0 rgba(31,157,87,.5); }
.livewrap .dot.live.pulse { animation: livepulse 1s var(--m-ease); }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,87,.5); } 100% { box-shadow: 0 0 0 10px rgba(31,157,87,0); } }
.linkbtn:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: var(--r-1); }

/* ---- search / booking control bar (diner) ---- */
.bookbar {
  display: grid; gap: var(--s-3); grid-template-columns: 1fr; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-3); box-shadow: var(--e-1); padding: var(--s-4);
}
@media (min-width: 720px) { .bookbar { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.bookbar .field { margin: 0; }

/* ---- party stepper (compact inline) ---- */
.party { display: inline-flex; align-items: center; gap: var(--s-2); }
.party .gy-step { width: 40px; height: 40px; }
.party-val { min-width: 5ch; text-align: center; font-weight: 700; }

/* ---- horizontal date rail ---- */
.daterail { display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-1) 0 var(--s-2); scrollbar-width: none; }
.daterail::-webkit-scrollbar { display: none; }
.daychip {
  appearance: none; cursor: pointer; flex: none; min-width: 64px; padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); color: var(--c-ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit;
}
.daychip .dow { font-size: var(--t-xs); color: var(--c-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.daychip .dnum { font-size: var(--t-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.daychip.on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.daychip.on .dow { color: rgba(255,255,255,.85); }
.daychip:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

/* ---- slot grid (available times) ---- */
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--s-2); }
.slot {
  appearance: none; cursor: pointer; font: inherit; font-weight: 700; text-align: center;
  padding: var(--s-3) var(--s-2); min-height: 48px; border-radius: var(--r-2);
  border: 1px solid var(--c-brand); background: #eef8f7; color: var(--c-brand-ink);
  transition: background var(--m-fast) var(--m-ease), transform var(--m-fast) var(--m-ease);
}
.slot:hover { background: var(--c-brand); color: #fff; transform: translateY(-1px); }
.slot:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.slot.on { background: var(--c-brand); color: #fff; }

/* ---- venue cards (discovery) ---- */
.vcard .banner { height: 168px; }
.vcard .pad { padding: var(--s-4); }
.vcard .vmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--c-ink-soft); margin: 0 0 var(--s-2); }
.vcard .price { color: var(--c-ink); }
.vslots { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.vslot { font-size: var(--t-sm); font-weight: 700; padding: 6px var(--s-3); border-radius: var(--r-pill);
  border: 1px solid var(--c-brand); background: #eef8f7; color: var(--c-brand-ink); text-decoration: none; }
.vslot:hover { background: var(--c-brand); color: #fff; }
.vslot.more { border-color: var(--c-line); background: var(--c-bg); color: var(--c-ink-soft); }

/* ---- venue detail header ---- */
.vhero { position: relative; height: 220px; border-radius: var(--r-3); overflow: hidden;
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2)); }
.vhero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhead h1 { margin: 0 0 var(--s-2); }
.vdesc { max-width: 68ch; color: var(--c-ink); line-height: 1.55; }
.booking-layout { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .booking-layout { grid-template-columns: minmax(0,1fr) 380px; }
  .booking-panel { position: sticky; top: var(--s-5); } }
.booking-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-3); box-shadow: var(--e-1); padding: var(--s-4); }

/* ---- confirmation ---- */
.confirm-badge { width: 64px; height: 64px; border-radius: 50%; background: #e2f6ea; color: var(--c-ok);
  display: grid; place-items: center; font-size: 32px; margin: 0 auto var(--s-3); }
.conf-code { font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--t-xl); letter-spacing: .04em; color: var(--c-brand-ink); }
.detail-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--c-line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--c-ink-soft); }
.detail-row .v { font-weight: 650; text-align: right; }

/* ---- reservation list cards (diner "my reservations") ---- */
.rescard { display: flex; gap: var(--s-4); align-items: center; }
.rescard .when { flex: none; width: 68px; text-align: center; }
.rescard .when .d { font-size: var(--t-xs); color: var(--c-ink-soft); text-transform: uppercase; }
.rescard .when .t { font-size: var(--t-lg); font-weight: 800; }
.rescard .grow { flex: 1; min-width: 0; }

/* ============ venue console (host stand) ============ */
/* the day's reservation book — grouped time rows */
.bookhead { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.bookrow { display: grid; grid-template-columns: 76px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); align-items: start; }
.bookrow .time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-brand-ink); }
.covers { display: flex; flex-direction: column; gap: var(--s-2); }
.cover {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-line);
  border-radius: var(--r-2); padding: var(--s-2) var(--s-3);
}
.cover.s-BOOKED { border-left-color: var(--c-brand); }
.cover.s-SEATED { border-left-color: var(--c-ok); }
.cover.s-COMPLETED { border-left-color: var(--c-ink-soft); opacity: .7; }
.cover.s-CANCELLED, .cover.s-NO_SHOW { border-left-color: var(--c-warn); opacity: .6; }
.cover .party-badge { flex: none; min-width: 40px; height: 40px; padding: 0 var(--s-2); border-radius: var(--r-2);
  background: var(--c-bg); display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cover .who { min-width: 0; }
.cover .who .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover .who .sub { font-size: var(--t-xs); color: var(--c-ink-soft); }
.cover .cover-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* floor plan grid */
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-3); }
.tablecard {
  border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--s-3); text-align: center;
  background: var(--c-surface); display: flex; flex-direction: column; gap: 4px; min-height: 92px; justify-content: center;
}
.tablecard.occupied { background: #fdecef; border-color: #f3c2cb; }
.tablecard.free { background: #edf8f1; border-color: #c7ead6; }
.tablecard .tlabel { font-weight: 800; font-size: var(--t-lg); }
.tablecard .tcap { font-size: var(--t-xs); color: var(--c-ink-soft); }
.tablecard .tstate { font-size: var(--t-xs); font-weight: 700; }
.tablecard.occupied .tstate { color: var(--c-accent-ink); }
.tablecard.free .tstate { color: var(--c-badge-ok); }

/* waitlist rows */
.waitrow { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s-3); align-items: center;
  padding: var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); }
.waitrow + .waitrow { margin-top: var(--s-2); }
.waitrow .pos { font-weight: 800; color: var(--c-ink-soft); text-align: center; }

/* setup / floor editor forms */
.setup-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 800px) { .setup-grid { grid-template-columns: 1fr 1fr; } }

/* KPI strip reused from styles.css .kpis */
