/* ============================================
   JUSTCHECKIN DESIGN SYSTEM — CSS Variables
   Booking.com-level professional travel UI
   ============================================ */

:root {
  /* --- Brand & UI Colors --- */
  --primary: #e94560;
  --primary-dark: #d63a54;
  --primary-light: #fff0f3;
  --primary-50: rgba(233, 69, 96, 0.05);
  --primary-100: rgba(233, 69, 96, 0.1);
  --primary-200: rgba(233, 69, 96, 0.2);
  --primary-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);

  --secondary: #1a3c6e;
  --secondary-dark: #0f2847;
  --secondary-light: #e8eef6;

  --accent: #f0a500;
  --accent-light: #fff8e7;

  /* --- Semantic Colors --- */
  --price-green: #008009;
  --rating-gold: #ffc107;
  --rating-bg: #003580;
  --urgent: #c00;
  --success: #008009;
  --success-light: #e8f8f0;
  --warning: #e9b44c;
  --warning-light: #fef8eb;
  --danger: #e94560;
  --danger-light: #fef2f4;
  --info: #3b82f6;
  --info-light: #eff6ff;

  /* --- Surfaces & Backgrounds --- */
  --body-bg: #f5f5f5;
  --card-bg: #ffffff;
  --surface: #fafafa;
  --surface-warm: #fdf6f0;
  --surface-cool: #f0f4ff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* --- Grays --- */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #1a1a2e;

  --white: #ffffff;
  --black: #000000;

  /* --- Borders --- */
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  /* --- Text --- */
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --text-light: #bbbbbb;
  --text-white: #ffffff;

  /* --- Typography --- */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 36px;
  --text-5xl: 44px;
  --text-display: 56px;
  --text-6xl: 72px;
  --letter-tight: -0.03em;
  --letter-display: -0.04em;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* --- Spacing --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(233, 69, 96, 0.15);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 8px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --container-max: 1100px;
  --container-sm: 800px;
  --container-xs: 520px;
  --sidebar-width: 260px;
  --nav-height: 56px;
  --topbar-height: 32px;

  /* --- Z-index --- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* Dark mode ready */
[data-theme="dark"] {
  --body-bg: #0d0d12;
  --card-bg: #16161e;
  --surface: #111118;
  --border: #222230;
  --border-light: #1a1a25;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
}
