/* ===== CSS Variables ===== */
:root {
  /* Enhanced Color Palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #7c3aed;
  --accent: #10b981;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fed7aa;
  
  /* Sophisticated Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
  
  /* Enhanced Color System */
  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #2563eb;
  
  /* Advanced Shadow System */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
  --shadow-orange: 0 8px 32px rgba(249, 115, 22, 0.3);
  
  /* Enhanced Border System */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  
  /* Refined Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* Advanced Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Z-index Management */
  --z-sidebar: 100;
  --z-modal: 1000;
  --z-overlay: 999;
  --z-tooltip: 1001;
  
  /* Mobile Variables */
  --mobile-padding: 16px;
  --mobile-gap: 12px;
  --touch-target: 44px;
}

/* ===== Enhanced Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--gradient-hero);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Magical Background Animation ===== */
.app-container {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.app-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  animation: backgroundShift 15s ease-in-out infinite;
}

.app-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="glow"><feGaussianBlur stdDeviation="2" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.6)" filter="url(%23glow)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.4)" filter="url(%23glow)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.5)" filter="url(%23glow)"/><circle cx="90" cy="80" r="2.5" fill="rgba(255,255,255,0.3)" filter="url(%23glow)"/><circle cx="10" cy="90" r="1.5" fill="rgba(255,255,255,0.7)" filter="url(%23glow)"/></svg>');
  animation: float 20s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(120deg); }
  66% { transform: translateY(-5px) rotate(240deg); }
}

/* ===== Glassmorphism Chat Application ===== */
.chat-app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  box-shadow: var(--shadow-2xl);
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
  animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

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

/* ===== Premium Sidebar Design ===== */
.sidebar {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-lg);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-sidebar);
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
}

/* ===== Elegant Brand Section ===== */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.brand i {
  font-size: 28px;
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== Refined Quick Actions ===== */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quick-actions h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.quick-btn {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
  width: 100%;
  min-height: var(--touch-target);
  position: relative;
  overflow: hidden;
}

.quick-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
  color: white;
}

.quick-btn:hover::before {
  opacity: 1;
}

.quick-btn span {
  position: relative;
  z-index: 1;
}

/* ===== Premium Trip Cards ===== */
.trip-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  min-height: 0;
}

.trip-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.trip-card:hover::before {
  transform: scaleX(1);
}

.trip-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.trip-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.trip-card .btn {
  background: var(--gradient-orange);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}

.trip-card .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.trip-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-orange);
}

.trip-card .btn:hover::before {
  left: 100%;
}

/* ===== Sidebar Footer Enhancement ===== */
.sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
}

.sidebar-footer small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  display: block;
  font-weight: 500;
}

/* ===== Modern Chat Area ===== */
.chat-area {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

/* ===== Stunning Chat Header ===== */
.chat-header {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-lg) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  min-height: 80px;
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.chat-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.chat-header p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: statusPulse 2s infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes statusPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2); 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
  }
}

/* ===== Enhanced Chat Body ===== */
.chat-body {
  flex: 1;
  background: var(--bg-primary);
  padding: var(--space-2xl);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.chat-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 1;
}

.chat-body::-webkit-scrollbar {
  width: 8px;
}

.chat-body::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: var(--radius-full);
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
  transition: background 0.3s ease;
}

.chat-body::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

/* ===== Premium Chat Messages ===== */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.message {
  max-width: 85%;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-xl);
  font-size: 15px;
  line-height: 1.7;
  animation: messageSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  font-weight: 500;
}

@keyframes messageSlide {
  from { 
    opacity: 0; 
    transform: translateY(15px) scale(0.98); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

.message.ai {
  background: var(--gradient-card);
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-md);
  margin-left: 48px;
  position: relative;
}

.message.ai::before {
  content: '🤖';
  position: absolute;
  left: -40px;
  top: var(--space-lg);
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.message.user {
  background: var(--gradient-primary);
  color: white;
  align-self: flex-end;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Elegant Suggestions ===== */
.suggestions-container {
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
  padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
}

.suggestions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.suggestion-chip {
  background: white;
  border: 1px solid var(--border-light);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.suggestion-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.suggestion-chip span {
  position: relative;
  z-index: 1;
}

.suggestion-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: white;
}

.suggestion-chip:hover::before {
  opacity: 1;
}

/* ===== Premium Chat Input ===== */
.chat-input {
  padding: var(--space-xl) var(--space-2xl);
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-end;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: max(var(--space-xl), calc(var(--space-xl) + env(safe-area-inset-bottom)));
}

.input-container {
  flex: 1;
  position: relative;
  min-width: 0;
}

.chat-input input, .chat-input textarea {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: 15px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  resize: none;
  font-family: inherit;
  line-height: 1.6;
  min-height: var(--touch-target);
  font-weight: 500;
}

.chat-input input:focus, .chat-input textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-lg);
  transform: translateY(-1px);
}

.send-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-width: fit-content;
  flex-shrink: 0;
  min-height: var(--touch-target);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.send-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.send-btn:hover:not(:disabled)::before {
  left: 100%;
}

.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Mobile Sidebar Controls ===== */
.sidebar-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-overlay);
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
  animation: fadeIn 0.3s ease;
}

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

/* ===== Premium Card System ===== */
.results-container {
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.filters-bar {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  background: white;
  border: 1px solid var(--border-light);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: white;
}

.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cards-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.cards-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-lg) 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.cards-scroll::-webkit-scrollbar {
  height: 8px;
}

.cards-scroll::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: var(--radius-full);
}

.cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
}

.cards-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

/* ===== Enhanced Mobile-Responsive Flight & Hotel Cards ===== */
.flight-card, .hotel-card {
  background: var(--gradient-card);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  min-width: 280px;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .flight-card, .hotel-card {
    min-width: 280px;
    max-width: 100%;
    margin: 0 auto var(--space-md);
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .flight-card, .hotel-card {
    min-width: unset;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
  }
}

.flight-card::before, .hotel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flight-card:hover, .hotel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(37, 99, 235, 0.3);
}

@media (hover: hover) {
  .flight-card:hover::before, .hotel-card:hover::before {
    opacity: 1;
  }
}

/* Enhanced special card styles */
.flight-card.cheapest {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.15);
}

.flight-card.cheapest::after {
  content: '💰 Best Price';
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.flight-card.direct {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.03));
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.15);
}

.flight-card.direct::after {
  content: '✈️ Direct';
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* ===== Compact Card Content ===== */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.airline-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
}

.airline-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: white;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .airline-logo {
    width: 36px;
    height: 36px;
  }
}

.airline-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

@media (max-width: 480px) {
  .airline-name {
    font-size: 13px;
  }
}

.flight-route {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.airport-code {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .airport-code {
    font-size: 18px;
  }
}

.route-arrow {
  flex: 1;
  height: 2px;
  background: var(--gradient-primary);
  position: relative;
  margin: 0 var(--space-xs);
  border-radius: var(--radius-full);
  min-width: 30px;
}

.route-arrow::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--primary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.flight-times {
  display: flex;
  justify-content: space-between;
  margin: var(--space-sm) 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 480px) {
  .flight-times {
    font-size: 12px;
  }
}

.flight-duration {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.flight-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.price-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
  line-height: 1;
}

@media (max-width: 480px) {
  .price-amount {
    font-size: 22px;
  }
}

.price-currency {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: var(--space-xs);
  font-weight: 600;
}

.price-per-person {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

/* ===== Mobile-Optimized Book Buttons ===== */
.book-btn {
  background: var(--gradient-orange);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .book-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
  }
}

.book-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.book-btn::after {
  content: '✈️';
  margin-left: var(--space-xs);
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .book-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-orange);
  }

  .book-btn:hover::before {
    left: 100%;
  }

  .book-btn:hover::after {
    transform: translateX(2px);
  }
}

.book-btn:active {
  transform: translateY(0);
}

.hotel-book-btn {
  background: var(--gradient-orange);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  touch-action: manipulation;
  width: 100%;
}

.hotel-book-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

@media (hover: hover) {
  .hotel-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--shadow-orange);
  }

  .hotel-book-btn:hover::before {
    left: 100%;
  }
}

.hotel-book-btn:active {
  transform: translateY(0);
}

/* ===== Container Responsiveness ===== */
.flight-cards-container, .hotel-cards-container {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--space-md) 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .flight-cards-container, .hotel-cards-container {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-sm);
  }
}

@media (max-width: 480px) {
  .flight-cards-container, .hotel-cards-container {
    flex-direction: column;
    overflow-x: visible;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* ===== Scrollbar Styling ===== */
.flight-cards-container::-webkit-scrollbar,
.hotel-cards-container::-webkit-scrollbar {
  height: 4px;
}

.flight-cards-container::-webkit-scrollbar-track,
.hotel-cards-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.flight-cards-container::-webkit-scrollbar-thumb,
.hotel-cards-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Additional Mobile Enhancements ===== */
@media (max-width: 480px) {
  .flight-card.cheapest::after,
  .flight-card.direct::after {
    font-size: 9px;
    padding: var(--space-xs);
  }
  
  .flight-price {
    padding: var(--space-xs) var(--space-sm);
  }
  
  .card-header {
    margin-bottom: var(--space-sm);
  }
  
  .flight-route {
    margin: var(--space-sm) 0;
  }
}

/* ===== Accessibility Improvements ===== */
.book-btn:focus,
.hotel-book-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .flight-card, .hotel-card,
  .book-btn, .hotel-book-btn {
    transition: none;
  }
  
  .book-btn::before,
  .hotel-book-btn::before {
    display: none;
  }
}
/* ===== Loading States Enhancement ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

.loading-spinner, .hotel-loading-spinner {
  width: 48px;   /* adjust size as needed */
  height: 48px;
  background: url("https://ai.flyotel.co/travel.gif") no-repeat center center;
  background-size: contain;
  border: none; /* remove old spinner border */
  border-radius: 0; /* reset */
  animation: none; /* stop old spin animation */
}


/* ===== Trip Plan (PDF Ready, Neat & Clean) ===== */
.trip-plan {
  background: #fff; /* Clean white */
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  white-space: pre-wrap;
  max-height: none; /* Show all in PDF */
  overflow: visible;
  box-shadow: none; /* PDF friendly */
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.trip-plan h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1e40af; /* Primary blue */
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 10px;
}

.trip-plan h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.trip-plan p {
  margin: 8px 0;
}

.trip-plan ul {
  margin: 10px 0 10px 20px;
  padding: 0;
}

.trip-plan li {
  margin-bottom: 5px;
}

/* ===== Navigation Enhancement ===== */
.cards-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.nav-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  font-size: 18px;
}

.nav-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.page-indicator {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
  background: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* ===== Hotel Search Enhancements ===== */
.hotel-search-container {
  padding: var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.hotel-input-container {
  margin-bottom: var(--space-2xl);
}

.input-box {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: 16px;
  background: white;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  min-height: var(--touch-target);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.input-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-lg);
  transform: translateY(-2px);
}

.hotel-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hotel-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hotel-map-container {
  height: 400px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.city-info {
  background: var(--gradient-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(37, 99, 235, 0.1);
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.city-info h3 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.city-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.city-info img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.city-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.city-info a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hotel-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.hotel-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.hotel-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.hotel-price {
  color: var(--accent) !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  margin-top: var(--space-md);
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.load-more-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  margin-top: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: center;
  min-height: var(--touch-target);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hotel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

/* ===== Enhanced Responsive Design ===== */

/* Large Desktops */
@media (min-width: 1400px) {
  .chat-app {
    grid-template-columns: 380px 1fr;
  }
  
  .sidebar {
    padding: var(--space-2xl);
  }
  
  .chat-messages {
    max-width: 1200px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .chat-app {
    grid-template-columns: 300px 1fr;
  }
  
  .sidebar {
    padding: var(--space-lg);
  }
  
  .flight-card, .hotel-card {
    min-width: 320px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .chat-app {
    grid-template-columns: 280px 1fr;
  }
  
  .brand {
    font-size: 20px;
  }
  
  .chat-body {
    padding: var(--space-lg);
  }
  
  .chat-input {
    padding: var(--space-lg);
  }
  
  .message {
    max-width: 90%;
    padding: var(--space-lg);
  }
  
  .flight-card, .hotel-card {
    min-width: 300px;
    padding: var(--space-xl);
  }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
  :root {
    --space-xs: 3px;
    --space-sm: 6px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
  }
  
  .app-container {
    padding: 0;
    height: 100vh;
    height: 100dvh;
  }
  
  .chat-app {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-sidebar);
    box-shadow: var(--shadow-2xl);
    padding: env(safe-area-inset-top, var(--space-lg)) var(--space-lg) env(safe-area-inset-bottom, var(--space-lg)) var(--space-lg);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .chat-header {
    padding: env(safe-area-inset-top, var(--space-lg)) var(--space-lg) var(--space-lg) var(--space-lg);
    min-height: calc(64px + env(safe-area-inset-top, 0px));
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .chat-header h1 {
    font-size: 18px;
    margin-left: var(--space-sm);
  }
  
  .chat-body {
    padding: var(--space-lg);
  }
  
  .chat-input {
    padding: var(--space-lg);
    gap: var(--space-md);
    padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  }
  
  .chat-input input, .chat-input textarea {
    padding: var(--space-md) var(--space-lg);
    font-size: 16px;
    border-radius: var(--radius-lg);
  }
  
  .send-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 14px;
    border-radius: var(--radius-lg);
  }
  
  .message {
    max-width: 95%;
    padding: var(--space-md) var(--space-lg);
    font-size: 14px;
    border-radius: var(--radius-lg);
  }
  
  .message.ai {
    margin-left: 36px;
  }
  
  .message.ai::before {
    left: -32px;
    font-size: 20px;
    top: var(--space-md);
    width: 28px;
    height: 28px;
  }
  
  .flight-card, .hotel-card {
    min-width: 280px;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
  }
  
  .cards-scroll {
    padding: var(--space-md) 0;
    gap: var(--space-md);
  }
  
  .suggestion-chip {
    font-size: 12px;
    padding: var(--space-sm) var(--space-md);
    min-height: 36px;
    border-radius: var(--radius-xl);
  }
  
  .suggestions {
    gap: var(--space-sm);
  }
  
  .suggestions-container {
    padding: var(--space-md) var(--space-lg);
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  }
  
  .quick-btn {
    padding: var(--space-md);
    font-size: 13px;
    border-radius: var(--radius-md);
  }
  
  .trip-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  
  .book-btn {
    padding: var(--space-md) var(--space-xl);
    font-size: 14px;
    border-radius: var(--radius-lg);
  }
  
  .hotel-book-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 13px;
    border-radius: var(--radius-md);
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .sidebar {
    width: 260px;
    padding: env(safe-area-inset-top, var(--space-md)) var(--space-md) env(safe-area-inset-bottom, var(--space-md)) var(--space-md);
  }
  
  .chat-header {
    padding: env(safe-area-inset-top, var(--space-md)) var(--space-md) var(--space-md) var(--space-md);
    min-height: calc(56px + env(safe-area-inset-top, 0px));
  }
  
  .chat-header h1 {
    font-size: 16px;
  }
  
  .chat-body {
    padding: var(--space-md);
  }
  
  .chat-input {
    padding: var(--space-md);
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  }
  
  .chat-input input, .chat-input textarea {
    padding: var(--space-sm) var(--space-md);
    font-size: 16px;
    min-height: 40px;
  }
  
  .send-btn {
    padding: var(--space-sm) var(--space-md);
    min-height: 40px;
    min-width: 40px;
  }
  
  .message {
    max-width: 98%;
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
    border-radius: var(--radius-md);
  }
  
  .message.ai {
    margin-left: 32px;
  }
  
  .message.ai::before {
    left: -28px;
    font-size: 18px;
    top: var(--space-sm);
    width: 24px;
    height: 24px;
  }
  
  .flight-card, .hotel-card {
    min-width: 250px;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }
  
  .suggestion-chip {
    font-size: 11px;
    padding: var(--space-xs) var(--space-sm);
    min-height: 32px;
    border-radius: var(--radius-lg);
  }
  
  .brand {
    font-size: 18px;
  }
  
  .quick-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 12px;
    min-height: 40px;
    border-radius: var(--radius-sm);
  }
  
  .trip-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .trip-card h4 {
    font-size: 16px;
  }
  
  .trip-card p {
    font-size: 13px;
  }
  
  .trip-card .btn {
    min-height: 36px;
    padding: var(--space-sm) var(--space-md);
    font-size: 12px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .sidebar {
    width: 240px;
    padding: env(safe-area-inset-top, var(--space-sm)) var(--space-sm) env(safe-area-inset-bottom, var(--space-sm)) var(--space-sm);
  }
  
  .chat-header {
    padding: env(safe-area-inset-top, var(--space-sm)) var(--space-sm) var(--space-sm) var(--space-sm);
  }
  
  .chat-body {
    padding: var(--space-sm);
  }
  
  .chat-input {
    padding: var(--space-sm);
    padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  }
  
  .flight-card, .hotel-card {
    min-width: 220px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }
  
  .message {
    padding: var(--space-xs) var(--space-sm);
    font-size: 13px;
    border-radius: var(--radius-sm);
  }
  
  .message.ai {
    margin-left: 28px;
  }
  
  .message.ai::before {
    left: -24px;
    font-size: 16px;
    top: var(--space-xs);
    width: 20px;
    height: 20px;
  }
  
  .suggestion-chip {
    font-size: 10px;
    padding: var(--space-xs) var(--space-sm);
    min-height: 28px;
  }
  
  .quick-btn {
    padding: var(--space-sm);
    font-size: 11px;
    min-height: 36px;
  }
}

/* ===== Hotel Search Mobile Responsive ===== */
@media (min-width: 768px) {
  .hotel-layout {
    flex-direction: row;
  }
  
  .hotel-panel {
    width: 50%;
  }
  
  .hotel-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hotel-map-container {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hotel-search-container {
    padding: var(--space-lg);
  }
  
  .hotel-input-container {
    margin-bottom: var(--space-lg);
  }
  
  .input-box {
    padding: var(--space-md) var(--space-lg);
    font-size: 16px;
    border-radius: var(--radius-lg);
  }
  
  .hotel-layout {
    gap: var(--space-lg);
  }
  
  .hotel-panel {
    gap: var(--space-md);
  }
  
  .city-info {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  
  .hotel-map-container {
    height: 250px;
    border-radius: var(--radius-lg);
  }
  
  .hotel-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  
  .hotel-book-btn {
    padding: var(--space-sm) var(--space-md);
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .hotel-search-container {
    padding: var(--space-md);
  }
  
  .input-box {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .city-info {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .hotel-map-container {
    height: 200px;
    border-radius: var(--radius-md);
  }
  
  .hotel-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
}

/* ===== Landscape Mobile Optimizations ===== */
@media (max-width: 896px) and (orientation: landscape) {
  .chat-header {
    padding: var(--space-sm) var(--space-lg);
    min-height: 48px;
  }
  
  .chat-header h1 {
    font-size: 16px;
  }
  
  .chat-body {
    padding: var(--space-sm) var(--space-lg);
  }
  
  .chat-input {
    padding: var(--space-sm) var(--space-lg);
    padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  }
  
  .sidebar {
    width: 240px;
    padding: var(--space-md);
  }
  
  .brand {
    font-size: 16px;
    margin-bottom: var(--space-xs);
    padding: var(--space-sm) 0;
  }
  
  .quick-actions {
    gap: var(--space-xs);
  }
  
  .trip-cards {
    gap: var(--space-sm);
  }
}

/* ===== Dark Mode Enhancement ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-light: #334155;
    --border-medium: #475569;
    --border-dark: #64748b;
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  }
  
  .chat-app {
    background: rgba(15, 23, 42, 0.98);
  }
  
  .sidebar {
    background: var(--gradient-glass);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
  }
  
  .message.ai {
    background: var(--gradient-card);
    border-color: rgba(59, 130, 246, 0.2);
  }
  
  .flight-card, .hotel-card, .trip-plan {
    background: var(--gradient-card);
    border-color: rgba(59, 130, 246, 0.2);
  }
  
  .chat-input input, .chat-input textarea {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
  }
  
  .suggestion-chip {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
  }
  
  .quick-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
  }
  
  .quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .trip-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .trip-card:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  
  .city-info {
    background: var(--gradient-card);
    border-color: rgba(59, 130, 246, 0.2);
  }
  
  .input-box {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
  }
}

/* ===== Enhanced Focus States ===== */
.quick-btn:focus,
.suggestion-chip:focus,
.filter-btn:focus,
.load-more-btn:focus,
.nav-btn:focus,
.send-btn:focus {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.book-btn:focus,
.hotel-book-btn:focus {
  outline: 3px solid rgba(249, 115, 22, 0.5);
  outline-offset: 2px;
}

/* ===== Improved Touch Targets ===== */
@media (max-width: 768px) {
  .quick-btn,
  .suggestion-chip,
  .filter-btn,
  .book-btn,
  .hotel-book-btn,
  .nav-btn {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
  }
  
  .send-btn {
    min-height: var(--touch-target);
    min-width: 60px;
  }
}

/* ===== Advanced Animations ===== */
@keyframes messageSlideIn {
  from { 
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.chat-messages > .message:last-child {
  animation: messageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flight-card:hover, .hotel-card:hover {
  animation: cardFloat 2s ease-in-out infinite;
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --text-secondary: #000000;
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 16px -3px rgba(0, 0, 0, 0.4);
  }
  
  .message.ai {
    border: 2px solid var(--border-light);
  }
  
  .flight-card, .hotel-card {
    border: 2px solid var(--border-light);
  }
  
  .book-btn, .hotel-book-btn {
    border: 2px solid rgba(0, 0, 0, 0.3);
  }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .app-container::before,
  .app-container::after {
    animation: none;
  }
  
  .status-dot {
    animation: none;
  }
  
  .loading-spinner, .hotel-loading-spinner {
    animation: none;
    border: 3px solid var(--primary);
  }
  
  .brand i {
    animation: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  .sidebar,
  .chat-input,
  .suggestions-container,
  .cards-navigation,
  .sidebar-toggle {
    display: none !important;
  }
  
  .chat-app {
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 1px solid #000;
    background: white;
  }
  
  .chat-header {
    background: #f8fafc;
    color: #000;
    border-bottom: 2px solid #000;
  }
  
  .chat-body {
    padding: 20px;
    background: white;
  }
  
  .message {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    background: white;
    color: #000;
  }
  
  .message.ai {
    border: 2px solid #000;
  }
  
  .flight-card, .hotel-card {
    break-inside: avoid;
    box-shadow: none;
    border: 2px solid #000;
    background: white;
    color: #000;
  }
  
  .book-btn, .hotel-book-btn {
    background: #f97316 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}

/* ===== Safe Area and Notch Support ===== */
@supports (padding: max(0px)) {
  .chat-header {
    padding-top: max(var(--space-lg), env(safe-area-inset-top));
    padding-left: max(var(--space-2xl), env(safe-area-inset-left));
    padding-right: max(var(--space-2xl), env(safe-area-inset-right));
  }
  
  .chat-input {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    padding-left: max(var(--space-2xl), env(safe-area-inset-left));
    padding-right: max(var(--space-2xl), env(safe-area-inset-right));
  }
  
  .sidebar {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
  }
}

/* ===== Utility Classes ===== */
.hidden { display: none !important; }
.visible { display: block !important; }
.flex { display: flex !important; }
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-lg); }
.mt-4 { margin-top: var(--space-lg); }
.p-4 { padding: var(--space-lg); }

/* ===== Glassmorphism Effects ===== */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== Premium Loading Animation ===== */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== Custom Scrollbar Enhancement ===== */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
  transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

/* ===== Final Touches ===== */
.travel-ai-branding {
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.premium-shadow {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.glow-effect {
  box-shadow: 
    0 0 20px rgba(79, 70, 229, 0.3),
    0 0 40px rgba(79, 70, 229, 0.1),
    0 0 60px rgba(79, 70, 229, 0.05);
}

/* ===== Animation Performance Optimization ===== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.hardware-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}


/* === Trip Plan Display === */
.trip-plan {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  white-space: pre-wrap;
  max-height: none;
  overflow: visible;
  font-family: "Inter", Arial, sans-serif;
}

.trip-plan h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1e40af;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 10px;
}

.trip-plan h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.trip-plan p {
  margin: 6px 0;
}

.trip-plan ul {
  margin: 10px 0 10px 20px;
  padding: 0;
}

.trip-plan li {
  margin-bottom: 5px;
}
