/* ═══════════════════════════════════════════════════════════════════
   The Family Hub — Design System
   Airbnb meets food magazine. Warm, elegant, family-friendly.
   ═══════════════════════════════════════════════════════════════════ */

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

/* ─── CSS Variables ────────────────────────────────────────────── */
:root {
  --cream:       #FFF8F0;
  --cream-dark:  #F5EDE3;
  --warm-white:  #FEFCF9;
  --orange:      #E8723A;
  --orange-light:#FDF0E8;
  --orange-dark: #C55A2B;
  --green:       #2D6A4F;
  --green-light: #E8F5EE;
  --green-dark:  #1B4332;
  --navy:        #1B2A4A;
  --navy-light:  #2E4068;
  --teal:        #2E86AB;
  --teal-light:  #E3F2F9;
  --rose:        #A23B72;
  --rose-light:  #F8E8F2;
  --gold:        #D4A853;
  --gold-light:  #FFF6E0;
  --text:        #2C2C2C;
  --text-light:  #6B7280;
  --text-muted:  #9CA3AF;
  --border:      #E8E0D6;
  --border-light:#F0EBE4;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-md:   0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Member colors */
  --michael:  #2E86AB;
  --edwina:   #A23B72;
  --johnny:   #F18F01;
  --nicole:   #C73E1D;
}

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

html {
  scroll-behavior: smooth;
  /* Global font-size shrink (Michael's request May 19 2026):
     14px base scales every rem-unit on the site down by ~12.5%.
     Was: browser default 16px. To revert: remove font-size below. */
  font-size: 14px;
}
@media (max-width: 720px) {
  html { font-size: 13px; } /* Slightly tighter on mobile */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; }

/* ─── Navigation ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.nav-brand:hover { color: var(--orange); }

.nav-brand span { font-size: 1.6rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.nav-links a.active {
  background: var(--navy);
  color: white;
}

.nav-links a .nav-icon { font-size: 1.1rem; }

.nav-members {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.member-avatar:hover {
  transform: scale(1.15);
  border-color: white;
  box-shadow: var(--shadow-md);
}

.member-avatar.michael { background: var(--michael); }
.member-avatar.edwina { background: var(--edwina); }
.member-avatar.johnny { background: var(--johnny); }
.member-avatar.nicole { background: var(--nicole); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

/* ─── Page Hero ────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal) 100%);
  color: white;
  padding: 3rem 2rem 2.5rem;
  margin-bottom: 2rem;
}

.page-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.page-hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
}

.page-hero.orange { background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, var(--gold) 100%); }
.page-hero.green { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #52B788 100%); }
.page-hero.rose { background: linear-gradient(135deg, #6B1D4A 0%, var(--rose) 50%, #D4629E 100%); }
.page-hero.teal { background: linear-gradient(135deg, #1A5276 0%, var(--teal) 50%, #48C9B0 100%); }

/* ─── Container ────────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body { padding: 1.5rem; }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--border) 100%);
}

/* ─── Grid Layouts ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover { background: var(--orange-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary {
  background: var(--navy);
  color: white;
}
.btn-secondary:hover { background: var(--navy-light); color: white; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { background: var(--cream-dark); color: var(--text); }

.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: var(--green-dark); color: white; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; border-radius: 12px; }

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.12);
}

.form-textarea { min-height: 100px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── Badges / Tags ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-rose { background: var(--rose-light); color: var(--rose); }
.badge-gold { background: var(--gold-light); color: #A67C00; }
.badge-navy { background: #E8EDF5; color: var(--navy); }

.badge-michael { background: rgba(46, 134, 171, 0.12); color: var(--michael); }
.badge-edwina { background: rgba(162, 59, 114, 0.12); color: var(--edwina); }
.badge-johnny { background: rgba(241, 143, 1, 0.12); color: var(--johnny); }
.badge-nicole { background: rgba(199, 62, 29, 0.12); color: var(--nicole); }

/* ─── Status indicators ────────────────────────────────────────── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.want { background: var(--orange); }
.status-dot.been { background: var(--green); }

/* ─── Stars ────────────────────────────────────────────────────── */
.stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }

/* ─── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 0;
}

.modal-header h2 {
  font-size: 1.5rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body { padding: 1.5rem 1.75rem; }

.modal-footer {
  padding: 1rem 1.75rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ─── Tabs ─────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--cream-dark);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.tab:hover { color: var(--text); }
.tab.active { background: white; color: var(--navy); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ─── Filter Bar ───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 160px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--cream-dark);
  color: var(--text-light);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.filter-chip:hover { border-color: var(--orange); color: var(--orange); }
.filter-chip.active { background: var(--orange); color: white; border-color: var(--orange); }

/* ─── Empty State ──────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ─── Toggle Switch ────────────────────────────────────────────── */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ─── Dashboard Overview Cards ─────────────────────────────────── */
.overview-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.overview-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.overview-card-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.overview-card-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.overview-card-stat {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* ─── Activity Feed ────────────────────────────────────────────── */
.activity-feed { list-style: none; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-text {
  flex: 1;
}

.activity-text strong { color: var(--navy); }

.activity-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Map container ────────────────────────────────────────────── */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

/* ─── Restaurant card specific ─────────────────────────────────── */
.restaurant-card {
  cursor: pointer;
}

.restaurant-card .card-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.restaurant-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Recipe card specific ─────────────────────────────────────── */
.recipe-card .recipe-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.recipe-time {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.recipe-time span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Travel card specific ─────────────────────────────────────── */
.travel-card .travel-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.activity-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--cream-dark);
  color: var(--text-light);
}

/* ─── Checklist items ──────────────────────────────────────────── */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.checklist-item:hover { box-shadow: var(--shadow-sm); }

.checklist-item.completed { opacity: 0.6; }
.checklist-item.completed .checklist-title { text-decoration: line-through; }

.checklist-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  background: none;
  color: transparent;
  font-size: 0.75rem;
}

.checklist-check:hover { border-color: var(--green); }
.checklist-check.checked {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.checklist-content { flex: 1; min-width: 0; }
.checklist-title { font-weight: 600; font-size: 0.92rem; }
.checklist-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 0.15rem; }

.checklist-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: var(--transition);
}

.checklist-item:hover .checklist-actions { opacity: 1; }

/* ─── Welcome Hero (Home page) ─────────────────────────────────── */
.welcome-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2A3F6F 30%, var(--teal) 70%, #48C9B0 100%);
  color: white;
  padding: 4rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.welcome-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.welcome-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.welcome-hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.family-avatars {
  display: flex;
  gap: 1rem;
}

.family-avatar-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(10px);
}

.family-avatar-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.2);
}

.family-avatar-card .name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── Toolbar ──────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ─── Section header ───────────────────────────────────────────── */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ─── Detail panel ─────────────────────────────────────────────── */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-header-img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream-dark), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.detail-info h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }

/* ─── Calendar specific ────────────────────────────────────────── */
.fc { font-family: 'Inter', sans-serif !important; }
.fc .fc-toolbar-title { font-family: 'Playfair Display', serif !important; font-size: 1.5rem !important; }
.fc .fc-button-primary {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}
.fc .fc-button-primary:hover { background: var(--navy-light) !important; }
.fc .fc-button-active { background: var(--orange) !important; border-color: var(--orange) !important; }
.fc .fc-daygrid-day-number { font-weight: 500; color: var(--text); }
.fc .fc-event {
  border: none !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}
.fc .fc-daygrid-day.fc-day-today { background: var(--orange-light) !important; }

/* ─── Grocery list ─────────────────────────────────────────────── */
.grocery-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
}

.grocery-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  break-inside: avoid;
}

.grocery-item::before {
  content: '☐';
  color: var(--text-muted);
  font-size: 1rem;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  .nav-members { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .welcome-hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .family-avatars { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .grocery-list { columns: 1; }
  .container { padding: 0 1rem 2rem; }
  .modal { margin: 1rem; max-height: 90vh; }
}

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Staggered card animations */
.grid-auto > *:nth-child(1) { animation-delay: 0s; }
.grid-auto > *:nth-child(2) { animation-delay: 0.05s; }
.grid-auto > *:nth-child(3) { animation-delay: 0.1s; }
.grid-auto > *:nth-child(4) { animation-delay: 0.15s; }
.grid-auto > *:nth-child(5) { animation-delay: 0.2s; }
.grid-auto > *:nth-child(6) { animation-delay: 0.25s; }

/* ─── Scrollbar styling ────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Tooltip ──────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ─── Leaflet popup override ───────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.88rem !important;
}

.leaflet-popup-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
