:root {
  /* Park colors - unchanged */
  --mk-color: #1a3a6b;
  --ep-color: #6b3fa0;
  --hs-color: #b8860b;
  --ak-color: #2d6b3f;
  --wp-color: #0099cc;
  --ds-color: #cc3366;
  --rest-color: #888;
  /* Structural tokens only - visual tokens set by mode */
  --primary: #1B3A6B;
  --primary-hover: #142D52;
  --primary-light: #E8EEF6;
  --gold: #D4A843;
  --gold-hover: #B8912E;
  --gold-light: #FDF6E3;
  --accent-gradient: linear-gradient(135deg, #1B3A6B, #D4A843);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Legacy inline-style tokens — overridden per-mode below */
  --sec: #6b7280;
  --bdr: #e5e7eb;
}


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

body {
  line-height: 1.6;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.3s ease;
}

/* ====================== MAIN CONTENT ====================== */
#mainContent {
  grid-row: 1;
  grid-column: 2;
  overflow-y: auto;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
}
#contentHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}
#contentHeader h1 {
  margin: 0;
}

/* ====================== VIEW SYSTEM ====================== */
.view { display: none; }
.view.active { display: block; }

/* Per-view sub-tab sections — only show the active one */
#view-overview .overview-section { display: none; }
#view-overview .overview-section.active { display: block; }
#view-plan .plan-section { display: none; }
#view-plan .plan-section.active { display: block; }
#view-reservations .reservations-section { display: none; }
#view-reservations .reservations-section.active { display: block; }
#view-attractions .attractions-section { display: none; }
#view-attractions .attractions-section.active { display: block; }
#view-tools .tools-section { display: none; }
#view-tools .tools-section.active { display: block; }

/* ====================== STRUCTURAL/LAYOUT CSS ONLY ====================== */
/* No colors, backgrounds, fonts, shadows, or borders here — those are in mode blocks */

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input[type="number"] { width: 60px; }
select { min-width: 140px; }

/* Review section */
.review-section {
  margin-bottom: 28px;
}

/* Export */
#exportContainer {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1200px;
  padding: 24px;
}
#exportPrintArea { display: none; }

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s;
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skip-to-content link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* App brand */
.app-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  position: relative;
}
.sparkle {
  position: absolute;
  pointer-events: none;
}

/* Auth UI */
.auth-section {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.member-row img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.member-row .member-info { flex: 1; }
.pending-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Empty state layout */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
