/* ==========================================
   BusBot — AI Bus Booking Chatbot
   Design System & Styles
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Brand & Accent Colors */
    --color-primary: #0ea5e9;    /* Sky Blue */
    --color-secondary: #10b981;   /* Emerald Green */
    --color-accent: #f97316;     /* Orange */

    /* Background & Surface Colors */
    --color-bg: #FFFFFF;
    --color-surface: #f8fafc;   /* Very light gray for cards */
    --color-surface-alt: #f1f5f9; /* Light gray for subtle variations */
    --color-border: #e2e8f0;

    /* Text Colors */
    --color-text-dark: #0f172a;  /* Near black */
    --color-text-mid: #475569;   /* Slate */
    --color-text-light: #94a3b8; /* Light slate */
    --color-text-white: #FFFFFF;

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), #fb923c);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */
    --space-4xl: 6rem;    /* 96px */

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px 0 rgb(14 165 233 / 0.2);

    /* Transitions */
    --transition-fast: 200ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-mid);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-secondary);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    color: inherit;
}

input {
    font-family: var(--font-body);
    border: none;
    outline: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-alt);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 30%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background-color: var(--color-primary);
    top: -15%;
    right: -15%;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 450px;
    height: 450px;
    background-color: var(--color-secondary);
    bottom: -10%;
    left: -10%;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(20px, 40px) scale(1.05); }
}

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

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.sr-only, .skip-to-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.skip-to-content:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: var(--space-md);
    background: var(--color-text-dark);
    color: var(--color-text-white);
    border-radius: var(--radius-md);
    width: auto;
    height: auto;
    clip: auto;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    padding: var(--space-md) 0;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    box-shadow: 0 4px 12px rgb(14 165 233 / 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-mid);
    transition: var(--transition-fast);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    height: 24px;
    justify-content: center;
}

.nav-hamburger .line {
    width: 24px;
    height: 2.5px;
    background: var(--color-text-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active .line-1 {
    transform: translateY(8.5px) rotate(45deg);
}
.nav-hamburger.active .line-2 {
    opacity: 0;
}
.nav-hamburger.active .line-3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background-color: #ecfdf5; /* Light emerald */
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* --- General Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 2px solid transparent;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-white);
    box-shadow: 0 4px 20px rgb(249 115 22 / 0.3);
}
.btn-primary:hover {
    background: #ea580c; /* Darker orange */
}
.btn-secondary {
    background: var(--color-bg);
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background: #f0f9ff; /* Light blue */
}
.btn-cta {
    background: var(--color-text-white);
    color: var(--color-primary);
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}
.btn-cta:hover {
    background: #f0f9ff;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* --- Hero Chat Preview --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chat-preview {
    width: 380px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: floatPreview 6s ease-in-out infinite;
}

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

.chat-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex; /* Center icon */
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
}

.preview-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.preview-status {
    font-size: 0.8rem;
    color: var(--color-success);
}

.chat-preview-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 280px;
}

.preview-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    animation: fadeSlideIn 0.5s ease forwards;
}

.preview-msg.bot-msg {
    background: var(--color-surface-alt);
    color: var(--color-text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.preview-msg.user-msg {
    background: var(--color-primary);
    color: var(--color-text-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.anim-msg-1 { animation-delay: 0.5s; }
.anim-msg-2 { animation-delay: 1.5s; }
.anim-msg-3 { animation-delay: 2.5s; }
.anim-msg-4 { animation-delay: 3.5s; }
.anim-msg-5 { animation-delay: 4.2s; }

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

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-light);
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ==========================================
   GENERAL SECTION STYLES
   ========================================== */
.features, .how-it-works, .routes, .testimonials, .faq {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f0f9ff; /* Light blue */
    border: 1px solid #bae6fd;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    background-color: var(--color-surface);
}

/* ==========================================
   INTERACTIVE FEATURES TABS SECTION
   ========================================== */
.features {
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.features-tabs-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: var(--space-2xl);
    align-items: start;
    margin-top: var(--space-xl);
}

/* Tab Selectors (Left side) */
.features-tabs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tab-btn {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Hover & Active States */
.tab-btn:hover {
    transform: translateX(6px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md), 0 4px 20px rgb(14 165 233 / 0.05);
}

.tab-btn.active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
    box-shadow: var(--shadow-lg), 0 10px 30px rgb(14 165 233 / 0.08);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Icons inside Tabs */
.tab-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--color-surface-alt);
    color: var(--color-text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.tab-btn:hover .tab-icon {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 10px rgb(14 165 233 / 0.2);
}

.tab-btn.active .tab-icon {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 12px rgb(14 165 233 / 0.3);
}

/* Tab button text details */
.tab-btn-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-dark);
    transition: color var(--transition-fast);
}

.tab-btn:hover h3,
.tab-btn.active h3 {
    color: var(--color-primary);
}

.tab-btn-content p {
    font-size: 0.875rem;
    color: var(--color-text-mid);
    line-height: 1.4;
}

/* Right Side: Mockup Display Box */
.features-tabs-display {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Window/Device Mockup Top Bar */
.mockup-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    position: relative;
    height: 52px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-mid);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mockup Body Content */
.mockup-content {
    padding: var(--space-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.02), transparent);
}

/* --- Tab Panel Entrance animation --- */
.tab-panel {
    width: 100%;
    animation: tabFadeScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* --- Panel 1: Smart Search Mockup --- */
.chat-mock {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 100%;
}

.chat-mock-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-mock-bubble.user {
    background: var(--color-primary);
    color: var(--color-text-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-mock-bubble.bot {
    background: var(--color-surface-alt);
    color: var(--color-text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--color-border);
}

.chat-mock-bubble.typing {
    padding: 10px 16px;
}

/* Bubble Animations */
.animate-bubble-1 {
    opacity: 0;
    animation: fadeSlideIn 0.5s ease 0.5s forwards;
}

.animate-typing-indicator {
    opacity: 0;
    animation: typingIndicatorCycle 8s infinite;
}

.animate-bubble-2 {
    opacity: 0;
    animation: bubble2Cycle 8s infinite;
}

@keyframes typingIndicatorCycle {
    0%, 15% { opacity: 0; transform: translateY(5px); }
    18%, 45% { opacity: 1; transform: translateY(0); }
    48%, 100% { opacity: 0; }
}

@keyframes bubble2Cycle {
    0%, 48% { opacity: 0; transform: translateY(10px); }
    52%, 92% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; }
}

.bus-mini-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-sm);
    box-shadow: var(--shadow-sm);
    min-width: 250px;
}

.mini-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.mini-card-row.alt {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.mini-card-row .operator {
    font-weight: 700;
    color: var(--color-text-dark);
}

.mini-card-row .price {
    font-weight: 700;
    color: var(--color-secondary);
}

/* --- Panel 2: Compare & Choose Mockup --- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.compare-bus-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    position: relative;
    transition: all var(--transition-fast);
}

.compare-bus-card.highlighted {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.hot-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: var(--color-text-white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.compare-bus-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.bus-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.bus-badge.ac {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
}

.bus-badge.volvo {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-secondary);
}

.compare-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.compare-info-row .rating {
    color: var(--color-warning);
}

.btn-mock-compare {
    align-self: center;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.btn-mock-compare:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.compare-table-wrapper {
    margin-top: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: slideDownFade 0.3s ease forwards;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: center;
}

.compare-table th, .compare-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--color-border);
}

.compare-table th {
    background: var(--color-surface);
    font-weight: 700;
    color: var(--color-text-dark);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

/* --- Panel 3: Seat Map Mockup --- */
.mock-seat-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin: var(--space-sm) auto var(--space-lg);
    background: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    max-width: 240px;
}

.mock-seat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-seat {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-mid);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mock-seat:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.mock-seat.selected {
    background: var(--color-secondary);
    color: var(--color-text-white);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.mock-seat.booked {
    background: var(--color-surface-alt);
    color: var(--color-text-light);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.5;
}

.mock-seat-aisle {
    width: 24px;
}

.mock-seat-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
}

.mock-seat-summary .summary-line {
    display: flex;
    justify-content: space-between;
}

/* --- Panel 4: Live GPS Tracker Mockup --- */
.tracking-dashboard {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.tracking-stats .stat-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-xs);
    text-align: center;
}

.tracking-stats .stat-box .label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.tracking-stats .stat-box .val {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.tracking-stats .stat-box .green-text {
    color: var(--color-secondary);
}

.tracking-progress-container {
    padding: var(--space-md) 0 var(--space-sm);
}

.tracking-line {
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    position: relative;
    margin-bottom: 12px;
}

.tracking-line-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 0;
    left: 0;
    transition: width var(--transition-slow);
}

.tracking-bus-icon {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    transition: left var(--transition-slow);
}

.tracking-stops {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.tracking-stops .stop.active {
    color: var(--color-primary);
    font-weight: 700;
}

.tracking-status-text {
    font-size: 0.75rem;
    text-align: center;
    color: var(--color-text-mid);
    line-height: 1.4;
    min-height: 40px;
}

.btn-mock-tracking {
    align-self: center;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text-white);
    transition: all var(--transition-fast);
}

.btn-mock-tracking:hover {
    background: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* --- Panel 5: Multilingual Translator Mockup --- */
.lang-selector-mock {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.chat-mock.translator {
    min-height: 180px;
    justify-content: center;
}

#lang-user-bubble, #lang-bot-bubble {
    transition: opacity 0.3s ease;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works {
    background-color: #f0f9ff; /* Light blue tint */
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 0 var(--space-md);
    width: 220px;
    flex-shrink: 0;
}

.step-indicator {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.step-icon {
    color: var(--color-primary);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 3px solid var(--color-bg);
}

.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: 0.9rem;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-image: linear-gradient(to right, var(--color-text-light) 50%, transparent 50%);
    background-size: 16px 2px;
    margin-top: 40px;
    min-width: 30px;
}

.step-card:last-of-type + .step-connector {
    display: none;
}

/* ==========================================
   POPULAR ROUTES SECTION
   ========================================== */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.route-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.route-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.route-cities {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.route-from, .route-to {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
}

.route-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.route-details {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.route-price {
    font-weight: 600;
    color: var(--color-success);
}

.btn-book-route {
    width: 100%;
    border-width: 1px;
}

.route-card-badge {
    position: absolute;
    top: var(--space-md);
    right: -40px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}
.route-card-badge.popular { background-color: var(--color-accent); }
.route-card-badge.value { background-color: var(--color-secondary); }

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    background-color: var(--color-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-text-dark);
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.testimonial-rating {
    margin-left: auto;
    color: var(--color-warning);
    font-size: 1.1rem;
}

.testimonial-quote {
    font-style: italic;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
    background-color: #f0f9ff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: left;
    color: var(--color-text-dark);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    position: relative;
    width: 20px;
    height: 20px;
}
.faq-icon svg {
    position: absolute;
    transition: opacity var(--transition-base), transform var(--transition-base);
}
.icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}
.faq-item.active .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}
.faq-item.active .icon-minus {
    opacity: 1;
    transform: rotate(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active {
    border-color: var(--color-primary);
    background-color: #f0f9ff;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 0.95rem;
}

/* ==========================================
   CTA BANNER SECTION
   ========================================== */
.cta-banner {
    background: var(--gradient-primary);
    padding: var(--space-3xl) 0;
    color: var(--color-text-white);
}
.cta-container {
    text-align: center;
}
.cta-container h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-text-white);
    margin-bottom: var(--space-sm);
}
.cta-container p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0;
}

.footer-brand .nav-logo {
    margin-bottom: var(--space-md);
    color: var(--color-text-white);
}

.footer-desc {
    max-width: 300px;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}
.social-links a {
    color: var(--color-text-light);
}
.social-links a:hover {
    color: var(--color-primary);
}

.footer-links-group h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
}

.footer-links-group a {
    display: block;
    color: var(--color-text-light);
    padding: var(--space-xs) 0;
}

.footer-links-group a:hover {
    color: var(--color-text-white);
}

.newsletter-form {
    display: flex;
    margin-top: var(--space-sm);
}
.newsletter-form input {
    width: 100%;
    padding: 10px;
    background: #293548;
    border: 1px solid #3e4c62;
    color: var(--color-text-white);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.newsletter-form button {
    padding: 10px 14px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #293548;
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.language-selector a {
    color: var(--color-text-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}
.language-selector a.active {
    color: var(--color-text-white);
    background-color: #293548;
}

/* ==========================================
   CHAT WIDGET
   ========================================== */

.chat-fab-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgb(249 115 22 / 0.4);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgb(249 115 22 / 0.5);
}

.chat-fab-icon,
.chat-fab-close {
    position: absolute;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.chat-fab-close {
    opacity: 0;
    transform: rotate(-45deg) scale(0.8);
}

.chat-fab.active .chat-fab-icon {
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
}

.chat-fab.active .chat-fab-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chat-fab::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-accent);
    animation: fabPulse 2s ease-out infinite;
    z-index: -1;
}

.chat-fab.active::after {
    animation: none;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.chat-fab-tooltip {
    background: var(--color-text-dark);
    color: var(--color-text-white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-base);
    pointer-events: none;
}
.chat-fab-container:hover .chat-fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --- Chat Panel --- */
.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 420px;
    height: 70vh;
    max-height: 650px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
    transform-origin: bottom right;
}

.chat-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-text-white);
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.chat-header-name {
    font-weight: 700;
    font-size: 1rem;
}

.chat-header-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-header-actions {
    display: flex;
}

.chat-action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    transition: background-color var(--transition-fast);
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Message Bubbles */
.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: msgAppear 0.4s ease-out forwards;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

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

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.message.bot .message-bubble {
    background: var(--color-surface-alt);
    border-bottom-left-radius: 4px;
    color: var(--color-text-dark);
}

.message.user .message-bubble {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 4px;
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
}

/* Bus Results Card */
.bus-results-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.bus-result-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.bus-result-item:last-child {
    border-bottom: none;
}

.bus-result-item:hover {
    background: var(--color-surface);
}

.bus-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.bus-operator {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.bus-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-success);
}

.bus-details {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.bus-detail-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--color-surface-alt);
    color: var(--color-text-mid);
}

.bus-detail-tag.type {
    background: #ecfdf5;
    color: var(--color-secondary);
}

.bus-seats-left {
    font-size: 0.8rem;
    color: var(--color-warning);
    margin-top: var(--space-xs);
}

.bus-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 600;
}

/* Seat Map */
.seat-map-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

.seat-map-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-mid);
    margin-bottom: var(--space-md);
    text-align: center;
}

.seat-map-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-box.available { background: var(--color-surface-alt); border: 1px solid var(--color-border); }
.legend-box.selected { background: var(--color-primary); }
.legend-box.booked { background: var(--color-surface-alt); opacity: 0.6; }
.legend-box.ladies { background: #fce7f3; border: 1px solid #f9a8d4; }

.seat-map-grid {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Spacing between rows */
    align-items: center;
}

.seat-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.seat {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text-mid);
}

.seat:hover:not(.booked) {
    border-color: var(--color-primary);
    background: #f0f9ff;
}

.seat.selected {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.seat.booked {
    background: var(--color-surface-alt);
    color: var(--color-text-light);
    opacity: 0.6;
    cursor: not-allowed;
}

.seat.ladies {
    background: #fce7f3;
    border-color: #f9a8d4;
    color: #ec4899;
    cursor: not-allowed;
}

.seat-aisle {
    width: 20px;
}

.seat-driver {
    font-size: 0.6rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.seat-confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.seats-selected-info {
    font-size: 0.85rem;
    color: var(--color-text-mid);
}

.btn-confirm-seats {
    padding: 8px 16px;
    background: var(--color-accent);
    color: var(--color-text-white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.btn-confirm-seats:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Booking Summary Card */
.booking-summary-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.booking-summary-header {
    padding: var(--space-md);
    background: var(--gradient-primary);
}

.booking-summary-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.booking-summary-body {
    padding: var(--space-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-surface-alt);
}

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

.summary-label {
    color: var(--color-text-mid);
}

.summary-value {
    font-weight: 600;
    color: var(--color-text-dark);
}

.summary-value.total {
    color: var(--color-success);
    font-size: 1rem;
}

.booking-id-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #dcfce7;
    color: var(--color-success);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Typing Indicator */
.chat-typing {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-lg) var(--space-sm);
    flex-shrink: 0;
}

.chat-typing.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.typing-text {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Chat Input */
.chat-input-area {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    flex-shrink: 0;
    padding-top: var(--space-sm);
}

.chat-footer {
    font-size: 0.7rem;
    text-align: center;
    color: var(--color-text-light);
    padding: 4px 0;
}

.quick-actions {
    display: flex;
    gap: var(--space-sm);
    padding: 0 var(--space-md) var(--space-sm);
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar { display: none; }

.quick-actions:empty {
    display: none;
}

.quick-action-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-mid);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.quick-action-btn:hover {
    background: #f0f9ff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-md) var(--space-md);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-dark);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.chat-input::placeholder {
    color: var(--color-text-light);
}

.chat-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(14 165 233 / 0.1);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.chat-send:hover {
    background: #ea580c;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
        padding-top: var(--space-2xl);
    }

    .hero-subtitle {
        margin: 0 auto var(--space-xl);
    }

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

    .hero-stats {
        justify-content: center;
        gap: var(--space-xl);
    }

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

    .hero-visual {
        order: -1;
    }

    .chat-preview {
        width: 340px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2xl);
    }

    .step-connector {
        display: none;
    }

    .routes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--space-sm) 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .btn-chat-nav {
        padding: 10px;
        font-size: 0; /* Hide text */
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }

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

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand, .newsletter-form {
        margin: 0 auto;
    }

    /* Chat goes full width on mobile */
    .chat-panel {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .chat-fab {
        bottom: 20px;
        right: 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .chat-preview {
        width: 100%;
        max-width: 340px;
    }
}

/* --- Animations for scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Passenger Form inside chat --- */
.passenger-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

.passenger-form h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-mid);
    margin-bottom: 3px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgb(14 165 233 / 0.1);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-group select option {
    background: var(--color-bg);
    color: var(--color-text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.btn-submit-form {
    width: 100%;
    margin-top: var(--space-md);
    padding: 12px;
    background: var(--color-accent);
    color: var(--color-text-white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-submit-form:hover {
    background: #ea580c;
}

/* Confirmation success animation */
@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-animation {
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--color-success);
}

/* ==========================================
   DYNAMIC ROUTES FILTER SECTION
   ========================================== */
.routes-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.search-box-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 260px;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

#route-search-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#route-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.filter-dropdowns {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
    flex: 2;
    justify-content: flex-end;
}

.filter-select {
    padding: 10px 32px 10px 14px;
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-dark);
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-reset-filters {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-mid);
    font-weight: 500;
}

.btn-reset-filters:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-text-light);
}

.routes-count-info {
    font-size: 0.85rem;
    color: var(--color-text-mid);
    margin-bottom: var(--space-md);
    font-weight: 600;
    background: rgba(14, 165, 233, 0.06);
    color: var(--color-primary);
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.no-routes-found {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    grid-column: 1 / -1;
    color: var(--color-text-mid);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.no-routes-found svg {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

.no-routes-found h4 {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
}

.no-routes-found p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
