/* Redline Interiors: booking page on the shared RedlineHQ system (../assets/redline.css) */

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 84px) clamp(32px, 5vw, 56px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.next { padding: 24px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.next::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 260px; height: 260px; background: radial-gradient(closest-side, rgba(227, 22, 29, 0.35), transparent); pointer-events: none; }
.next-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.next-head .kicker { margin: 0; }
.next-slot { display: grid; gap: 2px; min-height: 108px; align-content: center; }
.next-day { font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.next-date { font: 700 italic clamp(30px, 3.4vw, 40px)/1.05 var(--display); }
.next-time { font: 700 22px/1.2 var(--display); color: var(--red-hot); }
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.next-grid div { padding: 12px; border-right: 1px solid var(--line); min-width: 0; }
.next-grid div:last-child { border-right: 0; }
.next-grid dt { font: 600 10.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.next-grid dd { margin: 6px 0 0; font: 700 16px/1.2 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live { font: 600 12px/1 var(--mono); color: var(--muted); }
.live.ok { color: var(--ok); }
.live.ok::before { content: "● "; }
.live.err { color: var(--red-hot); }

/* ---------- prices ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 22px; max-width: 100%; }
.tabs button { font: 600 15px/1 var(--body); border: 0; background: transparent; color: var(--muted); padding: 11px 18px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--red-hot), var(--red)); color: var(--white); box-shadow: 0 8px 22px -10px var(--red-glow); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.service { padding: 22px; display: flex; flex-direction: column; }
.service-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.service h3 { font-size: 20px; }
.service > p { margin: 8px 0 14px; font-size: 15px; color: var(--muted); }
.badge { flex: 0 0 auto; font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 6px 9px; border-radius: 999px; box-shadow: 0 0 16px var(--red-glow); }
.opts { list-style: none; margin: auto 0 0; padding: 0; }
.opts li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.opt-label { font-weight: 500; min-width: 0; }
.opt-label small, .opt-price small { display: block; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.opt-price { font: 700 20px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.add { font: 700 13px/1 var(--body); min-width: 78px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 60, 66, 0.55); background: transparent; color: var(--red-hot); cursor: pointer; transition: 0.15s; }
.add:hover { background: var(--red-soft); }
.add.added { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 6px 18px -8px var(--red-glow); }

.addons-block { margin-top: 34px; }
.addons-block h3 { margin-bottom: 12px; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.addon { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; cursor: pointer; transition: 0.15s; }
.addon span { flex: 1; min-width: 0; }
.addon strong { font-family: var(--display); font-variant-numeric: tabular-nums; }
.addon.on { border-color: rgba(255, 60, 66, 0.6); background: var(--red-soft); }
.addon input { accent-color: var(--red); width: 18px; height: 18px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 44px); }
.about-emblem img { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(227, 22, 29, 0.25)); }
.about h2 { margin-bottom: 14px; font-style: italic; }
.about-text p { color: #c3c9cf; margin: 0 0 12px; max-width: 64ch; }
.about-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.about-points li { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.about-points li::before { content: "✓ "; color: var(--red-hot); }
.gallery h3 { margin: 40px 0 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--panel); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: 9px 12px; font-size: 14px; color: var(--muted); }

/* ---------- booking ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; align-items: start; }
.book-main { display: grid; gap: 16px; min-width: 0; }
.book-side { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.step { padding: 22px; }
.step-title { font: 700 18px/1.2 var(--display); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { width: 30px; height: 30px; border-radius: 9px; background: var(--red); color: var(--white); display: grid; place-items: center; font: 700 15px/1 var(--mono); box-shadow: 0 0 16px var(--red-glow); }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head strong { font: 700 18px/1 var(--display); }
.icon-btn { font: 600 22px/1 var(--body); width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow span { text-align: center; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.day { font: 600 15px/1 var(--body); aspect-ratio: 1; max-height: 54px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; transition: 0.12s; }
.day.open:hover { border-color: var(--red-hot); }
.day.closed { background: transparent; border-color: transparent; color: var(--dim); text-decoration: line-through; cursor: default; }
.day.past { text-decoration: none; opacity: 0.45; }
.day.sel { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 6px 18px -6px var(--red-glow); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot-open { background: var(--bg-2); border: 1px solid var(--red-hot); }
.dot-full { background: var(--line-2); }

#slot-hint { margin: 0 0 14px; font-size: 15px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { font: 600 15px/1 var(--body); padding: 12px 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--red-hot); }
.slot.sel { background: var(--red); border-color: var(--red); color: var(--white); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }

.summary { padding: 22px; }
.summary h3 { margin-bottom: 10px; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cart li > div { flex: 1; min-width: 0; }
.cart small { display: block; color: var(--muted); font-size: 13px; }
.cart .addon-line { color: var(--muted); }
.line-price { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty button { font: 600 15px/1 var(--body); width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; width: 26px; height: 26px; }
.remove:hover { color: var(--red-hot); }
.totals { margin: 14px 0 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 13px; }
.totals .grand dt { color: var(--text); font-weight: 600; }
.totals .grand dd { font: 700 26px/1 var(--display); }
.totals .dep dt, .totals .dep dd { color: var(--red-hot); font-weight: 700; }
.error { color: var(--red-hot); font-weight: 600; font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.error a { color: inherit; }
.btn.block + .btn.block { margin-top: 10px; }
#send-actions .btn.block:first-child { margin-top: 6px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.paychips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font: 500 12px/1 var(--mono); color: var(--muted); }
.paychips b { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); border-radius: 999px; padding: 5px 10px; font-weight: 600; }

.done { text-align: center; padding-top: 6px; }
.done-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--ok); color: #04210f; font-size: 26px; font-weight: 800; display: grid; place-items: center; margin: 6px auto 12px; box-shadow: 0 0 26px rgba(53, 208, 127, 0.45); }
.done h4 { margin: 0 0 8px; font: 700 italic 22px/1.2 var(--display); }
.done p { color: var(--muted); font-size: 15px; margin: 0 0 8px; text-align: left; }
.done p strong { color: var(--text); }
.pay-opts { display: grid; gap: 8px; margin: 12px 0; text-align: left; }
.pay-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 11px; padding: 11px 14px; font-size: 15px; color: var(--text); text-decoration: none; }
.pay-opt span:last-child { color: var(--muted); font-size: 13px; text-align: right; }
.pay-name { font-weight: 800; }
.pay-link { border-color: rgba(255, 60, 66, 0.6); }
.pay-link strong { color: var(--red-hot); }

/* ---------- notes ---------- */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.notes li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 18px 22px; font-size: 15px; color: #c3c9cf; overflow: hidden; }
.notes li::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--red); border-radius: 0 3px 3px 0; box-shadow: 0 0 12px var(--red-glow); }

/* ---------- mobile sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: none;
  justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(13, 15, 18, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2); font-weight: 700;
}
.sticky-bar .btn { min-height: 42px; }
.toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  .book-side { position: static; }
  .sticky-bar.show { display: flex; }
  body { padding-bottom: 76px; }
  .about { grid-template-columns: 1fr; }
  .about-emblem { max-width: 320px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 11px 8px; }
  .cal-grid { gap: 4px; }
  .day { border-radius: 9px; font-size: 14px; }
  .next-grid dd { font-size: 14px; }
}
