/* ==========================================================================
   ALURAIL TRANSIT COMPANION — RAAH DESIGN SYSTEM
   Case Study Architecture: Rohan Jadhav (1:1 Clean Porcelain Spec)
   Strict Palette: Primary #0F2D4A | Accent #FF7A00 | Success #10B981
   Info #3B82F6 | Background #F5F7FA | Font: Inter
   ZERO EMOJIS — 100% Pure Vector Phosphor Icons
   ========================================================================== */

:root {
    --raah-primary: #0F2D4A;
    --raah-accent: #FF7A00;
    --raah-accent-light: #FFF2E6;
    --raah-success: #10B981;
    --raah-success-light: #ECFDF5;
    --raah-info: #3B82F6;
    --raah-info-light: #EFF6FF;
    --raah-secondary: #A788FA;
    --raah-bg: #F5F7FA;

    --raah-surface: #FFFFFF;
    --raah-border: #E5E7EB;
    --raah-border-light: #F0F2F5;

    --raah-text-main: #0F2D4A;
    --raah-text-sub: #64748B;
    --raah-text-muted: #94A3B8;

    /* Line Colors */
    --line-green: #10B981;
    --line-orange: #FF7A00;
    --line-blue: #3B82F6;
    --line-red: #EF4444;

    --raah-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --raah-font-mono: 'JetBrains Mono', monospace;

    --raah-radius-xl: 26px;
    --raah-radius-lg: 20px;
    --raah-radius-md: 14px;
    --raah-radius-sm: 10px;

    --raah-shadow-subtle: 0 4px 20px rgba(15, 45, 74, 0.04);
    --raah-shadow-card: 0 8px 30px rgba(15, 45, 74, 0.06);
    --raah-shadow-elevated: 0 16px 40px rgba(15, 45, 74, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body.aluline-transit-body {
    min-height: 100%;
    min-height: 100dvh;
    background: #EAEFF5;
    color: var(--raah-text-main);
    font-family: var(--raah-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.aluline-transit-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ── Centered App Shell Container ── */
#app-viewport-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    background: var(--raah-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(15, 45, 74, 0.12);
}

@media (max-width: 640px) {
    #app-viewport-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
}

#app-shell {
    width: 100%;
    min-height: 100dvh;
    background: var(--raah-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 76px;
}

/* ── Top Header ── */
.raah-top-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--raah-bg);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.raah-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--raah-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--raah-primary);
    cursor: pointer;
    box-shadow: var(--raah-shadow-subtle);
    transition: all 0.2s;
}

.raah-icon-btn:hover {
    transform: scale(1.05);
    background: #f8fafc;
}

.raah-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dynamic-app-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--raah-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.dynamic-app-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: contain;
}

.raah-logo-text {
    font-family: var(--raah-font);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--raah-primary);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.raah-logo-text .orange-dot {
    color: var(--raah-accent);
    font-size: 26px;
    line-height: 0;
    margin-left: -1px;
}

/* ── Screen Containers ── */
.raah-screen {
    display: none;
    width: 100%;
    animation: screenFade 0.25s ease-out;
}

.raah-screen.active-screen {
    display: block;
}

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

/* ==========================================================================
   SCREEN 1: "PLAN" — SUGGESTED JOURNEYS
   ========================================================================== */
.s1-content {
    padding: 4px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Origin & Destination Squircle Card */
.raah-route-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px 18px;
    box-shadow: var(--raah-shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 14px;
}

.rrb-dots-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rrb-dot-blue {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--raah-info);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.rrb-dot-line {
    width: 2px;
    height: 28px;
    background: #cbd5e1;
}

.rrb-dot-orange {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--raah-accent);
    box-shadow: 0 0 6px rgba(255, 122, 0, 0.4);
}

.rrb-inputs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rrb-input-row {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.rrb-input-tag {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 2px;
}

.rrb-input-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--raah-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rrb-swap-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--raah-border);
    color: var(--raah-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s;
}

.rrb-swap-btn:hover {
    background: var(--raah-primary);
    color: #fff;
    transform: rotate(180deg);
}

/* 4 Transportation Mode Buttons (Transit, Walk, Cycle, Drive) */
.raah-mode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rmg-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: var(--raah-shadow-subtle);
    transition: all 0.2s;
    color: #64748b;
}

.rmg-btn i {
    font-size: 24px;
}

.rmg-btn span {
    font-size: 11.5px;
    font-weight: 700;
}

.rmg-btn.active {
    background: var(--raah-primary);
    color: #ffffff;
    border-color: var(--raah-primary);
    box-shadow: 0 6px 16px rgba(15, 45, 74, 0.3);
}

/* Section Header */
.raah-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.rsh-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--raah-primary);
}

.rsh-filter-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Suggested Journey Cards */
.raah-journey-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: var(--raah-shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
    overflow: hidden;
}

.raah-journey-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--card-border-color, var(--line-green));
}

.raah-journey-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--raah-shadow-elevated);
}

.rjc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rjc-lines-strip {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rjc-line-bar {
    height: 6px;
    border-radius: 4px;
}

.rjc-icon-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #475569;
}

.rjc-duration {
    font-size: 20px;
    font-weight: 800;
    color: var(--raah-primary);
    letter-spacing: -0.5px;
}

.rjc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rjc-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rjc-via {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--raah-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rjc-sub {
    font-size: 11.5px;
    color: #64748b;
}

.rjc-arrow {
    font-size: 18px;
    color: #94a3b8;
}

/* Near Me GPS Badge */
.raah-nearme-box {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.rnb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rnb-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.rnb-title {
    font-size: 12px;
    font-weight: 700;
    color: #065F46;
}

.rnb-desc {
    font-size: 11px;
    color: #047857;
}

/* ==========================================================================
   SCREEN 2: "STEP-BY-STEP GUIDANCE"
   ========================================================================== */
.s2-nav-header {
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s2-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.s2-back-btn {
    font-size: 20px;
    color: var(--raah-primary);
    cursor: pointer;
}

.s2-route-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--raah-primary);
}

.s2-content {
    padding: 8px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.raah-timeline {
    position: relative;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.raah-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 24px;
    width: 4px;
    background: linear-gradient(to bottom, var(--line-green) 0%, var(--line-green) 40%, var(--line-orange) 45%, var(--line-orange) 100%);
    border-radius: 4px;
}

.rtl-node {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rtl-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--dot-color, var(--line-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 2;
}

.rtl-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--raah-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rtl-sub {
    font-size: 12px;
    color: #64748b;
}

/* Overhead Sign Board */
.raah-transfer-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--raah-shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 4px;
}

.rtc-overhead-sign {
    background: #111827;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    position: relative;
}

.rtc-sign-arrow {
    font-size: 26px;
    color: var(--raah-accent);
    font-weight: 800;
}

.rtc-sign-text {
    display: flex;
    flex-direction: column;
}

.rtc-sign-line {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.rtc-sign-platform {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.rtc-transfer-meta {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
}

.btn-live-updates-pill {
    background: var(--raah-success-light);
    border: 1px solid #bbf7d0;
    color: #065f46;
    padding: 12px;
    border-radius: 16px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-live-updates-pill:hover {
    background: #d1fae5;
}

/* ==========================================================================
   SCREEN 3: "MAP VIEW — YOUR ROUTE" & REAL LEAFLET INTEGRATION
   ========================================================================== */
.guidance-mini-map-card {
    position: relative;
    height: 165px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(15, 45, 74, 0.08);
    box-shadow: 0 4px 16px rgba(15, 45, 74, 0.06);
    cursor: pointer;
    background: #E5ECF4;
}

.guidance-mini-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gmm-floating-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(15, 45, 74, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.guidance-mini-map-card:hover .gmm-floating-badge {
    transform: translateY(-2px);
    background: var(--raah-accent);
}

.s3-map-container {
    position: relative;
    height: 520px;
    min-height: 480px;
    background: #E5ECF4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.raah-transit-leaflet-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.s3-map-actions-dock {
    position: absolute;
    right: 16px;
    top: 64px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.s3-map-fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 45, 74, 0.1);
    box-shadow: 0 4px 14px rgba(15, 45, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--raah-primary);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.s3-map-fab:active {
    transform: scale(0.92);
}

/* Intermediate stops accordion & step enhancements */
.rtl-stops-accordion {
    margin-top: 10px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.rtl-stops-btn {
    width: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.rtl-stops-btn:hover {
    background: #f1f5f9;
}

.rtl-stops-btn i {
    font-size: 13px;
    color: var(--raah-accent);
    transition: transform 0.2s ease;
}

.rtl-stops-accordion.open .rtl-stops-btn i {
    transform: rotate(90deg);
}

.rtl-stops-dropdown {
    padding: 6px 12px 10px;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rtl-stop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #334155;
    padding: 3px 0;
}

.rtl-stop-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rtl-stop-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.rtl-stop-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.rtl-step-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.rtl-map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--raah-primary);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.rtl-map-link-btn:hover {
    background: #e2e8f0;
}

/* Leaflet User Pulsing Beacon */
.leaflet-user-pulse {
    position: relative;
    width: 18px;
    height: 18px;
}
.leaflet-user-pulse::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4);
    animation: userGpsPulse 2s infinite ease-out;
}
.leaflet-user-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

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

/* Transit Station Circle Tooltips */
.leaflet-tooltip-transit {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0F2D4A !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 45, 74, 0.15) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

/* Destination Glowing Pin Marker */
.leaflet-dest-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FF7A00;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.5), 0 3px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
}

.s3-map-top-bar {
    position: relative;
    z-index: 10;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s3-map-floating-card {
    position: relative;
    z-index: 10;
    margin: 16px;
    background: #ffffff;
    border-radius: 22px;
    padding: 16px 20px;
    box-shadow: var(--raah-shadow-elevated);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.smfc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.smfc-dur {
    font-size: 20px;
    font-weight: 800;
    color: var(--raah-primary);
}

.smfc-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.smfc-icons-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.smfc-icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* ==========================================================================
   SCREEN 4: "JADWAL & REAL-TIME HEADWAYS"
   ========================================================================== */
.s4-content {
    padding: 8px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.s4-schedule-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--raah-shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s4-sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s4-line-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    color: #fff;
}

.s4-times-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.s4-time-box {
    background: #f8fafc;
    border: 1px solid var(--raah-border-light);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    font-family: var(--raah-font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--raah-primary);
}

.s4-time-box.next {
    background: var(--raah-accent-light);
    border-color: var(--raah-accent);
    color: var(--raah-accent);
}

/* ── AUTHENTIC RAAH MENU DRAWER (SIDEBAR OVERLAY) ── */
#raah-menu-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 45, 74, 0.45);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#raah-menu-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    background: #ffffff;
    z-index: 250;
    box-shadow: 10px 0 40px rgba(15, 45, 74, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

body.drawer-open #raah-menu-drawer-backdrop {
    display: block;
    opacity: 1;
}

body.drawer-open #raah-menu-drawer {
    transform: translateX(0);
}

.rmd-header {
    padding: 30px 20px 20px;
    background: var(--raah-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.rmd-close-btn {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rmd-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rmd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--raah-accent);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

.rmd-user-info {
    display: flex;
    flex-direction: column;
}

.rmd-user-name {
    font-size: 16px;
    font-weight: 800;
}

.rmd-user-role {
    font-size: 11.5px;
    color: #94a3b8;
}

.rmd-menu-list {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.rmd-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--raah-primary);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.rmd-nav-item:hover, .rmd-nav-item.active {
    background: var(--raah-bg);
    color: var(--raah-accent);
}

.rmd-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rmd-nav-left i {
    font-size: 20px;
    color: var(--raah-primary);
}

.rmd-nav-item:hover .rmd-nav-left i,
.rmd-nav-item.active .rmd-nav-left i {
    color: var(--raah-accent);
}

.rmd-divider {
    height: 1px;
    background: var(--raah-border-light);
    margin: 8px 10px;
}

.rmd-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--raah-border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fafbfc;
}

/* ── Common Bottom Floating Navigation Dock ── */
.raah-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 72px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 80;
    box-shadow: 0 -4px 20px rgba(15, 45, 74, 0.04);
}

.rbd-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s;
}

.rbd-item i {
    font-size: 22px;
}

.rbd-item span {
    font-size: 10.5px;
    font-weight: 700;
}

.rbd-item.active {
    color: var(--raah-accent);
}

/* ── Search Modal / Station Selector ── */
#station-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 45, 74, 0.5);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

#station-picker-modal.modal-open {
    display: flex;
}

.spm-sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: 28px 28px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 -10px 40px rgba(15, 45, 74, 0.15);
    animation: sheetUp 0.25s ease-out;
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.spm-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--raah-primary);
}

.spm-search-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--raah-border);
    font-size: 14px;
    outline: none;
    font-family: var(--raah-font);
}

.spm-search-input:focus {
    border-color: var(--raah-accent);
    box-shadow: 0 0 0 3px var(--raah-accent-light);
}

.spm-results-list {
    overflow-y: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spm-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--raah-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.spm-item:hover {
    background: #eff6ff;
    border-color: var(--raah-info);
}

.spm-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--raah-primary);
}

.spm-item-sub {
    font-size: 11.5px;
    color: #64748b;
}

.spm-item-gps-trigger:hover {
    background: #D1FAE5 !important;
    border-color: #34D399 !important;
}

.spm-item-custom-point:hover {
    background: #FFEDD5 !important;
    border-color: #FB923C !important;
}

.rrb-input-sub {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}
