/* Perdana brand fonts, self-hosted (the CSP allows fonts from 'self' only). Latin variable
   woff2 from Fontsource; all three are SIL Open Font License 1.1. */

/* Literal colours and fonts of this file, lifted into tokens (Hallmark floor 1, 2026-11-27). Values are
   exactly what the rules used before; give a token a role name when you next change it. */
:root {
    --passenger-font-helvetica-neue-helvetica-arial-sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --passenger-c-006bb7: #006bb7;
    --passenger-c-fff: #fff;
    --passenger-c-1b6ec2: #1b6ec2;
    --passenger-c-1861ac: #1861ac;
    --passenger-c-258cfb: #258cfb;
    --passenger-c-26b050: #26b050;
    --passenger-c-e50000: #e50000;
    --passenger-c-b32121: #b32121;
    --passenger-c-929292: #929292;
    --passenger-c-25d366: #25d366;
    --passenger-font-montserrat: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; /* Montserrat is not loaded: without a fallback KEMB showed the browser serif (owner request 2026-12-02) */
    --passenger-c-rgba-255-255-255-0p9: rgba(255, 255, 255, 0.9);
    --passenger-c-19140f: #19140f;
    --passenger-c-0c0c0b: #0c0c0b;
    --passenger-c-070707: #070707;
    --passenger-c-rgba-236-116-49-0p05: rgba(236, 116, 49, 0.05);
    --passenger-c-000: #000;
    --passenger-c-rgba-236-116-49-0p14: rgba(236, 116, 49, 0.14);
    --passenger-c-rgba-236-116-49-0p3: rgba(236, 116, 49, 0.3);
    --passenger-c-rgba-236-116-49-0: rgba(236, 116, 49, 0);
    --passenger-c-rgba-0-0-0-0p25: rgba(0, 0, 0, 0.25);
    --passenger-font-montserrat-helvetica-neue-helvetica-arial-sans-serif: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --passenger-c-rgba-17-24-39-0p68: rgba(17, 24, 39, 0.68);
    --passenger-c-rgba-255-255-255-0p14: rgba(255, 255, 255, 0.14);
    --passenger-c-000000: #000000;
    --passenger-c-rgba-17-24-39-0p96: rgba(17, 24, 39, 0.96);
    --passenger-c-rgba-17-24-39-0p72: rgba(17, 24, 39, 0.72);
    --passenger-c-rgba-245-158-11-0p34: rgba(245, 158, 11, 0.34);
    --passenger-c-rgba-245-158-11-0p82: rgba(245, 158, 11, 0.82);
    --passenger-c-rgba-245-158-11-0p38: rgba(245, 158, 11, 0.38);
    --passenger-c-rgba-0-0-0-p7: rgba(0, 0, 0, .7);
    --passenger-c-rgba-255-255-255-p35: rgba(255, 255, 255, .35);
    --passenger-c-rgba-17-24-39-p72: rgba(17, 24, 39, .72);
    --passenger-c-rgba-255-255-255-p12: rgba(255, 255, 255, .12);
    --passenger-c-rgba-255-255-255-p6: rgba(255, 255, 255, .6);
    --passenger-c-060706: #060706;
    --passenger-c-161917: #161917;
    --passenger-c-rgba-255-255-255-0p08: rgba(255, 255, 255, 0.08);
    --passenger-c-c2c9c4: #c2c9c4;
    --passenger-c-ec7431: #ec7431;
    --passenger-c-1a0e05: #1a0e05;
    --passenger-c-1d2125: #1d2125;
    --passenger-c-rgba-0-0-0-p1: rgba(0, 0, 0, .1);
    --passenger-c-rgba-0-0-0-p08: rgba(0, 0, 0, .08);
    --passenger-font-ui-monospace-menlo-consolas-monospace: ui-monospace, Menlo, Consolas, monospace;
    --passenger-c-rgba-0-0-0-p3: rgba(0, 0, 0, .3);
    --passenger-c-8a5a00: #8a5a00;
    --passenger-c-4a5560: #4a5560;
    --passenger-c-7a4a00: #7a4a00;
    --passenger-c-0d6efd: #0d6efd;
    --passenger-c-rgba-0-0-0-p15: rgba(0, 0, 0, .15);
    --passenger-c-ffffff: #ffffff;
    --passenger-c-212529: #212529;
    --passenger-c-111827: #111827;
    --passenger-c-rgba-0-0-0-p12: rgba(0, 0, 0, .12);
    --passenger-c-rgba-127-127-127-p25: rgba(127, 127, 127, .25);
    --passenger-c-rgba-0-0-0-p25: rgba(0, 0, 0, .25);
    --passenger-c-rgba-17-24-39-p88: rgba(17, 24, 39, .88);
    --passenger-c-rgba-255-255-255-p92: rgba(255, 255, 255, .92);
    --passenger-c-rgba-255-255-255-p55: rgba(255, 255, 255, .55);
    --passenger-c-rgba-255-255-255-p06: rgba(255, 255, 255, .06);
    --passenger-c-rgba-255-255-255-p14: rgba(255, 255, 255, .14);
    --passenger-c-rgba-0-0-0-p5: rgba(0, 0, 0, .5);
    --passenger-c-rgba-0-0-0-p18: rgba(0, 0, 0, .18);
    --passenger-c-rgba-255-255-255-p95: rgba(255, 255, 255, .95);
    --passenger-c-rgba-17-24-39-p92: rgba(17, 24, 39, .92);
    --passenger-c-rgba-0-0-0-p35: rgba(0, 0, 0, .35);
    --passenger-c-1f2937: #1f2937;
    --passenger-c-1f479e: #1f479e;
    --passenger-c-9ec3ff: #9ec3ff;
    --passenger-c-white: white;
    --passenger-c-black: black;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('fonts/Perdana/baloo-2.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/Perdana/plus-jakarta-sans.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/Perdana/jetbrains-mono.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* Shared passenger theme tokens. New operators can add a Theme value and extend these tokens without copying workflow components. */
/* brand: the em layout coloured by the client's Branding colour (--em-base set inline per page, PassengerBrand) */
.passenger-theme-brand,
.passenger-theme-em.passenger-theme-brand {
    --passenger-primary: var(--em-base);
    --passenger-accent: var(--em-base);
    --passenger-loader-overlay: rgba(0, 0, 0, 0.45);
    --passenger-loader-track: rgba(255, 255, 255, 0.3);
    --passenger-loader-accent: var(--white);
    --passenger-loader-page: var(--em-base);
}

.passenger-theme-em {
    --passenger-primary: var(--em-base);
    --passenger-accent: var(--em-title-color);
    --passenger-surface: var(--em-secondary);
    --passenger-loader-overlay: rgba(31, 71, 158, 0.52);
    --passenger-loader-track: rgba(255, 255, 255, 0.3);
    --passenger-loader-accent: var(--white);
    --passenger-loader-page: var(--em-base);
}

.passenger-theme-ep {
    --passenger-primary: var(--ep-base);
    --passenger-accent: var(--ep-accent);
    --passenger-surface: var(--ep-secondary);
    --passenger-loader-overlay: rgba(0, 0, 0, 0.5);
    --passenger-loader-track: rgba(255, 255, 255, 0.28);
    --passenger-loader-accent: var(--ep-accent);
    --passenger-loader-page: var(--ep-base);
}

.passenger-theme-qe {
    --passenger-primary: #f59e0b;
    --passenger-accent: #f59e0b;
    --passenger-surface: #111827;
    --passenger-loader-overlay: rgba(17, 24, 39, 0.42);
    --passenger-loader-track: rgba(255, 255, 255, 0.65);
    --passenger-loader-accent: #f59e0b;
    --passenger-loader-page:
        linear-gradient(rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.68)),
        url("images/QueenExpress/ui-bg.jpg") center center / cover no-repeat;
    --qe-base: #1f2937;
    --qe-accent: #f59e0b;
    --qe-input: #111827;
    --qe-muted: #9ca3af;
    --qe-whatsapp: #25d366;
}
html, body {
    font-family: var(--passenger-font-helvetica-neue-helvetica-arial-sans-serif);
    touch-action: manipulation; /* Disable all touch gestures */
    overscroll-behavior: contain; /* Prevent scroll chaining and zooming */
    user-select: none; /* Disable text selection (optional) */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

a, .btn-link {
    color: var(--passenger-c-006bb7);
}

.btn-primary {
    color: var(--passenger-c-fff);
    background-color: var(--passenger-c-1b6ec2);
    border-color: var(--passenger-c-1861ac);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--passenger-c-white), 0 0 0 0.25rem var(--passenger-c-258cfb);
}

.content {
    padding-top: 1.1rem;
}

h1:focus:not(:focus-visible) {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--passenger-c-26b050);
}

.invalid {
    outline: 1px solid var(--passenger-c-e50000);
}

.validation-message {
    color: var(--passenger-c-e50000);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--passenger-c-b32121);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--passenger-c-white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: var(--passenger-c-929292);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --em-base: #1f479e;
    --em-locate: #e2e2e2;
    --ep-base: #0a0b0a;
    --ep-locate: #e2e2e2;
    --ep-accent: #ec7431;
    --white: #ffffff;
    --bb-header-color: #e0e0e0;
    --bb-header-bg: #702cf8;
    --passenger-loader-overlay: rgba(255, 255, 255, 0.62);
    --passenger-loader-track: rgba(0, 0, 0, 0.08);
    --passenger-loader-accent: #3498db;
    --passenger-loader-page: var(--white);
}

.layout .layout-header {
    height:inherit;
    padding-top:.5em;
    background-color:var(--passenger-c-white);
    color:var(--passenger-c-black);
    border-bottom: 1px solid var(--bs-border-color);
}

/* ===========
     loader
   =============*/
.loader-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    /* spinner and any hint under it sit together in the middle */
    align-content: center;
    gap: 1rem;
    z-index: 9999;
    background: var(--passenger-loader-overlay);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    pointer-events: auto;
}

.loader-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loader {
    width: clamp(42px, 12vw, 56px);
    height: clamp(42px, 12vw, 56px);
    border: 6px solid var(--passenger-loader-track);
    border-radius: 50%;
    border-top-color: var(--passenger-loader-accent);
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#app.navitap-boot-loader {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--passenger-loader-page);
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.layout {
    --bb-layout-header-background: #696B7A !important;
    --bb-layout-sidebar-banner-background: var(--bb-header-bg);
    --bb-layout-header-color: var(--bb-header-color);
    --bb-layout-title-color: var(--bb-header-color);
}

/*    .layout.is-page .layout-header {
        background-color: #696B7A !important;
    }*/

.header-main h1 span {
    font-weight: bolder;
}

/* E-Mutiara tracking header: the operator logo sits in the title line, like .ep-operator-logo */
.operator-logo {
    height: 1.3em;
    width: auto;
    max-width: 45vw;
    object-fit: contain;
    vertical-align: middle;
}

.btn-whatsapp {
    background-color: var(--qe-whatsapp, var(--passenger-c-25d366));
    border-color: var(--qe-whatsapp, var(--passenger-c-25d366));
}
.layout .layout-main{
    padding:0;
}

/* ===========
     EMutiara
   =============*/

/* ===========
     Search Page
   =============*/
.em-search-container {
    height: 99.9vh;
    /* scrolls when Help, the schedule or an announcement makes the page taller than the screen */
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--em-base);
    font-family: var(--passenger-font-montserrat);
}

.em-search-header {
    height: 50vh;
}

.em-search-header-logo {
    height: 50vh;
}

.em-search-header-main-logo {
    height: 15vh;
}

.em-search-header-tracking-logo {
    height: 15vh;
}

.em-search-header-operator-logo {
    height: 10vh;
}

.em-search-header-title {
    height: 10vh;
    color: var(--passenger-c-white);
}

.em-search-tracking-logo {
    width: 20vw;
    height: 15vh;
}

.em-search-operator-logo {
    width: 6vw;
    height: 9vh;
}


.em-search-header-title .title-container {
    font-size: 3em;
    line-height: 1em;
}

.em-search-header-title .subtitle-container {
    font-size: 1.5em;
}

.em-search-header-title .title-container span {
    font-weight: bolder;
}

.em-search-content {
    min-height: 10vh;
    width: 70vw;
}

.em-search-footer {
    height: 40vh;
}

.em-search-footer-image {
    height: 41vh;
    width: 120vw;
    object-position: 45vw;
}

.btn-search, .btn-search:hover, .btn-ep-search, .btn-ep-search:hover {
    background-color: var(--white) !important;
    border-color: var(--white) !important;
    font-size: 1em;
    font-weight: bolder;
}

.btn-search, .btn-search:hover {
    color: var(--em-base) !important;
}

/* ===========
     Locate Page
   =============*/

.em-locate-container {
    background-color: var(--white);
    font-family: var(--passenger-font-montserrat);
}

.btn-locate-search, .btn-locate-search:hover, .btn-ep-locate-search, .btn-ep-locate-search:hover {
    color: var(--white);
    font-size: 1em;
    font-weight: bolder;
}

.btn-locate-search, .btn-locate-search:hover {
    background-color: var(--em-base) !important;
    border-color: var(--em-base) !important;
}

.em-locate-label, .ep-locate-label {
    color: var(--white);
    font-size: 1em;
    font-weight: bolder;
}

.em-locate-label {
    background-color: var(--em-base) !important;
}

.em-locate-label i, .ep-locate-label i {
    width: 1em;
    height: 1em;
}

.em-locate-label-arrow, .ep-locate-label-arrow {
    background-color: var(--white);
    width: 5px;
    display: inline-block;
    position: relative;
}

.em-locate-text:before, .ep-locate-text:before {
    color: var(--white);
    border-left: 10px solid;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    display: inline-block;
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
}

.em-locate-text, .ep-locate-text {
    color: var(--white);
    font-size: 1em;
}

.em-locate-text {
    background-color: var(--em-base) !important;
}

.em-locate-refresh-counter, .ep-locate-refresh-counter {
    color: red;
}

/* On screens that are 992px or less */
@media screen and (max-width: 992px) {
    .em-search-tracking-logo {
        width: 30vw;
        height: 15vh;
    }

    .em-search-operator-logo {
        width: 10vw;
        height: 9vh;
    }

    .em-search-header-title .title-container {
        font-size: 2em;
        line-height: 1em;
    }

    .em-search-header-title .subtitle-container {
        font-size: 1em;
    }

    .em-search-footer-image {
        height: 41vh;
        width: 140vw;
        object-position: 50vw;
    }
}

/* On screens that are 600px or less */
@media screen and (max-width: 600px) {
    .em-search-header-main-logo {
        height: 15vh;
    }

    .em-search-header-tracking-logo {
        height: 15vh;
    }

    .em-search-header-operator-logo {
        height: 10vh;
    }

    .em-search-header-title {
        height: 10vh;
        color: var(--passenger-c-white);
    }

    .em-search-tracking-logo {
        width: 50vw;
        height: 15vh;
    }

    .em-search-operator-logo {
        width: 20vw;
        height: 9vh;
    }

    .em-search-header-title .title-container {
        font-size: 2em;
        line-height: 1em;
    }

    .em-search-header-title .subtitle-container {
        font-size: 1em;
    }

    .em-search-footer-image {
        height: 41vh;
        width: 160vw;
        object-position: 50vw;
    }

    .map-container {
        position: relative;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        z-index: 1;
    }

    .map-card-overlay {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
        max-width: 300px;
        background-color: var(--passenger-c-rgba-255-255-255-0p9);
        border-radius: 0.5rem;
    }
}

/* ===========
     Perdana
   =============*/

/* ===========
     Ekspres Perdana (Perdana Track design system: orange #EC7431 on near-black,
     near-black text on orange, rounded controls, radar-ping backdrop)
   =============*/
.passenger-theme-ep {
    --ep-ink-1000: #060706;
    --ep-ink-900: #0a0b0a;
    --ep-ink-800: #161917;
    --ep-ink-700: #242826;
    --ep-ink-600: #343a37;
    --ep-ink-500: #4d544f;
    --ep-ink-300: #98a09b;
    --ep-ink-200: #c2c9c4;
    --ep-orange-600: #d45e1e;
    --ep-on-orange: #1a0e05;
    --ep-green: #25d366;
    --ep-border-subtle: rgba(255, 255, 255, 0.08);
    --ep-glow: 0 6px 18px rgba(236, 116, 49, 0.4);
    --ep-ring: 0 0 0 3px rgba(236, 116, 49, 0.55);
    --ep-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    --ep-font-display: 'Baloo 2', 'Nunito', 'Varela Round', 'Segoe UI', system-ui, sans-serif;
    --ep-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-family: var(--ep-font);
}

/* ---- Search page ---- */
.ep-search-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 16px 0;
    background: radial-gradient(90% 70% at 50% 72%, var(--passenger-c-19140f) 0%, var(--passenger-c-0c0c0b) 55%, var(--passenger-c-070707) 100%);
    color: var(--white);
}

/* faint orange tracking grid */
.ep-search-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--passenger-c-rgba-236-116-49-0p05) 1px, transparent 1px),
        linear-gradient(90deg, var(--passenger-c-rgba-236-116-49-0p05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 74%, var(--passenger-c-000) 0%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 74%, var(--passenger-c-000) 0%, transparent 75%);
    pointer-events: none;
}

/* radar ping from a location pin below the form */
.ep-search-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 74%;
    z-index: -1;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--ep-accent);
    box-shadow: 0 0 0 4px var(--passenger-c-rgba-236-116-49-0p14);
    animation: epPing 3.6s ease-out infinite;
    pointer-events: none;
}

@keyframes epPing {
    0% { box-shadow: 0 0 0 0 var(--passenger-c-rgba-236-116-49-0p3); }
    100% { box-shadow: 0 0 0 48px var(--passenger-c-rgba-236-116-49-0); }
}

@media (prefers-reduced-motion: reduce) {
    .loader { animation: none; -webkit-animation: none; }
    .ep-search-container::after {
        animation: none;
        box-shadow: 0 0 0 4px var(--passenger-c-rgba-236-116-49-0p14);
    }
}

.ep-search-container > .w-100 {
    width: min(100%, 430px) !important;
}

.ep-search-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.ep-search-header-main-logo,
.ep-search-header-tracking-logo {
    height: auto;
}

.ep-search-header-operator-logo {
    margin-bottom: 1rem;
}

.ep-search-operator-logo {
    display: block;
    width: min(78vw, 280px);
    height: auto;
    object-fit: contain;
}

.ep-search-brand-title {
    font-family: var(--ep-font-display);
    font-weight: 800;
    font-size: 1.625rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--white);
}

.ep-search-brand-subtitle {
    margin-top: 4px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--ep-accent);
}

.ep-search-content {
    width: min(100%, 340px);
    margin: 0 auto;
}

.ep-search-content .form-control {
    min-height: 56px;
    border-radius: 12px;
    border: 1px solid var(--ep-ink-600);
    background-color: var(--ep-ink-700);
    color: var(--white);
    font-family: var(--ep-font-mono);
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0 20px;
}

.ep-search-content .form-control::placeholder {
    color: var(--ep-ink-300);
    font-family: var(--ep-font);
    letter-spacing: 0;
    text-align: start;
}

.ep-search-content .form-control:focus {
    border-color: var(--ep-accent);
    background-color: var(--ep-ink-700);
    color: var(--white);
    box-shadow: var(--ep-ring);
}

.ep-search-content .navitap-last-ticket .btn {
    border-radius: 12px;
    border: 1px solid var(--ep-border-subtle);
    background-color: var(--ep-ink-800);
    color: var(--ep-ink-200);
}

.ep-search-content .navitap-last-ticket strong {
    color: var(--white);
    font-family: var(--ep-font-mono);
}

.passenger-theme-ep .btn-ep-search,
.passenger-theme-ep .btn-ep-search:hover {
    width: 100%;
    min-height: 56px;
    border-radius: 12px;
    background-color: var(--ep-accent) !important;
    border-color: var(--ep-accent) !important;
    color: var(--ep-on-orange) !important;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--ep-glow);
    transition: transform 120ms cubic-bezier(0.2, 0, 0.2, 1), background-color 120ms;
}

.passenger-theme-ep .btn-ep-search:hover {
    background-color: var(--ep-orange-600) !important;
    border-color: var(--ep-orange-600) !important;
}

.passenger-theme-ep .btn-ep-search:active {
    transform: scale(0.97);
}

.passenger-theme-ep .btn-ep-search:disabled,
.passenger-theme-ep .btn-ep-search.disabled {
    opacity: 0.55;
    filter: grayscale(1);
    cursor: not-allowed;
    box-shadow: none;
}

/* ---- brand footer (search + locate) ---- */
.ep-brand-footer {
    width: 100%;
    margin-top: auto;
    padding: 28px 16px 28px;
    text-align: center;
}

/* the search page's floating help button (about 48px high, 16px from the bottom) must not cover the footer */
.ep-search-container .ep-brand-footer { padding-bottom: 84px; }

.ep-locate-container .ep-brand-footer {
    margin-top: 1.5rem;
    border-top: 1px solid var(--ep-border-subtle);
}

.ep-brand-footer-logo {
    display: inline-block;
    height: 22px;
    width: auto;
    opacity: 0.9;
}

.ep-brand-footer-tagline {
    margin-top: 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ep-ink-300);
}

.ep-brand-footer-powered {
    margin-top: 8px;
    font-size: .6875rem;
    color: var(--ep-ink-300); /* ink-500 on ink-900 was about 2.5:1 */
}

/* ---- Locate page ---- */
.ep-locate-container {
    background-color: var(--ep-ink-900);
    color: var(--ep-ink-200);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.ep-locate-header {
    background-color: var(--ep-ink-1000) !important;
    color: var(--white) !important;
    border-bottom: 1px solid var(--ep-border-subtle) !important;
    width: 100% !important;
    left: 0;
    padding: 16px 16px 16px !important;
}

.ep-locate-header .header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ep-operator-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.ep-locate-subtitle {
    color: var(--ep-ink-200);
    font-size: .78125rem;
    font-weight: 600;
}

/* Pickup / WhatsApp side by side */
.ep-locate-container > .text-center.mb-1 {
    display: flex;
    gap: 12px;
    margin: 4px 0 12px !important;
}

.ep-locate-container .btn-pickup,
.ep-locate-container .btn-whatsapp {
    flex: 1 1 0;
    width: auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 !important;
}

.ep-locate-container .btn-pickup {
    background-color: var(--ep-ink-800) !important;
    border: 1px solid var(--ep-ink-600) !important;
    color: var(--white) !important;
}

.ep-locate-container .btn-whatsapp {
    background-color: var(--ep-green) !important;
    border-color: var(--ep-green) !important;
    color: var(--ep-on-orange) !important;
}

.ep-locate-container .card {
    background-color: var(--ep-ink-800);
    border: 1px solid var(--ep-border-subtle);
    border-radius: 12px;
    color: var(--ep-ink-200);
}

.ep-locate-container .navitap-arrival-summary.card {
    color: var(--white);
}

.ep-locate-container .navitap-arrival-summary .fa-bus,
.ep-locate-container .card .text-primary {
    color: var(--ep-accent) !important;
}

.ep-locate-container .text-muted {
    color: var(--ep-ink-300) !important;
}

.ep-locate-container [role="img"] {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ep-border-subtle);
}

.ep-locate-container .text-center > p {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ep-ink-300);
}

.ep-locate-refresh-counter {
    color: var(--ep-accent);
    font-family: var(--ep-font-mono);
    font-weight: 700;
}

/* Refresh (primary, orange) / Search / Share (secondary, dark) */
.passenger-theme-ep .btn-ep-locate-search,
.passenger-theme-ep .btn-ep-locate-search:hover {
    width: calc(50% - 8px);
    min-height: 52px;
    margin: 12px 2px 0;
    border-radius: 12px;
    background-color: var(--ep-ink-800) !important;
    border: 1px solid var(--ep-ink-600) !important;
    color: var(--white) !important;
    font-weight: 700;
}

.passenger-theme-ep .btn-ep-locate-search:first-child,
.passenger-theme-ep .btn-ep-locate-search:first-child:hover {
    background-color: var(--ep-accent) !important;
    border-color: var(--ep-accent) !important;
    color: var(--ep-on-orange) !important;
    box-shadow: 0 1px 3px var(--passenger-c-rgba-0-0-0-0p25);
}

.passenger-theme-ep .btn-ep-locate-search:active {
    transform: scale(0.97);
}

/* section labels: uppercase, wide-tracked, with a rule */
.ep-locate-container .ep-section-label {
    margin: 20px 0 8px;
    --bb-divider-text-color: var(--ep-ink-300);
    --bb-divider-border-color: var(--ep-ink-600);
    --bb-divider-bg: transparent;
}

.ep-locate-container .ep-section-label .divider-text {
    background: var(--ep-ink-900);
    color: var(--ep-ink-300);
    font-size: .8125rem;
    font-weight: 800;
}

/* detail rows: the signature orange bars, near-black text */
.ep-locate-container .navitap-detail-label {
    color: var(--ep-ink-300) !important;
    font-size: .9375rem;
    font-weight: 600;
}

.ep-locate-label,
.ep-locate-text {
    background-color: var(--ep-accent) !important;
    border-color: var(--ep-accent) !important;
    color: var(--ep-on-orange) !important;
}

.ep-locate-label {
    border-radius: 10px 0 0 10px !important;
    min-width: 44px;
    justify-content: center;
}

.ep-locate-text {
    border-radius: 0 10px 10px 0 !important;
    min-height: 44px;
    font-weight: 700;
    text-transform: none;
}

.ep-locate-text:before {
    color: var(--ep-on-orange);
    opacity: 0.25;
}

/* ===========
     Queen Express
   =============*/

/* ===========
     QE Search Page
   =============*/
.qe-search-container {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    background-color: var(--qe-base);
    color: var(--white);
    font-family: var(--passenger-font-montserrat-helvetica-neue-helvetica-arial-sans-serif);
    isolation: isolate;
    position: relative;
}

.qe-search-container::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(var(--passenger-c-rgba-17-24-39-0p68), var(--passenger-c-rgba-17-24-39-0p68)),
        url("images/QueenExpress/ui-bg.jpg") center center / cover no-repeat;
}

.qe-search-container > :not(.loader-overlay) {
    position: relative;
    z-index: 1;
}

.qe-search-header {
    /* the logo lives in the top bar now, so the search box starts near the top */
    min-height: clamp(1.5rem, 6vh, 3rem);
    width: min(88vw, 430px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.qe-search-header-main-logo {
    min-height: 0;
}

.qe-search-header-operator-logo {
    margin-bottom: clamp(1rem, 4vh, 2rem);
}

.qe-search-qtrack-logo {
    width: clamp(190px, 58vw, 300px);
    height: auto;
    display: block;
    object-fit: contain;
}

.qe-search-content {
    width: min(86vw, 390px);
    margin: 0 auto;
}

.qe-search-content .form-control {
    min-height: 52px;
    background-color: var(--qe-input) !important;
    border: 1px solid var(--passenger-c-rgba-255-255-255-0p14);
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
}

.qe-search-content .form-control::placeholder {
    color: var(--qe-muted);
    opacity: 1;
    text-transform: none;
}

/* Ticket box hint on a narrow phone: the operator's own wording ("Enter Ticket Number: eg: QE26090077777") is long, so its
   text is made smaller rather than cut off. What the passenger types keeps its size. */
@media (max-width: 420px) {
    #navitap-ticket-no::placeholder {
        font-size: .8125rem;
        font-weight: 400;
    }
}

.btn-qe-search, .btn-qe-search:hover, .btn-qe-search:focus {
    width: 100%;
    min-height: 52px;
    background-color: var(--qe-accent) !important;
    border-color: var(--qe-accent) !important;
    color: var(--passenger-c-000000) !important;
    border-radius: 6px;
    font-size: clamp(0.92rem, 3.8vw, 1rem);
    font-weight: 800;
}

.btn-qe-search:disabled {
    opacity: 0.72;
    filter: grayscale(1);
    cursor: not-allowed;
}

.qe-search-footer {
    width: min(84vw, 380px);
    margin-top: clamp(2.5rem, 8vh, 5rem);
    padding-bottom: 1.5rem;
    text-align: center;
}

.qe-search-footer-image {
    width: clamp(190px, 62vw, 315px);
    max-height: 90px;
    height: auto;
    object-fit: contain;
}

.qe-search-powered-by {
    margin-top: 0.85rem;
    color: var(--white);
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0;
/*    text-transform: uppercase;*/
}

.qe-search-powered-by span {
    font-weight: 900;
}

/* ===========
     QE Locate Page
   =============*/
.qe-locate-header {
    width: 100% !important;
    left: 0;
    padding: 1.1rem 1rem 0.75rem;
    background-color: transparent !important;
    color: var(--white) !important;
    border-bottom: none !important;
    z-index: 20;
    transition: background-color 160ms ease;
}

.qe-locate-header.qe-locate-header-scrolled {
    background-color: var(--passenger-c-rgba-17-24-39-0p96) !important;
}

.qe-locate-header-main {
    width: 100%;
}

.qe-locate-qtrack-logo {
    width: clamp(150px, 42vw, 240px);
    height: auto;
    display: inline-block;
    object-fit: contain;
}

.qe-locate-subtitle {
    margin-top: 0.45rem;
    color: var(--white);
    font-size: clamp(0.86rem, 3.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0;
}

.qe-locate-container {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding-bottom: 2rem;
    overflow-x: hidden;
    background-color: var(--qe-base);
    color: var(--white);
    font-family: var(--passenger-font-montserrat-helvetica-neue-helvetica-arial-sans-serif);
    isolation: isolate;
    position: relative;
}

.qe-locate-container::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(var(--passenger-c-rgba-17-24-39-0p72), var(--passenger-c-rgba-17-24-39-0p72)),
        url("images/QueenExpress/ui-bg.jpg") center center / cover no-repeat;
}

.qe-locate-container > :not(.loader-overlay) {
    position: relative;
    z-index: 1;
}

.qe-locate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    width: min(94vw, 620px);
    margin: 0.65rem auto 0.9rem;
}

.btn-qe-pickup, .btn-qe-pickup:hover, .btn-qe-pickup:focus,
.btn-qe-locate-search, .btn-qe-locate-search:hover, .btn-qe-locate-search:focus {
    min-height: 44px;
    background-color: var(--qe-accent) !important;
    border-color: var(--qe-accent) !important;
    color: var(--passenger-c-000000) !important;
    border-radius: 6px;
    font-size: clamp(0.88rem, 3.2vw, 1rem);
    font-weight: 800;
}

.btn-qe-whatsapp, .btn-qe-whatsapp:hover, .btn-qe-whatsapp:focus {
    min-height: 44px;
    background-color: var(--qe-whatsapp) !important;
    border-color: var(--qe-whatsapp) !important;
    color: var(--passenger-c-000000) !important;
    border-radius: 6px;
    font-size: clamp(0.88rem, 3.2vw, 1rem);
    font-weight: 800;
}

.qe-locate-container .leaflet-container {
    z-index: 2;
    border: 1px solid var(--passenger-c-rgba-245-158-11-0p34);
    border-radius: 6px;
}

.qe-locate-refresh {
    margin: 0.55rem 0 0.35rem;
    color: var(--white);
    font-size: clamp(0.86rem, 3vw, 0.98rem);
    font-weight: 600;
}

.qe-locate-refresh-counter {
    color: var(--qe-accent);
    font-weight: 900;
}

.qe-locate-detail-row {
    margin-bottom: 0.65rem;
}

.qe-locate-detail-row .input-group {
    min-height: 44px;
}

.qe-locate-label {
    background-color: var(--qe-accent) !important;
    color: var(--passenger-c-000000);
    font-size: 1em;
    font-weight: 900;
    border-color: var(--passenger-c-rgba-245-158-11-0p82);
}

.qe-locate-label i {
    width: 1em;
    height: 1em;
}

.qe-locate-text {
    position: relative;
    background-color: var(--qe-input) !important;
    color: var(--white);
    border-color: var(--passenger-c-rgba-245-158-11-0p38);
    font-size: 1em;
    font-weight: 700;
}

.qe-locate-text:before {
    color: var(--qe-input);
    border-left: 10px solid;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    display: inline-block;
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
}

.passenger-theme-qe .divider,
.passenger-theme-qe .bb-divider {
    color: var(--white);
}

.qe-locate-footer {
    width: min(84vw, 380px);
    margin: 1.5rem auto 0;
    padding-bottom: 1rem;
    text-align: center;
}

.qe-locate-footer-image {
    width: clamp(180px, 58vw, 300px);
    max-height: 86px;
    height: auto;
    object-fit: contain;
}

.qe-locate-powered-by {
    margin-top: 0.75rem;
    color: var(--white);
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0;
/*    text-transform: uppercase;*/
}

.qe-locate-powered-by span {
    font-weight: 900;
}

/* ===========
     QE responsive rules
   =============*/
@media screen and (max-width: 600px) {
    .qe-search-header {
        min-height: clamp(1.5rem, 6vh, 3rem);
    }

    .qe-search-header-main-logo {
        min-height: 0;
    }

    .qe-search-footer {
        margin-top: clamp(3.5rem, 11vh, 6rem);
    }

    .qe-locate-actions {
        width: min(92vw, 390px);
    }

    .btn-qe-pickup, .btn-qe-whatsapp {
        width: 100%;
    }

    .qe-locate-detail-row .col-6 {
        width: 100%;
    }
}

/* Phones: the tracking page buttons fill the width and are tall enough to tap */
@media (max-width: 575.98px) {
    .btn-locate-search, .btn-qe-locate-search, .btn-ep-locate-search,
    .btn-pickup, .btn-qe-pickup, .btn-whatsapp, .btn-qe-whatsapp {
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 100% !important;
        min-height: 44px;
        margin: .25rem 0 !important;
    }
}

.navitap-arrival-summary .fs-5 { line-height: 1.2; }

/* Phones: the Bus Schedule and Help & FAQ openers become full-width buttons */
@media (max-width: 575.98px) {
    .navitap-panel-open {
        width: 100%;
        min-height: 44px;
        border: 1px solid currentColor;
        border-radius: .5rem;
        text-decoration: none;
    }
}

/* Tracking page: a caption above each trip and ticket detail */
.navitap-detail-label { line-height: 1.2; margin-top: .25rem; }

/* Rating, lost item and feedback forms: touch-sized actions and openers */
.navitap-form-actions .btn { min-height: 44px; }
.navitap-form-open { min-height: 44px; }
@media (max-width: 575.98px) {
    .navitap-form-open { width: 100%; }
}

/* search taking long: a hint and a Cancel button under the spinner */
.navitap-slow-search { color: var(--passenger-c-fff); text-align: center; padding: 0 1rem; max-width: 22rem; }

/* touch-sized rating stars and close (x) buttons: at least 44 x 44 px for a thumb */
.navitap-rating-stars .btn { min-width: 44px; min-height: 44px; }
[class*="passenger-theme-"] .btn-close { box-sizing: border-box; min-width: 44px; min-height: 44px; flex-shrink: 0; }

/* BM | EN switch, top right of the search and tracking pages */
.navitap-language-bar { display: flex; justify-content: flex-end; width: 100%; align-self: stretch; padding: .5rem .75rem 0; position: relative; z-index: 5; }
.navitap-language .btn { min-width: 44px; min-height: 44px; font-weight: 600; }
/* a dark pill so the white buttons read on every theme's background */
.navitap-language { background: var(--passenger-c-rgba-0-0-0-p7); border-radius: .5rem; padding: 2px; }
.navitap-language .btn-outline-light { border-color: transparent; }

/* Pinch-zoom is allowed (owner decision 2026-09-28), but the page must not zoom by itself:
   iPhone Safari zooms in on any input whose text is under 16px when it is tapped, which pushed
   the phone-sized layout off screen. Inputs at 16px or more are never auto-zoomed. */
input, select, textarea, .form-control, .form-select {
    font-size: max(16px, 1em) !important;
}

/* Mutiara / Queen Express: schedule / help as two equal buttons under Search; an opened panel takes the full row */
.navitap-search-quick {
    width: min(86vw, 390px);
    margin: 1rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.navitap-search-quick > * {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
}

.navitap-search-quick > *:has(.card),
.navitap-search-quick > *:has(.navitap-sch) {
    flex-basis: 100%;
    order: -1;
}

.navitap-search-quick .card {
    max-width: none !important;
    color: var(--bs-body-color);
}

.navitap-search-quick .navitap-panel-open {
    width: 100%;
    min-height: 48px;
    padding: .5rem .75rem;
    border-radius: 6px;
    border: 1px solid var(--passenger-c-rgba-255-255-255-p35) !important;
    background-color: var(--passenger-c-rgba-17-24-39-p72);
    color: var(--passenger-c-fff) !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}

/* 320-360px phones: "Bus Schedule" / "Jadual Bas" filled the half-width button edge to edge
   (Malay labels are longer); let the label wrap and tighten the padding instead of clipping */
@media (max-width: 360px) {
    .navitap-search-quick .navitap-panel-open {
        white-space: normal;
        padding: .5rem;
        font-size: .875rem;
        line-height: 1.2;
    }
}

.navitap-search-quick .navitap-panel-open:hover,
.navitap-search-quick .navitap-panel-open:focus-visible {
    border-color: var(--passenger-accent, var(--passenger-c-fff)) !important;
    color: var(--passenger-accent, var(--passenger-c-fff)) !important;
}

.navitap-search-quick .navitap-panel-open i {
    color: var(--passenger-accent, var(--passenger-c-fff));
}

/* Mutiara: light buttons on the blue ground */
.em-search-container .navitap-panel-open {
    background-color: var(--passenger-c-rgba-255-255-255-p12);
    border-color: var(--passenger-c-rgba-255-255-255-p6) !important;
}

.em-search-container .navitap-search-quick {
    width: 70vw;
    max-width: 390px;
}

.ep-search-container .navitap-search-quick {
    width: min(100%, 340px);
}

/* Perdana: schedule / help links read on the dark ground */
.ep-search-container .navitap-panel-open {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--ep-ink-600) !important;
    background-color: var(--ep-ink-800);
    color: var(--ep-ink-200) !important;
    font-weight: 600;
    text-decoration: none;
}

.ep-search-container .navitap-panel-open:hover,
.ep-search-container .navitap-panel-open:focus-visible {
    border-color: var(--ep-accent) !important;
    color: var(--white) !important;
}

/* Perdana: dark language bar, orange active language */
.ep-language-bar {
    background-color: var(--ep-ink-1000, var(--passenger-c-060706));
    padding-bottom: .5rem;
    margin: 0;
}

.ep-search-container .ep-language-bar {
    background-color: transparent;
}

.ep-language-bar .navitap-language {
    background: var(--ep-ink-800, var(--passenger-c-161917));
    border: 1px solid var(--ep-border-subtle, var(--passenger-c-rgba-255-255-255-0p08));
    border-radius: 999px;
    padding: 4px;
}

.ep-language-bar .navitap-language .btn {
    border-radius: 999px !important;
    border-color: transparent;
    color: var(--ep-ink-200, var(--passenger-c-c2c9c4));
    background: transparent;
}

.ep-language-bar .navitap-language .btn-light {
    background: var(--ep-accent, var(--passenger-c-ec7431));
    color: var(--ep-on-orange, var(--passenger-c-1a0e05));
}

/* ---- Bus Schedule panel: grouped by departure time, route first, stops as a timeline ---- */
.navitap-sch {
    width: 100%;
    max-width: 520px;
    text-align: left;
    background: var(--passenger-c-fff);
    color: var(--passenger-c-1d2125);
    border: 1px solid var(--passenger-c-rgba-0-0-0-p1);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--passenger-c-rgba-0-0-0-p08);
    overflow: hidden;
    --sch-muted: #5c636a;
    --sch-line: rgba(0, 0, 0, .08);
    --sch-soft: #f4f5f7;
    --sch-accent: var(--passenger-accent, #0d6efd);
}
.navitap-sch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .9rem 1rem .5rem; }
.navitap-sch-title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.navitap-sch-title i { color: var(--sch-accent); }
.navitap-sch-sub { font-size: .9375rem; color: var(--sch-muted); margin-top: .15rem; }
.navitap-sch-state { padding: 1.25rem 1rem; text-align: center; color: var(--sch-muted); font-size: .9375rem; }
.navitap-sch-retry { min-height: 44px; }

.navitap-sch-search { position: relative; margin: 0 1rem .75rem; }
.navitap-sch-search > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--sch-muted); pointer-events: none; }
.navitap-sch-search .form-control { padding-left: 2.4rem; padding-right: 2.75rem; min-height: 46px; border-radius: .75rem; }
.navitap-sch-search .form-control::-webkit-search-cancel-button { display: none; }
.navitap-sch-clear { position: absolute; right: 0; top: 0; width: 44px; height: 100%; border: 0; background: none; color: var(--sch-muted); }

.navitap-sch-list { max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--sch-line); }
.navitap-sch-time {
    position: sticky; top: 0; z-index: 1;
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .45rem 1rem; background: var(--sch-soft);
    font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1rem;
    border-bottom: 1px solid var(--sch-line);
}
.navitap-sch-time-count { font-weight: 500; font-size: .9375rem; color: var(--sch-muted); }
.navitap-sch-trips { list-style: none; margin: 0; padding: 0; }
.navitap-sch-trip { border-bottom: 1px solid var(--sch-line); }
.navitap-sch-row {
    width: 100%; min-height: 56px; border: 0; background: none; color: inherit; text-align: left;
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: .75rem;
    padding: .6rem 1rem; align-items: center;
}
.navitap-sch-row:hover,
.navitap-sch-row:focus-visible { background: var(--sch-soft); }
.navitap-sch-row:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: -2px; }
.navitap-sch-route { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navitap-sch-meta { grid-row: 2; display: flex; gap: .5rem; align-items: center; font-size: .9375rem; color: var(--sch-muted); }
.navitap-sch-tag { padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--sch-line); font-family: var(--passenger-font-ui-monospace-menlo-consolas-monospace); }
.navitap-sch-chevron { grid-column: 2; grid-row: 1 / span 2; color: var(--sch-muted); transition: transform .2s; }
.navitap-sch-trip.is-open .navitap-sch-chevron { transform: rotate(180deg); color: var(--sch-accent); }
.navitap-sch-trip.is-open .navitap-sch-row { background: var(--sch-soft); }

.navitap-sch-body { padding: .25rem 1rem .9rem; }
.navitap-sch-stops { list-style: none; margin: 0; padding: 0 0 0 1.1rem; position: relative; }
.navitap-sch-stops::before { content: ''; position: absolute; left: .3rem; top: .7rem; bottom: .7rem; width: 2px; background: var(--sch-line); }
.navitap-sch-stops li { position: relative; display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0 .4rem .6rem; }
.navitap-sch-stops li::before { content: ''; position: absolute; left: -1.05rem; top: .8rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--sch-accent); box-shadow: 0 0 0 3px var(--sch-soft); }
.navitap-sch-stops li:not(:first-child):not(:last-child)::before { background: var(--sch-soft); border: 2px solid var(--sch-accent); }
.navitap-sch-stop small { display: block; color: var(--sch-muted); font-size: .9375rem; }
.navitap-sch-stop-time { display: flex; flex-direction: column; align-items: flex-end; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sch-muted); }

/* Perdana: the schedule sits on the dark search page */
.ep-search-container .navitap-sch {
    background: var(--ep-ink-800);
    color: var(--white, var(--passenger-c-fff));
    border-color: var(--ep-ink-600);
    box-shadow: 0 2px 8px var(--passenger-c-rgba-0-0-0-p3);
    --sch-muted: var(--ep-ink-300);
    --sch-line: var(--ep-border-subtle);
    --sch-soft: var(--ep-ink-700);
    --sch-accent: var(--ep-accent);
}
.ep-search-container .navitap-sch .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.ep-search-container .navitap-sch-search .form-control { background: var(--ep-ink-700); border-color: var(--ep-ink-600); color: var(--white, var(--passenger-c-fff)); }
.ep-search-container .navitap-sch-search .form-control::placeholder { color: var(--ep-ink-300); }
.ep-search-container .navitap-sch-search .form-control:focus { border-color: var(--ep-accent); box-shadow: var(--ep-ring); }
.ep-search-container .navitap-sch-time { color: var(--ep-accent); font-family: var(--ep-font-mono); }
.ep-search-container .navitap-sch-retry { border-color: var(--ep-accent); color: var(--ep-accent); }

/* rating stars: dark amber (about 6:1 on white; the stock warning yellow is under 2:1), and a visible focus ring */
.navitap-star,
.navitap-rating-stars .btn.navitap-star {
    color: var(--passenger-c-8a5a00);
    --bs-btn-color: #8a5a00;
    --bs-btn-hover-color: #6b4600;
    --bs-btn-active-color: #6b4600;
}
.navitap-rating-stars .btn.navitap-star:focus-visible { outline: 3px solid var(--navitap-focus-ring); outline-offset: 2px; border-radius: .375rem; }
.navitap-rating-stars .btn.navitap-star .fa-regular { opacity: .9; }

/* tracking page: answer card, stale state, map controls, "More" */
.navitap-slow-hint { color: var(--passenger-c-fff); text-align: center; padding: 0 1rem; max-width: 22rem; opacity: 0; visibility: hidden; animation: navitap-hint-in 0s linear 8s forwards; }
@keyframes navitap-hint-in { to { opacity: 1; visibility: visible; } }
.navitap-eta-stale .navitap-eta-headline { opacity: .6; }
.navitap-eta-headline { line-height: 1.2; }
.navitap-map-actions .btn { min-height: 44px; }
.navitap-map-key { color: var(--bs-body-color); }
.navitap-more > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; list-style: none; cursor: pointer; }
.navitap-more > summary::-webkit-details-marker { display: none; }
.navitap-more .btn, .navitap-more a.btn { min-height: 44px; }
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
/* Leaflet's own touch rule has the same weight and loads later, so name the role to keep the zoom buttons a real tap target */
.leaflet-container .leaflet-bar a[role="button"] { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }

/* ===== Readability: status lines that carry meaning (updated, bus last seen, ETA basis, last known) ===== */
.navitap-status-line { font-size: 15px; line-height: 1.35; color: var(--navitap-muted, var(--passenger-c-4a5560)); }
.navitap-status-line.navitap-status-warn { color: var(--navitap-warn, var(--passenger-c-7a4a00)); font-weight: 600; }
.navitap-alert-warn { color: var(--navitap-warn, var(--passenger-c-7a4a00)); } /* warning text with 4.5:1 on light and on the dark themes (Bootstrap's text-warning is too pale) */
.passenger-theme-ep, .passenger-theme-qe { --navitap-muted: #d3d9e0; --navitap-warn: #ffd37a; --navitap-focus: #ffbf47; }
.ep-locate-container .navitap-status-line { color: var(--navitap-muted); }
.ep-locate-container .navitap-status-line.navitap-status-warn { color: var(--navitap-warn); }

/* ===== Focus: a visible ring on every control (keyboard focus only) ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible, .btn:focus-visible, .form-control:focus-visible,
.form-check-input:focus-visible, .form-select:focus-visible {
    outline: 3px solid var(--navitap-focus, var(--navitap-focus-ring)) !important;
    outline-offset: 2px !important;
}

/* ===== Trip and ticket details: a definition list that wraps long text ===== */
.navitap-detail-list { margin: .5rem .75rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.navitap-detail-item { grid-column: 1 / -1; margin: 0; padding: .35rem .75rem; border-left: 4px solid var(--passenger-accent, var(--passenger-c-0d6efd)); min-width: 0; }
.navitap-detail-item.navitap-detail-half { grid-column: span 1; }
.navitap-detail-item dt { font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--navitap-muted, var(--passenger-c-4a5560)); }
.navitap-detail-item dd { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; word-break: break-word; }
.ep-locate-container .navitap-detail-item dt, .qe-locate-container .navitap-detail-item dt { color: var(--navitap-muted); }
.ep-locate-container .navitap-detail-item dd, .qe-locate-container .navitap-detail-item dd { color: var(--white); }

/* ---- Live tracking: full-page map, bottom sheet, floating menu (every operator theme) ---- */
.navitap-live-header { position: sticky; top: 0; z-index: 1000; }
.navitap-live { padding-bottom: 0 !important; }
.navitap-live > .navitap-map-wrap { position: fixed !important; inset: 0; z-index: 0 !important; }
.navitap-live > .navitap-map-wrap .leaflet-container { border: 0 !important; border-radius: 0 !important; height: 100vh; height: 100dvh; }
.navitap-live > .navitap-sheet {
    position: fixed !important; left: 0; right: 0; margin: 0 auto; bottom: 0;
    width: min(100%, 640px); max-height: 30dvh; overflow-y: auto; overscroll-behavior: contain;
    z-index: 900 !important; padding: 0 .75rem calc(.75rem + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0; box-shadow: 0 -2px 8px var(--passenger-c-rgba-0-0-0-p15);
    background: var(--navitap-sheet-bg, var(--passenger-c-ffffff)); color: var(--navitap-sheet-fg, var(--passenger-c-212529));
    transition: max-height .25s ease;
}
.navitap-live > .navitap-sheet.is-expanded { max-height: 100dvh; height: 100dvh; width: 100%; border-radius: 0; z-index: 1100 !important; padding-top: env(safe-area-inset-top); }
.navitap-live:has(.navitap-sheet.is-expanded) > .navitap-fab-stack { display: none; }
/* tablets and desktops: the opened details keep the closed card's width, centred, so stop names and their times stay close
   and the map stays visible on both sides (Destinasi has its own side panel from 992px) */
@media (min-width: 768px) {
    .navitap-live > .navitap-sheet.is-expanded {
        width: min(100%, 640px); height: calc(100dvh - 4.5rem); max-height: calc(100dvh - 4.5rem);
        border-radius: 12px 12px 0 0; padding-top: 0;
    }
}
.navitap-sheet label { color: inherit; }
.qe-locate-container.navitap-live { --navitap-sheet-bg: #111827; --navitap-sheet-fg: #ffffff; }
.ep-locate-container.navitap-live { --navitap-sheet-bg: var(--ep-ink-900); --navitap-sheet-fg: var(--ep-ink-200); }
.navitap-sheet-handle {
    position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; /* above the stops timeline dots (z-index 1) */
    width: 100%; min-height: 44px; padding: 8px 0 4px; border: 0; background: var(--navitap-sheet-bg, var(--passenger-c-ffffff)); color: inherit;
    font-size: .8rem; font-weight: 600;
}
.navitap-sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: currentColor; opacity: .35; }
.navitap-fab-stack {
    position: fixed !important; right: max(12px, env(safe-area-inset-right)); left: auto; top: calc(var(--navitap-header-h, 3.5rem) + 2rem); z-index: 950 !important;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.navitap-fab {
    width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: var(--navitap-fab-bg); color: var(--navitap-fab-fg); font-size: 1.1rem; box-shadow: 0 3px 10px var(--passenger-c-rgba-0-0-0-p3);
}
.navitap-fab:disabled { opacity: .55; filter: grayscale(1); cursor: not-allowed; }
.navitap-fab-main { width: 56px; height: 56px; background: var(--qe-accent, var(--em-base, var(--passenger-c-0d6efd))); color: var(--passenger-c-ffffff); font-size: 1.3rem; }
.qe-locate-container .navitap-fab-main { color: var(--passenger-c-000000); } /* on the amber accent */
.ep-locate-container .navitap-fab-main { background: var(--ep-ink-1000, var(--passenger-c-111827)); color: var(--passenger-c-ffffff); }
.navitap-fab-menu {
    display: flex; flex-direction: column; min-width: 230px; padding: 8px; border-radius: 12px;
    background: var(--navitap-fab-bg); border: 1px solid var(--passenger-c-rgba-0-0-0-p1); box-shadow: 0 2px 8px var(--passenger-c-rgba-0-0-0-p12);
}
.navitap-fab-menu a, .navitap-fab-menu button {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
    background: transparent; color: var(--navitap-fab-fg); text-decoration: none; font-weight: 600; text-align: left;
}
.navitap-fab-menu a:hover, .navitap-fab-menu button:hover,
.navitap-fab-menu a:focus-visible, .navitap-fab-menu button:focus-visible { background: var(--navitap-fab-hover); }
.navitap-fab-menu a:focus-visible, .navitap-fab-menu button:focus-visible { outline: 2px solid var(--qe-accent, var(--passenger-c-0d6efd)); outline-offset: -2px; }
.navitap-fab-menu i { width: 20px; text-align: center; }
.navitap-live .leaflet-top.leaflet-left { top: 80px; }
.navitap-sheet .card { background: transparent; border-color: var(--passenger-c-rgba-127-127-127-p25); color: inherit; }
.navitap-sheet .navitap-status-line, .navitap-sheet .card .navitap-status-line { color: inherit; opacity: .8; }

/* ---- Locate header: one compact bar, brand left, language right (every operator theme) ---- */
header.navitap-locate-header {
    position: sticky !important; top: 0; z-index: 1000 !important;
    display: flex !important; align-items: center; justify-content: space-between !important; gap: .5rem;
    width: 100% !important; min-height: 56px; height: auto !important; padding: 8px 12px !important;
    padding-top: calc(8px + env(safe-area-inset-top)) !important;
}
header.navitap-locate-header .header-main {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    width: auto !important; min-width: 0; text-align: left !important;
}
header.navitap-locate-header .header-main h1 { display: flex; align-items: center; gap: 0; margin: 0; font-size: 1.05rem; white-space: nowrap; }
header.navitap-locate-header .header-main img { height: 34px !important; width: auto !important; max-width: 52vw; margin: 0 .35rem 0 0; }
header.navitap-locate-header .qe-locate-subtitle,
header.navitap-locate-header .ep-locate-subtitle {
    margin: 2px 0 0 !important; font-size: .68rem !important; line-height: 1.2; opacity: .85;
    max-width: 58vw; white-space: normal; overflow-wrap: anywhere; /* wraps under zoom instead of being cut */
}
.navitap-header-lang { flex: none; display: flex; align-items: center; gap: 8px; }
/* Install app: hidden until the browser offers to install (navitapapp.js sets navitap-can-install) */
.navitap-install-btn { display: none; min-height: 44px; align-items: center; gap: 8px; font-size: .8rem; }
.navitap-can-install .navitap-install-btn { display: inline-flex; }
@media (max-width: 380px) { .navitap-install-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.navitap-header-lang .navitap-language .btn { min-width: 44px; min-height: 44px; padding: 2px 12px; font-size: .8rem; }
/* over the live map: a solid frosted bar so the brand and switch read on any tile */
header.navitap-live-header { box-shadow: 0 2px 12px var(--passenger-c-rgba-0-0-0-p25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
header.navitap-live-header.qe-locate-header, header.navitap-live-header.ep-locate-header { background: var(--passenger-c-rgba-17-24-39-p88) !important; border-bottom: 0 !important; }
header.navitap-live-header:not(.qe-locate-header):not(.ep-locate-header) { background: var(--passenger-c-rgba-255-255-255-p92) !important; }

/* ---- Contrast on the dark sheets (Queen Express, Perdana) ---- */
.qe-locate-container .navitap-sheet .text-muted,
.ep-locate-container .navitap-sheet .text-muted { color: inherit !important; opacity: .85; }
.qe-locate-container .btn-outline-info.navitap-form-open,
.qe-locate-container .btn-outline-primary.navitap-form-open,
.ep-locate-container .btn-outline-info.navitap-form-open,
.ep-locate-container .btn-outline-primary.navitap-form-open {
    color: var(--passenger-c-ffffff) !important; border-color: var(--passenger-c-rgba-255-255-255-p55) !important; background: var(--passenger-c-rgba-255-255-255-p06);
}
.qe-locate-container .navitap-form-open:hover,
.ep-locate-container .navitap-form-open:hover,
.qe-locate-container .navitap-form-open:focus-visible,
.ep-locate-container .navitap-form-open:focus-visible { background: var(--passenger-c-rgba-255-255-255-p14); }
.qe-locate-container .navitap-sheet .btn-link,
.ep-locate-container .navitap-sheet .btn-link { color: var(--passenger-c-ffffff); }

/* ---- Rate / Lost item / Feedback: bottom-sheet modals (every operator theme) ---- */
.navitap-modal-backdrop { position: fixed; inset: 0; z-index: 3000; background: var(--passenger-c-rgba-0-0-0-p5); animation: navitap-fade .2s ease; }
.card.navitap-modal-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3001; margin: 0 auto;
    width: min(100%, 560px); max-width: none !important; max-height: 88dvh; overflow-y: auto;
    border: 0; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom);
    background: var(--navitap-modal-bg) !important; color: var(--navitap-modal-fg) !important; text-align: left;
    box-shadow: 0 -2px 10px var(--passenger-c-rgba-0-0-0-p18); animation: navitap-slide-up .25s ease;
}
.card.navitap-modal-sheet::before { content: ""; display: block; width: 42px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--navitap-modal-grip); }
.card.navitap-modal-sheet .card-title { padding-right: 2.5rem; font-size: 1.1rem; font-weight: 700; }
.card.navitap-modal-sheet label, .card.navitap-modal-sheet .form-text { color: var(--navitap-modal-muted) !important; opacity: 1; }
.card.navitap-modal-sheet .navitap-modal-close { position: absolute; top: 6px; right: 6px; box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; background-position: center; }
/* the open modal sits above the header, the floating buttons and the details sheet */
.navitap-live > .navitap-sheet:has(.navitap-modal-sheet) { z-index: 3000 !important; }
body:has(.navitap-modal-sheet) { overflow: clip; } /* the page behind the open modal does not scroll; clip keeps sticky headers working */
@keyframes navitap-slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes navitap-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .navitap-modal-backdrop, .card.navitap-modal-sheet { animation: none; } }
body:has(.navitap-modal-sheet) header.navitap-locate-header { z-index: 0 !important; }
.card.navitap-modal-sheet .navitap-rating-stars .btn.navitap-star { color: var(--navitap-star) !important; }

/* ---- Search pages: the same compact top bar ---- */
header.navitap-search-topbar { background: var(--passenger-c-rgba-255-255-255-p95); color: var(--passenger-c-212529); box-shadow: 0 1px 8px var(--passenger-c-rgba-0-0-0-p12); }
.qe-search-container header.navitap-search-topbar,
.ep-search-container header.navitap-search-topbar { background: var(--passenger-c-rgba-17-24-39-p92); color: var(--passenger-c-ffffff); box-shadow: 0 1px 10px var(--passenger-c-rgba-0-0-0-p35); }
header.navitap-search-topbar .navitap-topbar-logo { height: 36px !important; width: auto !important; margin: 0 !important; max-width: 55vw; object-fit: contain; }
.em-search-container header.navitap-search-topbar { background: var(--em-base); color: var(--passenger-c-ffffff); box-shadow: 0 1px 10px var(--passenger-c-rgba-0-0-0-p25); }
.ep-search-container header.navitap-search-topbar { align-self: stretch; width: auto !important; margin: 0 -16px 1.25rem; }
.ep-search-container:has(> header.navitap-search-topbar) { justify-content: flex-start; padding-top: 0; }
/* home / error / not-found: no operator, a neutral Navitap bar */
header.navitap-plain-topbar { margin-bottom: 1rem; }
.navitap-topbar-brand { color: var(--passenger-c-1f2937); text-decoration: none; font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }
.navitap-topbar-brand span { font-weight: 800; color: var(--em-base, var(--passenger-c-1f479e)); }
.navitap-topbar-brand:hover { color: var(--passenger-c-1f2937); }

/* ---- Home / error / not found: the site's operator theme (PassengerTopBar) ---- */
.navitap-plain-page { min-height: 100vh; min-height: 100dvh; width: 100%; position: relative; isolation: isolate; }
.navitap-plain-page .container { position: relative; }
.navitap-plain-page h1, .navitap-plain-page .h4 { color: inherit !important; }
.navitap-plain-page .text-muted, .navitap-plain-page .text-secondary { color: inherit !important; opacity: .8; }
.navitap-plain-page .btn-primary { min-height: 44px; font-weight: 700; border-radius: 8px; }
/* eMutiara and any other operator: the blue of the search page */
.navitap-plain-page { background: var(--em-base, var(--passenger-c-1f479e)); color: var(--passenger-c-ffffff); }
.navitap-plain-page header.navitap-plain-topbar { background: var(--em-base, var(--passenger-c-1f479e)); color: var(--passenger-c-ffffff); }
.navitap-plain-page .navitap-topbar-brand, .navitap-plain-page .navitap-topbar-brand:hover { color: var(--passenger-c-ffffff); }
.navitap-plain-page .navitap-topbar-brand span { color: var(--passenger-c-9ec3ff); }
.navitap-plain-page .btn-primary { background: var(--passenger-c-ffffff); border-color: var(--passenger-c-ffffff); color: var(--em-base, var(--passenger-c-1f479e)); }
/* Queen Express: the road picture under a dark veil, amber button */
.navitap-plain-qe { background: var(--qe-base); }
.navitap-plain-qe::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(var(--passenger-c-rgba-17-24-39-p72), var(--passenger-c-rgba-17-24-39-p72)), url("images/QueenExpress/ui-bg.jpg") center / cover no-repeat;
}
.navitap-plain-qe header.navitap-plain-topbar { background: var(--passenger-c-rgba-17-24-39-p92); }
.navitap-plain-qe .navitap-topbar-brand span { color: var(--qe-accent); }
.navitap-plain-qe .btn-primary { background: var(--qe-accent); border-color: var(--qe-accent); color: var(--passenger-c-000000); }
/* Perdana: the dark glow of its search page, orange button */
.navitap-plain-ep { background: radial-gradient(90% 70% at 50% 72%, var(--passenger-c-19140f) 0%, var(--passenger-c-0c0c0b) 55%, var(--passenger-c-070707) 100%); color: var(--ep-ink-200, var(--passenger-c-c2c9c4)); font-family: var(--ep-font, inherit); }
.navitap-plain-ep header.navitap-plain-topbar { background: var(--passenger-c-rgba-17-24-39-p92); }
.navitap-plain-ep h1, .navitap-plain-ep .h4 { color: var(--passenger-c-ffffff) !important; }
.navitap-plain-ep .navitap-topbar-brand span { color: var(--ep-accent, var(--passenger-c-ec7431)); }
.navitap-plain-ep .btn-primary { background: var(--ep-accent, var(--passenger-c-ec7431)); border-color: var(--ep-accent, var(--passenger-c-ec7431)); color: var(--ep-on-orange, var(--passenger-c-1a0e05)); }
/* live view: Rate / Lost item / Feedback open from the floating menu, so the sheet drops its buttons
   (the thank-you line and "Send another" stay; the other screens have no menu and keep them) */
.navitap-live .navitap-sheet .navitap-form-open:not(.btn-link) { display: none; }
/* the map key and status lines read on the dark sheets too */
.navitap-sheet .navitap-map-key, .navitap-sheet .navitap-map-key li { color: inherit !important; }
.navitap-fab[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--qe-accent, var(--passenger-c-0d6efd)), 0 3px 10px var(--passenger-c-rgba-0-0-0-p3); }
body:has(.navitap-sheet.is-expanded) header.navitap-locate-header { z-index: 0 !important; }
/* from 768px the opened details leave the header showing (they start below it), so it keeps its place above the map */
@media (min-width: 768px) { body:has(.navitap-sheet.is-expanded) header.navitap-locate-header { z-index: 1000 !important; } }

/* screens without the live map (not departed, cancelled, arrived): keep content off the screen edges */
.qe-locate-container:not(.navitap-live), .em-locate-container:not(.navitap-live) { padding-left: 12px; padding-right: 12px; }
.qe-locate-container .navitap-locate-body, .em-locate-container .navitap-locate-body { max-width: 640px; margin: 0 auto; }
/* "More" on the dark Queen Express page */
.qe-locate-container .navitap-more > summary.btn-outline-secondary { color: var(--passenger-c-ffffff); border-color: var(--passenger-c-rgba-255-255-255-p55); }
/* "Check again" / "Chat on WhatsApp" in the trip banners take the operator's colour */
.qe-locate-container .navitap-trip-banner .btn-primary { background: var(--qe-accent); border-color: var(--qe-accent); color: var(--passenger-c-000000); font-weight: 700; min-height: 44px; }
.ep-locate-container .navitap-trip-banner .btn-primary { background: var(--ep-accent, var(--passenger-c-ec7431)); border-color: var(--ep-accent, var(--passenger-c-ec7431)); color: var(--ep-on-orange, var(--passenger-c-1a0e05)); font-weight: 700; min-height: 44px; }
.em-locate-container .navitap-trip-banner .btn-primary { background: var(--em-base); border-color: var(--em-base); min-height: 44px; }
/* the menu opens beside the round buttons and never runs past the screen bottom (short phones) */
.navitap-fab-menu {
    position: fixed; top: 88px; right: calc(76px + env(safe-area-inset-right)); z-index: 960;
    width: min(260px, calc(100% - 88px)); min-width: 0;
    max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain;
}
.navitap-fab-scrim { position: fixed; inset: 0; z-index: 940; background: transparent; }

/* Arrival alert switch: the host theme leaves the switch as a bare box and the label on one line, so on a narrow phone
   the box dropped above a label that ran past the card. Box and label sit side by side and the label may wrap. */
.navitap-arrival-alert .form-check { display: flex; align-items: flex-start; gap: .6rem; padding-left: 0; min-height: 44px; flex: 1 1 14rem; }
.navitap-arrival-alert .form-check-input { float: none; flex: none; margin: .35rem 0 0; }
.navitap-arrival-alert .form-check .form-check-input + .form-check-label { display: block; white-space: normal; padding-top: .15rem; }

/* Floating action buttons and their menu (light surface; the labels stay readable on the map) */
:root {
    --navitap-fab-bg: #ffffff;
    --navitap-fab-fg: #1f2937;
    --navitap-fab-hover: #f1f5f9;
    --navitap-focus-ring: #0d6efd;
    --navitap-modal-bg: #ffffff;
    --navitap-modal-fg: #212529;
    --navitap-modal-muted: #495057;
    --navitap-modal-grip: #ced4da;
    --navitap-star: #d97706;
    --navitap-marker-ring: #ffffff;
    --navitap-marker-me: #0d6efd;
    --navitap-marker-pickup: #dc3545;
    --navitap-route: #0d6efd;
    --navitap-route-casing: #ffffff;
    --navitap-route-approx: #6c757d;
    --navitap-marker-dropoff: #198754;
}

/* Touch target (44px) in place of the inline min-height. */
.navitap-touch { min-height: 44px; }
.navitap-touch.btn-sm, .btn-sm.navitap-retry, .btn-link.navitap-touch { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Numbers that change (ETA, minutes, ratings) keep a steady width. */
.navitap-num { font-variant-numeric: tabular-nums; }


/* Small layout helpers (were inline styles) */
.navitap-narrow { max-width: 480px; }
.navitap-select-auto { width: auto; }
.navitap-prewrap { white-space: pre-line; }
.navitap-announcement-image { max-height: 56px; max-width: 80px; object-fit: cover; }

/* the search page title is a real h1 now; keep the look it had as a div */
h1.title-container, h1.ep-search-brand-title { margin: 0; }
h1.title-container { font-weight: inherit; }

/* ===========
     Destinasi Express (theme "de"): the em layout with the client's poster colours and artwork
   =============*/
.passenger-theme-de {
    --em-base: #0f2986;
    --de-gold: #c9a04b;
    --de-gold-light: #f2c46b;
    --de-red: #d3202f;
    --passenger-primary: #0f2986;
    --passenger-accent: #d3202f;
    --passenger-loader-overlay: rgba(15, 41, 134, 0.55);
    --passenger-loader-page: #0f2986;
}
/* white top bar with a gold rule, so the client's logo (blue on white) reads as on the poster */
.passenger-theme-de.em-search-container header.navitap-search-topbar { background: #ffffff; color: #1b2559; border-bottom: 3px solid var(--de-gold); }
.passenger-theme-de .navitap-topbar-logo { height: 32px !important; }
/* the gong, drums and kite from the poster in the empty logo slot above the title */
/* no tracking logo here, so the header takes only the height of its picture and title */
.passenger-theme-de .em-search-header { height: auto; padding: 1rem 0 1.5rem; }
.passenger-theme-de .em-search-header-main-logo {
    width: min(92vw, 420px);
    height: 24vh;
    border-radius: 16px;
    background: url("images/Destinasi/instruments.jpg") center 30% / cover no-repeat;
    margin-bottom: 1rem;
}
.passenger-theme-de .em-search-header-title .title-container span { color: var(--de-gold-light); }
.passenger-theme-de .em-search-content .form-control { border: 2px solid var(--de-gold); }
.passenger-theme-de .btn-search,
.passenger-theme-de .btn-search:hover { background-color: var(--de-red) !important; border-color: var(--de-red) !important; color: #ffffff !important; }
.passenger-theme-de .em-search-footer { height: auto; margin-top: 1.5rem; }
.passenger-theme-de .em-search-footer-image { object-fit: contain; object-position: center bottom; width: 100vw; max-width: 900px; height: auto; }
.passenger-theme-de.em-locate-container .btn-locate-search,
.passenger-theme-de .btn-pickup { background-color: var(--em-base) !important; border-color: var(--em-base) !important; }

/* Destinasi desktop (992px and wider), from the design: search = picture and title left, ticket form right,
   buses across the bottom; tracking = map on the left, trip details in a fixed panel on the right */
@media (min-width: 992px) {
    .passenger-theme-de.em-search-container > .bb-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "head form" "head quick" "foot foot";
        align-items: center; column-gap: 4rem;
        width: min(1200px, 100% - 4rem); margin: 0 auto; padding-top: 2rem;
    }
    .passenger-theme-de.em-search-container > .bb-stack > .em-search-header { grid-area: head; padding: 0; }
    .passenger-theme-de.em-search-container > .bb-stack > .em-search-content { grid-area: form; width: 100%; max-width: 520px; align-self: end; }
    .passenger-theme-de.em-search-container > .bb-stack > .navitap-search-quick { grid-area: quick; align-self: start; justify-self: start; margin-top: 1rem; }
    .passenger-theme-de.em-search-container > .bb-stack > .em-search-footer { grid-area: foot; justify-self: center; }
    .passenger-theme-de .em-search-header-main-logo { width: 100%; max-width: 520px; height: 300px; }
    .passenger-theme-de .em-search-content .col-8 { width: 100%; }
    .passenger-theme-de .em-search-footer-image { width: 100%; max-width: 680px; max-height: 42vh; }

    .passenger-theme-de.navitap-live > .navitap-map-wrap { right: 420px; }
    .passenger-theme-de.navitap-live > .navitap-sheet,
    .passenger-theme-de.navitap-live > .navitap-sheet.is-expanded {
        top: var(--navitap-header-h, 3.5rem); right: 0; left: auto; bottom: 0; margin: 0;
        width: 420px; height: auto; max-height: none; border-radius: 0; z-index: 900 !important;
        padding: 1rem 1.25rem; box-shadow: -2px 0 12px rgba(15, 41, 134, 0.12); border-left: 3px solid var(--de-gold);
    }
    .passenger-theme-de.navitap-live > .navitap-sheet .navitap-sheet-handle { display: none; }
    .passenger-theme-de.navitap-live > .navitap-fab-stack { right: calc(420px + 16px); display: flex; }
}
/* Destinasi desktop intro above the ticket form; phones keep the poster-style page without it */
.de-search-intro { display: none; }
@media (min-width: 992px) {
    .passenger-theme-de .de-search-intro { display: block; margin-bottom: 1.25rem; color: #ffffff; text-align: left; }
    .passenger-theme-de .de-search-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .16em; color: var(--de-gold-light); margin-bottom: .5rem; }
    .passenger-theme-de .de-search-heading { margin: 0 0 .75rem; font-size: 2.75rem; font-weight: 800; font-style: italic; line-height: 1.05; color: #ffffff; }
    .passenger-theme-de .de-search-lead { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #d6ddf7; max-width: 30rem; }
}

/* trip stops timeline (Destinasi design): passed stops filled blue, the bus's stop red, the passenger's own stops gold */
.navitap-stops { margin: .75rem 0 .5rem; }
.navitap-stops-title { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.navitap-stops-list { list-style: none; margin: 0; padding: 0; }
.navitap-stops-item { position: relative; display: flex; align-items: flex-start; gap: .75rem; min-height: 3rem; padding-bottom: .5rem; }
.navitap-stops-item::before {
    content: ""; position: absolute; left: 7px; top: 16px; bottom: -2px; width: 3px; background: #c9cfe3;
}
.navitap-stops-item:last-child::before { display: none; }
.navitap-stops-item.is-passed::before { background: var(--em-base, #0f2986); }
.navitap-stops-dot {
    position: relative; z-index: 1; flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%;
    border: 3px solid #c9cfe3; background: var(--navitap-sheet-bg, #ffffff); box-sizing: border-box;
}
.navitap-stops-item.is-passed .navitap-stops-dot { background: var(--em-base, #0f2986); border-color: var(--em-base, #0f2986); }
.navitap-stops-item.is-here .navitap-stops-dot { background: var(--de-red, #d3202f); border-color: var(--de-red, #d3202f); box-shadow: 0 0 0 5px rgba(211, 32, 47, .18); }
.navitap-stops-item.is-mine .navitap-stops-dot { border-color: var(--de-gold, #c9a04b); border-width: 4px; }
.navitap-stops-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.navitap-stops-flag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--de-red, #d3202f); }
.navitap-stops-name { font-weight: 600; overflow-wrap: anywhere; }
.navitap-stops-note { font-size: .82rem; opacity: .75; }
.navitap-stops-time { font-weight: 600; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.navitap-stops-time-label { font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }
.navitap-stops-item.is-passed .navitap-stops-time, .navitap-stops-item.is-upcoming .navitap-stops-time { font-weight: 400; opacity: .75; }
.navitap-stops-item.is-mine .navitap-stops-body { background: #fff8e8; color: #7a5300; border-radius: 10px; padding: .25rem .6rem; margin: -.25rem 0 0; }
.navitap-stops-item.is-mine .navitap-stops-note { opacity: 1; }
/* Perdana: the same timeline on its dark sheet, in its orange */
.ep-locate-container .navitap-stops-item::before { background: var(--ep-ink-600); }
.ep-locate-container .navitap-stops-item.is-passed::before { background: var(--ep-ink-300); }
.ep-locate-container .navitap-stops-dot { border-color: var(--ep-ink-500); background: var(--ep-ink-900); }
.ep-locate-container .navitap-stops-item.is-passed .navitap-stops-dot { background: var(--ep-ink-300); border-color: var(--ep-ink-300); }
.ep-locate-container .navitap-stops-item.is-here .navitap-stops-dot { background: var(--ep-accent); border-color: var(--ep-accent); box-shadow: 0 0 0 5px rgba(236, 116, 49, .25); }
.ep-locate-container .navitap-stops-item.is-mine .navitap-stops-dot { border-color: var(--ep-accent); }
.ep-locate-container .navitap-stops-flag { color: var(--ep-accent); }
.ep-locate-container .navitap-stops-item.is-mine .navitap-stops-body { background: rgba(236, 116, 49, .14); color: #ffd9c2; }
/* Queen Express: the timeline on its dark sheet, in its amber */
.qe-locate-container .navitap-stops-item::before { background: #374151; }
.qe-locate-container .navitap-stops-item.is-passed::before { background: #9ca3af; }
.qe-locate-container .navitap-stops-dot { border-color: #4b5563; background: #111827; }
.qe-locate-container .navitap-stops-item.is-passed .navitap-stops-dot { background: #9ca3af; border-color: #9ca3af; }
.qe-locate-container .navitap-stops-item.is-here .navitap-stops-dot { background: var(--qe-accent, #f59e0b); border-color: var(--qe-accent, #f59e0b); box-shadow: 0 0 0 5px rgba(245, 158, 11, .25); }
.qe-locate-container .navitap-stops-item.is-mine .navitap-stops-dot { border-color: var(--qe-accent, #f59e0b); }
.qe-locate-container .navitap-stops-flag { color: var(--qe-accent, #f59e0b); }
.qe-locate-container .navitap-stops-item.is-mine .navitap-stops-body { background: rgba(245, 158, 11, .14); color: #fde68a; }

/* ticket card (design 2026-12-01): the ticket details as one rounded card, two columns, small labels over bold values */
.navitap-ticket-card {
    margin: .5rem .75rem .75rem; padding: 1rem 1.1rem; gap: .9rem 1rem; border-radius: 16px;
    background: var(--navitap-card-bg, rgba(127, 127, 127, .07)); border: 1px solid rgba(127, 127, 127, .2);
}
.navitap-ticket-card .navitap-detail-item { grid-column: span 1; padding: 0; border-left: 0; }
.navitap-ticket-card .navitap-detail-item dt { font-size: .78rem; font-weight: 500; opacity: .85; }
.navitap-ticket-card .navitap-detail-item dt i { display: none; }
.navitap-ticket-card .navitap-detail-item dd { font-size: .95rem; }
.passenger-theme-de .navitap-ticket-card { border-color: rgba(201, 160, 75, .45); }

/* help chat button (design 2026-12-01): a pill over the map, above the bottom sheet; opens Help & FAQ in a panel */
.navitap-help-floating { position: fixed !important; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 950; margin: 0; }
.navitap-live > .navitap-help-floating { bottom: calc(30dvh + 12px); }
.ep-search-container .navitap-help-fab { background: var(--ep-accent); color: var(--ep-on-orange); }
.qe-search-container .navitap-help-fab { color: #000000; }
.navitap-help-fab {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.1rem 0 .9rem; border: 0; border-radius: 999px;
    background: var(--qe-accent, var(--em-base, var(--passenger-c-0d6efd))); color: #ffffff; font-weight: 600; font-size: .95rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.qe-locate-container .navitap-help-fab { color: #000000; }
.ep-locate-container .navitap-help-fab { background: var(--ep-accent); color: var(--ep-on-orange); }
.navitap-help-fab:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.navitap-help-float { width: min(92vw, 380px); max-height: 65dvh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.navitap-live:has(.navitap-sheet.is-expanded) > .navitap-help-floating { display: none; }
@media (min-width: 992px) {
    .passenger-theme-de.navitap-live > .navitap-help-floating { bottom: 24px; left: 24px; }
    .navitap-help-floating { left: 32px; bottom: 32px; }
}
/* on the blue search pages (KEMB, Destinasi, branded) the pill is white with blue text, as in the design */
.em-search-container .navitap-help-fab { background: #ffffff; color: var(--em-base, #0f2986); }

/* Destinasi only (owner decision 2026-12-02): the install button is the design's round icon beside BM | EN
   (label kept for screen readers); navitap-can-install is on <html> */
.navitap-can-install .passenger-theme-de .navitap-install-btn {
    width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 999px;
    background: #eef1fa; color: #0b2489; font-size: 1rem;
}
.navitap-can-install .passenger-theme-de .navitap-install-btn:hover, .navitap-can-install .passenger-theme-de .navitap-install-btn:focus-visible { background: #dfe5f7; color: #0b2489; }
.navitap-can-install .passenger-theme-de .navitap-install-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Destinasi only (owner decision 2026-12-02): BM | EN as the design's pill (pale track, the chosen language filled navy) */
.passenger-theme-de .navitap-header-lang .navitap-language { background: #eef1fa; border-radius: 999px; padding: 3px; gap: 2px; }
.passenger-theme-de .navitap-header-lang .navitap-language .btn {
    border: 0 !important; border-radius: 999px !important; min-width: 44px; min-height: 38px; padding: 4px 12px;
    background: transparent; color: #0b2489; font-weight: 600; font-size: .8rem;
}
.passenger-theme-de .navitap-header-lang .navitap-language .btn.btn-light { background: #0b2489; color: #ffffff; }
.passenger-theme-de .navitap-header-lang .navitap-language .btn:focus-visible { outline: 2px solid #c9a04b; outline-offset: 1px; }

/* Destinasi phone: the poster picture as the design's hero, a full-width strip straight under the top bar */
@media (max-width: 991.98px) {
    .passenger-theme-de .em-search-header { padding-top: 0; }
    .passenger-theme-de .em-search-header-main-logo {
        width: 100vw; max-width: none; height: 170px; border-radius: 0; background-position: center 35%;
        margin: 0 calc(50% - 50vw) 1rem;
    }
}

/* Destinasi phone: the design's "Where is my bus?" intro under the hero, in place of the TRACKMYBUS title */
@media (max-width: 991.98px) {
    .passenger-theme-de .em-search-header-title { display: none; }
    .passenger-theme-de .em-search-header { padding-bottom: .5rem; }
    .passenger-theme-de .de-search-intro { display: block; margin: 0 0 1.25rem; color: #ffffff; text-align: left; }
    .passenger-theme-de .de-search-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--de-gold-light); margin-bottom: .4rem; }
    .passenger-theme-de .de-search-heading { margin: 0 0 .5rem; font-size: 2rem; font-weight: 800; font-style: italic; line-height: 1.1; color: #ffffff; }
    .passenger-theme-de .de-search-lead { margin: 0; font-size: .95rem; line-height: 1.5; color: #d6ddf7; }
}

/* Destinasi: the ticket form as the design's white search card */
.passenger-theme-de .navitap-search-card {
    margin: 0; background: #ffffff; border-radius: 20px; padding: 20px 8px; box-shadow: 0 18px 40px rgba(3, 10, 50, .45); color: #1b2559;
}
.passenger-theme-de .navitap-search-label { display: block; font-weight: 600; font-size: .85rem; color: #1b2559; margin-bottom: .4rem; text-align: left; }
.passenger-theme-de .navitap-search-card .form-control { height: 52px; border: 2px solid var(--de-gold); border-radius: 12px; font-size: 1rem; color: #1b2559; }
.passenger-theme-de .navitap-search-card .btn-search {
    height: 52px; border: 0; border-radius: 12px; background: var(--de-red) !important; color: #ffffff !important; font-weight: 700; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-direction: row-reverse;
}
.passenger-theme-de .navitap-search-card .btn-search:disabled { opacity: .55; }
.passenger-theme-de .navitap-search-card .navitap-last-ticket .btn { background: #f4f6fc; border: 1px solid #d5dae8; border-radius: 12px; color: #1b2559; }

/* Destinasi smoothing: the design's clean sans-serif instead of the serif fallback (system fonts, no download),
   and the Bus Schedule / Help & FAQ buttons as the design's soft pills */
.passenger-theme-de, .passenger-theme-de button, .passenger-theme-de input, .passenger-theme-de .btn {
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.passenger-theme-de .de-search-heading, .passenger-theme-de .navitap-arrival-summary .fs-4 {
    font-family: Poppins, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em;
}
.passenger-theme-de .navitap-search-quick .btn {
    border-radius: 999px !important; border: 1px solid rgba(255, 255, 255, .35) !important; background: rgba(255, 255, 255, .1) !important;
    color: #ffffff !important; font-weight: 600; min-height: 44px;
}
.passenger-theme-de .navitap-search-quick .btn:hover { background: rgba(255, 255, 255, .2) !important; }
.passenger-theme-de .navitap-search-card { padding: 20px 10px; }
@media (max-width: 991.98px) { .passenger-theme-de .de-search-heading { font-size: 1.75rem; } }

/* Destinasi design fonts, self-hosted (SIL Open Font License; latin subset from Google Fonts) */
@font-face { font-family: 'Inter'; src: url('fonts/Destinasi/inter.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Destinasi/poppins-extrabold-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }

/* Destinasi phone tracking: fits the screen like the design. The closed panel holds only the arrival card,
   sized to it (no scrolling inside); everything else opens with Show details. */
@media (max-width: 991.98px) {
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) { max-height: none; overflow: hidden; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) > :not(.navitap-sheet-handle):not(.navitap-arrival-summary):not(.visually-hidden):not(.de-sheet-actions):not(.de-sheet-route):not(.de-sheet-ticket):not(.de-sheet-bus):not(.de-locate-powered-by) { display: none !important; }
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-arrival-summary { margin-bottom: 0 !important; border: 0; }
    .passenger-theme-de .navitap-arrival-summary .card-body { padding: .25rem .25rem .5rem; gap: .75rem !important; text-align: left; }
    .passenger-theme-de .navitap-arrival-summary .navitap-eta-headline { font-size: 1.35rem !important; line-height: 1.2; color: #0b2489; }
    .passenger-theme-de .navitap-arrival-summary .navitap-status-line { font-size: .85rem; line-height: 1.35; color: #5a6488; text-align: left; }
    .passenger-theme-de .navitap-sheet-handle { min-height: 36px; padding: .35rem 0 .25rem; }
    .passenger-theme-de.navitap-live > .navitap-help-floating { display: none; }
}
/* the design's header shows the Destinasi logo alone */
header.passenger-theme-de.navitap-locate-header h1, header.passenger-theme-de.navitap-locate-header h1 span { font-size: 0 !important; }

/* Destinasi: the design's See all stops / Notify me buttons under the arrival card (closed panel only) */
.de-sheet-actions { display: none; }
.passenger-theme-de .de-sheet-actions { display: flex !important; gap: 10px; margin: .5rem 0 .25rem; }
.passenger-theme-de .de-sheet-actions .btn {
    flex: 1; height: 50px; border-radius: 12px; font-weight: 700; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.passenger-theme-de .de-sheet-stops { background: #0b2489; color: #ffffff; border: 0; }
.passenger-theme-de .de-sheet-stops:hover { background: #081b6a; color: #ffffff; }
.passenger-theme-de .de-sheet-notify { background: #ffffff; color: #0b2489; border: 2px solid #0b2489; }
.passenger-theme-de .de-sheet-notify:hover { background: #eef1fa; color: #0b2489; }
.navitap-sheet-anchor { scroll-margin-top: 48px; }
@media (min-width: 992px) { .passenger-theme-de .de-sheet-actions { display: none !important; } }

/* Destinasi: the design's From / Your stop row under the arrival card (closed panel, phones) */
.de-sheet-route { display: none; }
.passenger-theme-de .de-sheet-route {
    display: flex !important; align-items: center; gap: 12px; background: #f4f6fc; border-radius: 16px; padding: 12px 14px; margin: .5rem 0 0; color: #1b2559;
}
.passenger-theme-de .de-sheet-route-end { display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; }
.passenger-theme-de .de-sheet-route-end.is-stop { align-items: flex-end; text-align: right; }
.passenger-theme-de .de-sheet-route-label { font-size: .75rem; color: #5a6488; }
.passenger-theme-de .de-sheet-route-name { font-weight: 700; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.passenger-theme-de .de-sheet-route-arrow { color: #c9a04b; flex-shrink: 0; }
@media (min-width: 992px) { .passenger-theme-de .de-sheet-route { display: none !important; } }

/* Destinasi design: Ticket, Seat and Trip row under From / Your stop (phones, closed panel) */
.de-sheet-ticket { display: none; }
.passenger-theme-de .de-sheet-ticket { display: flex; gap: 8px; margin: 8px 0 0; }
.passenger-theme-de .de-sheet-ticket > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; background: #f4f6fc; border-radius: 12px; padding: 8px 10px; }
.passenger-theme-de .de-sheet-ticket-value { font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
@media (min-width: 992px) { .passenger-theme-de .de-sheet-ticket { display: none !important; } }
.passenger-theme-de .de-sheet-ticket > div:first-child { flex: 1.6; }
.passenger-theme-de .de-sheet-ticket .de-sheet-route-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passenger-theme-de .de-sheet-ticket-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

/* Destinasi design: bus number row under Ticket / Seat / Trip (phones, closed panel) */
.de-sheet-bus { display: none; }
.passenger-theme-de .de-sheet-bus { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; background: #f4f6fc; border-radius: 12px; padding: 8px 12px; }
.passenger-theme-de .de-sheet-bus > i { color: #1b2a78; }
.passenger-theme-de .de-sheet-bus-value { margin-left: auto; font-weight: 700; font-size: .95rem; letter-spacing: .03em; }
@media (min-width: 992px) { .passenger-theme-de .de-sheet-bus { display: none !important; } }

/* Destinasi phones, closed panel: compact layout (owner request 2026-12-02) */
@media (max-width: 991.98px) {
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-arrival-summary { margin-bottom: 4px !important; }
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-arrival-summary .card-body { padding-top: 2px !important; padding-bottom: 2px !important; gap: 10px !important; }
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-arrival-summary .card-body > i.fa-bus { display: none; }
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-eta-headline { font-size: 1.3rem !important; line-height: 1.2; padding-right: 56px; }
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-arrival-summary .navitap-status-line,
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) .navitap-arrival-summary .card-body .flex-grow-1 > div:not(.navitap-eta-headline) { font-size: .8rem; line-height: 1.3; }
    .passenger-theme-de .de-sheet-route { padding: 8px 12px !important; margin-top: 4px !important; }
    .passenger-theme-de .de-sheet-route-name { font-size: .88rem; }
    .passenger-theme-de .de-sheet-route-label { font-size: .7rem; }
    .passenger-theme-de .de-sheet-ticket, .passenger-theme-de .de-sheet-bus { margin-top: 6px; }
    .passenger-theme-de .de-sheet-ticket > div { padding: 5px 10px; gap: 0; }
    .passenger-theme-de .de-sheet-ticket-value { font-size: .85rem; }
    .passenger-theme-de .de-sheet-bus { padding: 5px 12px; }
    .passenger-theme-de .de-sheet-bus-value { font-size: .88rem; }
    .passenger-theme-de .de-sheet-actions { margin-top: 8px !important; }
    .passenger-theme-de .de-sheet-actions .btn { min-height: 44px !important; height: 44px !important; padding-top: 0; padding-bottom: 0; }
}

/* Destinasi phones in BM: "Bantuan & Soalan Lazim" ran past its pill and "Di mana bas saya?" wrapped (owner check 2026-12-02) */
@media (max-width: 991.98px) {
    .passenger-theme-de .navitap-search-quick .navitap-panel-open { white-space: normal; line-height: 1.2; font-size: .875rem; padding-left: .6rem; padding-right: .6rem; }
    .passenger-theme-de .de-search-heading { white-space: nowrap; font-size: clamp(1.25rem, 6.2vw, 1.75rem) !important; }
}

/* Destinasi search page (client feedback 2026-12-02): "Powered by Navitap.my" under the bus picture, and the two quick
   buttons the same height with their labels centred, so one wrapping onto two lines does not put them out of line */
.passenger-theme-de .qe-search-powered-by { margin: .5rem 0 .75rem; text-align: center; color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 500; }
.passenger-theme-de .qe-search-powered-by span { font-weight: 800; color: #ffffff; }
.passenger-theme-de .navitap-search-quick .navitap-panel-open { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .4rem; text-align: center; }
.passenger-theme-de .navitap-search-quick .navitap-panel-open i { flex-shrink: 0; margin: 0 !important; }
@media (max-width: 991.98px) {
    .passenger-theme-de .navitap-search-quick .navitap-panel-open { font-size: .8125rem; padding-left: .4rem; padding-right: .4rem; gap: .3rem; }
    .passenger-theme-de .navitap-search-quick .navitap-panel-open i { font-size: .8rem; }
}

/* Destinasi tracking page: Powered by Navitap.my at the end of the details (client request 2026-12-02); on phones it shows
   once the panel is opened, so the closed panel keeps fitting the screen */
.de-locate-powered-by { margin: 1rem 0 .5rem; text-align: center; font-size: .8rem; color: #5a6488; }
.de-locate-powered-by span { font-weight: 800; color: #0f2986; }
@media (max-width: 991.98px) {
    .passenger-theme-de.navitap-live > .navitap-sheet:not(.is-expanded) > .de-locate-powered-by { margin: 6px 0 0; font-size: .72rem; line-height: 1.2; }
}
@media (max-width: 991.98px) {
    .passenger-theme-de .de-sheet-actions .btn { white-space: nowrap; font-size: .9rem; padding-left: .5rem; padding-right: .5rem; }
}

/* KEMB, Perdana and Queen phones in BM: "Bantuan & Soalan Lazim" ran past its button; let the label wrap and keep both buttons the same
   height with the label centred (owner request 2026-12-02) */
@media (max-width: 575.98px) {
    .em-search-container:not(.passenger-theme-de) .navitap-search-quick .navitap-panel-open,
    .ep-search-container .navitap-search-quick .navitap-panel-open,
    .qe-search-container .navitap-search-quick .navitap-panel-open {
        white-space: normal; line-height: 1.2; padding-left: .5rem; padding-right: .5rem; min-height: 52px;
        display: flex; align-items: center; justify-content: center; gap: .4rem; text-align: center;
    }
    .em-search-container:not(.passenger-theme-de) .navitap-search-quick .navitap-panel-open i,
    .ep-search-container .navitap-search-quick .navitap-panel-open i,
    .qe-search-container .navitap-search-quick .navitap-panel-open i { flex-shrink: 0; margin: 0 !important; }
}


/* Queen tracking page: the section titles ("Trip Details", "Ticket Details") sat in a white box with dark text on the
   dark panel; give them the panel's own background and light text, as Perdana's are */
.qe-locate-container .navitap-sheet .divider {
    --bb-divider-text-color: #e5e7eb;
    --bb-divider-border-color: rgba(255, 255, 255, .18);
    --bb-divider-bg: rgb(17, 24, 39);
}
.qe-locate-container .navitap-sheet .divider-text { background: rgb(17, 24, 39) !important; color: #e5e7eb !important; }

/* KEMB tracking page: the arrival card's status lines ("Usually on time…", "6.2 km from…") centred like the refresh lines under
   them (owner request 2026-12-02) */
.em-locate-container:not(.passenger-theme-de) .navitap-arrival-summary .navitap-status-line,
.ep-locate-container .navitap-arrival-summary .navitap-status-line,
.qe-locate-container .navitap-arrival-summary .navitap-status-line { text-align: center; }
