/* ============================================================
   Frost & Flame — Booksy-Inspired Design System v2
   Light mode · Clean white cards · Blue primary CTA
   Plus Jakarta Sans (headings) + Inter (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Frost Palette -> Forest Green (cool/earthy accent) */
  --frost-900: #06120D;
  --frost-800: #0F2C22;
  --frost-700: #3E8368;
  --frost-600: #52A37F;
  --frost-400: #7FC7A4;
  --frost-200: #B7E4C7;
  --frost-100: #D8F3DC;
  --frost-50:  #EAF7EE;

  /* Flame Palette -> Warm Amber (accent/CTA) */
  --flame-900: #3D2B0A;
  --flame-800: #6B4A0F;
  --flame-600: #E8B923;
  --flame-500: #F2C94C;
  --flame-400: #F5D76E;
  --flame-200: #F9E9B0;
  --flame-50:  #FDF6E3;

  /* Neutral — Stone scale, tuned per usage for dark-bg legibility (not a strict light->dark ramp) */
  --n-950: #050705;
  --n-900: #12201A;
  --n-800: #1B2F26;
  --n-700: #EDE6D8;
  --n-600: #9CA89D;
  --n-500: #7E8C82;
  --n-400: #A9B6AC;
  --n-300: #6E7C72;
  --n-200: #22302A;
  --n-100: #17211C;
  --n-50:  #10160F;

  /* Semantic — Dark forest theme */
  --bg:           #0A0A0A;
  --bg-surface:   #0D1712;
  --bg-card:      #13241D;
  --bg-elevated:  #1B342A;
  --border:       rgba(209,199,184,0.14);
  --border-soft:  rgba(209,199,184,0.07);
  --text-primary:   #F5F0E8;
  --text-secondary: #B9AF9E;
  --text-muted:     #7C8A80;
  --accent-frost:   #52A37F;
  --accent-flame:   #E8B923;

  /* Status palette */
  --success:        #16A34A;
  --success-bg:     #F0FDF4;
  --success-border: #BBF7D0;
  --warning:        #D97706;
  --warning-bg:     #FFFBEB;
  --warning-border: #FDE68A;
  --error:          #DC2626;
  --error-bg:       #FEF2F2;
  --error-border:   #FECACA;
  --purple:         #7C3AED;
  --purple-bg:      #F5F3FF;
  --purple-border:  #DDD6FE;
  --teal:           #0D9488;
  --teal-bg:        #F0FDFA;
  --teal-border:    #99F6E4;

  /* Shadows — dark theme, black-based for depth against near-black bg */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.45), 0 4px 6px rgba(0,0,0,0.3);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.5);
  --shadow-focus: 0 0 0 3px rgba(82,163,127,0.28);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  200ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.display-xl { font-size: clamp(3rem, 7.5vw, 5.75rem); }
.display-lg { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.display-md { font-size: clamp(1.875rem, 4.5vw, 2.875rem); }
.display-sm { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }

.heading { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; }
.h1 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); }
.h2 { font-size: clamp(1.3rem, 2.75vw, 1.75rem); }
.h3 { font-size: clamp(1.075rem, 2vw, 1.35rem); }

.label-upper         { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.label-upper-accent  { color: var(--accent-frost); }

.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ---------- Cards — Booksy white card with shadow ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.glass-card-elevated {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* ---------- Divider ---------- */
.divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--accent-frost), var(--accent-flame));
  border-radius: 2px;
  margin: 1rem 0;
}
.divider-center { margin: 1rem auto; }

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--frost-800) 0%, var(--purple) 45%, var(--flame-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-frost {
  background: linear-gradient(135deg, var(--frost-900), var(--frost-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-flame {
  background: linear-gradient(135deg, var(--flame-600), var(--flame-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons — Booksy-style clean pill ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
  position: relative;
}

.btn-primary {
  background: var(--flame-600);
  color: #1A1206;
  box-shadow: 0 2px 8px rgba(232,185,35,0.3);
}
.btn-primary:hover {
  background: var(--flame-500);
  box-shadow: 0 4px 16px rgba(232,185,35,0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-frost {
  background: var(--frost-50);
  color: var(--frost-700);
  border: 1.5px solid var(--frost-200);
}
.btn-frost:hover { background: var(--frost-100); border-color: var(--frost-400); }

.btn-flame {
  background: var(--flame-800);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(107,74,15,0.35);
}
.btn-flame:hover {
  background: var(--flame-600);
  color: #1A1206;
  box-shadow: 0 4px 16px rgba(232,185,35,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: transparent;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--n-300); background: var(--bg-elevated); }

.btn-outline {
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  background: transparent;
}
.btn-outline:hover { border-color: var(--frost-700); color: var(--frost-700); background: var(--frost-50); }

.btn-lg  { padding: 0.875rem 2rem; font-size: 0.95rem; }
.btn-sm  { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-xs  { padding: 0.35rem 0.875rem; font-size: 0.72rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; pointer-events: none; }

/* ---------- Navigation — dark forest nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.875rem 0;
  background: rgba(10,10,10,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-logo .amp {
  background: linear-gradient(135deg, var(--frost-700), var(--flame-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--dur) var(--ease);
}
.nav-links a:hover  { color: var(--text-primary); background: var(--bg-elevated); }
.nav-links a.active { color: var(--frost-700); font-weight: 600; }
.nav-cta { display: flex; gap: 0.5rem; align-items: center; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--dur) var(--ease);
}
.mobile-menu a:hover { color: var(--frost-700); }

/* ---------- Session Card — refined booking slot card ---------- */
.session-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.session-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.session-card.type-sunrise::before,  .session-type-icon.type-sunrise  { background: linear-gradient(180deg, var(--flame-400), var(--flame-600)); }
.session-card.type-evening::before,  .session-type-icon.type-evening  { background: linear-gradient(180deg, var(--frost-400), var(--frost-700)); }
.session-card.type-weekend::before,  .session-type-icon.type-weekend  { background: linear-gradient(180deg, #34D399, #10B981); }
.session-card.type-private::before,  .session-type-icon.type-private  { background: linear-gradient(180deg, #C084FC, #A855F7); }

.session-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.session-card.type-sunrise:hover { border-color: var(--flame-600); box-shadow: 0 10px 28px rgba(232,185,35,0.14), var(--shadow-md); }
.session-card.type-evening:hover { border-color: var(--frost-600); box-shadow: 0 10px 28px rgba(82,163,127,0.16), var(--shadow-md); }
.session-card.type-weekend:hover { border-color: #10B981;          box-shadow: 0 10px 28px rgba(16,185,129,0.14), var(--shadow-md); }
.session-card.type-private:hover { border-color: #A855F7;          box-shadow: 0 10px 28px rgba(168,85,247,0.16), var(--shadow-md); }

.session-card.is-full { pointer-events: none; }
.session-card.is-full::before { background: var(--border); }
.session-card.is-full .session-card-head,
.session-card.is-full .session-card-time,
.session-card.is-full .capacity-bar-wrap,
.session-card.is-full .private-indicator { opacity: 0.5; }

/* Header row: type icon + name, status pill (only shown for non-default states) */
.session-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.session-card-type {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.session-type-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.session-type-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Time — the hero element of the card */
.session-card-time {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}
.session-card-time .end-time {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.35rem;
  letter-spacing: 0;
}

/* Legacy alias kept for pages using the old .session-time class directly */
.session-time {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.session-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.type-sunrise .session-type-badge, .session-type-badge.type-sunrise { background: var(--flame-50);  color: var(--flame-800); border-color: var(--flame-200); }
.type-evening .session-type-badge, .session-type-badge.type-evening { background: var(--frost-50);  color: var(--frost-700); border-color: var(--frost-200); }
.type-weekend .session-type-badge, .session-type-badge.type-weekend { background: var(--teal-bg);   color: var(--teal);      border-color: var(--teal-border); }
.type-private .session-type-badge, .session-type-badge.type-private { background: var(--purple-bg); color: var(--purple);    border-color: var(--purple-border); }

/* Capacity bar — replaces the old dot-grid with a single legible progress bar */
.capacity-bar-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.capacity-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.capacity-bar-labels strong { color: var(--text-primary); font-weight: 600; }
.capacity-bar { height: 6px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.capacity-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--frost-600);
  transition: width var(--dur) var(--ease);
}
.capacity-bar-fill.state-nearly_full { background: linear-gradient(90deg, var(--flame-500), var(--flame-600)); }
.capacity-bar-fill.state-full        { background: var(--text-muted); }

.private-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Legacy alias */
.spaces-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer: price + CTA, separated from the info zone above */
.session-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}
.session-card-price { display: flex; flex-direction: column; gap: 0.15rem; }
.price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.price-public {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}
.price-member-note {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
}
/* Legacy alias kept for any remaining usages */
.price-member {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  padding: 0.2rem 0.55rem;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-pill);
  align-self: center;
}

/* ---------- Badges — updated for light mode ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.badge-open    { background: var(--success-bg);    color: var(--success);  border-color: var(--success-border); }
.badge-nearly  { background: var(--warning-bg);    color: var(--warning);  border-color: var(--warning-border); }
.badge-full    { background: var(--error-bg);      color: var(--error);    border-color: var(--error-border); }
.badge-lock    { background: var(--purple-bg);     color: var(--purple);   border-color: var(--purple-border); }
.badge-cancel  { background: var(--bg-elevated);   color: var(--n-500);    border-color: var(--border); }
.badge-done    { background: var(--frost-50);      color: var(--frost-700);border-color: var(--frost-200); }
.badge-paid    { background: var(--success-bg);    color: var(--success);  border-color: var(--success-border); }
.badge-member  { background: var(--warning-bg);    color: #92400E;         border-color: var(--warning-border); }
.badge-guest   { background: var(--bg-elevated);   color: var(--n-600);    border-color: var(--border); }

/* ---------- Form Elements — Booksy clean ---------- */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); letter-spacing: 0.01em; }
.form-input {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--frost-700);
  box-shadow: var(--shadow-focus);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--error); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--frost-700);
  cursor: pointer;
}
.form-hint  { font-size: 0.78rem; color: var(--text-muted); }
.form-error { font-size: 0.78rem; color: var(--error); }

/* ---------- Steps Indicator ---------- */
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step-item {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--dur) var(--ease);
}
.step-item.active .step-circle {
  background: var(--frost-50);
  border-color: var(--frost-700);
  color: var(--frost-700);
}
.step-item.done .step-circle {
  background: var(--frost-700);
  border-color: var(--frost-700);
  color: #fff;
}
.step-item.done .step-line { background: var(--frost-700); }

/* ---------- Section Headers ---------- */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--frost-700), transparent);
  border-radius: 2px;
}

/* ---------- Filter Tabs — Booksy pill style ---------- */
.filter-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  min-width: 0;
  max-width: 100%;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.filter-tab:hover  { color: var(--text-primary); border-color: var(--border); }
.filter-tab.active { background: var(--frost-700); color: #fff; border-color: var(--frost-700); }

/* ---------- Date Separator ---------- */
.date-separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.date-separator::before, .date-separator::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}
.date-separator-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Membership Card — dark forest gradient ---------- */
.membership-card {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 50%, #1A140A 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.membership-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,163,127,0.14), transparent);
  pointer-events: none;
}
.membership-card::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,0.1), transparent);
  pointer-events: none;
}

/* ---------- Stat Card ---------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.4rem; }

/* ---------- Table ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  background: var(--bg-surface);
}
.data-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-surface); }
@media (max-width: 768px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; background: var(--bg-card); }
  .data-table td { padding: 0.6rem 1rem; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--n-900);
  color: #F1F5F9;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  pointer-events: auto;
  white-space: nowrap;
  animation: toast-in 0.3s var(--ease);
  box-shadow: var(--shadow-xl);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
@keyframes toast-in { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* ---------- Loader ---------- */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--frost-700);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success Icon ---------- */
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 2px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: color var(--dur) var(--ease);
}
.back-to-top:hover { color: var(--frost-700); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--frost-700); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero — dark forest, amber-lit ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background: linear-gradient(160deg, #0F2C22 0%, #0A0A0A 55%, #1A1206 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: normal;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 30%,  rgba(82,163,127,0.16)  0%, transparent 55%),
    radial-gradient(ellipse at 92% 70%, rgba(232,185,35,0.14)  0%, transparent 55%);
}
.hero-content { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Utility ---------- */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.w-full    { width: 100%; }
.text-center { text-align: center; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Animations ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fade-up 0.5s var(--ease) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ---------- Pulse ---------- */
@keyframes pulse-frost {
  0%,100% { box-shadow: 0 0 0 0 rgba(82,163,127,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(82,163,127,0); }
}
.pulse-frost { animation: pulse-frost 2.5s ease infinite; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--n-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--n-400); }

/* ---------- Selection ---------- */
::selection { background: rgba(232,185,35,0.25); color: var(--text-primary); }

/* ---------- Booksy-style info strip ---------- */
.info-strip {
  background: var(--frost-50);
  border: 1px solid var(--frost-100);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--frost-700);
}

/* ---------- Chip / tag ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.chip-frost { background: var(--frost-50);  color: var(--frost-700); border-color: var(--frost-200); }
.chip-flame { background: var(--flame-50);  color: var(--flame-800); border-color: var(--flame-200); }

/* ---------- Page header (timetable, booking pages) ---------- */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  box-shadow: var(--shadow-xs);
}

/* ---------- Savings badge ---------- */
.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

/* ---------- Scale-in animation (used in confirmation) ---------- */
@keyframes scale-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ---------- FAQ disclosure ---------- */
details summary { list-style: none; position: relative; padding-right: 1.75rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  color: var(--frost-700);
  font-size: 1.1rem;
  transition: transform var(--dur) var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }

/* ---------- Space card photo (Our Spaces, image-topped cards) ---------- */
.space-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1.5rem -1.5rem 1.25rem;
  position: relative;
}
.space-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.glass-card:hover .space-card-photo img { transform: scale(1.06); }
.space-card-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.35) 0%, transparent 40%);
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-xs);
}
.gallery-tile.tall { aspect-ratio: 4 / 5; }
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.15) 45%, transparent 70%);
}
.gallery-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.9rem;
  z-index: 1;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.gallery-caption span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ---------- Availability Calendar Widget ---------- */
.avail-cal-card { padding: 1.75rem; }
.avail-cal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.avail-cal-quick { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.avail-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.avail-cal-month {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}
.avail-cal-navbtn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.avail-cal-navbtn:hover:not(:disabled) { color: var(--text-primary); border-color: var(--frost-600); }
.avail-cal-navbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.avail-cal-weekdays, .avail-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.avail-cal-weekdays {
  margin-bottom: 0.4rem;
}
.avail-cal-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.avail-cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  background: var(--bg-elevated);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.avail-cal-day:hover:not(.is-disabled) { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.avail-cal-day .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.avail-cal-day.is-empty { visibility: hidden; }
.avail-cal-day.is-past { opacity: 0.3; cursor: not-allowed; }
.avail-cal-day.is-today { border-color: var(--frost-600); color: var(--text-primary); }
.avail-cal-day.status-available { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.avail-cal-day.status-available:hover { border-color: var(--success); }
.avail-cal-day.status-limited { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.avail-cal-day.status-limited:hover { border-color: var(--warning); }
.avail-cal-day.status-full { background: var(--bg-surface); color: var(--text-muted); border-color: var(--border); text-decoration: line-through; text-decoration-color: var(--border); }
.avail-cal-day.status-none:not(.is-past) { background: var(--bg-surface); color: var(--text-muted); border-style: dashed; border-color: var(--border); }
.avail-cal-legend {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
}
.avail-cal-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.avail-cal-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.avail-cal-legend .dot.available { background: var(--success); }
.avail-cal-legend .dot.limited   { background: var(--warning); }
.avail-cal-legend .dot.full      { background: var(--text-muted); }
.avail-cal-legend .dot.none      { background: transparent; border: 1.5px dashed var(--border); }
@media (max-width: 640px) {
  .avail-cal-card { padding: 1.25rem; }
  .avail-cal-day { font-size: 0.75rem; border-radius: var(--radius-sm); }
  .avail-cal-weekdays span { font-size: 0.6rem; }
  .avail-cal-month { font-size: 0.9rem; min-width: 110px; }
  .avail-cal-legend { gap: 0.75rem; }
}

/* ---------- Waitlist CTA + Modal ---------- */
.waitlist-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
}
.waitlist-strip-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--flame-50);
  border: 1px solid var(--flame-200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--flame-600);
}
@media (max-width: 640px) { .waitlist-strip { flex-direction: column; text-align: center; padding: 1.5rem; } }

.wl-overlay {
  position: fixed; inset: 0;
  background: rgba(5,7,5,0.65);
  backdrop-filter: blur(2px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wl-overlay.open { display: flex; }
.wl-modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.85rem;
}
.wl-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.wl-modal-close {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.wl-modal-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.wl-modal .form-group { margin-bottom: 1rem; }
.wl-modal-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
}
.wl-modal-note.show { display: block; }
@media (max-width: 480px) { .wl-modal { padding: 1.5rem; } }
