:root{
  --bg:#06172a; --navy:#102747; --navy2:#0b2038; --cyan:#38c7ff; --cyan2:#1ea6e7;
  --purple:#8e6ef3; --purple2:#4f357e; --text:#f4f7ff; --muted:#a8b7ca; --line:rgba(80,198,255,.22);
  --green:#38d996; --amber:#ffbd4a; --red:#ff667a; --panel:rgba(11,35,60,.92);
}
*{box-sizing:border-box} html,body{height:100%;margin:0} body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);overflow:hidden}
a{color:inherit;text-decoration:none} button,input{font:inherit}
.app-shell{height:100vh;display:grid;grid-template-rows:94px 82px 1fr 46px;background:radial-gradient(circle at 80% 25%,rgba(74,74,164,.22),transparent 35%),linear-gradient(160deg,#09243d,#07172c 65%,#111b45)}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:#102747;border-bottom:1px solid rgba(64,201,255,.6);z-index:20}.brand-wrap{display:flex;align-items:center;gap:22px}.paj-logo{width:180px;height:70px;object-fit:cover;object-position:left center;border-radius:2px}.brand-title{font-size:23px;font-weight:900;letter-spacing:.5px}.brand-subtitle{font-size:16px;color:#b89fff;margin-top:2px}.top-action{border:1px solid var(--cyan);padding:13px 20px;border-radius:12px;font-weight:800;font-size:14px;background:rgba(5,29,53,.45)}.top-action:hover{background:rgba(56,199,255,.12)}
.title-strip{background:linear-gradient(90deg,rgba(7,27,48,.96),rgba(18,51,91,.92)),repeating-linear-gradient(90deg,transparent 0 80px,rgba(255,255,255,.02) 80px 82px);border-bottom:1px solid rgba(56,199,255,.38)}.title-inner{height:100%;display:flex;align-items:center;padding:0 42px;gap:16px;position:relative}.section-no{font-size:42px;font-weight:900;color:rgba(255,255,255,.06);margin-right:2px}.title-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(56,199,255,.3);border-radius:13px;background:rgba(56,199,255,.08)}.title-inner h1{font-size:28px;line-height:1;margin:0 0 8px;font-weight:950;letter-spacing:.1px}.title-inner p{margin:0;color:#b9c7d8;font-size:14px}.source-pill{margin-left:auto;padding:8px 12px;border-radius:999px;border:1px solid rgba(181,148,255,.28);color:#cdbaff;background:rgba(124,83,195,.15);font-size:11px;font-weight:900;letter-spacing:1px}
.workspace{min-height:0;display:grid;grid-template-columns:310px 1fr;gap:14px;padding:14px 20px}.sidebar,.map-panel{border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.22)}.sidebar{background:linear-gradient(180deg,rgba(16,44,75,.97),rgba(7,26,45,.98));display:flex;flex-direction:column;padding:18px}.sidebar-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.eyebrow,.selected-label,.vehicle-kicker{font-size:10px;letter-spacing:1.3px;color:#80dfff;font-weight:900}.sidebar h2{font-size:24px;margin:2px 0 0}.searchbox{display:flex;align-items:center;gap:9px;background:rgba(3,17,32,.55);border:1px solid rgba(100,188,237,.18);border-radius:12px;padding:0 12px;margin-bottom:12px}.searchbox input{height:42px;min-width:0;width:100%;border:0;outline:0;color:#fff;background:transparent}.searchbox input::placeholder{color:#71869e}
.route-card{border:1px solid rgba(133,172,211,.14);background:rgba(16,48,80,.6);border-radius:12px;padding:10px;display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;color:#fff;text-align:left;cursor:pointer;width:100%;margin-bottom:7px;transition:.18s ease}.route-card:hover{border-color:rgba(56,199,255,.44);transform:translateY(-1px)}.route-card.active{background:linear-gradient(135deg,rgba(71,53,119,.65),rgba(19,70,105,.74));border-color:rgba(142,110,243,.72);box-shadow:0 0 0 1px rgba(142,110,243,.14) inset}.route-badge{height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(142,110,243,.18);border:1px solid rgba(167,140,255,.26);color:#dbcfff;font-size:11px;font-weight:950}.route-badge.all{color:#7fe0ff;background:rgba(56,199,255,.1);border-color:rgba(56,199,255,.25)}.route-text{min-width:0}.route-text strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.route-text span{display:block;color:#93a8bd;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.route-count{min-width:28px;height:25px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.07);color:#c4d4e7;font-size:11px;font-weight:900}.route-list{flex:1;overflow:auto;padding-right:3px}.route-list::-webkit-scrollbar{width:5px}.route-list::-webkit-scrollbar-thumb{background:rgba(117,168,208,.35);border-radius:9px}.loading-list{color:#8ca2b8;padding:20px;text-align:center;font-size:12px}.sidebar-foot{padding-top:10px;border-top:1px solid rgba(255,255,255,.06);display:flex;gap:13px;color:#8298ae;font-size:11px}.legend-row{display:flex;align-items:center;gap:6px}.dot{width:7px;height:7px;border-radius:50%}.dot.live{background:var(--green);box-shadow:0 0 9px rgba(56,217,150,.7)}.dot.delayed{background:var(--amber)}
.map-panel{position:relative;background:#07192d;min-height:0}.map-toolbar{position:absolute;z-index:500;left:18px;right:18px;top:16px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.stats-row{pointer-events:auto;display:flex;align-items:center;gap:8px;padding:7px;border-radius:15px;background:rgba(5,22,39,.88);border:1px solid rgba(83,180,229,.22);box-shadow:0 10px 30px rgba(0,0,0,.22);backdrop-filter:blur(12px)}.status-chip{height:44px;padding:0 13px;border-radius:11px;display:flex;align-items:center;gap:8px;font-size:12px}.status-chip.live{background:rgba(56,217,150,.1);color:#76ffc2}.status-chip.delay{background:rgba(255,189,74,.12);color:#ffd37e}.status-chip.offline{background:rgba(255,102,122,.12);color:#ff9aaa}.pulse{width:8px;height:8px;background:currentColor;border-radius:50%;box-shadow:0 0 0 0 currentColor;animation:pulse 2s infinite}.stat{min-width:82px;padding:2px 13px;border-left:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column}.stat.wide{min-width:145px}.stat-value{font-size:17px;font-weight:950}.stat-value.small{font-size:13px}.stat-label{font-size:9px;color:#8ea4ba;margin-top:2px;text-transform:uppercase;letter-spacing:.5px}.route-toggle{pointer-events:auto}
#map{height:100%;width:100%;background:#07192d}.leaflet-container{font-family:inherit}.leaflet-tile-pane{filter:brightness(.58) invert(1) contrast(1.35) hue-rotate(178deg) saturate(.45)}.leaflet-control-zoom{display:none}.leaflet-control-attribution{display:none}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#102747;color:#fff}.leaflet-popup-content{margin:10px 12px}
.bus-marker-wrap{background:transparent!important;border:0!important}.bus-marker{position:relative;min-width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#8e6ef3,#6541b0);border:2px solid rgba(255,255,255,.78);box-shadow:0 7px 18px rgba(0,0,0,.38),0 0 0 4px rgba(142,110,243,.17);display:grid;place-items:center;color:white;font-weight:950;font-size:9px}.bus-marker.stale{background:linear-gradient(145deg,#9a7734,#6b5222);opacity:.82}.bus-marker .bus-glyph{font-size:15px;line-height:1}.bus-marker .route-tag{position:absolute;top:-9px;right:-11px;min-width:29px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:7px;background:#05182a;border:1px solid rgba(100,208,255,.45);font-size:8px;white-space:nowrap}.bus-marker .bearing{position:absolute;bottom:-11px;left:50%;transform-origin:center;color:#64d4ff;font-size:9px;text-shadow:0 1px 3px #000}
.map-floating-left{position:absolute;z-index:500;right:18px;bottom:46px;display:flex;flex-direction:column;gap:8px}.map-control,.icon-btn{border:1px solid rgba(95,190,235,.25);background:rgba(8,31,53,.9);color:#fff;border-radius:11px;cursor:pointer}.map-control{width:42px;height:42px;font-size:18px;box-shadow:0 8px 22px rgba(0,0,0,.2)}.map-control:hover{background:#143b60}.selected-route-panel,.vehicle-sheet{position:absolute;z-index:600;background:rgba(9,29,50,.96);border:1px solid rgba(151,119,241,.42);border-radius:17px;box-shadow:0 22px 60px rgba(0,0,0,.42);backdrop-filter:blur(14px)}.selected-route-panel{left:18px;bottom:46px;width:min(390px,calc(100% - 36px));padding:16px 46px 16px 17px}.selected-title{font-size:24px;font-weight:950;margin-top:2px}.selected-desc{color:#a7b7c8;font-size:12px;margin-top:3px}.selected-meta{display:flex;gap:18px;color:#69d5ff;font-size:11px;font-weight:800;margin-top:10px}.close-mini{position:absolute;right:10px;top:10px;width:27px;height:27px;border-radius:9px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#d7e2ed;cursor:pointer}.vehicle-sheet{right:18px;bottom:46px;width:330px;padding:17px}.vehicle-head{display:flex;align-items:center;gap:12px;padding-right:25px}.vehicle-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:rgba(142,110,243,.17);font-size:22px}.vehicle-route{font-size:24px;font-weight:950;margin-top:2px}.vehicle-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.vehicle-grid>div{padding:9px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.vehicle-grid span{display:block;font-size:9px;color:#7f95aa;text-transform:uppercase}.vehicle-grid strong{display:block;margin-top:4px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary-btn{width:100%;margin-top:12px;height:38px;border:0;border-radius:11px;background:linear-gradient(90deg,#7352c7,#249ed0);color:white;font-weight:900;cursor:pointer}.map-credit{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:450;font-size:9px;color:#6f8599;background:rgba(3,15,26,.66);padding:4px 7px;border-radius:7px;white-space:nowrap}.hidden{display:none!important}
footer{display:grid;place-items:center;color:#7f8da0;font-size:13px;background:#061426;border-top:1px solid rgba(255,255,255,.04)}.mobile-only{display:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(56,217,150,.5)}70%{box-shadow:0 0 0 8px rgba(56,217,150,0)}100%{box-shadow:0 0 0 0 rgba(56,217,150,0)}}
@media(max-width:900px){body{overflow:hidden}.app-shell{grid-template-rows:68px 70px 1fr 0}.topbar{padding:0 14px}.paj-logo{width:112px;height:46px}.brand-wrap{gap:10px}.brand-title{font-size:13px}.brand-subtitle{font-size:10px}.top-action{padding:9px 11px;font-size:10px}.title-inner{padding:0 14px;gap:9px}.section-no,.source-pill{display:none}.title-icon{width:38px;height:38px}.title-inner h1{font-size:18px;margin-bottom:4px}.title-inner p{font-size:10px}.workspace{grid-template-columns:1fr;padding:0;gap:0}.map-panel{border-radius:0;border-left:0;border-right:0}.sidebar{position:absolute;z-index:1000;left:10px;top:148px;bottom:10px;width:min(330px,calc(100vw - 20px));transform:translateX(-110%);transition:.22s ease;box-shadow:0 20px 60px rgba(0,0,0,.52)}.sidebar.open{transform:translateX(0)}.mobile-only{display:inline-flex}.icon-btn{width:34px;height:34px;align-items:center;justify-content:center}.map-toolbar{top:10px;left:10px;right:10px;align-items:flex-start}.stats-row{gap:2px;padding:5px}.status-chip{height:38px;padding:0 9px}.stat{min-width:58px;padding:2px 8px}.stat.wide{display:none}.stat-value{font-size:14px}.stat-label{font-size:7px}.route-toggle{height:40px;border:1px solid rgba(84,194,238,.3);background:rgba(7,31,53,.92);color:white;border-radius:12px;padding:0 10px;font-size:11px;font-weight:900}.selected-route-panel{left:10px;bottom:36px;width:calc(100% - 20px)}.vehicle-sheet{left:10px;right:10px;bottom:36px;width:auto}.map-floating-left{right:10px;bottom:150px}.map-credit{bottom:5px}.leaflet-tile-pane{filter:brightness(.61) invert(1) contrast(1.3) hue-rotate(178deg) saturate(.45)}footer{display:none}}


/* =========================================
   PATCH v1.0.1 - popup spacing + 3D bus icon
========================================= */

/* ---- Popup / detail card ---- */
.bus-popup-card,
.vehicle-modal-card,
.vehicle-detail-card {
    width: min(92vw, 560px);
    box-sizing: border-box;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(8,30,61,0.96) 0%, rgba(5,24,48,0.98) 100%);
    border: 1px solid rgba(91, 153, 255, 0.20);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    overflow: hidden;
}

.bus-popup-header,
.vehicle-modal-header,
.vehicle-detail-header {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 54px;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.bus-popup-icon,
.vehicle-modal-icon,
.vehicle-detail-icon {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #203a78 0%, #2a2a7a 45%, #314db5 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 30px rgba(0,0,0,0.28);
    font-size: 38px;
    flex-shrink: 0;
}

.bus-popup-headings,
.vehicle-modal-headings,
.vehicle-detail-headings {
    min-width: 0;
}

.bus-popup-kicker,
.vehicle-modal-kicker,
.vehicle-detail-kicker {
    font-size: 14px;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #7dd8ff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bus-popup-route,
.vehicle-modal-route,
.vehicle-detail-route {
    margin: 0;
    font-size: 58px;
    line-height: 0.95;
    font-weight: 900;
    color: #ffffff;
    word-break: break-word;
}

.bus-popup-close,
.vehicle-modal-close,
.vehicle-detail-close {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #dbe8ff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-popup-grid,
.vehicle-modal-grid,
.vehicle-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.bus-popup-box,
.vehicle-modal-box,
.vehicle-detail-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 18px 20px;
    min-height: 110px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.bus-popup-box--wide,
.vehicle-modal-box--wide,
.vehicle-detail-box--wide {
    grid-column: 1 / 2;
}

.bus-popup-label,
.vehicle-modal-label,
.vehicle-detail-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(220,230,255,0.70);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bus-popup-value,
.vehicle-modal-value,
.vehicle-detail-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bus-popup-action,
.vehicle-modal-action,
.vehicle-detail-action {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 22px;
    padding: 20px 24px;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, #7e5bf1 0%, #2ea7df 100%);
    box-shadow: 0 12px 30px rgba(46,167,223,0.18);
}

/* ---- 3D Bus Marker ---- */
.bus-3d-marker-wrap {
    background: transparent !important;
    border: 0 !important;
}

.bus-3d-marker {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,0.30));
}

.bus-3d-marker__body {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.24);
    background: linear-gradient(145deg, #1dc8ff 0%, #3b6cff 44%, #4a48d8 100%);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.28),
        inset 0 -6px 12px rgba(0,0,0,0.22),
        0 10px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(120px) rotateX(18deg) rotateZ(var(--bearing, 0deg));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bus-3d-marker__emoji {
    font-size: 22px;
    line-height: 1;
    filter: saturate(1.15);
}

.bus-3d-marker__label {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 40px;
    max-width: 62px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #071f43;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(125,216,255,0.25);
    box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

.bus-3d-marker::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: rgba(46,167,223,0.95);
    border-radius: 0 0 4px 0;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.bus-3d-marker.is-stale .bus-3d-marker__body {
    background: linear-gradient(145deg, #ffc247 0%, #ff8f3c 44%, #ff6262 100%);
}

.bus-3d-marker.is-selected .bus-3d-marker__body {
    background: linear-gradient(145deg, #5af0ff 0%, #3aaeff 40%, #5750ff 100%);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.32),
        inset 0 -6px 12px rgba(0,0,0,0.18),
        0 0 0 5px rgba(61,197,255,0.18),
        0 14px 26px rgba(0,0,0,0.28);
}

/* Mobile */
@media (max-width: 640px) {
    .bus-popup-card,
    .vehicle-modal-card,
    .vehicle-detail-card {
        width: min(94vw, 94vw);
        padding: 16px;
        border-radius: 24px;
    }

    .bus-popup-header,
    .vehicle-modal-header,
    .vehicle-detail-header {
        grid-template-columns: 74px minmax(0, 1fr) 44px;
        gap: 12px;
    }

    .bus-popup-icon,
    .vehicle-modal-icon,
    .vehicle-detail-icon {
        width: 74px;
        height: 74px;
        border-radius: 20px;
        font-size: 32px;
    }

    .bus-popup-route,
    .vehicle-modal-route,
    .vehicle-detail-route {
        font-size: 46px;
    }

    .bus-popup-grid,
    .vehicle-modal-grid,
    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }

    .bus-popup-box--wide,
    .vehicle-modal-box--wide,
    .vehicle-detail-box--wide {
        grid-column: auto;
    }

    .bus-popup-box,
    .vehicle-modal-box,
    .vehicle-detail-box {
        min-height: auto;
        padding: 16px 16px;
    }

    .bus-popup-action,
    .vehicle-modal-action,
    .vehicle-detail-action {
        font-size: 18px;
        padding: 16px 20px;
    }
}

/* =========================================================
   PAJ BAS.MY SAFE UI PATCH v1.0.2
   Hanya vehicle popup + bus marker
   ========================================================= */

/* --- Betulkan kotak detail bas --- */
.vehicle-sheet{
    width:390px !important;
    max-width:calc(100% - 36px) !important;
    padding:20px !important;
    overflow:hidden !important;
}

.vehicle-head{
    padding-right:42px !important;
}

.vehicle-grid{
    grid-template-columns:minmax(0,1fr) minmax(120px,.72fr) !important;
    gap:10px !important;
}

.vehicle-grid > div{
    min-width:0 !important;
    padding:12px !important;
    overflow:hidden !important;
}

.vehicle-grid span{
    line-height:1.25 !important;
}

.vehicle-grid strong{
    width:100% !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    line-height:1.3 !important;
}

#vehicleTrip{
    font-size:12px !important;
}

#vehicleId{
    font-size:12px !important;
}

#vehicleSpeed,
#vehicleAge{
    font-size:13px !important;
}

.vehicle-action{
    width:100% !important;
    margin-top:12px !important;
}

/* --- Marker bas baru --- */

.bus-marker-wrap{
    background:transparent !important;
    border:0 !important;
}

.bus-marker{
    position:relative !important;
    width:52px !important;
    height:58px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    overflow:visible !important;
}

.bus-marker .bus-glyph{
    position:absolute;
    left:50%;
    top:15px;
    transform:
        translateX(-50%)
        rotate(var(--bearing,0deg));
    transform-origin:center;
    width:30px;
    height:40px;
    display:block;
    transition:transform .4s ease;
    filter:drop-shadow(0 5px 5px rgba(0,0,0,.4));
}

/* badan bas top-view */
.bus-marker .bus-glyph::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:8px 8px 6px 6px;
    border:1px solid rgba(255,255,255,.9);
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.28),
            transparent 24%,
            transparent 78%,
            rgba(255,255,255,.12)
        ),
        linear-gradient(
            180deg,
            #68e4ff 0%,
            #24b8ec 20%,
            #1478bf 55%,
            #0b477a 100%
        );
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.38),
        inset 0 -6px 9px rgba(1,21,42,.45),
        0 5px 10px rgba(0,0,0,.35);
}

/* cermin depan */
.bus-marker .bus-glyph::after{
    content:"";
    position:absolute;
    left:5px;
    right:5px;
    top:5px;
    height:8px;
    border-radius:5px 5px 3px 3px;
    border:1px solid rgba(255,255,255,.55);
    background:
        linear-gradient(
            145deg,
            #d6f8ff,
            #5bc7ee 48%,
            #123d67
        );
}

/* nombor laluan */
.bus-marker .route-tag{
    position:absolute !important;
    z-index:5 !important;
    top:-1px !important;
    right:auto !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    height:19px !important;
    min-width:31px !important;
    max-width:54px !important;
    padding:0 6px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:7px !important;
    background:#061b30 !important;
    border:1px solid rgba(76,206,255,.55) !important;
    color:#fff !important;
    font-size:9px !important;
    font-weight:900 !important;
    white-space:nowrap !important;
    box-shadow:0 4px 10px rgba(0,0,0,.35) !important;
}

/* buang triangle bearing lama */
.bus-marker .bearing{
    display:none !important;
}

/* data lambat */
.bus-marker.stale .bus-glyph{
    opacity:.72;
    filter:
        grayscale(.25)
        drop-shadow(0 5px 5px rgba(0,0,0,.4));
}

/* mobile */
@media(max-width:700px){
    .vehicle-sheet{
        left:12px !important;
        right:12px !important;
        bottom:12px !important;
        width:auto !important;
        max-width:none !important;
    }

    .vehicle-grid{
        grid-template-columns:1fr 1fr !important;
    }

}

/* =========================================================
   PAJ BAS.MY 3D BUS MARKER v1.0.3
   ========================================================= */

.bus-marker-wrap {
    background: transparent !important;
    border: 0 !important;
}

.bus-marker {
    position: relative !important;

    width: 48px !important;
    height: 64px !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible !important;

    pointer-events: auto;
}


/* ==========================
   BUS SVG
   ========================== */

.bus-svg-wrap {
    position: absolute;

    z-index: 2;

    left: 50%;
    top: 12px;

    width: 32px;
    height: 50px;

    transform:
        translateX(-50%)
        rotate(var(--bearing, 0deg));

    transform-origin:
        50% 50%;

    transition:
        transform .45s ease,
        filter .25s ease;

    filter:
        drop-shadow(
            0 5px 7px
            rgba(0, 0, 0, .35)
        );
}


.bus-svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;
}


/* ==========================
   ROUTE NUMBER
   ========================== */

.bus-marker .route-tag {
    position: absolute !important;

    z-index: 20 !important;

    top: -3px !important;

    left: 50% !important;
    right: auto !important;

    transform:
        translateX(-50%) !important;

    display: grid !important;
    place-items: center !important;

    height: 20px !important;

    min-width: 31px !important;
    max-width: 52px !important;

    padding:
        0 6px !important;

    border-radius:
        7px !important;

    border:
        1px solid
        rgba(94, 216, 255, .65) !important;

    background:
        rgba(3, 25, 46, .96) !important;

    color:
        #ffffff !important;

    font-size:
        9px !important;

    font-weight:
        900 !important;

    line-height:
        1 !important;

    letter-spacing:
        .15px !important;

    white-space:
        nowrap !important;

    overflow:
        hidden !important;

    text-overflow:
        ellipsis !important;

    box-shadow:
        0 4px 11px
        rgba(0, 0, 0, .40) !important;

    backdrop-filter:
        blur(5px);
}


/* ==========================
   LIVE / STALE
   ========================== */

.bus-marker.stale {
    opacity: .72;
}


.bus-marker.stale .bus-svg-wrap {
    filter:
        grayscale(.25)
        sepia(.15)
        drop-shadow(
            0 5px 7px
            rgba(0, 0, 0, .35)
        );
}


.bus-marker.stale .route-tag {
    border-color:
        rgba(255, 190, 70, .70)
        !important;

    color:
        #ffd47a !important;
}


/* ==========================
   SELECTED ROUTE
   ========================== */

.bus-marker.selected {
    z-index: 50;
}


.bus-marker.selected .bus-svg-wrap {
    transform:
        translateX(-50%)
        rotate(var(--bearing, 0deg))
        scale(1.15);

    filter:
        drop-shadow(
            0 0 5px
            rgba(64, 210, 255, .90)
        )
        drop-shadow(
            0 7px 10px
            rgba(0, 0, 0, .40)
        );
}


.bus-marker.selected .route-tag {
    background:
        #07517c !important;

    border-color:
        #68eaff !important;

    box-shadow:
        0 0 10px
        rgba(55, 201, 255, .45)
        !important;
}


/* ==========================
   HOVER
   ========================== */

.bus-marker:hover .bus-svg-wrap {
    filter:
        drop-shadow(
            0 0 5px
            rgba(75, 215, 255, .65)
        )
        drop-shadow(
            0 7px 9px
            rgba(0, 0, 0, .40)
        );
}


.bus-marker:hover .route-tag {
    background:
        #0b4163 !important;

    border-color:
        #7be7ff !important;
}


/* ==========================
   REMOVE OLD MARKER PARTS
   ========================== */

.bus-marker .bus-glyph,
.bus-marker .bearing {
    display: none !important;
}


/* ==========================
   MOBILE
   ========================== */

@media (max-width: 700px) {

    .bus-marker {
        width: 44px !important;
        height: 58px !important;
    }

    .bus-svg-wrap {
        width: 29px;
        height: 46px;

        top: 11px;
    }

    .bus-marker .route-tag {
        min-width:
            29px !important;

        max-width:
            47px !important;

        height:
            18px !important;

        padding:
            0 5px !important;

        font-size:
            8px !important;
    }
}


.hero-banner{
  position:relative;
  z-index:5;
  flex:0 0 auto;
  min-height:76px;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  overflow:hidden;
  border-bottom:1px solid rgba(41,168,224,.5);
  background:
    linear-gradient(90deg,rgba(5,22,43,.95),rgba(5,30,58,.78),rgba(5,30,58,.28)),
    url('../../../images/bas-bg3.png') center/cover no-repeat;
}

.hero-text-group{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.page-num{
  font-size:34px;
  font-weight:900;
  color:rgba(255,255,255,.08);
  line-height:1;
}

.page-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(41,168,224,.14);
  border:1px solid rgba(41,168,224,.25);
  color:#70d3ff;
  font-size:22px;
}

.hero-title{
  font-size:clamp(21px,2vw,31px);
  font-weight:900;
  color:#fff;
  line-height:1.1;
  margin:0 0 3px;
}

.hero-sub{
  font-size:11px;
  color:#bad0e6;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:850px;
}

.paj-back-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  color:#e7f6ff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.paj-back-btn:hover{
  color:#fff;
  background:rgba(41,168,224,.12);
  border-color:rgba(41,168,224,.35);
}



/* Standalone header; shared header source was not supplied. */
.app-shell{height:100vh;height:100dvh;grid-template-rows:auto auto minmax(0,1fr) auto}
.topbar{padding:12px 24px;min-height:68px;gap:16px;flex-shrink:0}
.brand-wrap{gap:14px;min-width:0}.brand-copy{min-width:0}
.paj-logo{width:auto;height:clamp(30px,5vh,60px);max-width:160px;object-fit:contain;border-radius:0;flex-shrink:0}
.brand-title{font-size:clamp(13px,1.4vw,23px);line-height:1.2}.brand-subtitle{font-size:clamp(10px,.9vw,16px)}
.top-action{font-size:11px;padding:8px 12px;border-radius:8px;white-space:nowrap}
.hero-banner{width:100%}.hero-title{font-family:system-ui,sans-serif}.hero-sub{font-weight:400;margin:0}
.hero-content{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;min-width:0}
.hero-text-group>div:last-child{min-width:0}.page-icon svg{width:24px;height:24px}
.workspace{position:relative;min-width:0}.sidebar,.map-panel{min-width:0}.sidebar{min-height:0}.route-list{min-height:0}
footer{min-height:34px;padding:8px 16px;text-align:center;font-size:clamp(10px,.85vw,14px)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #70d3ff;outline-offset:3px}
@media(max-width:900px){
 .app-shell{grid-template-rows:auto auto minmax(0,1fr) auto}
 .topbar{padding:10px 14px;min-height:60px}.paj-logo{max-width:105px;height:38px}
 .hero-banner{padding:12px 14px}.hero-title{font-size:clamp(17px,3vw,23px)}
 .hero-sub{white-space:normal;font-size:11px;line-height:1.4}
 .page-num{display:none}.hero-text-group{gap:10px}
 .sidebar{top:10px;bottom:10px}.workspace{overflow:hidden}
 footer{display:grid;font-size:9px;min-height:28px;padding:6px 10px}
}
@media(max-width:600px){
 .hero-content{flex-wrap:wrap;gap:10px}.hero-text-group{width:100%}
 .paj-back-btn{margin-left:54px;font-size:10px;padding:7px 10px}
 .brand-title{font-size:11px}.brand-subtitle{font-size:10px}.brand-wrap{gap:9px}
 .top-action{font-size:10px;padding:8px}.topbar{gap:8px}
 .map-toolbar{gap:4px}.stat{min-width:48px;padding:2px 5px}.status-chip{padding:0 7px}
 .route-toggle{padding:0 7px}.stats-row{gap:0}
}
@media(max-height:500px){
 .topbar{min-height:44px;padding:5px 14px}.paj-logo{height:30px}
 .hero-banner{min-height:58px;padding:6px 14px}.hero-title{font-size:18px}
 .hero-content{flex-wrap:nowrap}.hero-text-group{width:auto}.paj-back-btn{margin-left:0}
 .vehicle-sheet{max-height:calc(100% - 20px);overflow-y:auto!important}
}
@media(prefers-reduced-motion:reduce){.pulse{animation:none}}

/* =========================================================
   BASMY_OPERATIONAL_STATUS_V100
   Status / icon style sync with BMJ
   ========================================================= */

.route-card .basmy-route-op {
  display: flex !important;
  align-items: center;
  margin-top: 6px !important;
  min-height: 20px !important;
  line-height: 1 !important;
}

.basmy-op {
  --c:#8799aa;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(135,153,170,.28);
  background:rgba(6,27,46,.86);
  color:#f3f8fc;
  box-sizing:border-box;
}

.basmy-op.compact {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 20px !important;
  padding: 3px 8px 3px 7px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  background: rgba(7, 27, 46, 0.62) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 3px 10px rgba(0,0,0,.10) !important;
  backdrop-filter: blur(8px);
}

.basmy-op .dot {
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--c);
}

.basmy-op.compact .dot {
  width:7px !important;
  height:7px !important;
  flex:0 0 7px !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.025);
}

.basmy-op .copy {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.basmy-op .copy b {
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.basmy-op .copy small {
  font-size:10px;
  color:#b8c8d6;
  line-height:1.3;
}

.basmy-op.compact .copy {
  display:block !important;
  line-height:1 !important;
}

.basmy-op.compact .copy b {
  display:block !important;
  font-size:8px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:.55px !important;
}

.basmy-op-moving      { --c:#3ee0a2; border-color:rgba(62,224,162,.20); background:rgba(62,224,162,.08); }
.basmy-op-waiting     { --c:#ffc14d; border-color:rgba(255,193,77,.20); background:rgba(255,193,77,.08); }
.basmy-op-not-started { --c:#7db9ff; border-color:rgba(125,185,255,.18); background:rgba(125,185,255,.08); }
.basmy-op-idle        { --c:#58c7ff; border-color:rgba(88,199,255,.20); background:rgba(88,199,255,.08); }
.basmy-op-gps-missing { --c:#ff6b6b; border-color:rgba(255,107,107,.22); background:rgba(255,107,107,.08); }
.basmy-op-ended       { --c:#8396a8; border-color:rgba(145,163,180,.18); background:rgba(117,137,157,.07); }
.basmy-op-unknown     { --c:#8799aa; }

.basmy-selected-status {
  margin-top:12px !important;
}

.basmy-selected-status .basmy-op {
  width:100%;
  min-height:48px !important;
  padding:9px 12px !important;
  border-radius:13px !important;
  background:rgba(6,25,43,.56) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.basmy-selected-status .copy b {
  font-size:11px !important;
  letter-spacing:.35px !important;
}

.basmy-selected-status .copy small {
  margin-top:2px !important;
  font-size:10px !important;
  color:#aebdcc !important;
}

.basmy-vehicle-extra {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.basmy-source-pill,
.basmy-motion-pill {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#dce9f5;
}

.basmy-source-pill.secondary {
  color:#ffd06a;
  border-color:rgba(255,193,77,.28);
  background:rgba(255,193,77,.08);
}

.basmy-source-pill.primary {
  color:#62dfad;
  border-color:rgba(62,224,162,.28);
  background:rgba(62,224,162,.08);
}

.route-card .route-text {
  min-width:0;
  padding-bottom:1px;
}

@media (max-width:900px) {
  .basmy-op.compact { max-width:180px }
  .basmy-selected-status .copy b { font-size:11px }
}
