/* ==========================================================================
   The Hills Rivermakers — Bookings module styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */
.thr-bk-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.thr-bk-nav { display:flex; align-items:center; gap:8px; }
.thr-bk-datetext { font-size:15px; font-weight:600; }
.thr-bk-actions { display:flex; align-items:center; gap:12px; }
.thr-bk-stat { font-size:13px; color:var(--thr-muted,rgba(16,16,16,.58)); }

/* --------------------------------------------------------------------------
   Status chips / legend
   -------------------------------------------------------------------------- */
.thr-bk-legend { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.thr-bk-chip { font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; }
.thr-bk-chip--pending   { background:#fff3cd; color:#856404; }
.thr-bk-chip--confirmed { background:#d4edda; color:#155724; }
.thr-bk-chip--seated    { background:#d1ecf1; color:#0c5460; }
.thr-bk-chip--completed { background:#e2e3e5; color:#383d41; }
.thr-bk-chip--cancelled { background:#f8d7da; color:#721c24; }

/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */
.thr-timeline-wrap { overflow-x:auto; border:1px solid rgba(16,16,16,.1); border-radius:12px; background:#fff; }
.thr-timeline { min-width:900px; }

.thr-timeline-header { display:flex; border-bottom:2px solid rgba(16,16,16,.1); position:sticky; top:0; background:#f9f8f5; z-index:10; }
.thr-timeline-label-col { width:120px; min-width:120px; flex-shrink:0; }
.thr-timeline-axis { flex:1; position:relative; height:36px; }
.thr-time-mark { position:absolute; top:10px; font-size:11px; font-weight:600; color:rgba(16,16,16,.5); transform:translateX(-50%); white-space:nowrap; }

.thr-timeline-row { display:flex; border-bottom:1px solid rgba(16,16,16,.06); min-height:52px; }
.thr-timeline-row:last-child { border-bottom:none; }
.thr-timeline-label { width:120px; min-width:120px; flex-shrink:0; padding:10px 12px; display:flex; flex-direction:column; justify-content:center; }
.thr-timeline-label strong { font-size:13px; font-weight:700; }
.thr-timeline-label .thr-muted { font-size:11px; }

.thr-timeline-track { flex:1; position:relative; min-height:52px; }

.thr-grid-line { position:absolute; top:0; bottom:0; width:1px; pointer-events:none; }
.thr-grid-hour { background:rgba(16,16,16,.1); }
.thr-grid-half { background:rgba(16,16,16,.04); }

.thr-bk-block { position:absolute; top:6px; height:40px; border-radius:7px; padding:0 8px; display:flex; align-items:center; justify-content:space-between; gap:4px; cursor:pointer; font-size:12px; font-weight:600; overflow:hidden; transition:opacity .15s; white-space:nowrap; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.thr-bk-block:hover { opacity:.85; }
.thr-bk-block-name { overflow:hidden; text-overflow:ellipsis; }
.thr-bk-block-pax { font-size:11px; font-weight:700; background:rgba(255,255,255,.3); padding:1px 5px; border-radius:999px; flex-shrink:0; }

.thr-bk-block--pending   { background:#f0c040; color:#5a4200; }
.thr-bk-block--confirmed { background:#2ecc71; color:#0d4d28; }
.thr-bk-block--seated    { background:#3498db; color:#0a2d50; }
.thr-bk-block--completed { background:#95a5a6; color:#2c3e50; }
.thr-bk-block--cancelled { background:#e74c3c; color:#4a0e09; text-decoration:line-through; opacity:.5; }
.thr-bk-block--no_show   { background:#e0e0e0; color:#666; opacity:.6; }

/* --------------------------------------------------------------------------
   FLOOR PLAN
   -------------------------------------------------------------------------- */
.thr-fp-container { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.thr-fp-canvas { position:relative; width:700px; min-height:500px; background:#f6f4ef; border:1px solid rgba(16,16,16,.1); border-radius:12px; overflow:auto; flex-shrink:0; }

.thr-fp-table { position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; border:2px solid var(--tbl-color,#7F77DD); border-radius:8px; background:rgba(127,119,221,.08); transition:background .15s,transform .1s; font-size:12px; user-select:none; }
.thr-fp-table:hover { background:rgba(127,119,221,.18); transform:scale(1.03); }
.thr-fp-round { border-radius:50%; }
.thr-fp-name { font-weight:700; font-size:13px; }
.thr-fp-cap  { font-size:10px; color:rgba(16,16,16,.5); }
.thr-fp-guest{ font-size:10px; font-weight:600; text-align:center; max-width:90%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.thr-fp-table--free      { border-color:#2ecc71; background:rgba(46,204,113,.08); }
.thr-fp-table--confirmed { border-color:#2ecc71; background:rgba(46,204,113,.2); }
.thr-fp-table--seated    { border-color:#3498db; background:rgba(52,152,219,.25); }
.thr-fp-table--pending   { border-color:#f0c040; background:rgba(240,192,64,.15); }
.thr-fp-table--completed { border-color:#95a5a6; background:rgba(149,165,166,.1); }

.thr-fp-legend { display:flex; flex-direction:column; gap:8px; padding:16px; background:#fff; border:1px solid rgba(16,16,16,.1); border-radius:10px; }
.thr-fp-legend-item { display:flex; align-items:center; gap:8px; font-size:13px; }
.thr-fp-swatch { width:16px; height:16px; border-radius:4px; flex-shrink:0; border:2px solid; }
.thr-fp-swatch--free      { border-color:#2ecc71; background:rgba(46,204,113,.1); }
.thr-fp-swatch--confirmed { border-color:#2ecc71; background:rgba(46,204,113,.2); }
.thr-fp-swatch--seated    { border-color:#3498db; background:rgba(52,152,219,.2); }
.thr-fp-swatch--pending   { border-color:#f0c040; background:rgba(240,192,64,.15); }

/* --------------------------------------------------------------------------
   BOOKING MODAL
   -------------------------------------------------------------------------- */
.thr-bk-modal-box { width:min(680px,96vw); max-height:90vh; background:#fff; border-radius:16px; box-shadow:0 32px 80px rgba(0,0,0,.28); display:flex; flex-direction:column; overflow:hidden; }

/* --------------------------------------------------------------------------
   PUBLIC BOOKING FORM
   -------------------------------------------------------------------------- */
.thr-bk-wrap { max-width:760px; }

.thr-bk-steps { display:flex; align-items:center; margin-bottom:24px; gap:0; }
.thr-bk-step { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:rgba(16,16,16,.4); flex-shrink:0; }
.thr-bk-step span { width:28px; height:28px; border-radius:50%; background:rgba(16,16,16,.1); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.thr-bk-step--active { color:var(--accent,#d85a1a); }
.thr-bk-step--active span { background:var(--accent,#d85a1a); color:#fff; }
.thr-bk-step--done { color:var(--success,#1faa59); }
.thr-bk-step--done span { background:var(--success,#1faa59); color:#fff; }
.thr-bk-step-line { flex:1; height:2px; background:rgba(16,16,16,.1); margin:0 8px; min-width:20px; }

.thr-bk-panel { transition:none; }

/* Covers grid */
.thr-bk-covers-grid { display:flex; gap:10px; flex-wrap:wrap; margin:16px 0; }
.thr-bk-cover-btn { width:56px; height:56px; border-radius:12px; border:2px solid rgba(16,16,16,.15); background:#fff; font-size:20px; font-weight:700; cursor:pointer; transition:border-color .15s,background .15s; display:flex; align-items:center; justify-content:center; }
.thr-bk-cover-btn:hover { border-color:var(--accent,#d85a1a); }
.thr-bk-cover-btn--active { border-color:var(--accent,#d85a1a); background:var(--accent,#d85a1a); color:#fff; }

/* Time slots */
.thr-bk-slots { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.thr-bk-slot-btn { padding:10px 16px; border-radius:10px; border:1.5px solid rgba(16,16,16,.15); background:#fff; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; transition:border-color .15s,background .15s; font-family:inherit; }
.thr-bk-slot-btn:hover { border-color:var(--accent,#d85a1a); }
.thr-bk-slot-btn--active { border-color:var(--accent,#d85a1a); background:rgba(216,90,26,.07); font-weight:700; }
.thr-bk-slot-avail { font-size:10px; color:rgba(16,16,16,.5); font-weight:400; }

/* Mini floor plan (booking form) */
.thr-bk-fp-mini { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.thr-bk-fp-table { padding:10px 14px; border-radius:10px; border:2px solid rgba(16,16,16,.15); background:#fff; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:3px; font-family:inherit; transition:border-color .15s,background .15s; }
.thr-bk-fp-table:hover { border-color:var(--accent,#d85a1a); }
.thr-bk-fp-round { border-radius:50%; width:70px; height:70px; }
.thr-bk-fp-table--selected { border-color:var(--accent,#d85a1a); background:rgba(216,90,26,.08); font-weight:700; }

/* Booking summary */
.thr-bk-summary { display:grid; gap:8px; margin:12px 0; }
.thr-bk-summary-row { display:flex; justify-content:space-between; padding:8px 12px; background:#f9f8f5; border-radius:8px; font-size:14px; }
.thr-bk-summary-row span { color:rgba(16,16,16,.55); }
.thr-bk-summary-row strong { font-weight:600; }

.thr-bk-payment-notice { background:#f0f7ff; border:1px solid #b5d4f4; border-radius:10px; padding:14px 16px; font-size:14px; }
