/* ── Layout ───────────────────────────────────────────────────── */
.booking-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .venue-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.site-header h1 { font-size: 1.15rem; font-weight: 700; }
.site-header p  { font-size: .8rem; color: var(--text2); }

/* Progress stepper */
.steps-bar {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.steps-bar::-webkit-scrollbar { display: none; }

.step-indicator {
  flex: 1;
  min-width: 70px;
  padding: 12px 8px;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text2);
  position: relative;
  cursor: default;
  transition: color .2s;
}
.step-indicator.active { color: var(--primary); }
.step-indicator.done   { color: var(--accent); }
.step-indicator::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background .2s;
}
.step-indicator.active::after { background: var(--primary); }
.step-indicator.done::after   { background: var(--accent); }

.step-num {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text2);
  font-size: .72rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.step-indicator.active .step-num { background: var(--primary); color: #fff; }
.step-indicator.done   .step-num { background: var(--accent);  color: #000; }

/* Main content area */
.booking-main {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 20px 100px;
}

.step-content { display: none; }
.step-content.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-subtitle {
  font-size: .875rem;
  color: var(--text2);
  margin-bottom: 24px;
}

/* Nav buttons */
.booking-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  z-index: 100;
}
.booking-nav .btn { min-width: 120px; }

/* ── Step 1: Calendar ─────────────────────────────────────────── */
.calendar-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-header h3 { font-size: 1rem; font-weight: 600; }
.cal-nav {
  background: var(--surface2);
  border: none;
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav:hover { background: var(--border); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text2);
  padding: 4px 0 8px;
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text);
  transition: background .12s;
}
.cal-day:hover:not(:disabled) { background: var(--surface2); }
.cal-day.today { font-weight: 700; color: var(--accent); }
.cal-day.selected { background: var(--primary) !important; color: #fff !important; }
.cal-day:disabled { opacity: .3; cursor: default; }
.cal-day.other-month { opacity: .25; }

/* ── Step 2: Time slots ───────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.slot-btn {
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  transition: all .12s;
  cursor: pointer;
}
.slot-btn:hover    { border-color: var(--primary); color: var(--primary); }
.slot-btn.selected {
  background: color-mix(in srgb, var(--primary) 80%, transparent);
  border-color: var(--primary);
  color: #fff;
}
.slot-btn.slot-range-start {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 8px 8px 8px 8px;
  position: relative;
}
.slot-btn.slot-range-start::after {
  content: '▶';
  font-size: .55rem;
  position: absolute;
  bottom: 3px;
  right: 4px;
  opacity: .7;
}
.slot-btn.slot-range-end {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  position: relative;
}
.slot-btn.slot-range-end::after {
  content: '■';
  font-size: .55rem;
  position: absolute;
  bottom: 3px;
  right: 4px;
  opacity: .7;
}

/* Seat stepper */
.seats-section { margin-top: 20px; }
.seats-label { font-size: .875rem; font-weight: 600; margin-bottom: 12px; color: var(--text2); }
.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.stepper button {
  width: 44px; height: 44px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s;
}
.stepper button:hover { background: var(--surface2); }
.stepper button:disabled { opacity: .3; }
.stepper-val {
  min-width: 48px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0 8px;
}

/* ── Step 3: Tables ───────────────────────────────────────────── */
.room-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.room-tab {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
}
.room-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Floor map SVG */
.floor-map-svg-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.floor-map-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.table-svg-group { transition: opacity .15s; }
.table-svg-group:hover { opacity: .8; }
.table-svg-group.available { cursor: pointer; }
.table-svg-group.unavailable { cursor: not-allowed; }
.table-svg-group.selected .table-shape { stroke: var(--accent) !important; stroke-width: 3 !important; }

/* Table list (fallback / alternative) */
.table-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.table-card {
  padding: 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all .12s;
}
.table-card:hover { border-color: var(--primary); }
.table-card.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.table-card.unavailable { opacity: .4; cursor: not-allowed; border-color: var(--border); }
.table-card.too-big { opacity: .55; cursor: not-allowed; border-color: var(--border); }
.table-card.too-big:hover { border-color: var(--border); }
.table-card-num  { font-size: 1.1rem; font-weight: 700; }
.table-card-info { font-size: .72rem; color: var(--text2); margin-top: 4px; }

.skip-table-btn { margin-top: 12px; }

.table-auto-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--text);
}
.table-auto-note strong { font-size: 1rem; }
.table-auto-note span { color: var(--text2); line-height: 1.45; }

.voucher-box {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.voucher-copy { line-height: 1.5; color: var(--text); }
.voucher-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
}
.voucher-check input { margin-top: 3px; width: auto; }

.seat-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--primary) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  transition: all .2s;
}
.seat-counter.hidden { display: none; }

/* ── Step 4: Guest form ───────────────────────────────────────── */
.booking-summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  padding: 4px 0;
}

.reservation-list-title { margin: 22px 0 10px; font-size: .95rem; }
.reservation-items { display: grid; gap: 8px; }
.reservation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
}
.reservation-item.is-canceled { opacity: .6; }
.reservation-item > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reservation-room { color: var(--text2); font-size: .78rem; }
@media (max-width: 520px) {
  .reservation-item { align-items: stretch; flex-direction: column; }
  .reservation-item .btn { width: 100%; }
}
.summary-row .label { color: var(--text2); }
.summary-row .value { font-weight: 600; }

/* ── Step 5: Confirmation ─────────────────────────────────────── */
.confirmation-wrap {
  text-align: center;
  padding: 32px 0;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #14532d;
  color: #86efac;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirmation-wrap h2 { font-size: 1.4rem; margin-bottom: 8px; }
.confirmation-wrap .conf-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}
.conf-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  margin: 20px 0;
}

/* ── Look-up view (check my reservation) ─────────────────────── */
.lookup-form { max-width: 400px; margin: 40px auto; }
