:root {
    --primary-red: #DC241F;
    --primary-red-hover: #b81b16;
    --bus-navy: #111827;
    --bg-light: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --warning-bg: #FEF3C7;
    --warning-border: #F59E0B;
    --warning-text: #92400E;
    --badge-blue: #0284C7;
    --badge-green: #16A34A;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.app-header {
    background: #ffffff;
    border-bottom: 2px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.london-bus-svg {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(220, 36, 31, 0.25));
    transition: transform 0.2s ease;
}

.brand-logo:hover .london-bus-svg {
    transform: scale(1.08) rotate(-1deg);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bus-navy);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary-red);
}

.header-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.city-dropdown select,
.language-dropdown select {
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.city-dropdown select:hover,
.language-dropdown select:hover {
    border-color: #CBD5E1;
    background: #FFFFFF;
}

.btn-share-header {
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--bus-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-share-header:hover {
    background: var(--primary-red);
    color: #FFFFFF;
    border-color: var(--primary-red);
}

.btn-share-header svg {
    stroke: currentColor;
}

/* Tab Navigation (Inspired by Balıkesir Otobüs) */
.tab-nav {
    display: flex;
    background: #E2E8F0;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.tab-btn.active {
    background: #FFFFFF;
    color: var(--primary-red);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Tab contents */
.tab-content.hidden {
    display: none !important;
}

/* Main Container */
.main-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* Hero */
.hero-section {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--bus-navy);
    margin-bottom: 0.35rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Search Card */
.search-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
}

.indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.origin-dot { background-color: var(--badge-blue); }
.dest-dot { background-color: var(--primary-red); }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-wrapper input:focus,
.input-group input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 36, 31, 0.12);
}

.btn-location {
    position: absolute;
    right: 0.6rem;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

[dir="rtl"] .btn-location {
    right: auto;
    left: 0.6rem;
}

.btn-primary {
    width: 100%;
    background: var(--primary-red);
    color: #FFFFFF;
    border: none;
    padding: 1.1rem;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 16px rgba(220, 36, 31, 0.28);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.2s;
}

[dir="rtl"] .btn-arrow {
    transform: rotate(180deg);
}

/* Direction Toggle */
.direction-toggle {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.dir-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    cursor: pointer;
}

.dir-radio input {
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
}

/* Map Status Badge */
.map-status-badge {
    margin-top: 1.25rem;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #1E40AF;
    font-size: 0.92rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #16A34A;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Leaflet Map Box */
.map-view-box {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    margin-top: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    z-index: 10;
}

/* Custom Leaflet Markers */
.bus-map-marker {
    background: var(--primary-red);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    padding: 3px 8px;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(220, 36, 31, 0.45);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.bus-map-marker:hover {
    transform: scale(1.12);
}

.stop-map-marker {
    background: #0F172A;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.stop-map-marker:hover {
    transform: scale(1.25);
    background: var(--primary-red);
}

/* Leaflet Popup Custom Polish */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
    padding: 2px !important;
    font-family: inherit !important;
}

.leaflet-popup-content {
    margin: 12px 14px !important;
    line-height: 1.45 !important;
}

.bus-popup-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}

.bus-popup-badge {
    background: #DC241F;
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.bus-popup-row {
    font-size: 0.85rem;
    color: #475569;
    margin: 3px 0;
}

.bus-popup-eta {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #16A34A;
    background: #DCFCE7;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Nearby Stops Cards */
.nearby-stops-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nearby-stop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-subtle);
}

.stop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.stop-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bus-navy);
}

.stop-distance-badge {
    background: #F1F5F9;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.serving-lines-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.line-tag {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.arrivals-list {
    margin-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.arrival-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
}

.arrival-line {
    font-weight: 800;
    color: var(--bus-navy);
}

.arrival-mins-badge {
    background: #DCFCE7;
    color: #15803D;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Quick Picks */
.quick-picks {
    margin-top: 1.25rem;
}

.quick-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.route-pill {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.route-pill:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: #FEF2F2;
}

/* Loading & States */
.state-container {
    text-align: center;
    padding: 3rem 1rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Results Section */
.results-section {
    margin-top: 2.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.results-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bus-navy);
}

.duration-badge {
    background: var(--bus-navy);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
}

/* Timeline */
.journey-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 2rem;
}

[dir="rtl"] .journey-timeline {
    padding-left: 0;
    padding-right: 2rem;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 17px;
    width: 4px;
    background: #CBD5E1;
    border-radius: 4px;
}

[dir="rtl"] .journey-timeline::before {
    left: auto;
    right: 17px;
}

/* Step Card */
.step-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.15s ease;
}

.step-card:hover {
    transform: translateX(3px);
}

[dir="rtl"] .step-card:hover {
    transform: translateX(-3px);
}

.step-node {
    position: absolute;
    left: -2.35rem;
    top: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bus-navy);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--bg-light);
}

[dir="rtl"] .step-node {
    left: auto;
    right: -2.35rem;
}

.node-bus {
    background: var(--primary-red);
}

.step-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.step-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--bus-navy);
}

.step-badge {
    background: #F1F5F9;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.badge-route {
    background: var(--primary-red);
    color: #FFFFFF;
    font-size: 0.95rem;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.step-desc {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
}

/* Direction Warning Banner */
.warning-box {
    margin-top: 0.85rem;
    background: var(--warning-bg);
    border-left: 5px solid var(--warning-border);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--warning-text);
    line-height: 1.4;
}

[dir="rtl"] .warning-box {
    border-left: none;
    border-right: 5px solid var(--warning-border);
}

/* Demo Location Switcher */
.demo-location-box {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
}

.demo-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.demo-loc-btn {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.demo-loc-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: #FEF2F2;
}

.demo-loc-btn.active {
    background: var(--bus-navy);
    color: #FFFFFF;
    border-color: var(--bus-navy);
}

.demo-notice {
    margin-top: 1rem;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1E40AF;
}

/* Footer */
.app-footer {
    max-width: 680px;
    margin: 3rem auto 1rem;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copy {
    margin-top: 0.3rem;
    font-weight: 600;
}

/* Toast Notifications */
.app-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0F172A;
    color: #FFFFFF;
    padding: 0.75rem 1.35rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.25s ease;
}

.app-toast.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Crowding and Occupancy Badge / Feedback in Map Popups */
.bus-crowd-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E2E8F0;
}

.bus-crowd-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bus-crowd-badge {
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.72rem;
}

.bus-crowd-badge.quiet {
    background: #DCFCE7;
    color: #15803D;
}

.bus-crowd-badge.moderate {
    background: #FEF3C7;
    color: #B45309;
}

.bus-crowd-badge.busy {
    background: #FEE2E2;
    color: #B91C1C;
}

.crowd-feedback-box {
    margin-top: 6px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 8px;
}

.crowd-feedback-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.crowd-btn-group {
    display: flex;
    gap: 4px;
}

.crowd-btn {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 4px 2px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.crowd-btn:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

.crowd-thankyou {
    font-size: 0.75rem;
    font-weight: 700;
    color: #16A34A;
    margin-top: 4px;
    text-align: center;
}

.btn-im-on-bus {
    background: transparent;
    border: 1px dashed #94A3B8;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-im-on-bus:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-style: solid;
    border-color: #0F172A;
}

.ride-crowd-card {
    margin-top: 0.75rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px 12px;
}

.ride-crowd-prompt {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Base Mobile Bottom Navigation (Hidden on desktop/tablet) */
.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   NATIVE MOBILE (SEVİYE B) RESPONSIVE DESIGN (<= 600px)
   ========================================================================== */
@media (max-width: 600px) {
    /* Absolute guarantee against horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100vw;
    }

    /* Ultra-Compact Clean Header */
    .header-container {
        padding: 0.55rem 0.75rem;
        gap: 0.35rem;
    }

    .brand-logo {
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.08rem;
        letter-spacing: -0.3px;
    }

    .london-bus-svg {
        width: 30px;
        height: 25px;
    }

    .header-controls {
        gap: 0.3rem;
    }

    .city-dropdown select,
    .language-dropdown select {
        padding: 0.32rem 0.45rem;
        font-size: 0.75rem;
        border-radius: 6px;
        max-width: 96px;
    }

    .btn-share-header {
        padding: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }

    .btn-share-header .share-text {
        display: none;
    }

    /* Hide Top Tab Bar on Mobile (Clean Native App UX) */
    .tab-nav {
        display: none !important;
    }

    /* Body Padding for Bottom Nav */
    .main-content {
        padding: 0.85rem 0.85rem calc(75px + env(safe-area-inset-bottom, 16px));
        max-width: 100%;
    }

    .app-footer {
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 16px));
    }

    /* Fixed Native Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 6px));
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 5px 2px;
        background: transparent;
        border: none;
        border-radius: 10px;
        color: #64748B;
        cursor: pointer;
        transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-icon {
        stroke: currentColor;
        transition: transform 0.18s ease, stroke 0.18s ease;
    }

    .mobile-nav-label {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: -0.2px;
        line-height: 1.1;
    }

    .mobile-nav-btn.active {
        color: var(--primary-red);
        background: rgba(0, 0, 0, 0.03);
    }

    .mobile-nav-btn.active .mobile-nav-icon {
        transform: scale(1.12);
        stroke: var(--primary-red);
        stroke-width: 2.5;
    }

    .mobile-nav-btn:active {
        transform: scale(0.94);
    }

    /* Form & Cards Optimization */
    .hero-title {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.86rem;
        margin-bottom: 1.1rem;
    }

    .search-card {
        padding: 1rem 0.9rem;
        border-radius: 16px;
    }

    .input-wrapper input {
        font-size: 0.95rem;
        padding: 0.75rem 0.85rem;
    }

    .btn-primary {
        padding: 0.85rem 1rem;
        font-size: 0.98rem;
    }

    .pill-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .route-pill {
        font-size: 0.76rem;
        padding: 0.4rem 0.65rem;
    }

    .nearby-stops-container {
        grid-template-columns: 1fr;
    }
}
