/* ==========================================================================
   Kyydit Ride Sharing Design System & Application Styles
   ========================================================================== */

:root {
    --bg-base: #0c111d;
    --bg-surface: #141c2e;
    --bg-surface-elevated: #1b263e;
    --bg-surface-glass: rgba(20, 28, 46, 0.78);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.16);

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.35);

    --secondary: #0ea5e9;
    --secondary-hover: #0284c7;

    --emerald: #10b981;
    --emerald-bg: rgba(16, 185, 129, 0.14);
    --emerald-text: #34d399;

    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.14);
    --amber-text: #fbbf24;

    --rose: #f43f5e;
    --rose-bg: rgba(244, 63, 94, 0.14);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --sidebar-width: 480px;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.map-wrapper {
    flex: 1;
    height: 100vh;
    position: relative;
    background: #0f172a;
}

#map {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Sidebar Header & Brand
   ========================================================================== */
.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(20,28,46,0.95) 0%, rgba(16,23,39,0.95) 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    background: linear-gradient(90deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
    flex: 1;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    flex: 1;
}
.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-xs {
    padding: 4px 10px;
    font-size: 11.5px;
    border-radius: 6px;
}

/* ==========================================================================
   Stats Ribbon
   ========================================================================== */
.stats-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 18px;
    background: rgba(10, 15, 26, 0.6);
    border-bottom: 1px solid var(--border-subtle);
}

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

.stat-value {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.text-emerald { color: var(--emerald-text) !important; }
.text-amber { color: var(--amber-text) !important; }

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

/* ==========================================================================
   Main Event & Date Selection Panel
   ========================================================================== */
.main-filter-panel {
    padding: 10px 16px 12px 16px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.65) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.filter-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.btn-clear-filter {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-filter:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
    border-color: #ef4444;
}

.filter-panel-controls {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.filter-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.filter-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select {
    width: 100%;
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select:hover, .filter-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.filter-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 7px;
}

.filter-separator span {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-panel-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-past {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: var(--radius-sm);
    padding: 3.5px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-toggle-past:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.btn-toggle-past.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.6);
    color: #a5b4fc;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.custom-date-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.custom-date-container .date-input-picker {
    width: 100%;
    padding-right: 32px;
}

.custom-date-container .btn-picker-trigger {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.8;
    transition: opacity 0.15s, transform 0.1s;
    line-height: 1;
    border-radius: 4px;
}

.custom-date-container .btn-picker-trigger:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Monday-First Custom Calendar Popup */
.monday-calendar-popup {
    position: absolute;
    z-index: 10000;
    width: 270px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    font-family: var(--font-body);
    color: #f8fafc;
    animation: fadeIn 0.15s ease;
    user-select: none;
}

.monday-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.monday-calendar-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
    text-transform: capitalize;
}

.monday-calendar-nav {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s;
}

.monday-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.monday-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
}

.monday-calendar-weekday {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    padding: 2px 0;
}

.monday-calendar-weekday:nth-child(6),
.monday-calendar-weekday:nth-child(7) {
    color: #f87171; /* Weekend indicator */
}

.monday-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.monday-calendar-day {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.12s ease;
    color: #e2e8f0;
    position: relative;
}

.monday-calendar-day:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.monday-calendar-day.is-selected {
    background: #6366f1 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.monday-calendar-day.is-today {
    border: 1px solid #38bdf8;
    color: #38bdf8;
    font-weight: 700;
}

.monday-calendar-day.is-other-month {
    color: #475569;
    opacity: 0.4;
}

.monday-calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.monday-calendar-footer button {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.monday-calendar-footer button:hover {
    text-decoration: underline;
}

/* Card & List "Show All" rows */
.card-show-all-row {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}

.btn-link-show-all {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-link-show-all:hover {
    color: #38bdf8;
}

.list-footer-show-all {
    text-align: center;
    padding: 12px 16px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-footer-show-all .btn-text-link {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
}

.list-footer-show-all .btn-text-link:hover {
    color: #7dd3fc;
}

.date-badge {
    display: none;
}

.active-filter-indicator {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    animation: fadeIn 0.2s ease;
}

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e0e7ff;
    min-width: 0;
}

#active-filter-tag-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.btn-remove-pill {
    background: transparent;
    border: none;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    line-height: 1;
    margin-left: 6px;
}

.btn-remove-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.btn-copy-pill {
    background: rgba(99, 179, 237, 0.12);
    border: 1px solid rgba(99, 179, 237, 0.3);
    color: #90cdf4;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 9px;
    border-radius: 12px;
    line-height: 1.4;
    margin-left: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-copy-pill:hover {
    background: rgba(99, 179, 237, 0.25);
    border-color: #63b3ed;
    color: #fff;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.nav-tabs {
    display: flex;
    padding: 10px 16px 0 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-tab:hover {
    color: var(--text-main);
}

.nav-tab.active {
    color: #fff;
    border-bottom-color: #6366f1;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
}

.nav-tab.active .tab-badge {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   Filter & Search
   ========================================================================== */
.filter-controls {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(16, 23, 39, 0.3);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 13px;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.filter-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.chip.active {
    background: rgba(99, 102, 241, 0.18);
    border-color: #6366f1;
    color: #a5b4fc;
    font-weight: 600;
}

/* ==========================================================================
   Cards Container & Cards
   ========================================================================== */
.cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ride-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ride-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ride-card.selected {
    border-color: #6366f1;
    background: linear-gradient(180deg, rgba(30, 42, 70, 0.95) 0%, rgba(20, 28, 46, 0.95) 100%);
    box-shadow: 0 0 0 1px #6366f1, 0 8px 24px rgba(79, 70, 229, 0.3);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.avatar-driver {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
}

.avatar-request {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
}

.person-info h4 {
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
}

.person-info .role-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
}

.badge-available {
    background: var(--emerald-bg);
    color: var(--emerald-text);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-full {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-request {
    background: var(--amber-bg);
    color: var(--amber-text);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Route Path Visualizer in Card */
.route-path {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding-left: 6px;
    border-left: 2px dashed rgba(255, 255, 255, 0.15);
    margin-left: 6px;
}

.route-stop {
    position: relative;
    padding-left: 12px;
}

.route-stop::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid var(--bg-surface-elevated);
}

.route-stop.stop-origin::before {
    background: #38bdf8;
}

.route-stop.stop-dest::before {
    background: #10b981;
}

.route-stop .stop-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 600;
}

.route-stop .stop-address {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

/* Meta info bar */
.card-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-item strong {
    color: #fff;
}

/* Passenger Slots Visualization */
.slots-container {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(10, 15, 26, 0.45);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slots-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.passenger-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.passenger-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.booking-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.booking-row.is-confirmed {
    border-left: 3px solid var(--emerald);
    background: rgba(16, 185, 129, 0.04);
}

.booking-row.is-pending {
    border-left: 3px solid var(--amber);
    background: rgba(245, 158, 11, 0.04);
}

.booking-main-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.passenger-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #fff;
}

.booking-status-pill {
    font-size: 10.5px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.booking-status-pill.confirmed {
    background: var(--emerald-bg);
    color: var(--emerald-text);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.booking-status-pill.pending {
    background: var(--amber-bg);
    color: var(--amber-text);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pickup-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.pickup-details strong {
    color: #cbd5e1;
}

.detour-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 11px;
    font-weight: 600;
}

.booking-driver-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-confirm-pickup {
    background: var(--emerald-bg);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--emerald-text);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-confirm-pickup:hover {
    background: #10b981;
    color: white;
}

.btn-decline-pickup {
    background: var(--rose-bg);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-decline-pickup:hover {
    background: var(--rose);
    color: white;
}

.btn-remove-pickup {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-remove-pickup:hover {
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
}

.empty-seat-slot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    color: var(--emerald-text);
    margin-top: 4px;
}

/* Pickup estimates & smart recommendation inside modal */
.pickup-estimates-box {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.estimate-item {
    font-size: 12.5px;
    color: #cbd5e1;
}

.estimate-item strong {
    color: #fff;
    margin-left: 4px;
}

.estimate-notice {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.smart-rec-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rec-icon {
    font-size: 20px;
    line-height: 1;
}

.rec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rec-title {
    color: #fbbf24;
    font-size: 12.5px;
    font-weight: 700;
}

.rec-text {
    font-size: 12px;
    color: #fde68a;
    line-height: 1.4;
}

.badge-best-match {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid #f59e0b;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-book {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-book:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-1px);
}

.btn-delete-card {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-delete-card:hover {
    color: var(--rose);
    border-color: rgba(244, 63, 94, 0.3);
    background: var(--rose-bg);
}

/* ==========================================================================
   Loading & Empty States
   ========================================================================== */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.empty-state h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 6px;
}

/* ==========================================================================
   Map Overlays & Legend
   ========================================================================== */
.map-overlay-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.map-btn-group {
    display: flex;
    gap: 8px;
}

.map-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-bright);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.18s ease;
}

.map-ctrl-btn:hover {
    background: var(--bg-surface-elevated);
    border-color: #6366f1;
    transform: translateY(-1px);
}

.map-ctrl-btn.active {
    background: #4f46e5;
    border-color: #818cf8;
    color: #fff;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.map-legend {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-bright);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-driver { background: #6366f1; box-shadow: 0 0 8px #6366f1; }
.dot-request { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.map-picking-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #4f46e5;
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    animation: pulse 1.5s infinite;
}

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

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
    animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.modal-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}
.modal-close:hover { color: #fff; }

.modal-form {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

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

.flex-1 { flex: 1; }

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.required {
    color: var(--rose);
}

.form-group input, .form-group select {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: #6366f1;
}

.input-with-action {
    display: flex;
    position: relative;
}

.input-with-action input {
    width: 100%;
    padding-right: 40px;
}

.btn-input-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.btn-input-icon:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* Number stepper */
.number-stepper {
    display: flex;
    align-items: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.number-stepper input {
    text-align: center;
    border: none !important;
    background: transparent !important;
    width: 60px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 15px;
}

.btn-step {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-step:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Geo Suggestions Autocomplete */
.geo-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-top: 4px;
    display: none;
}

.geo-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.geo-suggestion-item:last-child {
    border-bottom: none;
}
.geo-suggestion-item:hover {
    background: #334155;
    color: #fff;
}

.route-preview-pill {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    justify-content: space-around;
    font-size: 12.5px;
    color: #a5b4fc;
}

.booking-summary-box {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    border: 1px solid var(--border-bright);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.25s ease forwards;
    pointer-events: auto;
}

.toast.toast-success {
    border-left: 4px solid var(--emerald);
}
.toast.toast-error {
    border-left: 4px solid var(--rose);
}
.toast.toast-info {
    border-left: 4px solid var(--secondary);
}

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

/* ==========================================================================
   Leaflet Customizations
   ========================================================================== */
.leaflet-popup-content-wrapper {
    background: #141c2e !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
    font-family: var(--font-body) !important;
}

.leaflet-popup-tip {
    background: #141c2e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.custom-map-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    transition: transform 0.2s ease;
}

.marker-pin:hover {
    transform: scale(1.15);
}

.pin-driver {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
}

.pin-request {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.pin-origin {
    background: #0ea5e9;
    border-color: #e0f2fe;
}

.pin-dest {
    background: #10b981;
    border-color: #d1fae5;
}

.pin-pickup {
    background: #06b6d4;
    border-color: #cffafe;
}

/* Live moving car marker styling */
.custom-car-marker-container {
    background: transparent;
    border: none;
}

.live-car-marker {
    background: #0f172a;
    border: 2px solid #6366f1;
    border-radius: 9999px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.live-car-marker:hover {
    transform: scale(1.1);
}

.live-car-marker.is-moving {
    animation: carPulse 2.2s infinite;
}

@keyframes carPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

.live-car-icon {
    font-size: 13.5px;
    line-height: 1;
}

.live-car-name {
    font-size: 11px;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.route-color-chip {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* ==========================================================================
   Destination / Event Styles & Quick Selection
   ========================================================================== */
.btn-accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    white-space: nowrap;
}
.btn-accent:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.text-indigo { color: #818cf8; }

.preset-dest-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px dashed rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
}
.preset-dest-box label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 6px;
}
.preset-dest-box select {
    background: rgba(15, 23, 42, 0.85);
    color: #f1f5f9;
    border: 1px solid rgba(139, 92, 246, 0.4);
}
.preset-dest-box select:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}

.destination-card {
    background: var(--bg-surface);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-left: 4px solid #8b5cf6;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.destination-card:hover {
    background: var(--bg-surface-elevated);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.destination-card.selected {
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}

.dest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.dest-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dest-card-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.dest-venue {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dest-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 12px;
}
.dest-meta-grid span strong {
    color: #fff;
}

.dest-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}
.dest-stat-pill {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11.5px;
}
.dest-stat-pill.pill-cars {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.dest-stat-pill.pill-players {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.dest-stat-pill.pill-needed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dest-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.btn-drive-dest {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-drive-dest:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    transform: translateY(-1px);
}

.btn-need-dest {
    flex: 1;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.35);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-need-dest:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.btn-filter-dest {
    flex: 1;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-filter-dest:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #a78bfa;
    color: #fff;
    transform: translateY(-1px);
}

.btn-copy-link {
    flex: 0 0 auto;
    background: rgba(99, 179, 237, 0.12);
    color: #90cdf4;
    border: 1px solid rgba(99, 179, 237, 0.3);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-copy-link:hover {
    background: rgba(99, 179, 237, 0.25);
    border-color: #63b3ed;
    color: #fff;
    transform: translateY(-1px);
}

.btn-delete-dest {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 6px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-delete-dest:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

.dot-event {
    background: #8b5cf6;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.7);
}

.marker-pin.pin-event {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
}

/* ==========================================================================
   Mobile Nav & Responsiveness
   ========================================================================== */
.mobile-nav-bar {
    display: none;
}

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: 100vh;
        border-right: none;
    }

    .map-wrapper {
        width: 100%;
        height: 100vh;
        display: none;
    }

    .mobile-nav-bar {
        display: flex;
        background: var(--bg-surface-elevated);
        border-top: 1px solid var(--border-subtle);
        padding: 8px 16px;
        gap: 12px;
        position: sticky;
        bottom: 0;
        z-index: 50;
    }

    .mobile-tab-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-weight: 600;
        cursor: pointer;
        border-radius: var(--radius-sm);
    }

    .mobile-tab-btn.active {
        background: rgba(99, 102, 241, 0.15);
        color: #a5b4fc;
    }

    body.view-map .sidebar {
        display: none;
    }

    body.view-map .map-wrapper {
        display: block;
    }

    .form-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   MyClub Calendar Suggestions Section
   ========================================================================== */

.calendar-suggestions-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.suggestions-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-badge-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.suggestions-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.suggestions-count-pill {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #c7d2fe;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.suggestions-subheading {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.btn-refresh-suggestions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-suggestions:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-refresh-suggestions.spinning svg {
    animation: spin 0.8s linear infinite;
}

.suggestions-loading, .suggestions-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.suggestion-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.suggestion-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.suggestion-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
    flex: 1;
}

.suggestion-time-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.suggestion-venue {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-suggest-fill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-suggest-fill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-suggest-add {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border: 1px solid #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.btn-suggest-add:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.5);
    transform: translateY(-1px);
}

.modal-form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-form-divider::before,
.modal-form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-form-divider span {
    padding: 0 10px;
}

/* ==========================================================================
   Suggested Passengers on Driver Ride Cards
   ========================================================================== */

.suggested-passengers-section {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggested-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggested-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a7f3d0;
}

.suggested-count-pill {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-full);
}

.suggested-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggested-player-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
}

.suggested-player-card:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.suggested-player-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.suggested-player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #f8fafc;
}

.suggested-person-badge {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.suggested-pickup-addr {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 290px;
}

.suggested-pickup-addr span {
    color: #cbd5e1;
}

.suggested-detour-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.detour-metric-pill {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.detour-metric-pill.metric-time {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.detour-metric-pill.metric-dist {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.detour-metric-pill.metric-pickup {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.btn-add-player-to-car {
    background: linear-gradient(135deg, #059669, #10b981);
    border: 1px solid #34d399;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-add-player-to-car:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

/* ==========================================================================
   Matching Rides on Player Request Cards
   ========================================================================== */

.matching-cars-section {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matching-cars-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.matching-cars-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #c7d2fe;
}

.matching-cars-badge {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-full);
}

.matching-cars-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matching-car-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.matching-car-card:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.matching-car-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.matching-driver-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f8fafc;
}

.matching-seats-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.matching-arrival-time {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.matching-origin-line {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.matching-origin-line span {
    color: #cbd5e1;
}

.matching-impact-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.impact-pill-pickup {
    color: #a5b4fc;
}

.impact-pill-pickup strong {
    color: #fff;
}

.impact-pill-detour strong {
    color: #fcd34d;
}

.matching-car-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.btn-request-from-car {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: 1px solid #818cf8;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.btn-request-from-car:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.55);
    transform: translateY(-1px);
}

