:root {
  /* Colors - Tonal Depth & Vibrancy (from DESIGN.md) */
  --primary: #a83206; /* Appetizing Heat */
  --primary-container: #ff784e;
  --on-primary: #ffefeb;
  
  --secondary: #0e666a; /* Sophisticated Calm Teal */
  --secondary-container: #a6eff3;
  --on-secondary-container: #005b5f;
  --on-secondary: #c8fcff;
  
  --tertiary: #feb300; /* Star colors */
  --on-tertiary: #382400;
  
  --background: #fff4f3; /* Surface base */
  --on-background: #4e2120; /* NO pure black */
  
  --surface: #fff4f3;
  --on-surface: #4e2120;
  --on-surface-variant: #834c4a;
  
  --surface-container-lowest: #ffffff;
  --surface-container-low: #ffedeb;
  --surface-container: #ffe1df;
  --surface-container-high: #ffdad7;
  --surface-container-highest: #ffd2cf;
  
  --outline-variant: #e09c98;
  
  /* Typography */
  --font-headline: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  
  /* Spacing & Radius */
  --radius-lg: 0.5rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 80px; /* Space for bottom nav */
}

h1, h2, h3, h4, .headline {
  font-family: var(--font-headline);
}

/* Glass & Gradient Styles */
.glass {
  background: rgba(255, 244, 243, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.primary-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Components (from DESIGN.md rules) */

.btn {
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  box-shadow: 0 12px 24px rgba(168, 50, 6, 0.25);
}

.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.card {
  background-color: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  border: none; /* Mandatory No-Line Rule */
}

.card:hover {
  transform: translateY(-4px);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-container);
}

.chip {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-unselected {
  background-color: var(--surface-container-high);
  color: var(--on-surface-variant);
}

.chip-selected {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* Navigation Shell */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 244, 243, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  z-index: 100;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -4px 24px rgba(78, 33, 32, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--on-surface);
  opacity: 0.6;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.nav-item.active {
  opacity: 1;
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.nav-item span.icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* Shadow principle (from DESIGN.md) */
.lifted {
  box-shadow: 0 24px 24px rgba(78, 33, 32, 0.06);
}

/* Leaflet Custom Markers */
.custom-marker {
  background: none;
  border: none;
}

.explore-marker {
  width: 44px;
  height: 44px;
}

.expert-marker {
  width: 56px;
  height: 56px;
}
