:root {
    --primary: #00AFF5;
    --primary-hover: #0096d6;
    --primary-light: #e6f7fe;
    --accent: #054752;
    --card: #ffffff;
    --text: #111827;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --background: #f4f7f9;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(5, 71, 82, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 12px 96px;
    width: 100%;
}

.in-development-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 16px 12px 8px;
    color: var(--accent);
}

@media (min-width: 768px) {
    .container { padding-bottom: 24px; }
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card h1, .card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; min-width: 120px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; }

.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.toggle-group {
    display: flex;
    gap: 4px;
    background: var(--primary-light);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--accent);
}

.toggle-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.typeahead-wrap { position: relative; }

.typeahead-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.typeahead-dropdown.open { display: block; }

.typeahead-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

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

.typeahead-item:hover { background: var(--primary-light); }

.typeahead-empty {
    padding: 12px 14px;
    color: var(--text-secondary);
    font-size: 14px;
}

.status-message {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 14px;
}

.status-message.show { display: block; }

.status-message.info { background: var(--primary-light); color: var(--accent); }
.status-message.error { background: #fef2f2; color: var(--error); }
.status-message.success { background: #ecfdf5; color: var(--success); }

.trip-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trip-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.trip-select {
    margin-top: 8px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.trip-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border);
    flex-shrink: 0;
}

.trip-avatar-ph {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.trip-body { flex: 1; min-width: 0; }

.trip-route {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.trip-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.trip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.trip-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.trip-driver {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.trip-rating { color: var(--warning); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}

.badge-package { background: #fef3c7; color: #92400e; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; }

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: #fff;
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.timeline {
    position: relative;
    padding-left: 24px;
    margin: 16px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-time { font-size: 13px; color: var(--text-secondary); }
.timeline-label { font-weight: 600; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-row input { width: 18px; height: 18px; accent-color: var(--primary); }

.city-coords-panel {
    display: none;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.city-coords-panel.visible { display: block; }

.multi-book-bar {
    position: fixed;
    bottom: 72px;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--accent);
    color: #fff;
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.multi-book-bar.visible { display: flex; }

@media (min-width: 768px) {
    .multi-book-bar {
        bottom: 0;
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

.preview-box {
    margin-top: 12px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}

.preview-box.visible { display: block; }

.booking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

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

.loading-spinner {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
}
