:root {
  /* Color Tokens */
  --bg-surface: #ffffff;
  --bg-primary: #ffffff;
  /* One and two steps below the surface: soft boxes, chips, hover fills.
     Referenced by ~60 stylesheets; until now they were undefined and
     resolved to transparent. */
  --bg-subtle: #f9fafb;
  --bg-hover: #f3f4f6;
  /* Surface aliases: names components used for the same three greys. */
  --bg-default: var(--bg-surface);
  --bg-secondary: var(--bg-subtle);
  --bg-surface-secondary: var(--bg-subtle);
  --surface-secondary: var(--bg-subtle);
  --bg-muted: #f3f4f6;
  --bg-tertiary: #f3f4f6;
  --surface-tertiary: #f3f4f6;
  --neutral-100: #f3f4f6;
  --bg-surface-hover: var(--bg-hover);
  --bg-quaternary: #e5e7eb;
  --white: #ffffff;
  --border-subtle: #e5e7eb;
  --border-default: #d1d5db;
  /* One step darker than default: emphasised cards, focused inputs, hover */
  --border-strong: #9ca3af;
  --border-hover: var(--border-strong);
  --border-emphasis: var(--border-strong);
  --color-border: var(--border-subtle);
  --fg-strong: #111827;
  --fg-default: #374151;
  --fg-muted: #6b7280;
  --fg-subtle: #9ca3af;
  /* Ink aliases: the strong and muted text colours under older names */
  --fg-primary: var(--fg-strong);
  --color-text: var(--fg-strong);
  --fg-secondary: var(--fg-muted);
  --color-text-secondary: var(--fg-muted);
  --neutral-600: #4b5563;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  /* Brand aliases: names components used for the same blue */
  --accent: var(--brand-600);
  --accent-foreground: var(--fg-on-primary);
  --primary-hover: var(--brand-700);
  --primary-dark: var(--brand-800);
  --primary-light: var(--brand-100);
  --primary-muted: var(--brand-100);
  --primary-subtle: var(--brand-50);
  --primary-bg: var(--brand-50);
  --primary-rgb: 37, 99, 235;
  --primary-alpha-10: rgba(37, 99, 235, 0.1);
  --primary-alpha-20: rgba(37, 99, 235, 0.2);
  /* The MCP authorize page's dark action button (its own fallback said so) */
  --color-primary: var(--fg-strong);
  --focus-ring: 2px solid var(--brand-600);

  /* Explore categories — map pins and small colour cues. One hue per category. */
  --category-eat: #f97316;
  --category-drink: #8b5cf6;
  --category-see: #0ea5e9;
  --category-experience: #ec4899;
  --category-explore: #10b981;
  --category-shop: #f59e0b;
  --category-relax: #14b8a6;
  --category-live: #a855f7;
  --category-stay: #2563eb;
  --category-guides: #64748b;
  --overlay: rgba(0, 0, 0, 0.4);
  --overlay-light: rgba(255, 255, 255, 0.9);
  /* Dimmed layer behind modals; fourteen of them referenced this name */
  --overlay-backdrop: var(--overlay);

  /* Warning/Rating colors */
  --color-warning-50: #fffbeb;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-700: #b45309; /* text on --color-warning-50 (4.8:1) */

  /* Destructive/Error colors */
  --destructive: #dc2626;
  --destructive-hover: #b91c1c;
  --destructive-foreground: #ffffff;
  --destructive-bg: rgba(220, 38, 38, 0.1);

  /* Primary button foreground (text on primary color backgrounds) */
  --fg-on-primary: #ffffff;
  --fg-on-brand: var(--fg-on-primary);
  --fg-on-accent: var(--fg-on-primary);

  /* Inverse foreground (white text on dark backgrounds) */
  --fg-inverse: #ffffff;

  /* Priority Colors */
  --priority-high-bg: #fef2f2;
  --priority-high-fg: #dc2626;
  --priority-high-border: #fca5a5;

  --priority-medium-bg: var(--color-warning-50);
  --priority-medium-fg: var(--color-warning-700);
  --priority-medium-border: var(--color-warning-400);

  --priority-low-bg: #f0fdf4;
  --priority-low-fg: #16a34a;
  --priority-low-border: #86efac;

  /* Semantic aliases. Components were written against these names while the
     canonical tokens above use other ones; until now they were undefined and
     every declaration using them was dropped. Each points at the palette
     value it always meant (Tailwind red / green / amber scales). */
  --error: var(--destructive);
  --error-50: #fef2f2;
  --error-200: #fecaca;
  --error-300: #fca5a5;
  --error-600: var(--destructive);
  --error-700: var(--destructive-hover);
  --error-bg: #fef2f2;
  --error-light: #fef2f2;
  --error-subtle: #fef2f2;
  --error-border: #fca5a5;
  --border-error: var(--error-border);
  --bg-error: var(--error-bg);
  --fg-on-error: var(--destructive-foreground);
  --danger: var(--destructive);
  --danger-hover: var(--destructive-hover);
  --danger-alpha-10: var(--destructive-bg);
  --success: var(--priority-low-fg);
  --success-50: var(--priority-low-bg);
  --success-bg: var(--priority-low-bg);
  --success-700: #15803d;
  --warning: var(--color-warning-500);
  --warning-50: var(--color-warning-50);
  --warning-500: var(--color-warning-500);
  --warning-700: #b45309;
  --warning-dark: #b45309;
  --warning-alpha-10: rgba(245, 158, 11, 0.1);
  --warning-alpha-20: rgba(245, 158, 11, 0.2);

  /* Typography Tokens */
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-md: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-snug: 1.375;

  /* Typography aliases. Components were written against Tailwind-style
     names; until now they were undefined, so those weights and sizes were
     dropped and the text inherited whatever its parent had. */
  --font-regular: var(--weight-regular);
  --weight-normal: var(--weight-regular);
  --font-medium: var(--weight-medium);
  --font-weight-medium: var(--weight-medium);
  --font-semibold: var(--weight-semibold);
  --font-bold: var(--weight-bold);
  --text-base: var(--text-md);
  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-md: var(--text-md);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);
  --line-height-sm: var(--leading-tight);
  /* Despite the names these two are colours: the strong and muted text inks */
  --text-primary: var(--fg-strong);
  --text-secondary: var(--fg-muted);
  --leading-relaxed: 1.75;

  /* Spacing Tokens */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  /* Half steps and the missing 28px, used by the home and accessibility rows */
  --space-1-5: 0.375rem; /* 6px */
  --space-2-5: 0.625rem; /* 10px */
  --space-7: 1.75rem; /* 28px */
  /* Media card size on the home rows */
  --card-width-md: 260px;
  --card-height-md: 320px;

  /* Border Radius Tokens */
  --radius-none: 0;
  --radius-xs: 0.125rem; /* 2px */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.75rem; /* 12px */
  --radius-lg: 1rem; /* 16px */
  --radius-xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* Shadow/Elevation Tokens */
  --elevation-0: none;
  --elevation-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --elevation-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Shadow Tokens (semantic aliases for elevation) */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: var(--elevation-1);
  --shadow-md: var(--elevation-2);
  --shadow-lg: var(--elevation-3);
  --shadow-xl: var(--elevation-4);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Overlay Tokens */
  --overlay-60: rgba(0, 0, 0, 0.6);
  --overlay-70: rgba(0, 0, 0, 0.7);
  --overlay-80: rgba(0, 0, 0, 0.8);
  --overlay-90: rgba(0, 0, 0, 0.9);
  --overlay-95: rgba(0, 0, 0, 0.95);

  /* Motion/Animation Tokens */
  --dur-instant: 0ms;
  --dur-fast: 150ms;
  --dur-moderate: 250ms;
  --dur-slow: 350ms;
  --dur-slower: 500ms;
  --dur-skeleton: 1400ms; /* loading pulse cycle */
  --dur-normal: var(--dur-moderate);
  --dur-standard: var(--dur-moderate);

  --ease-linear: linear;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index Tokens */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-modal: 1030;
  --z-popover: 1040;
  --z-tooltip: 1050;

  /* Layout Tokens */
  --header-height: 250px; /* PageHeader standard height */
  /* Sticky trip tabs (44px touch target + 1px border): what sticks below them offsets by this */
  --trip-tabs-height: calc(var(--space-10) + var(--space-1) + 1px);
}

/* Dark Mode Support - DISABLED */
/* @media (prefers-color-scheme: dark) {
  :root {
    --bg-surface: #1f2937;
    --bg-primary: #111827;
    --bg-subtle: #1f2937;
    --bg-hover: #374151;
    --border-subtle: #374151;
    --border-default: #4b5563;
    --fg-strong: #f9fafb;
    --fg-default: #e5e7eb;
    --fg-muted: #9ca3af;
    --fg-subtle: #6b7280;
    --overlay: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(0, 0, 0, 0.8);

    --elevation-1: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --elevation-4: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.14);
  }
} */

/* Utility classes for focus states */
.focus-visible-outline:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.focus-visible-ring:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}
