/* Navigation HUD — سبک ناوبری موبایل (شبیه نشان) */

.hmj-nav-hud {
    position: fixed;
    inset: 0;
    z-index: var(--pm-z-nav);
    pointer-events: none;
    overflow: hidden;
}

.hmj-nav-top {
    position: absolute;
    top: 0;
    inset-inline: 0;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
}

.hmj-nav-maneuver {
    background: #0f172a;
    color: #fff;
    padding: 9px 15px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.hmj-nav-maneuver:hover {
    background: #1e293b;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.hmj-nav-maneuver:active {
    transform: scale(0.985);
}

.hmj-nav-maneuver-hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12px;
    margin-inline-start: 4px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.hmj-nav-maneuver:hover .hmj-nav-maneuver-hint-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hmj-nav-maneuver-main {
    display: flex;
    align-items: center;
    gap: 14px;
    direction: rtl;
}

.hmj-nav-maneuver-turn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hmj-nav-maneuver-turn>i {
    font-size: 23px;
    color: #ffffff;
    line-height: 1;
}

.hmj-nav-maneuver-dist {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.hmj-nav-maneuver-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.hmj-nav-maneuver-street {
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    line-height: 1.3;
    direction: rtl;
    text-align: right;
}

.hmj-nav-maneuver-sat {
    color: #94a3b8;
    font-size: 18px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.hmj-nav-exit-guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.45);
    min-height: 0;
}

.hmj-nav-exit-guide[hidden] {
    display: none !important;
}

.hmj-nav-exit-item {
    display: grid;
    place-items: center;
    font-size: 12px;
    opacity: 0.4;
    transform: rotate(var(--exit-rot, 0deg));
}

.hmj-nav-exit-item.is-active {
    opacity: 1;
    color: #fff;
    font-size: 13px;
}

/* نقشه — هود پایین (منوی ناوبری مدرن، متقارن و واکنش‌گرا) */
.hmj-nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: var(--pm-z-nav, 1220);
}

.hmj-nav-bottom-card {
    pointer-events: auto;
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.16);
    padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    direction: ltr;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* روی گوشی: فول‌صفحه و ارگونومیک */
@media (max-width: 768px) {
    .hmj-nav-bottom-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 26px 26px 0 0 !important;
        padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.22) !important;
    }

    .hmj-hud__dist {
        font-size: 26px !important;
        letter-spacing: -0.02em;
    }

    .hmj-hud__street {
        font-size: 16.5px !important;
        line-height: 1.45;
    }

    .hmj-nav-card-primary {
        font-size: 17px !important;
        font-weight: 800;
    }

    .hmj-nav-card-secondary {
        font-size: 13px !important;
    }
}

.hmj-nav-handle {
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: #cbd5e1;
    margin: 2px auto 8px;
    flex-shrink: 0;
}

.hmj-nav-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.hmj-nav-card-side {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.hmj-nav-card-side--start {
    justify-content: flex-start;
}

.hmj-nav-card-side--end {
    justify-content: flex-end;
}

/* ظاهر یکپارچه، شیک و هم‌رنگ برای تمام دکمه‌های منوی پایین */
.hmj-nav-card-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f8fafc;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.14s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.hmj-nav-card-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.hmj-nav-card-btn:active {
    transform: scale(0.92);
}

.hmj-nav-card-btn--close {
    font-size: 17px;
}

.hmj-nav-card-btn--close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.hmj-nav-card-btn--voice.mode-muted {
    color: #94a3b8;
}

.hmj-nav-card-btn--layer:hover {
    color: var(--hmj-primary, #0F9F8A);
    background: rgba(15, 159, 138, 0.08);
    border-color: rgba(15, 159, 138, 0.2);
}

.hmj-nav-card-btn--report:hover {
    color: #d97706;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.hmj-nav-card-btn--overview:hover {
    color: var(--hmj-primary, #0F9F8A);
    background: rgba(15, 159, 138, 0.08);
    border-color: rgba(15, 159, 138, 0.2);
}

/* اطلاعات مرکز پنل ناوبری (کاملاً متمرکز در وسط) */
.hmj-nav-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1.5;
    min-width: 0;
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
}

.hmj-nav-card-primary {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    direction: rtl;
}

.hmj-nav-card-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
    align-self: center;
}

.hmj-nav-card-secondary {
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    direction: rtl;
}

.hmj-nav-card-arrival-lbl {
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .hmj-nav-card-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 15px;
        border-radius: 11px;
    }
    .hmj-nav-card-side {
        gap: 4px;
    }
    .hmj-nav-card-primary {
        font-size: 16px;
        gap: 4px;
    }
    .hmj-nav-card-secondary {
        font-size: 12.5px;
    }
}

.hmj-nav-floating-street {
    display: none !important;
}

.hmj-nav-street-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: grid;
    place-items: center;
    font-size: 10px;
    flex-shrink: 0;
}

.hmj-nav-street-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* مجموعه کیلومترشمار، محدودیت سرعت و قطب‌نمای گردون (طراحی اختصاصی مشابه نشان) */
.hmj-nav-speed {
    pointer-events: auto;
    position: absolute;
    top: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hmj-nav-speed[hidden] {
    display: none !important;
}

/* ویجت سرعت‌سنج دایره‌ای با نشانک‌های بالایی (طراحی اختصاصی و جمع‌وجور) */
.hmj-nav-speed-widget {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.32));
}

/* صفحه اصلی کیلومترشمار دایره‌ای سرمه‌ای تیره #1c2b3c */
.hmj-nav-speed-dial {
    width: 58px;
    height: 58px;
    border-radius: 50% !important;
    background: #1c2b3c !important;
    border: 2px solid #ffffff !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    user-select: none;
    transition: all 0.25s ease;
}

/* حلقه خط‌چین و نشانک‌های مدرج SVG */
.hmj-nav-speed-ticks-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* پشتیبانی از خط‌چین بدون SVG */
.hmj-nav-speed-ticks {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
    box-sizing: border-box;
}

/* نوشته‌های وسط کیلومترشمار: عدد فارسی سفید و km/h آبی #2563eb */
.hmj-nav-speed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-top: 1px;
}

.hmj-nav-speed-dial strong {
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

.hmj-nav-speed-dial .hmj-nav-speed-unit {
    font-size: 0.5rem !important;
    font-weight: 900 !important;
    color: #2563eb !important;
    margin-top: 1px;
    line-height: 1;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* تابلوی محدودیت سرعت جاده: دایره سفید با کادر قرمز برجسته #ef4444 و عدد آبی #1e3a8a */
.hmj-nav-speed-limit {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 25px;
    height: 25px;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2.5px solid #ef4444 !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
    z-index: 4;
    user-select: none;
}

.hmj-nav-speed-limit span {
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1;
    color: #1e3a8a !important;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

/* دکمه وضعیت صوتی در گوشه بالا-چپ: دایره شیشه‌ای تیره نیمه‌شفاف با آیکون نقره‌ای */
.hmj-nav-speed-sound-btn {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 25px;
    height: 25px;
    border-radius: 50% !important;
    background: rgba(30, 41, 59, 0.88) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none !important;
    box-sizing: border-box;
    color: #cbd5e1 !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 10.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 4;
    padding: 0;
    transition: all 0.2s ease;
}

.hmj-nav-speed-sound-btn:hover {
    background: rgba(15, 23, 42, 0.96) !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

.hmj-nav-speed-sound-btn.is-active {
    background: var(--hmj-primary, #0F9F8A) !important;
    color: #ffffff !important;
}

/* حالت تخطی از سرعت مجاز (Overspeed warning) */
.hmj-nav-speed.is-overspeed .hmj-nav-speed-dial,
.hmj-nav-speed-dial.is-overspeed {
    background: #3a1015 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), 0 8px 24px rgba(220, 38, 38, 0.45);
   // animation: hmjSpeedPulse 1.1s infinite ease-in-out;
}

.hmj-nav-speed.is-overspeed .hmj-nav-speed-dial strong,
.hmj-nav-speed-dial.is-overspeed strong {
    color: #f87171 !important;
}

@keyframes hmjSpeedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* قطب‌نمای گردون با عقربه سه‌بعدی متحرک زیر کیلومترشمار */
.hmj-nav-compass-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hmj-nav-compass-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.20);
}

.hmj-nav-compass-btn:active {
    transform: scale(0.95);
}
.hmj-nav-compass-btn:active {
    transform: scale(0.95);
}

/* حرف N قرمز در بالای قطب‌نما */
.hmj-compass-n {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
}

/* خطوط راهنمای جهات اصلی شرق، جنوب و غرب */
.hmj-compass-tick {
    position: absolute;
    background: #cbd5e1;
    pointer-events: none;
    border-radius: 1px;
}

.hmj-compass-tick--e {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5px;
}

.hmj-compass-tick--s {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 4px;
}

.hmj-compass-tick--w {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5px;
}

/* عقربه چرخان قطب‌نما */
.hmj-compass-needle {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* کنترل‌های کناری — فقط نمای کلی و توقف */
.hmj-nav-side,
#hmjNavPause {
    display: none !important;
}

.hmj-nav-side-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hmj-nav-side-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.20);
}

.hmj-nav-side-btn:active {
    transform: scale(0.94);
}

.hmj-nav-side-btn i {
    font-size: 15px;
}

.hmj-nav-side-btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.hmj-nav-side-btn--icon span {
    display: none;
}

.hmj-nav-side-btn.danger {
    background: #dc2626;
    color: #fff;
}

.hmj-nav-side-btn.off {
    opacity: 0.55;
}

.hmj-nav-side-btn.north {
    color: var(--hmj-primary, #0F9F8A);
}

/* سازگاری با کلاس‌های قدیمی */
.hmj-nav-controls {
    display: none;
}

.hmj-nav-paused,
.hmj-nav-gps-banner {
    pointer-events: none;
    position: absolute;
    top: calc(96px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 24px));
    text-align: center;
    background: #334155;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    z-index: 3;
}

.hmj-nav-gps-banner {
    display: none !important;
}

.hmj-nav-turn-arrow {
    display: none !important;
}

.hmj-nav-recenter {
    pointer-events: auto;
    position: fixed;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--hmj-primary, #0F9F8A), var(--hmj-primary-dark, #0B7A6A));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    max-width: calc(100% - 168px);
}

.hmj-nav-recenter[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .hmj-nav-top {
        padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 0;
    }

    .hmj-nav-maneuver {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .hmj-nav-maneuver-turn>i {
        font-size: 26px;
    }

    .hmj-nav-maneuver-dist {
        font-size: 16px;
    }

    .hmj-nav-maneuver-street {
        font-size: 15px;
    }

    .hmj-nav-side-btn:not(.hmj-nav-side-btn--icon) {
        padding: 9px 12px;
        font-size: 12.5px;
    }

    /* روی موبایل فقط دکمه‌های ضروری — گزارش همیشه نمایش داده شود */
    .hmj-nav-side #hmjNavPause {
        display: none;
    }

    .hmj-nav-side #hmjNavReport {
        display: inline-flex;
    }

    .hmj-nav-eta-card {
        border-radius: 18px;
        padding: 11px 12px;
    }
}

@media (min-width: 769px) {
    .hmj-nav-top {
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
        padding-inline: 16px;
        max-width: 780px;
        width: 100%;
    }

    .hmj-nav-maneuver {
        max-width: 440px;
    }

    .hmj-nav-side #hmjNavPause {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .hmj-nav-top {
        max-width: 980px;
    }
}

.hmj-nav-resume {
    position: fixed;
    bottom: 24px;
    inset-inline: 12px;
    z-index: 1250;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hmj-nav-resume[hidden] {
    display: none !important;
}

.hmj-nav-resume-inner {
    pointer-events: auto;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hmj-nav-resume-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hmj-nav-resume-text strong {
    font-size: 14px;
}

.hmj-nav-resume-text span {
    font-size: 12px;
    color: var(--hmj-text-muted, #71717a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmj-nav-resume-go,
.hmj-nav-resume-dismiss {
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.hmj-nav-resume-go {
    background: var(--hmj-primary, #0F9F8A);
    color: #fff;
}

.hmj-nav-resume-dismiss {
    background: var(--hmj-bg-page, #f4f4f5);
    color: var(--hmj-text-muted, #71717a);
}

.hmj-nav-search {
    position: fixed;
    top: 12px;
    inset-inline: 12px;
    z-index: 1260;
    margin-inline-end: 0;
}

.hmj-nav-search[hidden] {
    display: none !important;
}

.hmj-nav-search-bar {
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    max-width: 440px;
    margin: 0 auto;
}

.hmj-nav-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 0;
}

.hmj-nav-search-close {
    border: none;
    background: transparent;
    width: 36px;
    cursor: pointer;
    color: #71717a;
}

.hmj-nav-search-results {
    max-width: 440px;
    margin: 8px auto 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.hmj-nav-search-item {
    display: block;
    width: 100%;
    text-align: right;
    border: none;
    background: #fff;
    padding: 12px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f5;
}

.hmj-nav-search-item:hover {
    background: #f4f4f5;
}

.hmj-nav-search-empty {
    padding: 14px;
    text-align: center;
    color: #71717a;
    font-size: 13px;
}

.hmj-nav-search-hint {
    max-width: 440px;
    margin: 8px auto 0;
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    text-align: center;
}

@media (min-width: 769px) {
    .hmj-nav-search {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-inline-end: 24px;
    }

    .hmj-nav-search-bar,
    .hmj-nav-search-results,
    .hmj-nav-search-hint {
        margin-inline-end: 380px;
        width: min(440px, calc(100% - 400px));
    }
}


.hmj-nav-user {
    /* position را دست نمی‌زنیم — MapLibre خودش absolute می‌گذارد */
    width: 60px;
    height: 60px;
    display: grid !important;
    place-items: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 20;
    opacity: 1 !important;
    visibility: visible !important;
}

.maplibregl-marker:has(.hmj-nav-user) {
    z-index: 20 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hmj-nav-user-glow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 28%, transparent);
    animation: hmj-user-pulse 2s ease-out infinite;
}

.hmj-nav-user-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--hmj-primary, #0F9F8A) 45%, #fff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hmj-primary, #0F9F8A) 12%, transparent);
    opacity: 0.9;
}

.hmj-nav-user-disc {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, color-mix(in srgb, #fff 28%, transparent), transparent 42%),
        linear-gradient(155deg, var(--hmj-primary, #0F9F8A) 0%, var(--hmj-primary-dark, #0B7A6A) 100%);
    border: 2.5px solid #fff;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.18),
        0 6px 16px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    color: #fff;
}

.hmj-nav-user-arrow {
    display: block;
    transform: translateY(-1px);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

/* اگر FA لود شد مخفی می‌شود تا فقط SVG بماند؛ در غیر این صورت SVG هست */
/* آیکون Font Awesome داخل disc — نمایش داده می‌شود */
.hmj-nav-user-disc>i {
    position: relative;
    z-index: 2;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* تصویر آپلودشده / خودروی سه‌بعدی */
.hmj-nav-user--image {
    width: 76px;
    height: 64px;
}

.hmj-nav-user-photo {
    position: relative;
    width: 76px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    filter: none;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
    transform-origin: center center;
}

/* سایه زیر خودرو حذف شد */
.hmj-nav-user-shadow,
.hmj-nav-user--3d .hmj-nav-user-shadow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

.hmj-nav-user-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 72px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    filter: none !important;
    margin-bottom: 3px;
}

.hmj-nav-user--3d .hmj-nav-user-img {
    max-width: 76px;
    max-height: 50px;
    filter: none !important;
}

.hmj-nav-user-car {
    display: grid;
    place-items: center;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
    transform-origin: center center;
}

/* در حالت توقف یا سرعت آهسته حین مسیریابی: خودرو با تناسب ملایم برجسته می‌شود */
.hmj-nav-user--stopped .hmj-nav-user-photo {
    transform: scale(1.06);
}

.hmj-nav-user--stopped .hmj-nav-user-car svg {
    transform: scale(1.08);
    transform-origin: center center;
}

@keyframes hmj-user-pulse {
    0% {
        transform: scale(0.75);
        opacity: 0.65;
    }

    70% {
        transform: scale(1.55);
        opacity: 0.12;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.hmj-nav-dest-marker,
.hmj-nav-origin-marker {
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.35));
}

/* برچسب نام خیابان بعد از پیچ (استایل نشان) — فیکس، بدون لرزش */
.hmj-nav-street-label {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--hmj-primary, #0F9F8A);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(15, 159, 138, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

.hmj-nav-street-label.is-visible {
    opacity: 1;
    visibility: visible;
}

.hmj-nav-street-label__text {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmj-nav-street-label__icon {
    font-size: 13px;
    opacity: 0.95;
    flex-shrink: 0;
}

.hmj-nav-guide-arrow {
    pointer-events: none;
    z-index: 6;
    width: 22px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.4));
}

.hmj-nav-guide-arrow-rot {
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.hmj-nav-guide-arrow svg {
    display: block;
    overflow: visible;
}

.hmj-nav-dest-marker>i,
.hmj-nav-origin-marker>i {
    font-size: 26px;
    line-height: 1;
    -webkit-text-stroke: 1.5px #fff;
    paint-order: stroke fill;
}

.hmj-nav-origin-marker>i {
    color: var(--hmj-primary, #0F9F8A);
}

.hmj-nav-dest-marker>i {
    color: #E11D48;
}

.hmj-nav-debug {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.88);
    color: #a7f3d0;
    font: 11px/1.45 ui-monospace, Consolas, monospace;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 300px;
    pointer-events: auto;
    margin: auto;
    top: 0px;
}

.hmj-nav-debug-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.hmj-nav-debug-sim {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hmj-nav-debug-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    background: #0f9f8a;
    color: #fff;
    font: 700 12px/1.2 var(--font-body, system-ui);
    cursor: pointer;
}

.hmj-nav-debug-btn.is-active {
    background: #dc2626;
}

.hmj-nav-debug-speed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #cbd5e1;
    font: 600 11px/1.3 var(--font-body, system-ui);
}

.hmj-nav-debug-speed input[type="range"] {
    width: 100%;
    accent-color: #0f9f8a;
}

.hmj-nav-debug-speed strong {
    color: #5eead4;
    font-size: 12px;
}

.hmj-nav-debug pre {
    margin: 0;
    white-space: pre-wrap;
    display: none;
}

.hmj-nav-sponsored {
    position: fixed;
    bottom: calc(168px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 12px;
    z-index: 1210;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(220px, calc(100vw - 96px));
    pointer-events: none;
}

.hmj-nav-sponsored[hidden] {
    display: none !important;
}

.hmj-nav-promo-card {
    pointer-events: auto;
    text-align: right;
    border: none;
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: hmj-promo-in 0.35s ease both;
}

.hmj-nav-promo-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #93c5fd;
}

.hmj-nav-promo-card strong {
    font-size: 13px;
    line-height: 1.3;
}

.hmj-nav-promo-meta {
    font-size: 11px;
    opacity: 0.85;
}

@keyframes hmj-promo-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   پین شیک مکان‌های دارای پلن و منتخب حین مسیریابی (مطابق طرح درخواستی کاربر)
   ========================================================================== */
.hmj-nav-chic-pin {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform: translate(0, -100%);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 15;
}

.hmj-nav-chic-pin:hover {
    transform: translate(0, -104%) scale(1.08);
    z-index: 25;
}

.hmj-nav-chic-pin__bubble {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: var(--chic-color, #ea580c);
    border: 2px solid #ffffff;
    border-radius: 14px;
    padding: 9px 10px 5px 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.12);
    min-width: 65px;
    max-width: 240px;
    text-align: center;
}

.hmj-nav-chic-pin__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--chic-color, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1.5px solid var(--chic-color, #ea580c);
    z-index: 2;
}

.hmj-nav-chic-pin__title {
    font-size: 10.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#hmjNavSponsored {
    display: none !important;
}

.hmj-nav-chic-pin__tip {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--chic-color, #ea580c);
    margin-top: -1px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.hmj-nav-chic-pin__shadow {
    width: 12px;
    height: 4px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 50%;
    margin-top: 1px;
    filter: blur(1px);
}

/* ==========================================================================
   شیت منوی گزینه‌های ناوبری در پایین صفحه (عکس ۲ کاربر)
   ========================================================================== */
.hmj-nav-drawer-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: auto;
    direction: rtl;
}

.hmj-nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hmj-nav-drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25);
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hmj-nav-drawer-sheet.is-open .hmj-nav-drawer-backdrop {
    opacity: 1;
}

.hmj-nav-drawer-sheet.is-open .hmj-nav-drawer-panel {
    transform: translateY(0);
}

.hmj-nav-drawer-handle {
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: #cbd5e1;
    margin: 2px auto 6px;
    cursor: pointer;
}

.hmj-nav-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.hmj-nav-drawer-voice-btn,
.hmj-nav-drawer-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hmj-nav-drawer-voice-btn:hover,
.hmj-nav-drawer-search-btn:hover {
    background: #f1f5f9;
    color: var(--hmj-primary, #0F9F8A);
}

.hmj-nav-drawer-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hmj-nav-drawer-arrival {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.hmj-nav-drawer-metrics {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.hmj-nav-drawer-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hmj-nav-drawer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.16s ease;
}

.hmj-nav-drawer-action:hover {
    background: #ffffff;
    border-color: var(--hmj-primary, #0F9F8A);
    box-shadow: 0 4px 12px rgba(15, 159, 138, 0.1);
}

.hmj-nav-drawer-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.15s ease;
}

.hmj-nav-drawer-action:hover .hmj-nav-drawer-action-icon {
    transform: scale(1.08);
    color: var(--hmj-primary, #0F9F8A);
}

.hmj-nav-drawer-action span {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.hmj-nav-drawer-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.hmj-nav-drawer-btn-end {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    transition: background 0.15s ease, transform 0.14s ease;
}

.hmj-nav-drawer-btn-end:active {
    transform: scale(0.97);
}

.hmj-nav-drawer-btn-back {
    flex: 1.5;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: var(--hmj-primary, #0F9F8A);
    color: var(--hmj-text-on-primary, #ffffff);
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15, 159, 138, 0.3);
    transition: background 0.15s ease, transform 0.14s ease;
}

.hmj-nav-drawer-btn-back:hover {
    background: var(--hmj-primary-dark, var(--hmj-primary, #0F9F8A));
}

.hmj-nav-card-btn--3d {
    font-size: 12px;
    font-weight: 800;
}

.hmj-nav-card-btn--3d.is-active {
    background: var(--hmj-primary, #0F9F8A);
    color: var(--hmj-text-on-primary, #ffffff);
}

.hmj-nav-drawer-action.is-active .hmj-nav-drawer-action-icon {
    background: var(--hmj-primary, #0F9F8A);
    color: var(--hmj-text-on-primary, #ffffff);
    border-color: var(--hmj-primary, #0F9F8A);
}

.hmj-nav-drawer-btn-back:active {
    transform: scale(0.97);
}

.hmj-nav-promo-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translateY(-4px);
}

.hmj-nav-promo-pin-pulse {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.28);
    animation: hmj-promo-pulse 1.6s ease-out infinite;
}

.hmj-nav-promo-pin-core {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--promo, #2563EB);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, 0.28);
    z-index: 1;
    font-size: 13px;
}

.hmj-nav-promo-pin-label {
    margin-top: 4px;
    max-width: 110px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes hmj-promo-pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@media (min-width: 769px) {
    .hmj-nav-sponsored {
        bottom: calc(120px + env(safe-area-inset-bottom, 0px));
        inset-inline-start: 24px;
    }
}

@media (max-width: 768px) {

    .hmj-nav-controls,
    .hmj-nav-recenter {
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .hmj-nav-maneuver-dist {
        font-size: 20px;
    }

    .hmj-nav-maneuver-street {
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    .hmj-nav-bottom {
        justify-content: center;
        padding-inline-end: 24px;
    }

    .hmj-nav-eta-card {
        margin-inline-end: 0;
    }

    .hmj-nav-controls,
    .hmj-nav-recenter {
        bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .hmj-nav-controls {
        inset-inline-end: 24px;
    }
}

/* ---------- پنل خلاصه سفر (ناوبری پس از رسیدن) ---------- */
.hmj-nav-summary {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.45);
    padding: 12px;
    pointer-events: none;
}

.hmj-nav-summary[hidden] {
    display: none !important;
}

.hmj-nav-summary-card {
    pointer-events: auto;
    width: min(420px, 100%);
    margin-inline: auto;
    background: var(--hmj-bg-card);
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 8px));
    box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.3);
    font-family: var(--font-body, system-ui);
}

.hmj-nav-summary-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hmj-text);
    margin-bottom: 14px;
}

.hmj-nav-summary-head i {
    color: var(--hmj-primary, #0F9F8A);
    font-size: 20px;
}

.hmj-nav-summary-close {
    margin-inline-start: auto;
    border: none;
    background: transparent;
    color: var(--hmj-text-muted);
    font-size: 16px;
    cursor: pointer;
}

.hmj-nav-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hmj-nav-summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 10px;
    background: var(--hmj-bg-page);
}

.hmj-nav-summary-row i {
    font-size: 14px;
    color: var(--hmj-primary, #0F9F8A);
}

.hmj-nav-summary-label {
    font-size: 11px;
    color: var(--hmj-text-muted);
}

.hmj-nav-summary-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--hmj-text);
}

.hmj-nav-summary-share {
    margin-top: 14px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hmj-text-on-primary);
    background: linear-gradient(135deg, var(--hmj-primary), var(--hmj-primary-dark, #0B7A6A));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ---------- حالت شب/روز خودکار نقشه ناوبری ---------- */
@media (prefers-color-scheme: dark) {

    .hmj-nav-maneuver,
    .hmj-nav-eta-card,
    .hmj-nav-search-bar,
    .hmj-nav-search-results,
    .hmj-nav-resume-inner {
        background: #1e293b;
        color: #e2e8f0;
    }

    .hmj-nav-maneuver-street {
        color: #f1f5f9;
    }

    .hmj-nav-speed strong {
        color: #fff;
    }

    .hmj-nav-eta-arrive {
        color: #0f172a;
    }

    .pm-route-simulate,
    .pm-nav-simulate {
        background: #0f172a;
        color: #e2e8f0;
    }
}

.hmj-nav-display-picker,
.hmj-nav-picker-fab,
.hmj-nav-picker-modal {
    display: none !important;
}

/* شیت انتخاب ماشین (Bottom Sheet) */
.hmj-rt-vehicle-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hmj-bg-page, #fff);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

.hmj-rt-vehicle-sheet[hidden] {
    display: none !important;
}

.hmj-rt-vehicle-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    color: var(--hmj-text, #333);
}

.hmj-rt-vehicle-sheet__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.hmj-rt-vehicle-more {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
}

.hmj-rt-vehicle-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: space-around;
}

.hmj-rt-vehicle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    min-width: 70px;
}

.hmj-rt-vehicle-item.active {
    opacity: 1;
}

.hmj-rt-vehicle-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.hmj-rt-vehicle-item i {
    font-size: 32px;
    color: var(--hmj-primary, #0F9F8A);
    line-height: 60px;
}

.hmj-rt-vehicle-item span {
    font-size: 12px;
    color: var(--hmj-text, #333);
    text-align: center;
}

.hmj-rt-vehicle-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.hmj-rt-vehicle-cancel,
.hmj-rt-vehicle-use {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.hmj-rt-vehicle-cancel {
    background: var(--hmj-bg-page, #fff);
    border: 1px solid #ddd;
    color: var(--hmj-text, #333);
}

.hmj-rt-vehicle-use {
    background: var(--hmj-primary, #007bff);
    color: #fff;
}

/* لایه‌های نقشه در شیت تنظیمات */
.hmj-layer-list {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
    justify-content: space-around;
}

.hmj-layer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--hmj-bg-page, #f4f4f5);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    color: var(--hmj-text, #333);
}

/* ==========================================================================
   2D Navigation View (Google Maps & Balad style) & Lane Guidance
   ========================================================================== */

/* راهنمای لاین‌های مسیر (Lane Guidance) در بالای صفحه */
.hmj-nav-lane-guide {
    display: none !important;
}

@keyframes hmjFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hmj-nav-lanes-row {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
    /* لاین‌ها از چپ به راست مرتب باشند */
}

.hmj-nav-lane-slot {
    width: 30px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    transition: all 0.25s ease;
}

.hmj-nav-lane-slot.is-lane-active {
    background: linear-gradient(135deg, var(--hmj-primary, #0F9F8A) 0%, var(--hmj-primary-dark, #0B7A6A) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px color-mix(in srgb, var(--hmj-primary, #0F9F8A) 65%, transparent);
    transform: scale(1.1);
    font-weight: 800;
}

.hmj-nav-lane-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--hmj-primary, #0F9F8A);
    white-space: nowrap;
}

/* دکمه شبیه‌سازی در پنل مسیریابی — بر اساس رنگ و قالب سایت */
.hmj-rt-cta--simulate {
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 12%, #ffffff) !important;
    color: var(--hmj-primary-dark, #087F70) !important;
    border: 1.5px solid var(--hmj-primary, #0F9F8A) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--hmj-primary, #0F9F8A) 15%, transparent) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px !important;
    font-weight: 700;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
}

.hmj-rt-cta--simulate:hover {
    background: var(--hmj-primary, #0F9F8A) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--hmj-primary, #0F9F8A) 30%, transparent) !important;
    transform: translateY(-1px);
}

.hmj-rt-cta--simulate:active {
    transform: translateY(0);
}

/* دکمه تلاش مجدد در فوتر شیت مسیر */
.hmj-rt-cta--retry {
    background: var(--hmj-primary, #0F9F8A) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--hmj-primary, #0F9F8A) 24%, transparent) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px !important;
    font-weight: 700;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
}

.hmj-rt-cta--retry:hover {
    background: var(--hmj-primary-dark, #087F70) !important;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--hmj-primary, #0F9F8A) 35%, transparent) !important;
    transform: translateY(-1px);
}

.hmj-rt-cta--retry:active {
    transform: translateY(0);
}

/* دکمه تلاش مجدد در نوار وضعیت بالای شیت */
.hmj-rt-status-retry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-inline-start: 8px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    color: var(--hmj-primary-dark, #087F70);
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 14%, #ffffff);
    border: 1px solid var(--hmj-primary, #0F9F8A);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.hmj-rt-status-retry:hover {
    background: var(--hmj-primary, #0F9F8A);
    color: #ffffff;
    transform: scale(1.02);
}

/* کارت وضعیت خالی / خطا در نتایج مسیر */
.hmj-rt-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
    gap: 12px;
    color: var(--hmj-rt-muted, #64748b);
}

.hmj-rt-empty-state i {
    font-size: 36px;
    color: #f59e0b;
}

.hmj-rt-empty-state.is-error i {
    color: #ef4444;
}

.hmj-rt-empty-state p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hmj-rt-text, #1e293b);
}

.hmj-rt-empty-state .hmj-rt-cta--retry {
    width: auto;
    min-width: 140px;
    margin-top: 4px;
}

/* غیرفعال‌سازی انتخاب تصادفی متن روی کارت‌ها */
.hmj-nav-bottom,
.hmj-nav-bottom-card,
.hmj-nav-card-info,
.hmj-nav-card-primary,
.hmj-nav-card-secondary {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* ریسپانسیو اختصاصی کیلومترشمار و قطب‌نما در موبایل */
@media (max-width: 768px) {
    .hmj-nav-speed {
        top: auto !important;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        gap: 8px;
    }

    .hmj-nav-speed-widget {
        width: 50px;
        height: 50px;
    }

    .hmj-nav-speed-dial {
        width: 50px;
        height: 50px;
        border-width: 1.8px !important;
    }

   

    .hmj-nav-speed-dial strong {
       // font-size: 19px !important;
    }

   

    .hmj-nav-speed-limit {
        top: -3px;
        right: -3px;
        width: 21px;
        height: 21px;
        border-width: 2px !important;
    }

    .hmj-nav-speed-limit span {
        font-size: 9.5px !important;
    }

    .hmj-nav-speed-sound-btn {
        top: -3px;
        left: -3px;
        width: 21px;
        height: 21px;
        font-size: 9.5px;
    }

    .hmj-nav-compass-btn {
        width: 34px;
        height: 34px;
    }

    .hmj-compass-needle svg {
        width: 18px;
        height: 18px;
    }

    .hmj-compass-n {
        top: 2px;
        font-size: 8px;
    }
}

/* ==========================================================================
   Navigation Route Steps Bottom Sheet (پلن و مراحل کامل مسیر)
   ========================================================================== */

.hmj-nav-steps-sheet {
    position: fixed;
    inset: 0;
    z-index: calc(var(--pm-z-nav, 1220) + 20);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hmj-nav-steps-sheet[hidden] {
    display: none !important;
}

.hmj-nav-steps-sheet.is-open {
    opacity: 1;
}

.hmj-nav-steps-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.hmj-nav-steps-panel {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    margin: 0 auto;
    max-height: min(78vh, 640px);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 26px 26px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    direction: rtl;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.hmj-nav-steps-sheet.is-open .hmj-nav-steps-panel {
    transform: translateY(0);
}

.hmj-nav-steps-handle {
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 7px auto 3px;
    flex-shrink: 0;
}

.hmj-nav-steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.hmj-nav-steps-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hmj-nav-steps-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.hmj-nav-steps-title-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hmj-nav-steps-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmj-nav-steps-subtitle {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmj-nav-steps-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.hmj-nav-steps-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.hmj-nav-steps-close:active {
    transform: scale(0.92);
}

.hmj-nav-steps-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.hmj-nav-steps-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hmj-nav-steps-stat i {
    font-size: 12px;
    color: #38bdf8;
}

.hmj-nav-steps-eta-lbl {
    font-size: 10.5px;
    color: #94a3b8;
}

.hmj-nav-steps-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.hmj-nav-steps-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.hmj-nav-steps-scroll::-webkit-scrollbar {
    width: 6px;
}

.hmj-nav-steps-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.hmj-nav-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hmj-nav-step-item {
    display: flex;
    align-items: stretch;
    position: relative;
    padding: 7px 6px;
    border-radius: 14px;
    transition: background 0.15s ease;
}

.hmj-nav-step-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hmj-nav-step-timeline {
    width: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.hmj-nav-step-line {
    position: absolute;
    top: 24px;
    bottom: -16px;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.hmj-nav-step-item:last-child .hmj-nav-step-line {
    display: none;
}

.hmj-nav-step-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    color: #cbd5e1;
    z-index: 1;
    transition: all 0.2s ease;
}

.hmj-nav-step-body {
    flex: 1;
    min-width: 0;
    padding: 2px 10px 2px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.hmj-nav-step-main-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
}

.hmj-nav-step-sub-text {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hmj-nav-step-sub-text i {
    font-size: 10px;
    color: #64748b;
}

.hmj-nav-step-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-inline-start: 8px;
}

.hmj-nav-step-dist {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Active Step Styling (گام جاری) */
.hmj-nav-step-item.is-active {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hmj-nav-step-item.is-active .hmj-nav-step-icon-wrap {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
    transform: scale(1.1);
}

.hmj-nav-step-item.is-active .hmj-nav-step-main-text {
    color: #34d399;
    font-weight: 800;
}

.hmj-nav-step-item.is-active .hmj-nav-step-dist {
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
}

.hmj-nav-step-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 1px 7px;
    border-radius: 999px;
    width: fit-content;
    margin-top: 2px;
}

/* Passed / Completed Steps (مراحل طی‌شده) */
.hmj-nav-step-item.is-passed {
    opacity: 0.55;
}

.hmj-nav-step-item.is-passed .hmj-nav-step-icon-wrap {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
}

.hmj-nav-step-item.is-passed .hmj-nav-step-line {
    background: #10b981;
}


.hmj-nav-handle {
    cursor: pointer;
    transition: background 0.15s ease, width 0.15s ease;
}

.hmj-nav-handle:hover,
.hmj-nav-bottom-card:hover .hmj-nav-handle {
    background: #94a3b8;
    width: 44px;
}

.hmj-nav-card-info {
    cursor: pointer;
    user-select: none;
    padding: 2px 8px;
    border-radius: 12px;
    transition: background 0.15s ease;
}

.hmj-nav-card-info:hover {
    background: #f8fafc;
}

.hmj-nav-card-btn--voice {
    position: relative;
    color: #334155;
}

.hmj-nav-card-btn--voice.mode-important {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
}

.hmj-nav-card-btn--voice.mode-muted {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.hmj-nav-voice-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    border: 1.5px solid #ffffff;
    font-size: 0;
}

.hmj-nav-steps-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.hmj-nav-action-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hmj-nav-action-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hmj-nav-action-chip:active {
    transform: scale(0.95);
}

.hmj-nav-action-chip i {
    font-size: 15px;
    color: #38bdf8;
}

.hmj-nav-action-chip:nth-child(2) i {
    color: #fbbf24;
}

.hmj-nav-action-chip:nth-child(3) i {
    color: #10b981;
}

.hmj-nav-action-chip:nth-child(4) i {
    color: #f87171;
}

.hmj-nav-action-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* پنهان کردن دکمه‌های شناور غیرضروری در حین مسیریابی */
body.hmj-navigating .pm-main-voice-btn,
body.hmj-navigating .pm-route-fab,
body.hmj-navigating .pm-filter-fab,
body.hmj-navigating .pm-save-fab,
body.pm-navigating .pm-main-voice-btn,
body.pm-navigating .pm-route-fab,
body.pm-navigating .pm-filter-fab,
body.pm-navigating .pm-save-fab {
    display: none !important;
}

/* مخفی‌سازی کامل دکمه لایه‌ها حین مسیریابی (دکمه لایه‌ها اکنون درون HUD پایین قرار دارد) */
body.hmj-navigating #pmMapLayerToggle,
body.pm-navigating #pmMapLayerToggle,
body.hmj-navigating .pm-layer-fab,
body.pm-navigating .pm-layer-fab,
body.hmj-navigating .pm-map-controls button#pmMapLayerToggle,
body.pm-navigating .pm-map-controls button#pmMapLayerToggle,
body.hmj-navigating .pm-map-controls button.pm-layer-fab,
body.pm-navigating .pm-map-controls button.pm-layer-fab,
body:has(#hmjNavRoot:not([hidden])) #pmMapLayerToggle,
body:has(#hmjNavRoot:not([hidden])) .pm-layer-fab,
body:has(#hmjNavRoot:not([hidden])) .pm-map-controls button#pmMapLayerToggle,
body:has(#hmjNavRoot:not([hidden])) .pm-map-controls button.pm-layer-fab {
    display: none !important;
}

/* کنترل‌های نقشه (تنها قطب‌نما در صورت نیاز) حین مسیریابی */
body.hmj-navigating .pm-map-controls,
body.pm-navigating .pm-map-controls {
    display: flex !important;
    bottom: calc(138px + env(safe-area-inset-bottom, 0px)) !important;
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    z-index: 99 !important;
    pointer-events: auto !important;
}

body.hmj-navigating .pm-map-controls button:not(#pmMapCompass),
body.pm-navigating .pm-map-controls button:not(#pmMapCompass) {
    display: none !important;
}

body.hmj-navigating #pmMapCompass,
body.pm-navigating #pmMapCompass {
    display: flex !important;
}

body.hmj-navigating #pmRoadReportFab,
body.hmj-navigating .pm-road-report-fab {
    display: none !important;
}

/* دکمه ۳D ناوبری (هماهنگ با رنگ و ظاهر سایر دکمه‌های منو) */
.hmj-nav-card-btn--3d {
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
}

.hmj-nav-3d-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
    font-family: system-ui, -apple-system, sans-serif;
}

/* وقتی ۳D فعال است */
.hmj-nav-card-btn--3d.is-active {
    color: var(--hmj-primary, #0F9F8A) !important;
    background: rgba(15, 159, 138, 0.12) !important;
    border-color: rgba(15, 159, 138, 0.3) !important;
}

.hmj-nav-card-btn--3d.is-active .hmj-nav-3d-label {
    color: var(--hmj-primary, #0F9F8A) !important;
}


/* ===== ویجت کنترل سرعت در حالت شبیه‌سازی / تست ===== */
.hmj-nav-sim-speed-ctrl {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    width: fit-content;
    animation: hmjSimFadeIn 0.22s ease-out;
}

@keyframes hmjSimFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.hmj-nav-sim-speed-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hmj-sim-speed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.hmj-sim-speed-btn:hover {
    background: #3b82f6;
    border-color: #60a5fa;
    transform: scale(1.05);
}

.hmj-sim-speed-btn:active {
    transform: scale(0.92);
}

.hmj-sim-speed-val {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    min-width: 54px;
    text-align: center;
}

.hmj-nav-sim-chips {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.hmj-sim-chip {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.hmj-sim-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hmj-sim-chip.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #60a5fa;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}


/* ==========================================================================
   Road Radar (رادار جاده‌ای — نوار افقی کپسولی بالا و پین‌های روی مسیر)
   ========================================================================== */
.hmj-nav-radar-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 6px 0 0 0;
    padding: 0;
    pointer-events: auto;
    z-index: 12;
    direction: rtl;
}

.hmj-nav-radar-bar[hidden] {
    display: none !important;
}

.hmj-nav-radar-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 2px 2px 4px 2px;
    width: 100%;
    overscroll-behavior-x: contain;
}

.hmj-nav-radar-chips::-webkit-scrollbar {
    display: none;
}

.hmj-nav-radar-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    box-sizing: border-box;
    padding: 2px 4px 2px 10px;
    background: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    white-space: nowrap;
}

.hmj-nav-radar-chip:hover {
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.22);
}

.hmj-nav-radar-chip:active {
    transform: scale(0.96);
}

.hmj-nav-radar-label {
    font-size: 11px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.hmj-nav-radar-dist {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #38bdf8;
    line-height: 1;
    white-space: nowrap;
}

.hmj-nav-radar-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hmj-nav-radar-weather {
    display: none !important;
}

/* پین‌های روی مسیر */
.hmj-radar-route-pin {
    position: relative;
    cursor: pointer;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    z-index: 5;
    transition: transform 0.2s ease;
}

.hmj-radar-route-pin:hover {
    transform: translate(-50%, -105%) scale(1.1);
    z-index: 10;
}

.hmj-radar-pin-pulse {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--radar-color, #6366f1);
    opacity: 0.35;
    animation: hmjRadarPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes hmjRadarPulse {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(2.2); opacity: 0; }
}

.hmj-radar-pin-core {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 2.5px solid #ffffff;
    transition: transform 0.2s ease;
}

.hmj-radar-pin-core i {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 14px;
}

.hmj-radar-pin-bubble {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hmj-radar-route-pin:hover .hmj-radar-pin-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.hmj-radar-pin-bubble strong {
    font-weight: 700;
    color: #ffffff;
}

.hmj-radar-pin-bubble span {
    font-size: 9.5px;
    color: #38bdf8;
    font-weight: 600;
}


/* ==========================================================================
   Waypoint Markers (پین‌های توقفگاه‌های میانی مسیر / چند مقصده)
   ========================================================================== */
.hmj-nav-waypoint-marker {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
    user-select: none;
    z-index: 8;
}

.hmj-wp-pin-pulse {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.45);
    animation: hmjWpPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes hmjWpPulse {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0.9; }
    70% { transform: translateX(-50%) scale(1.6); opacity: 0.15; }
    100% { transform: translateX(-50%) scale(1.8); opacity: 0; }
}

.hmj-wp-pin-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 2px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    gap: 4px;
    transition: transform 0.18s ease;
}

.hmj-nav-waypoint-marker:hover .hmj-wp-pin-icon {
    transform: scale(1.12);
}

.hmj-wp-pin-icon i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
}

.hmj-wp-pin-num {
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.hmj-wp-pin-label {
    margin-top: 4px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    line-height: 1.2;
}

/* ==========================================================================
   Place Modal during Navigation (کارت مینیمال، سبک و هم‌رنگ سایت حین مسیریابی)
   ========================================================================== */
.hmj-nav-place-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    direction: rtl;
    padding: 14px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hmj-nav-place-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hmj-nav-place-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

.hmj-nav-place-modal__card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    z-index: 2;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hmj-nav-place-modal.is-open .hmj-nav-place-modal__card {
    transform: translateY(0) scale(1);
}

.hmj-nav-place-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hmj-nav-place-thumb {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: rgba(15, 159, 138, 0.1);
    color: #0f9f8a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hmj-nav-place-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hmj-nav-place-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hmj-nav-place-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hmj-nav-place-modal__close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s ease, color 0.15s ease;
}

.hmj-nav-place-modal__close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.hmj-nav-place-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.hmj-nav-place-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmj-nav-place-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 1px 6px;
    border-radius: 6px;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.hmj-nav-place-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.2;
}

.hmj-nav-place-cat {
    color: #475569;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hmj-nav-place-dot {
    color: #cbd5e1;
}

.hmj-nav-place-dist {
    color: #0f9f8a;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hmj-nav-place-desc {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmj-nav-place-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hmj-nav-place-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.hmj-nav-place-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.hmj-nav-place-btn:active {
    transform: scale(0.985);
}

.hmj-nav-place-btn--stop {
    background: rgba(15, 159, 138, 0.08);
    border-color: rgba(15, 159, 138, 0.25);
}

.hmj-nav-place-btn--stop:hover {
    background: rgba(15, 159, 138, 0.15);
    border-color: rgba(15, 159, 138, 0.4);
}

.hmj-nav-place-btn--dest {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
}

.hmj-nav-place-btn--dest:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
}

.hmj-nav-place-btn__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    background: #e2e8f0;
    color: #475569;
}

.hmj-nav-place-btn--stop .hmj-nav-place-btn__icon {
    background: #0f9f8a;
    color: #ffffff;
}

.hmj-nav-place-btn--dest .hmj-nav-place-btn__icon {
    background: #0ea5e9;
    color: #ffffff;
}

.hmj-nav-place-btn__label {
    flex: 1;
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.hmj-nav-place-btn__arr {
    font-size: 11px;
    color: #94a3b8;
}

/* hmj-nav-card-btn--layer now uses unified base styling */
