/* ============================================================
   EgyptPass - Premium Tourism Platform
   Modern Split-Panel Design (Airial-inspired)
   ============================================================ */
:root {
  --primary-gold: #2563EB; /* Updated to pure blue by user request */
  --royal-blue: #3B82F6;   /* Updated to pure blue */
  --nile-blue: #2563EB;
  --bg-light: #F8FAFC;
  --bg-white: #ffffff;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --border-color: #DBEAFE;
  
  --shadow-premium: 0 10px 40px rgba(0,0,0,0.04);
  --transition-premium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing (Fibonacci) */
  --spacing-xs: 5px;
  --spacing-sm: 8px;
  --spacing-md: 13px;
  --spacing-lg: 21px;
  --spacing-xl: 34px;
  --spacing-2xl: 55px;

  /* Typography Scale (Golden Ratio) */
  --font-base: 1rem;
  --font-md: 1.618rem;
  --font-lg: 2.618rem;
  --font-xl: 4.236rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme='dark'] {
  color-scheme: dark;
  --bg-white: #1E293B;
  --bg-light: #1e293b; 
  --bg-dark: #0F172A;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --border-color: #334155;
  --card-bg: rgba(15, 23, 42, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --papyrus: #0f172a;
--royal-blue: #60A5FA;
  --nile-blue: #60a5fa;
  --primary-navy: #f8fafc;
}



/* Micro-interactions */
button, .chip, .dock-btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 0.2s ease, 
              box-shadow 0.2s ease, 
              color 0.2s ease !important;
}

button:active, .chip:active {
  transform: scale(0.95) !important;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #0F172A; /* Airial dark slate for readability */
  line-height: 1.6;
  overflow: hidden;
}

[dir="rtl"] body,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea {
  font-family: "Cairo", "Inter", sans-serif;
}

/* ============================================================
   LAYOUT - Dynamic Split Panel (Full Chat → Split on Plan)
   ============================================================ */

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-light);
}

/* SIDEBAR STYLES */
.main-sidebar {
  width: 260px;
  height: 100vh;
  background: #F8FAFC;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--spacing-lg);
  flex-shrink: 0;
  transition: var(--transition-premium);
  position: relative;
  z-index: 100;
}

.main-sidebar.collapsed {
  width: 80px;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-brand-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.main-sidebar.collapsed .sidebar-brand-container {
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.main-sidebar.collapsed .sidebar-brand {
  display: none !important;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.beta-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.new-trip-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--royal-blue), var(--nile-blue));
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--spacing-xl);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-premium);
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover, .nav-item.active {
  background: var(--bg-light);
  color: var(--royal-blue);
}

.nav-icon {
  font-size: 20px;
  color: var(--royal-blue); /* Royal Blue UI Icons */
}

.main-sidebar.collapsed .nav-label,
.main-sidebar.collapsed .brand-text,
.main-sidebar.collapsed .beta-badge,
.main-sidebar.collapsed .btn-label,
.main-sidebar.collapsed .legal-links {
  display: none !important;
}

.legal-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.legal-links a {
  font-size: 12px;
  color: #94A3B8;
  text-decoration: none;
  white-space: nowrap;
}

.legal-links a:not(:last-child)::after {
  content: "|";
  margin-left: 8px;
  color: #CBD5E1;
}

.legal-links a:hover {
  color: var(--royal-blue);
  text-decoration: underline;
}

.main-sidebar.collapsed .new-trip-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

.collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1) !important;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.collapse-btn:hover {
  background: rgba(37, 99, 235, 0.2) !important;
  transform: scale(1.05);
}

.collapse-icon {
  width: 16px;
  height: 16px;
  stroke: var(--royal-blue);
  stroke-width: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-sidebar.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.sidebar-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-lg);
}

.sidebar-utils {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sidebar-utils .nav-btn {
  flex: 1;
  background: var(--bg-light);
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.sidebar-utils .nav-btn:hover {
  background: var(--border-color);
  color: var(--royal-blue);
  transform: translateY(-2px);
}

.main-sidebar.collapsed .sidebar-utils {
  flex-direction: column;
}

/* Left Panel - Chat */
.chat-panel {
  flex: 1;
  min-width: 0;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  transition: var(--transition-premium);
  height: 100vh;
}


/* When split mode is active (Drawer open) */
.chat-panel.split {
  /* No width change, chat stays under the drawer */
  flex: 1;
  min-width: 0;
}

/* Right Panel - Trip Overview (Interactive Drawer) */
.trip-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 600px;
  min-width: 400px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--nile-blue) 100%);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* When panel is visible (Drawer opened) */
.trip-panel.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.trip-panel-content {
  padding: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--spacing-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  color: var(--royal-blue) !important;
  /* Darker Royal Blue */
  display: inline-block;
}


.brand-name .dot {
  color: #f59e0b !important;
  font-weight: 900;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-btn,
.lang-btn,
.currency-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.nav-btn:hover,
.lang-btn:hover,
.currency-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ============================================================
   CHAT MESSAGES
   ============================================================ */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--bg-light); 
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.message {
  margin-bottom: 32px;
  display: flex;
  width: 100%;
  max-width: 900px;
  animation: messageSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 85%;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

/* AI messages: Transparent, no box */
.message.assistant .message-content {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-primary);
  padding: 4px;
  max-width: 100%;
}

/* User messages: solid blue bubble */
.message.user .message-content {
 background: var(--royal-blue);
 color: white;
 box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
 border-radius: 24px 24px 2px 24px;
  padding: 16px 22px;
  border: none;
  box-shadow: none;
  max-width: 80%;
}

.message.assistant {
  flex-direction: column;
  align-items: flex-start;
}
.ai-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-left: 4px;
}
.ai-header-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.ai-header-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}




/* ============================================================
   ZERO STATE & INSPIRATION CARDS
   ============================================================ */

.zero-state-cards {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.zero-state-cards h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.2rem;
  font-weight: 700;
}

.inspiration-scroller {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  max-width: 100%;
  scrollbar-width: none;
}
.inspiration-scroller::-webkit-scrollbar {
  display: none;
}

.inspire-card {
  min-width: 160px;
  background: var(--bg-white);

  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
.inspire-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.inspire-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.inspire-info {
  padding: var(--spacing-sm);
}
.inspire-info h4 {
  font-size: 13px;
  margin: 0;
  color: var(--royal-blue);
  font-weight: 600;
}
.inspire-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}


/* ============================================================
   CHAT INPUT & ACTION DOCK
   ============================================================ */

.action-dock {
  display: flex;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);
  margin-bottom: 4px;
  justify-content: center;
}

.dock-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-color);

  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s;
}
.dock-btn:hover {
  background: var(--bg-light);
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.contextual-chips {
  display: flex;
  gap: 8px;
  padding: 0 var(--spacing-md) 8px var(--spacing-md);
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}
.contextual-chips::-webkit-scrollbar {
  display: none;
}

.chat-input-container {
  padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
}

.chat-input-wrapper {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  position: relative;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2px 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);

  transition: all 0.2s;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.chat-input-wrapper:focus-within {
 border-color: var(--royal-blue);
  background: var(--bg-white);
  animation: inputBlueGlow 1.5s ease-in-out infinite alternate;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); /* هالة زرقاء عند الكتابة */
}

@keyframes inputBlueGlow {
  0% {
    box-shadow: 0 0 5px rgba(139, 190, 255, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.1);
  }
  100% {
    box-shadow: 0 0 20px rgba(139, 190, 255, 0.7), 0 0 0 2px rgba(37, 99, 235, 0.3);
  }
}


.chat-input {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
}

.chat-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}


.chat-input:focus {
  outline: none;
}

.input-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--royal-blue);
}

.icon-btn.recording {
  background: #fef2f2;
  color: var(--accent-red);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.send-btn {
  background: var(--royal-blue);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.send-btn:hover {
  background: var(--nile-blue);
  transform: translateY(-1px);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   QUICK ACTIONS BAR (Enhanced Floating Style)
   ============================================================ */

.quick-actions {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}


.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);

  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  min-width: 70px;
}

.quick-action-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--primary-navy);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.quick-action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    var(--accent-blue) 10%,
    transparent 10.01%
  );
  transform: scale(0);
  opacity: 0.3;
  transition:
    transform 0.6s,
    opacity 0.4s;
}

.quick-action-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.quick-action-btn:active::after {
  transform: scale(2);
  opacity: 0;
}

.quick-action-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.quick-action-icon {
  font-size: 20px;
}

/* ============================================================
   TRIP PANEL - Hero Section
   ============================================================ */

.trip-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.trip-hero-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.trip-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xl);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.trip-hero h1 {
  font-size: var(--font-lg);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.trip-hero-meta {
  display: flex;
  gap: var(--spacing-lg);
  font-size: 14px;
  opacity: 0.9;
}

.trip-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */

.trip-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   DAILY ITINERARY CARDS
   ============================================================ */

.itinerary-section {
  margin-bottom: var(--spacing-xl);
}

.section-title {
  color: white;
  font-size: var(--font-md);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.day-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.day-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.day-card:hover .day-card-header {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.day-card-header {
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, var(--accent-blue) 0%, #6366f1 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.day-card-header:hover h3 {
  transform: translateX(4px);
}

.day-card-cost {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.day-card-header:hover .day-card-cost {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.day-card-body {
  padding: var(--spacing-lg);
}

.activity-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.activity-item:hover {
  background: var(--sand-light);
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transform: translateX(4px);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-time {
  min-width: 70px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
}

.activity-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.activity-info {
  flex: 1;
}

.activity-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.activity-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */

.notification-bar {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

.notification {
  background: var(--accent-green);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  animation: slideInRight 0.3s ease-out;
  box-shadow: var(--shadow-md);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   LOADING STATE (Enhanced with Shimmer)
   ============================================================ */

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary-gold);
  border-right-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  font-size: 15px;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* Shimmer Loading Cards */
.shimmer-card {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer-hero {
  height: 280px;
  margin-bottom: var(--spacing-xl);
}

.shimmer-timeline-item {
  height: 120px;
  margin-bottom: var(--spacing-md);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-lg);
}

.empty-state h2 {
  color: white;
  font-size: 24px;
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE - Mobile (Bottom Sheet for Trip Panel)
   ============================================================ */

@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
    position: relative;
  }

  .chat-panel,
  .chat-panel.split {
    width: 100% !important;
    max-width: none;
    min-width: auto;
    height: 100vh;
  }

  /* Mobile: Trip Panel as Bottom Sheet */
  .trip-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 0;
    opacity: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 100;
    transition:
      height var(--transition-normal),
      opacity var(--transition-fast);
  }

  .trip-panel.visible {
    height: 70vh;
    opacity: 1;
  }

  .trip-panel-content {
    padding: var(--spacing-md);
  }
}

@media (max-width: 600px) {
  .trip-hero h1 {
    font-size: 22px;
  }

  .trip-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .quick-actions {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .quick-action-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ============================================================
   TIMELINE ITINERARY
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    #2563EB 0%,
    #60A5FA 100%
  );
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.4s ease-out;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 0;
  width: 20px;
  height: 20px;
  background: #60A5FA;
  border: 3px solid #DBEAFE;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.timeline-content:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.timeline-day {
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-activities {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.timeline-activity {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--sand-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
}

.timeline-activity-icon {
  font-size: 18px;
}

/* ============================================================
   COST PROGRESS BAR
   ============================================================ */

.cost-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  color: white;
}

.cost-label {
  font-size: 14px;
  opacity: 0.9;
}

.cost-amount {
  font-size: 28px;
  font-weight: 800;
}

.cost-progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.cost-progress-bar {
  height: 100%;
  border-radius: 6px;
  transition: width var(--transition-normal);
}

.cost-progress-bar.under-budget {
  background: linear-gradient(90deg, var(--accent-green), #34d399);
}

.cost-progress-bar.near-budget {
  background: linear-gradient(90deg, var(--accent-gold), #fbbf24);
}

.cost-progress-bar.over-budget {
  background: linear-gradient(90deg, var(--accent-red), #f87171);
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cost-item {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 380px;
  min-width: 300px;
  position: relative;
}

.toast.auto-dismiss {
  animation:
    slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    fadeOut 0.3s ease-out 4.7s forwards;
}

.toast.success {
  border-left: 4px solid var(--accent-green);
}

.toast.warning {
  border-left: 4px solid var(--accent-gold);
}

.toast.error {
  border-left: 4px solid var(--accent-red);
}

.toast.info {
  border-left: 4px solid var(--accent-blue);
}

.toast-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.toast-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: 4px;
}

.toast-undo-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: all 0.2s;
}

.toast-undo-btn:hover {
  color: #2563eb;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ============================================================
   FLOATING INSPIRE BUTTON
   ============================================================ */

.inspire-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspire-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 24px rgba(212, 168, 83, 0.4);
}


/* ============================================================
   EMPTY STATE ENHANCED
   ============================================================ */

.empty-state-enhanced {
  text-align: center;
  padding: var(--spacing-2xl);
  background: url("https://images.unsplash.com/photo-1539650116574-75c0c6d73f6e?w=800")
    center/cover;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.empty-state-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.9),
    rgba(44, 82, 130, 0.8)
  );
}

.empty-state-enhanced > * {
  position: relative;
  z-index: 1;
}

.empty-state-enhanced h2 {
  color: var(--primary-gold);
  font-size: 28px;
  margin-bottom: var(--spacing-sm);
}

.empty-state-enhanced p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto var(--spacing-lg);
}

.suggestion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-md);
  max-width: 700px;
  margin: 0 auto;
}

.suggestion-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  overflow: hidden;
  position: relative;
  min-height: 180px;
}

.suggestion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.suggestion-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-gold);
}

.suggestion-card:hover .suggestion-card-img {
  transform: scale(1.1);
}

.suggestion-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  z-index: 2;
}

.suggestion-card-icon {
  font-size: 28px;
  margin-bottom: var(--spacing-xs);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.suggestion-card-title {
  color: white;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--spacing-xs);
}

.suggestion-card-btn {
  background: var(--primary-gold);
  color: var(--royal-blue);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.suggestion-card:hover .suggestion-card-btn {
  opacity: 1;
  transform: translateY(0);
}

.suggestion-card-btn:hover {
  background: var(--deep-gold);
}

/* ============================================================
   LOADING PROGRESS BAR
   ============================================================ */

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold), var(--accent-blue));
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

/* ============================================================
   RTL Support (Arabic) - Enhanced
   ============================================================ */

[dir="rtl"] .chat-panel {
  border-left: 1px solid var(--border-color);
  border-right: none;
}

[dir="rtl"] .trip-panel {
  transform: translateX(-20px);
}

[dir="rtl"] .trip-panel.visible {
  transform: translateX(0);
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 30px;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 10px;
}

[dir="rtl"] .timeline-dot {
  left: auto;
  right: -24px;
}

[dir="rtl"] .timeline-content:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 20px;
}

[dir="rtl"] .toast {
  animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .toast.auto-dismiss {
  animation:
    slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    fadeOutLeft 0.3s ease-out 4.7s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutLeft {
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

[dir="rtl"] .inspire-btn {
  right: auto;
  left: 20px;
}

[dir="rtl"] .quick-actions {
  direction: rtl;
}

[dir="rtl"] .trip-hero-meta {
  direction: rtl;
}

[dir="rtl"] .cost-item {
  direction: rtl;
}

[dir="rtl"] .activity-item {
  direction: rtl;
}

/* ============================================================
   BOOKING CONFIRMATION CARD
   ============================================================ */

.booking-confirmation-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.5s ease-out;
  border: 1px solid var(--border-color);
}

.close-booking-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-booking-btn:hover {
  background: var(--bg-light);
  color: var(--accent-red);
}

.booking-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.booking-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-sm);
  animation: bounce 1s infinite;
}

.booking-header h2 {
  color: var(--accent-green);
  font-size: 24px;
  margin-bottom: var(--spacing-xs);
}

.booking-header p {
  color: var(--text-secondary);
}

.booking-details {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.booking-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.booking-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.booking-row .label {
  color: var(--text-secondary);
  font-weight: 500;
}

.booking-row .value {
  color: var(--primary-navy);
  font-weight: 700;
}

.booking-row .ref-code {
  font-family: monospace;
  background: var(--accent-gold);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.booking-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.booking-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--royal-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--nile-blue);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ============================================================
   QUICK SETUP BAR
   ============================================================ */

.quick-setup-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: var(--spacing-sm) 0;
  z-index: 20;
  position: relative;
  padding-top: 10px;
}

.btn-toggle-setup {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--royal-blue); /* خلي اللون أزرق بدل الأصفر */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-setup:hover,
.btn-toggle-setup.active {
    background: var(--royal-blue); /* أزرق صريح */
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    border-color: var(--royal-blue);
}

.btn-save-draft {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-save-draft:hover {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}


@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0px) scale(1);
  }
}

/* Quick Setup / Bottom Panels — hidden by default */
.quick-setup-drawer,
.quick-book-bar {
  display: none;
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 340px;
  border-radius: 16px;
  flex-direction: column;
  padding: var(--spacing-md);
  overflow: hidden;
  overflow-y: auto;
  max-height: 75vh;
  background: var(--bg-white);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.05); /* Airial Glow */
  border: 1px solid #BFDBFE; /* Airial Light Blue Border */
  z-index: 200;
}

/* When opened — show with animation */
.quick-setup-drawer.open,
.quick-book-bar.open {
  display: flex;
  animation: slideUpFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Quick Book specific container width to hold steps better */
.quick-book-bar {
  max-width: 360px;
}

/* Progress Header */
.setup-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  padding: 0 var(--spacing-md);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.progress-step.completed {
  color: var(--accent-green);
}

.progress-icon {
  font-size: 20px;
  filter: grayscale(1);
  transition: all 0.3s;
}

.progress-step.completed .progress-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.progress-check {
  font-size: 10px;
  opacity: 0;
  transition: all 0.3s;
  transform: translateY(5px);
}

.progress-step.completed .progress-check {
  opacity: 1;
  transform: translateY(0);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 10px;
  border-radius: 1px;
}

.setup-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-icon {
  font-size: 16px;
}

.chips-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 40px;
}

.chip {
  padding: 10px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}

.chip-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip:hover {
  background: white;
  border-color: var(--royal-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chip.selected {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  padding-right: 12px;
}

.chip.target {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.05);
}

.chip.target.selected {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.chip.selected .chip-icon {
  filter: brightness(0) invert(1);
}

/* Custom Input */
.custom-input-wrapper {
  display: flex;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

.custom-input-wrapper input {
  width: 60px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
}

.btn-apply {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.travelers-controls {
  display: flex;
  gap: var(--spacing-md);
  background: var(--bg-light);
  padding: 12px;
  border-radius: var(--radius-md);
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.control-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--border-color);
}

.counter button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.counter button:hover {
  background: var(--bg-light);
  color: var(--primary-gold);
}

.counter span {
  width: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.children-ages-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.age-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.family-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent-green);
  background: #ecfdf5;
  padding: 8px 12px;
  border-radius: 20px;
  margin-top: 8px;
  animation: fadeIn 0.4s ease;
}

.setup-action {
  margin-top: 8px;
}

.btn-start-plan {
    width: 100%;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--nile-blue) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-start-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn-start-plan:hover .btn-arrow {
  transform: translateX(4px);
}

/* RTL Support for Quick Setup */
[dir="rtl"] .btn-start-plan {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn-start-plan:hover .btn-arrow {
  transform: translateX(-4px);
}

[dir="rtl"] .travelers-controls {
  flex-direction: row;
}

[dir="rtl"] .quick-setup-toggle,
[dir="rtl"] .quick-setup-bar {
  direction: rtl;
}

[dir="rtl"] .setup-progress-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .chip {
  flex-direction: row-reverse;
}

[dir="rtl"] .chip.selected {
  padding-right: 16px;
  padding-left: 12px;
}

/* Budget Inputs */
.budget-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.budget-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
  text-align: center;
}

.budget-input-wrapper input:focus {
  outline: none;
}

.budget-presets {
  display: flex;
  gap: 6px;
}

.chip-tiny {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: white;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.chip-tiny:hover {
  background: var(--bg-light);
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.chip-tiny.active,
.chip-tiny.selected {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
}

/* Quick Setup Drawer — base class */
.quick-setup-drawer {
  background: var(--bg-white);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Accessibility Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   COLLAPSIBLE TRIP SELECTION WIDGET
   ============================================================ */
.trip-selection-widget.collapsible {
 background: var(--bg-white);
 border-radius: 24px;
box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
border: 2px solid var(--royal-blue); /* خلي الحدود أزرق صريح */
margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition-premium);
  width: 100%;
  animation: continuousWidgetGlow 3s infinite alternate ease-in-out;
}

@keyframes continuousWidgetGlow {
  0% {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.05); /* Lighter glow */
    border-color: #DBEAFE; 
  }
  100% {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.12); /* Slightly stronger glow */
    border-color: rgba(37, 99, 235, 0.2); 
  }
}

.widget-header-minimal {
  padding: 12px 20px;
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-header-minimal:hover {
  background: #F9FAFB !important;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-text {
  font-weight: 700 !important;
  color: #1E293B !important;
  font-size: 14px !important;
}

.toggle-arrow-btn {
  background: rgba(37, 99, 235, 0.1) !important; /* Light transparent blue */
  border: none !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-arrow-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--royal-blue); /* Royal Blue arrow */
  stroke-width: 2px;
  fill: none;
}

.trip-selection-widget.collapsed .toggle-arrow-btn {
  transform: rotate(-90deg);
}

.widget-summary-text {
  font-size: 12px;
  color: #94A3B8; /* Pale gray text */
  margin-left: 8px;
  opacity: 0;
  max-width: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease, max-width 0.3s ease;
  overflow: hidden;
}

.trip-selection-widget.collapsed .widget-summary-text {
  opacity: 1;
  max-width: 200px;
}

.widget-collapsible-content {
  transition: var(--transition-premium);
  max-height: 2000px;
  overflow: visible;
}

.trip-selection-widget.collapsed .widget-collapsible-content {
  max-height: 0;
  overflow: hidden;
}

.widget-header-full {
  padding: 24px 24px 12px;
}

.widget-header-full h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 8px;
}

.skip-link {
  font-size: 12px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}

.skip-link:hover {
  color: var(--royal-blue);
}

/* ============================================================
   RESTORE BOOKING BUTTON (Floating)
   ============================================================ */
.restore-booking-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bounceIn 0.5s ease-out;
}

.restore-booking-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.restore-booking-btn:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }

  50% {
    transform: scale(1.05) translateY(-5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   COLLAPSIBLE SECTIONS (Accordion Style)
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  user-select: none;
  transition: opacity 0.2s;
}

.section-header:hover {
  opacity: 0.8;
}

.section-title {
  margin: 0;
  /* Remove default margin */
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-toggle-icon {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

/* Rotated state for the icon when section is open */
.section-header.active .section-toggle-icon {
  transform: rotate(180deg);
}

.section-content {
  /* Transitions for height/opacity */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease-out;
}

.section-content.open {
  max-height: 5000px;
  /* Large enough to fit content */
  opacity: 1;
  margin-top: 10px;
  overflow: visible;
  /* Prevent clipping of shadows/popups when open */
}

/* ============================================================
   QUICK BOOK BAR
   ============================================================ */
.quick-book-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: var(--spacing-sm) 0;
  z-index: 20;
  position: relative;
}

.btn-toggle-book {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nile-blue);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-toggle-book:hover,
.btn-toggle-book.active {
  background: var(--nile-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  border-color: var(--nile-blue);
}

/* Quick Book Bar specific overrides (if any) */
.quick-book-bar {
  /* Inherits from shared block above */
  gap: var(--spacing-md);
}

.btn-start-book {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--royal-blue) 0%,
    var(--nile-blue) 100%
  );
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-start-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-start-book:hover .btn-arrow {
  transform: translateX(4px);
}

.date-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-input-wrapper input[type="date"] {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.date-input-wrapper input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.setup-group label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[dir="rtl"] .btn-toggle-book {
  direction: rtl;
}

/* ============================================================
   TYPING INDICATOR
   ============================================================ */
.typing-indicator {
  display: inline-block;
  animation: typingPulse 1.4s infinite ease-in-out both;
  font-weight: bold;
  color: var(--accent-blue);
  font-size: 1.2em;
  line-height: 1;
  margin-left: 2px;
}

@keyframes typingPulse {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

.error-text {
  color: var(--accent-red);
  font-weight: bold;
}

.message.error .message-content {
  border-color: var(--accent-red);
  background: #fef2f2;
}

/* ============================================================
   TYPING INDICATOR
   ============================================================ */
.typing-indicator {
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-block;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

/* ============================================================
   INLINE TRIP CAROUSEL (Inside Chat Messages)
   ============================================================ */

.trip-carousel-wrapper {
  margin: 12px 0;
  width: 100%;
}

.trip-carousel {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 4px 16px 4px;
}

.trip-card {
  width: 100%;
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18); /* Soft Drop Shadow */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}
.trip-card:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}
.trip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.10);
  border-color: var(--royal-blue);
}

.trip-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.trip-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.trip-card:hover .trip-card-img-wrapper img {
  transform: scale(1.08);
}

/* Heart / Save icon on card */
.trip-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.trip-card-heart:hover {
  background: white;
  transform: scale(1.15);
}
.trip-card-heart.saved {
  color: #ef4444;
}

/* Price overlay on image */
.trip-card-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.trip-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
}

.trip-card-image-text {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  z-index: 2;
}

.trip-card-image-text .trip-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.trip-card-image-text .trip-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}

.trip-card-body {
  padding: 16px 18px 18px;
  background: var(--bg-white);
  border-radius: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trip-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-card-body .trip-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px 0;
}

.trip-card-map {
  width: 100%;
  height: 72px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 20%, #1d4ed8 0, #0ea5e9 35%, #22c55e 70%, #ecfeff 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.trip-card-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.trip-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.trip-card-meta-item span.icon {
  font-size: 12px;
}

.trip-card-cta {
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--royal-blue), var(--nile-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.trip-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
}

.trip-card-cta span.icon {
  font-size: 14px;
}

@media (min-width: 768px) {
  .trip-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .trip-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .trip-carousel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.trip-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.trip-card-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--sand-light);
  color: var(--text-secondary);
  font-weight: 600;
}
.trip-card-actions {
  display: flex;
  gap: 6px;
}
.trip-card-actions button {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.trip-card-actions .btn-book-card {
  flex: 1;
  background: var(--primary-gold);
  color: white;
}
.trip-card-actions .btn-book-card:hover {
  background: var(--deep-gold);
}
.trip-card-actions .btn-map-card {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.trip-card-actions .btn-map-card:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}

/* Continue button after carousel */
.carousel-continue-btn {
  display: block;
  width: 100%;
  max-width: 350px;
  margin: 16px auto 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--royal-blue), var(--nile-blue));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(26,54,93,0.25);
  text-align: center;
}
.carousel-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,54,93,0.35);
}

/* ============================================================
   DETAIL MODAL (Popup on Card Click)
   ============================================================ */

.trip-detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.trip-detail-modal {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: white;
  transform: scale(1.1);
}

.modal-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-body {
  padding: 24px;
}
.modal-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--royal-blue);
  margin: 0 0 8px 0;
}
.modal-body .modal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.modal-body .modal-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal-body .modal-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn-modal-book {
  flex: 1;
  padding: 12px;
  background: var(--primary-gold);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-actions .btn-modal-book:hover {
  background: var(--deep-gold);
}
.modal-actions .btn-modal-save {
  padding: 12px 20px;
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-actions .btn-modal-save:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}

/* ============================================================
   CITY TABS (Inline in Chat Messages)
   ============================================================ */

.city-tabs-wrapper {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.city-tabs-wrapper::-webkit-scrollbar {
  display: none;
}
.city-tab {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.city-tab:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}
.city-tab.active {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
}

/* ============================================================
   SKELETON LOADER (While AI Thinks)
   ============================================================ */

.skeleton-card {
  min-width: 240px;
  height: 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
.skeleton-img {
  height: 160px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-text {
  height: 14px;
  margin: 14px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.skeleton-text.short {
  width: 60%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .trip-card {
    min-width: 200px;
    max-width: 220px;
  }
  .trip-card-img-wrapper {
    height: 120px;
  }
  .trip-detail-modal {
    max-width: 95%;
    max-height: 90vh;
  }
  .modal-hero-img {
    height: 180px;
  }
  .action-dock {
    flex-wrap: wrap;
  }
  .dock-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
  .carousel-continue-btn {
    max-width: 100%;
  }
}

/* Airial Premium Micro-Animations */
@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.suggestion-card {
  animation: staggerFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.suggestion-card:nth-child(1) { animation-delay: 0.1s; }
.suggestion-card:nth-child(2) { animation-delay: 0.2s; }
.suggestion-card:nth-child(3) { animation-delay: 0.3s; }
.suggestion-card:nth-child(4) { animation-delay: 0.4s; }
.suggestion-card:nth-child(5) { animation-delay: 0.5s; }
.suggestion-card:nth-child(6) { animation-delay: 0.6s; }
.inspire-card {
  animation: staggerFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.inspire-card:nth-child(1) { animation-delay: 0.1s; }
.inspire-card:nth-child(2) { animation-delay: 0.15s; }
.inspire-card:nth-child(3) { animation-delay: 0.2s; }
.inspire-card:nth-child(4) { animation-delay: 0.25s; }


.close-drawer-btn { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, 0.1); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 200; transition: all 0.2s; }
.close-drawer-btn:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* ============================================================
   PREMIUM DARK MODE — Complete Override Block
   ============================================================ */

[data-theme='dark'] .navbar {
  background: #0a0f1d;
  border-bottom-color: #334155;
}

[data-theme='dark'] .chat-panel {
  background: #0a0f1d;
  border-right-color: #334155;
}

[data-theme='dark'] .chat-messages {
  background: #020617;
}

/* AI Message text — white in dark mode */
[data-theme='dark'] .message.assistant .message-content {
  color: #f1f5f9;
}

[data-theme='dark'] .ai-header-name {
  color: #e2e8f0;
}

[data-theme='dark'] .message.assistant .message-content p,
[data-theme='dark'] .message.assistant .message-content li,
[data-theme='dark'] .message.assistant .message-content span {
  color: #f1f5f9;
}

[data-theme='dark'] .message.assistant .message-content h1,
[data-theme='dark'] .message.assistant .message-content h2,
[data-theme='dark'] .message.assistant .message-content h3 {
  color: #D4AF37;
}

[data-theme='dark'] .message.assistant .message-content strong {
  color: #fff;
}

[data-theme='dark'] .message.assistant .message-content code {
  background: #1e293b;
  color: #60a5fa;
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme='dark'] .message.assistant .message-content pre {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
}

[data-theme='dark'] .message.assistant .message-content a {
  color: #60a5fa;
}

[data-theme='dark'] .message.assistant .message-content hr {
  border-color: #334155;
}

[data-theme='dark'] .message.assistant .message-content blockquote {
  border-left-color: #D4AF37;
  color: #94a3b8;
  background: #0f172a;
}

[data-theme='dark'] .chat-input-container {
  background: #0a0f1d;
}

.chat-input-wrapper {
    background: var(--bg-white);
    border: 2px solid #BFDBFE; /* حدود زرقاء فاتحة */
    padding: 8px 16px;
}

[data-theme='dark'] .chat-input-wrapper:focus-within {
  background: #1e293b;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme='dark'] .chat-input {
  color: #f8fafc;
}

[data-theme='dark'] .icon-btn {
  color: #94a3b8;
}

[data-theme='dark'] .icon-btn:hover {
  background: #1e293b;
  color: #3b82f6;
}

/* Action Dock */
[data-theme='dark'] .action-dock {
  background: transparent;
}

[data-theme='dark'] .dock-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-theme='dark'] .dock-btn:hover {
  background: #334155 !important;
  color: #60a5fa !important;
  border-color: #3b82f6 !important;
}

[data-theme='dark'] .dock-btn.active {
  background: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
}

/* Quick Actions Bar */
[data-theme='dark'] .quick-actions {
  background: #0a0f1d;
  border-top-color: #334155;
}

[data-theme='dark'] .quick-action-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme='dark'] .quick-action-btn:hover,
[data-theme='dark'] .quick-action-btn.active {
  background: #334155;
  color: #60a5fa;
  border-color: #3b82f6;
}

/* Quick Setup Drawer (Popup) */
[data-theme='dark'] #quick-setup-bar,
[data-theme='dark'] .quick-setup-drawer {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
}

/* All children inside the drawer inherit dark bg */
[data-theme='dark'] .quick-setup-drawer .setup-group,
[data-theme='dark'] .quick-setup-drawer .tab-content,
[data-theme='dark'] .quick-setup-drawer .travelers-controls,
[data-theme='dark'] .quick-setup-drawer .control-item {
  background: transparent !important;
  color: #f8fafc !important;
}


[data-theme='dark'] .setup-tab {
  color: #94a3b8 !important;
}

[data-theme='dark'] .setup-tab.active {
  color: #60a5fa !important;
  border-bottom-color: #60a5fa !important;
}

[data-theme='dark'] .setup-tabs-header {
  border-bottom-color: #334155 !important;
}

/* Quick Book Bar */
[data-theme='dark'] #quick-book-bar,
[data-theme='dark'] .quick-book-bar {
  background: #0f172a !important;
  border-color: #334155 !important;
}

/* Chips */
[data-theme='dark'] .chip {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme='dark'] .chip:hover {
  background: #334155;
  border-color: #3b82f6;
  color: #93c5fd;
}

[data-theme='dark'] .chip.selected,
[data-theme='dark'] .chip.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

[data-theme='dark'] .chip-tiny {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme='dark'] .chip-tiny:hover {
  background: #334155;
  color: #D4AF37;
  border-color: #D4AF37;
}

[data-theme='dark'] .chip-tiny.active,
[data-theme='dark'] .chip-tiny.selected {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Inspiration Cards */
[data-theme='dark'] .inspire-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .inspire-info h4 {
  color: #60a5fa;
}

[data-theme='dark'] .zero-state-cards h3 {
  color: #f8fafc;
}

/* Trip Cards */
[data-theme='dark'] .trip-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

[data-theme='dark'] .trip-card-body {
  background: #1e293b;
}

[data-theme='dark'] .trip-card-tag {
  background: #334155;
  color: #94a3b8;
}

[data-theme='dark'] .trip-card-heart {
  background: rgba(30, 41, 59, 0.9);
  color: #94a3b8;
}

[data-theme='dark'] .trip-card-heart:hover {
  background: #1e293b;
}

/* Skeleton Cards */
[data-theme='dark'] .skeleton-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .skeleton-img,
[data-theme='dark'] .skeleton-text {
  background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
  background-size: 200% 100%;
}

/* Modal */
[data-theme='dark'] .trip-detail-modal {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme='dark'] .modal-close-btn {
  background: rgba(51, 65, 85, 0.9);
  color: #f8fafc;
}

[data-theme='dark'] .modal-close-btn:hover {
  background: #334155;
}

/* Toast — Dark Mode (Full Override) */
[data-theme='dark'] .toast {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
[data-theme='dark'] .toast-message {
  color: #f1f5f9 !important;
}
[data-theme='dark'] .toast-icon {
  color: #f1f5f9;
}
[data-theme='dark'] .toast-close {
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
[data-theme='dark'] .toast-close:hover {
  color: #f1f5f9;
}
[data-theme='dark'] .toast-undo-btn {
  color: #60a5fa;
}

/* Toggle arrow dark mode */
[data-theme='dark'] .toggle-arrow-btn {
  color: #94a3b8;
}
[data-theme='dark'] .toggle-arrow-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* Language Dropdown */
[data-theme='dark'] #lang-dropdown {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
}

[data-theme='dark'] #lang-dropdown button {
  color: #cbd5e1 !important;
}

[data-theme='dark'] #lang-dropdown button:hover {
  background: #1e293b !important;
}

/* Budget Input */
[data-theme='dark'] .budget-input-wrapper input,
[data-theme='dark'] #budget-input {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}


/* Counter Buttons in Travelers */
[data-theme='dark'] .counter button {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Counter div itself — transparent */
[data-theme='dark'] .counter {
  background: transparent !important;
}

/* Travelers labels and count numbers */
[data-theme='dark'] .control-item,
[data-theme='dark'] .control-item span,
[data-theme='dark'] .travelers-controls,
[data-theme='dark'] .travelers-controls span {
  background: transparent !important;
  color: #cbd5e1 !important;
}

/* The actual count number (2, 0) */
[data-theme='dark'] #count-adults,
[data-theme='dark'] #count-children {
  background: transparent !important;
  color: #f8fafc !important;
  font-weight: 700;
}


/* Budget wrapper background */
[data-theme='dark'] .budget-input-wrapper {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme='dark'] .budget-controls {
  background: transparent;
}


/* Custom Days Input */
[data-theme='dark'] #custom-days {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

/* Scrollbars in Dark Mode */
[data-theme='dark'] ::-webkit-scrollbar {
  width: 6px;
}

[data-theme='dark'] ::-webkit-scrollbar-track {
  background: #0a0f1d;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Sidebar in Dark Mode */
[data-theme='dark'] .main-sidebar {
  background: #0f172a;
  border-right-color: #1e293b;
}

[data-theme='dark'] .brand-text {
  color: #f1f5f9 !important;
}

[data-theme='dark'] .brand-text .dot {
  color: #f59e0b !important;
}

[data-theme='dark'] .beta-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

[data-theme='dark'] .new-trip-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme='dark'] .nav-item {
  color: #94a3b8;
}
[data-theme='dark'] .nav-item:hover,
[data-theme='dark'] .nav-item.active {
  background: #1e293b;
  color: #60a5fa;
}

[data-theme='dark'] .collapse-btn {
  color: #94a3b8;
}

[data-theme='dark'] .sidebar-bottom {
  border-top-color: #1e293b;
}

[data-theme='dark'] .sidebar-utils .nav-btn {
  background: #1e293b;
  color: #94a3b8;
}
[data-theme='dark'] .sidebar-utils .nav-btn:hover {
  background: #334155;
  color: #60a5fa;
}

/* Widget in Dark Mode */
[data-theme='dark'] .trip-selection-widget {
  background: #1e293b;
  border-color: #334155;
}
[data-theme='dark'] .widget-header-minimal {
  background: #334155;
}
[data-theme='dark'] .widget-header-minimal:hover {
  background: #475569;
}
[data-theme='dark'] .header-left {
  color: #f1f5f9;
}
[data-theme='dark'] .header-text {
  color: #f1f5f9;
}
[data-theme='dark'] .toggle-arrow-btn {
  color: #94a3b8;
}
[data-theme='dark'] .widget-collapsible-content {
  background: #1e293b;
}
[data-theme='dark'] .widget-header-full {
  border-bottom-color: #334155;
}
[data-theme='dark'] .widget-header-full h3 {
  color: #f1f5f9;
}
[data-theme='dark'] .skip-link {
  color: #94a3b8;
}
[data-theme='dark'] .skip-link:hover {
  color: #60a5fa;
}
[data-theme='dark'] .selection-action-footer {
  border-top-color: #334155;
}
[data-theme='dark'] .inline-selection-hint {
  color: #94a3b8 !important;
}
[data-theme='dark'] .inline-continue-btn {
  background: #334155 !important;
  color: #94a3b8 !important;
}
[data-theme='dark'] .inline-continue-btn.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
[data-theme='dark'] .trip-card-body {
  background: #1e293b;
  border-color: #334155 !important;
}
[data-theme='dark'] .trip-card-body h4 {
  color: #f1f5f9 !important;
}
[data-theme='dark'] .trip-card-desc {
  color: #94a3b8 !important;
}

/* ============================================================ 
   NEW TRIP CARD DESIGN & SELECTION TRACKER 
   ============================================================ */
.trip-card.selected { border: 2px solid var(--royal-blue); box-shadow: 0 0 0 2px rgba(26,54,93,0.2); } 
.trip-card-img-wrapper { position: relative; } 
.trip-card-img-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; max-width: 70%; pointer-events: none; } 
.trip-card-img-tags .trip-card-tag { background: rgba(0,0,0,0.5); color: white; backdrop-filter: blur(4px); font-size: 10px; padding: 3px 8px; border-radius: 12px; } 
.trip-card-heart { top: 10px; right: 10px; } 
.trip-card-heart.saved { background: var(--royal-blue); color: white; border: none; } 

.selection-tracker-bar { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: white; padding: 12px 24px; border-radius: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 20px; z-index: 9999; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } 
.selection-tracker-bar.visible { bottom: 30px; } 
.selection-tracker-text { font-weight: 700; font-size: 14px; color: var(--text-primary); } 
.selection-tracker-btn { background: var(--royal-blue); color: white; border: none; border-radius: 20px; padding: 8px 20px; font-weight: 700; cursor: pointer; transition: all 0.2s; } 
.selection-tracker-btn:hover { background: var(--nile-blue); transform: scale(1.05); } 

/* MODAL SPLIT VIEW */ 
.modal-split-layout { display: flex; gap: 20px; } 
.modal-split-left { flex: 1; } 
.modal-split-right { flex: 1.2; display: flex; flex-direction: column; } 
.modal-minimap-container { margin-top: 15px; border-radius: 12px; overflow: hidden; height: 180px; background: #eee; } 
.modal-ai-highlight { background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05)); border-left: 3px solid var(--royal-blue); padding: 12px; border-radius: 0 8px 8px 0; margin: 15px 0; font-size: 13px; font-style: italic; color: var(--text-secondary); } 
@media (max-width: 768px) { .modal-split-layout { flex-direction: column; } }

/* TRIP SELECTION WIDGET */
.trip-selection-widget {
    background: #FFFFFF;
    border-radius: 24px;
    margin: 20px auto;
    max-width: 850px;
    overflow: hidden; /* Important for collapse animation */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseWidgetBlue {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}
.pulse-widget {
    animation: pulseWidgetBlue 0.4s ease-out;
}

/* الجزء اللي بيفضل ظاهر دايماً */
.widget-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    background: var(--bg-light);
    border-radius: 24px; /* Matches parent */
    transition: background 0.2s;
}
.widget-header-minimal:hover {
    background: var(--border-color);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

/* الجزء اللي بيختفي */
.widget-collapsible-content {
    max-height: 2000px; /* Big enough for full content */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 32px;
    opacity: 1;
}

/* الحالة لما يكون المربع مقفول */
.trip-selection-widget.collapsed .widget-collapsible-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* Remove old text-based arrow rotation rule (now SVG rotated via parent) */

.toggle-arrow-btn {
    transition: transform 0.3s ease;
    background: none; 
    border: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}
.toggle-arrow-btn:hover {
    background: rgba(0,0,0,0.07);
}
/* Arrow points DOWN when open (default), LEFT when collapsed */
.trip-selection-widget .toggle-arrow-btn {
    transform: rotate(0deg);
}
.trip-selection-widget.collapsed .toggle-arrow-btn {
    transform: rotate(-90deg);
}

.widget-header-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.widget-header-full h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}




.skip-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.skip-link:hover {
    color: var(--royal-blue);
}

.trip-carousel-wrapper {
    padding: 0 5px;
}

.suggestion-cards-carousel.trip-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.suggestion-cards-carousel.trip-carousel::-webkit-scrollbar {
    height: 6px;
}
.suggestion-cards-carousel.trip-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.suggestion-cards-carousel.trip-carousel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.carousel-item {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* زرار Continue والسطر اللي تحت */
.selection-action-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0 0;
    border-top: none;
}
.inline-selection-hint {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.inline-continue-btn {
    background: var(--bg-light);
    color: var(--text-light);
    border: none;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

/* لما الزرار ينور (لما تدوس قلب) */
.inline-continue-btn.active {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    cursor: pointer;
    padding: 12px 40px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* ============================================================
   AI TYPING / LOADING INDICATOR
   ============================================================ */

.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

/* Pulse Dots */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--royal-blue);
    opacity: 0.4;
    animation: typingPulse 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
    40%           { transform: scale(1.1); opacity: 1; }
}

/* Step Label */
.typing-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 1;
    transition: opacity 0.2s ease;
    letter-spacing: 0.01em;
}

/* Dark Mode */
[data-theme='dark'] .typing-dots span {
    background: #60a5fa;
}
[data-theme='dark'] .typing-step-label {
    color: #94a3b8;
}
.brand-text, .brand-name {
    color: var(--royal-blue) !important; /* هيجبرها تاخد الأزرق المشرق */
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* ============================================================
   INFO BADGES & INSIGHTS (Airial Style)
   ============================================================ */
.info-badges-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-badge {
    padding: 16px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none !important;
    transition: var(--transition-normal);
}

.badge-uniqueness {
    background-color: #F3E8FF !important; /* Pastel Lavender */
    color: #6B21A8;
}

.badge-tips {
    background-color: #E6FFFA !important; /* Pastel Mint */
    color: #065F46;
}

.badge-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.badge-content {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: inherit;
}

/* ============================================================
   HORIZONTAL STEPPER
   ============================================================ */
.booking-stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  flex: 1;
  gap: 10px;
}
.booking-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}
.stepper-step {
  position: relative;
  z-index: 2;
  background: var(--bg-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  flex: 1;
  text-align: center;
}
.stepper-step.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #f0fdf4; /* Match active UI */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.stepper-step.completed {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

/* ============================================================
   INLINE BOOKING CARD (Grid)
   ============================================================ */
.inline-booking-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.inline-booking-header {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.inline-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.inline-booking-input {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  position: relative;
  margin-top: 4px;
  min-height: 48px;
}
.inline-booking-input input, .inline-booking-input select {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: inherit;
  color: var(--text-primary);
}
