/* ===========================
   Design System Variables
   =========================== */

:root {
  /* Brand Colors */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;
  --color-secondary: #764ba2;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-dark: #059669;
  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-dark: #d97706;
  --color-danger: #ef4444;
  --color-danger-light: #f87171;
  --color-danger-dark: #dc2626;
  --color-info: #3b82f6;
  --color-info-light: #60a5fa;
  --color-info-dark: #2563eb;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Special Effects */
  --color-airbnb: #ff5a5f;
  --color-live-data: linear-gradient(135deg, #ff6b6b, #ee5a24);
  --color-revenue: linear-gradient(135deg, #00d4aa, #00b8a9);
  --color-gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  
  /* Spacing Scale */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 0.75rem;    /* 12px */
  --space-lg: 1rem;       /* 16px */
  --space-xl: 1.5rem;     /* 24px */
  --space-2xl: 2rem;      /* 32px */
  --space-3xl: 2.5rem;    /* 40px */
  --space-4xl: 3rem;      /* 48px */
  --space-5xl: 4rem;      /* 64px */
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Border Radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-all: all var(--transition-base);
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ===========================
   Base Component Classes
   =========================== */

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-all);
}

.card-sm {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.card-lg {
  padding: var(--space-3xl);
  border-radius: var(--radius-2xl);
}

.card-elevated {
  box-shadow: var(--shadow-xl);
  transform: translateY(0);
}

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

.card-interactive {
  cursor: pointer;
  transition: var(--transition-all);
}

.card-interactive:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.badge-success {
  background: var(--color-success);
  color: var(--color-white);
}

.badge-warning {
  background: var(--color-warning);
  color: var(--color-white);
}

.badge-danger {
  background: var(--color-danger);
  color: var(--color-white);
}

.badge-info {
  background: var(--color-info);
  color: var(--color-white);
}

.badge-live-data {
  background: var(--color-live-data);
  color: var(--color-white);
  animation: pulse 3s infinite;
}

.badge-airbnb {
  background: var(--color-airbnb);
  color: var(--color-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-all);
  min-height: 44px; /* Touch-friendly */
}

.btn-primary {
  background: var(--color-gradient-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-300);
}

.btn-secondary:hover {
  border-color: var(--color-gray-400);
  background: var(--color-gray-50);
}

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

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

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

/* Typography */
.text-gradient {
  background: var(--color-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-revenue {
  background: var(--color-revenue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  /* Prevent horizontal overflow */
  overflow-x: hidden;
}

.container-wide {
  max-width: 1400px;
  overflow-x: hidden;
}

.container-narrow {
  max-width: 800px;
  overflow-x: hidden;
}

/* Responsive container adjustments */
@media (max-width: 1440px) {
  .container,
  .container-wide {
    max-width: 100%;
    padding: 0 var(--space-md);
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide,
  .container-narrow {
    padding: 0 var(--space-sm);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-responsive {
  grid-template-columns: 1fr;
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Spacing */
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }
.m-2xl { margin: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    transform: scale(1.05);
  }
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounceSlow 1.5s ease-in-out infinite;
}

.animate-fade-in-out {
  animation: fadeInOut 2s ease-in-out infinite;
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

/* ===========================
   Spacing Utilities
   =========================== */

/* Margin utilities */
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2 { margin-top: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }

/* Padding utilities */
.pl-lg { padding-left: var(--space-lg); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.p-md { padding: var(--space-md); }
.p-3 { padding: 0.75rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

/* Space between utilities */
.space-y-2xl > * + * { margin-top: var(--space-2xl); }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Width utilities */
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }

/* Border utilities */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-t-2 { border-top-width: 2px; }
.border-gray-200 { border-color: var(--color-gray-200); }
.border-gray-300 { border-color: var(--color-gray-300); }

/* Text utilities */
.text-right { text-align: right; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-500 { color: var(--color-gray-500); }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-700 { color: var(--color-gray-700); }
.text-gray-900 { color: var(--color-gray-900); }
.text-green-600 { color: var(--color-success); }
.text-blue-600 { color: var(--color-info); }
.text-red-600 { color: var(--color-danger); }
.text-orange-600 { color: var(--color-warning); }

/* Font weight utilities */
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.italic { font-style: italic; }

/* Background utilities */
.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-gray-100 { background-color: var(--color-gray-100); }
.bg-gray-200 { background-color: var(--color-gray-200); }
.bg-white { background-color: var(--color-white); }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #d1fae5; }
.bg-green-500 { background-color: var(--color-success); }
.bg-purple-100 { background-color: #e9d5ff; }
.bg-purple-500 { background-color: #8b5cf6; }
.bg-purple-600 { background-color: #7c3aed; }
.bg-purple-700 { background-color: #6d28d9; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500 { background-color: var(--color-danger); }
.bg-blue-500 { background-color: var(--color-info); }
.bg-blue-600 { background-color: #2563eb; }
.bg-orange-500 { background-color: var(--color-warning); }
.bg-pink-500 { background-color: #ec4899; }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }

/* Text color utilities for indicators */
.text-white { color: var(--color-white); }
.text-green-700 { color: #047857; }
.text-purple-100 { color: #e9d5ff; }
.text-purple-700 { color: #6b21a8; }
.text-yellow-700 { color: #a16207; }
.text-red-700 { color: #b91c1c; }

/* Focus utilities */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px; }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px var(--color-info); }

/* Hover utilities */
.hover\:text-blue-800:hover { color: var(--color-info-dark); }

/* Display utilities */
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.flex-wrap { flex-wrap: wrap; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Rounded utilities */
.rounded { border-radius: var(--radius-base); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }

/* Size utilities */
.h-48 { height: 12rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }

/* Object utilities */
.object-cover { object-fit: cover; }

/* Shadow utilities */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Gradient utilities */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-purple-600 { --tw-gradient-from: #7c3aed; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 58, 237, 0)); }
.to-purple-700 { --tw-gradient-to: #6d28d9; }
.from-red-500 { --tw-gradient-from: #ef4444; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0)); }
.to-pink-500 { --tw-gradient-to: #ec4899; }

/* More utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.-mt-4 { margin-top: -1rem; }
.ml-8 { margin-left: 2rem; }
.ml-auto { margin-left: auto; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* Text size utilities */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* Border utilities */
.border-gray-100 { border-color: #f3f4f6; }
.border-t-gray-100 { border-top-color: #f3f4f6; }
.border-l-4 { border-left-width: 4px; }
.border-green-200 { border-color: #86efac; }
.border-green-500 { border-color: var(--color-success); }
.border-yellow-200 { border-color: #fde047; }
.border-yellow-500 { border-color: var(--color-warning); }
.border-red-200 { border-color: #fecaca; }
.border-red-500 { border-color: var(--color-danger); }

/* Backdrop utilities */
.backdrop-blur { backdrop-filter: blur(8px); }

/* Opacity utilities */
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

/* Transition utilities */
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Transform utilities */
.transform { transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:-translate-y-1:hover { --tw-translate-y: -0.25rem; transform: translateY(-0.25rem); }
.hover\:scale-\[1\.02\]:hover { --tw-scale-x: 1.02; --tw-scale-y: 1.02; transform: scale(1.02); }

/* Additional text utilities for mockup */
.text-base { font-size: var(--font-size-base); }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

/* Flex utilities */
.flex-1 { flex: 1 1 0%; }
.items-start { align-items: flex-start; }
.flex-shrink-0 { flex-shrink: 0; }

/* Width/Height utilities */
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }

/* Text overflow utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.max-w-xs { max-width: 20rem; }
.min-w-0 { min-width: 0; }

/* Additional responsive utilities */
.whitespace-nowrap { white-space: nowrap; }

/* Overflow utilities for responsive tables */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-hidden { overflow-y: hidden; }

/* Responsive text sizes */
@media (max-width: 1280px) {
  .text-3xl { font-size: 1.875rem; }
  .text-2xl { font-size: 1.5rem; }
  .text-xl { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  .text-3xl { font-size: 1.5rem; }
  .text-2xl { font-size: 1.25rem; }
  .text-xl { font-size: 1.125rem; }
  .text-lg { font-size: 1rem; }
}

/* Responsive Design */
@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(2, 1fr); } /* Reduced for medium screens */
  .md\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Medium screen breakpoint for laptops */
@media (min-width: 768px) and (max-width: 1280px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  /* Adjust grids for laptop screens */
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  
  /* Reduce card padding */
  .card { padding: var(--space-lg); }
  .card-lg { padding: var(--space-xl); }
}

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } /* Restore full grid */
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Table responsive styles */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 100%;
}

/* Prevent horizontal scrolling globally */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}
/* Mobile/Desktop visibility utilities */
.mobile-hidden { display: block; }
.mobile-only { display: none; }

@media (max-width: 640px) {
  .mobile-hidden { display: none; }
  .mobile-only { display: block; }
}

/* Property Confirmation Component Styles */

/* Overlay and Container */
.property-confirmation-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    overflow-y: auto;
}

.property-confirmation-container {
    width: 100%;
    max-width: 64rem; /* 1024px */
    margin: 0 auto;
}

.property-confirmation-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.property-confirmation-header {
    background: linear-gradient(135deg, var(--color-primary, #667eea), var(--color-secondary, #764ba2));
    color: white;
    padding: 2rem;
    text-align: center;
}

.property-confirmation-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.property-confirmation-icon svg {
    width: 2rem;
    height: 2rem;
}

.property-confirmation-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.property-confirmation-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Content Section */
.property-confirmation-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Property Grid */
.property-confirmation-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Property Image */
.property-confirmation-image-container {
    width: 200px;
    height: 150px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--color-gray-100, #f3f4f6);
}

.property-confirmation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-confirmation-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100, #f3f4f6);
    color: var(--color-gray-400, #9ca3af);
}

.property-confirmation-no-image svg {
    width: 3rem;
    height: 3rem;
}

/* Property Info */
.property-confirmation-info {
    background: var(--color-gray-50, #f9fafb);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.property-confirmation-info-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900, #111827);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-confirmation-info-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary, #667eea);
}

.property-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-200, #e5e7eb);
}

.property-detail-row:last-child {
    border-bottom: none;
}

.property-detail-label {
    font-weight: 500;
    color: var(--color-gray-600, #4b5563);
}

.property-detail-value {
    font-weight: 600;
    color: var(--color-gray-900, #111827);
    text-align: right;
}

.property-detail-value.price {
    color: var(--color-primary, #667eea);
    font-size: 1.125rem;
}

/* Analysis Type Section */
.analysis-type-section {
    margin-top: 2rem;
}

.analysis-type-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900, #111827);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-type-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary, #667eea);
}

.analysis-type-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Analysis Option Styles */
.analysis-option {
    display: block;
    cursor: pointer;
    position: relative;
}

.analysis-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.analysis-option-content {
    border: 2px solid var(--color-gray-200, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    background: white;
}

.analysis-option:hover .analysis-option-content {
    border-color: var(--color-primary-light, #818cf8);
    background: var(--color-gray-50, #f9fafb);
}

.analysis-option input:checked ~ .analysis-option-content {
    border-color: var(--color-primary, #667eea);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.analysis-option.disabled .analysis-option-content {
    opacity: 0.6;
    cursor: not-allowed;
}

.analysis-option-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gray-900, #111827);
}

.analysis-option-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.badge-recommended {
    background: var(--color-success-light, #34d399);
    color: var(--color-success-dark, #059669);
}

.badge-free {
    background: var(--color-info-light, #60a5fa);
    color: var(--color-info-dark, #2563eb);
}

.badge-premium {
    background: var(--color-warning-light, #fbbf24);
    color: var(--color-warning-dark, #d97706);
}

.analysis-option-description {
    color: var(--color-gray-600, #4b5563);
    font-size: 0.875rem;
    margin: 0;
}

.analysis-option-notice {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--color-info-light, #dbeafe);
    color: var(--color-info-dark, #1e40af);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.analysis-option-notice svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.analysis-option-notice.error {
    background: var(--color-danger-light, #fee2e2);
    color: var(--color-danger-dark, #991b1b);
}

.analysis-option-notice.admin {
    background: var(--color-success-light, #d1fae5);
    color: var(--color-success-dark, #065f46);
}

/* Action Buttons */
.property-confirmation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200, #e5e7eb);
}

.property-confirmation-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.property-confirmation-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.property-confirmation-btn-cancel {
    background: white;
    color: var(--color-gray-700, #374151);
    border: 1px solid var(--color-gray-300, #d1d5db);
}

.property-confirmation-btn-cancel:hover {
    background: var(--color-gray-50, #f9fafb);
    border-color: var(--color-gray-400, #9ca3af);
}

.property-confirmation-btn-primary {
    background: var(--color-primary, #667eea);
    color: white;
}

.property-confirmation-btn-primary:hover {
    background: var(--color-primary-dark, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-confirmation-overlay {
        padding: 0;
    }
    
    .property-confirmation-card {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    
    .property-confirmation-header {
        padding: 1.5rem;
    }
    
    .property-confirmation-title {
        font-size: 1.5rem;
    }
    
    .property-confirmation-content {
        padding: 1.5rem;
    }
    
    .property-confirmation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-confirmation-image-container {
        width: 100%;
        height: 200px;
    }
    
    .analysis-option-content {
        padding: 1rem;
    }
    
    .property-confirmation-actions {
        flex-direction: column-reverse;
    }
    
    .property-confirmation-btn {
        width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .property-confirmation-grid {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }
    
    .property-confirmation-image-container {
        width: 150px;
        height: 112px;
    }
}

/* ===========================
   Sidebar Navigation Styles
   =========================== */

/* Sidebar specific utilities */
.sidebar-nav {
    transition: width 0.3s ease;
}

.sidebar-collapsed {
    width: 4rem !important;
}

.sidebar-expanded {
    width: 16rem !important;
}

/* Sidebar item states */
.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    transform: translateX(2px);
}

.sidebar-item-active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.sidebar-item-active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.25rem;
    height: 1.5rem;
    background-color: var(--color-primary);
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Icon containers */
.sidebar-icon-container {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar-icon-container-active {
    background-color: rgba(59, 130, 246, 0.2);
}

/* Sidebar tooltips */
.sidebar-tooltip {
    position: absolute;
    left: 100%;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-gray-900);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.group:hover .sidebar-tooltip {
    opacity: 1;
}

/* Mobile sidebar (bottom navigation) */
@media (max-width: 768px) {
    .sidebar-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid var(--color-gray-100);
        box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 40;
    }
    
    .sidebar-mobile-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        font-size: 0.75rem;
        transition: all 0.2s ease;
    }
    
    .sidebar-mobile-item-active {
        color: var(--color-primary);
    }
    
    .sidebar-mobile-icon {
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.75rem;
        margin-bottom: 0.25rem;
        transition: all 0.2s ease;
    }
    
    .sidebar-mobile-item-active .sidebar-mobile-icon {
        background-color: rgba(59, 130, 246, 0.1);
    }
}

/* Gradient backgrounds for sidebar */
.bg-gradient-sidebar {
    background: linear-gradient(to bottom, var(--color-gray-50), white);
}

/* Additional utilities for sidebar */
.transition-width {
    transition-property: width;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.pointer-events-none {
    pointer-events: none;
}

.transform {
    transform: translateX(0);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:bg-gray-200 {
    background-color: var(--color-gray-200);
}