/* ==========================================================================
   LocoMojo booking flow primitives
   One button, one tile, one capacity badge for every public booking page
   (intro, free class, couples, Level 1.5, next step). Page CSS keeps layout.
   Gold primary, hairlines, no tinted fills, no glows, no pills for info.
   Light pages use the defaults; add .lm-dark on a dark section.
   ========================================================================== */

:root {
  --lm-ink: #1a1612;
  --lm-line: rgba(26, 22, 18, 0.3);
  --lm-hair: rgba(26, 22, 18, 0.14);
  --lm-muted: rgba(26, 22, 18, 0.55);
  --lm-ok: #2f9e6b;
  --lm-low: #d48a25;
  --lm-critical: #c92a2a;
}
.lm-dark {
  --lm-ink: #ffffff;
  --lm-line: rgba(255, 255, 255, 0.4);
  --lm-hair: rgba(255, 255, 255, 0.18);
  --lm-muted: rgba(255, 255, 255, 0.55);
  --lm-ok: #7cc79b;
  --lm-low: #e2a457;
  --lm-critical: #e07070;
}

/* ---- Buttons ---- */
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 22px;
  border: 1px solid var(--color-gold, #C19635);
  border-radius: 8px;
  background: var(--color-gold, #C19635);
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lm-btn:hover { background: var(--color-gold-hover, #d4a93e); border-color: var(--color-gold-hover, #d4a93e); color: #ffffff; }
.lm-btn:disabled, .lm-btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.lm-btn--auto { width: auto; padding-left: 34px; padding-right: 34px; }
.lm-btn--ghost { background: transparent; border-color: var(--lm-line); color: var(--lm-ink); }
.lm-btn--ghost:hover { background: transparent; border-color: var(--lm-ink); color: var(--lm-ink); }
.lm-btn--sticky {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: auto;
  padding: 15px 34px;
  z-index: 80;
}

/* ---- Tiles (dates, days, roles) ---- */
.lm-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid var(--lm-hair);
  border-radius: 8px;
  background: transparent;
  color: var(--lm-ink);
  font-family: var(--font-body, 'Inter', sans-serif);
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lm-tile:hover { border-color: var(--lm-line); }
.lm-tile.is-on { border-color: var(--color-gold, #C19635); }
.lm-tile.is-out { opacity: 0.45; cursor: default; pointer-events: none; }
.lm-tile--empty { border: none; background: transparent; pointer-events: none; }
.lm-tile__main { font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; color: var(--lm-ink); }
.lm-tile__meta { font-size: 11px; letter-spacing: 0.02em; color: var(--lm-muted); }
.lm-tile .lm-spots { font-size: 10.5px; margin-top: 2px; }
.lm-tile .lm-spots::before { width: 5px; height: 5px; }

.lm-roles { display: flex; gap: 10px; width: 100%; }
.lm-roles .lm-tile { flex: 1; padding: 11px 10px; }
.lm-roles .lm-tile__main { font-size: 14px; }

/* ---- Capacity badge: small dot plus a short count ---- */
.lm-spots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--lm-muted);
}
.lm-spots::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.lm-spots--ok { color: var(--lm-ok); }
.lm-spots--low { color: var(--lm-low); }
.lm-spots--critical { color: var(--lm-critical); }
.lm-spots--limited { color: var(--lm-critical); }
.lm-spots--out { color: var(--lm-critical); }
.lm-spots--out::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.lm-spots:empty { display: none; }

/* ---- Selection summary row (restates the chosen date inside a flow) ---- */
.lm-summary[hidden] { display: none; }
.lm-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--lm-hair);
  border-radius: 8px;
  margin: 0 0 18px;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.lm-summary__main { font-size: 14px; font-weight: 600; color: var(--lm-ink); }
.lm-summary__meta { font-size: 12px; color: var(--lm-muted); margin-top: 3px; }
.lm-summary__change {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold, #C19635);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Quiet note (sold out, contact the studio) ---- */
.lm-note {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--lm-muted);
  margin: 10px 0 0;
}
.lm-note a { color: inherit; }
