/* ─── Shared bits across 3 variants ─── */
/*

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&family=Unbounded:wght@300;400;500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Bitter:wght@400;500;600;700&family=Inter+Tight:wght@300;400;500;600;700;800;900&display=swap');

*/

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ─── Photo placeholder helpers (for cells without photos) ─── */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--ph-a, rgba(0,0,0,.04)) 0 12px, var(--ph-b, rgba(0,0,0,.06)) 12px 24px),
    var(--ph-bg, #d9d4cb);
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-fg, rgba(0,0,0,.55));
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  overflow: hidden;
}

/* ─── Steam animation ─── */
@keyframes steamRise {
  0% { transform: translateY(20px) scale(.9); opacity: 0; }
  20% { opacity: .55; }
  100% { transform: translateY(-260px) scale(1.6); opacity: 0; }
}
.steam {
  position: absolute; border-radius: 50%; filter: blur(28px); pointer-events: none;
}

/* ─── Embers / sparks ─── */
@keyframes emberRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-340px) translateX(var(--dx, 20px)); opacity: 0; }
}
.ember {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb96b; box-shadow: 0 0 8px 2px rgba(255,150,60,.7);
  pointer-events: none;
}

/* ─── Lightbox ─── */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(8,6,4,.94); backdrop-filter: blur(8px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }
.lb-frame {
  max-width: 80vw; max-height: 84vh; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.lb-frame img { max-width: 80vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; user-select: none;
}
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-prev { left: 28px; } .lb-next { right: 28px; }
.lb-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer; font-size: 16px;
}

/* ─── Calendar grid ─── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; border-radius: 8px;
  transition: background .12s, color .12s, transform .12s; user-select: none;
}
.cal-cell.empty { cursor: default; }
.cal-cell.disabled { opacity: .25; cursor: not-allowed; }
.cal-cell.dow { aspect-ratio: auto; padding: 8px 0; font-size: 11px; opacity: .55; cursor: default; text-transform: uppercase; letter-spacing: .05em; }

/* ─── Number stepper ─── */
.stepper {
  display: inline-flex; align-items: center; border-radius: 999px; overflow: hidden;
}
.stepper button {
  width: 36px; height: 36px; border: none; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s; background: transparent; color: inherit;
}
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper .val { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ─── Time picker pills ─── */
.time-pill {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--tp-border, rgba(0,0,0,.15));
  background: var(--tp-bg, transparent);
  color: var(--tp-fg, inherit);
  cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums;
  transition: all .12s; font-family: inherit;
}
.time-pill.selected {
  background: var(--tp-sel-bg, #2a201a); color: var(--tp-sel-fg, #fff);
  border-color: var(--tp-sel-bg, #2a201a);
}

/* ─── Generic toggle ─── */
.toggle {
  width: 48px; height: 28px; border-radius: 999px; border: none;
  background: var(--tg-off, rgba(0,0,0,.15));
  position: relative; cursor: pointer; transition: background .15s;
  flex-shrink: 0;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  transition: left .18s;
}
.toggle.on { background: var(--tg-on, #c8632a); }
.toggle.on::after { left: 23px; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(8,6,4,.6); backdrop-filter: blur(6px);
  z-index: 900; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s; padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; max-width: 480px; width: 100%; border-radius: 20px;
  padding: 36px 32px; position: relative;
  transform: scale(.96); transition: transform .2s;
}
.modal-overlay.open .modal-card { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.05);
  font-size: 18px; cursor: pointer;
}
.modal-card label { display: block; font-size: 13px; opacity: .7; margin-bottom: 6px; }
.modal-card input, .modal-card textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12); font-family: inherit; font-size: 15px;
  background: #fafaf7; outline: none; transition: border .15s;
}
.modal-card input:focus, .modal-card textarea:focus { border-color: rgba(0,0,0,.4); }
.modal-card .form-row { margin-bottom: 16px; }

/* hide scrollbars on horizontal scroll containers */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
