html, body {
    height: 100%;
    width: 100%;
    position: absolute;
}

.clearfix:after {
   content: " "; /* Older browser do not support empty content */
   visibility: hidden;
   display: block;
   height: 0;
   clear: both;
}

#map {
    height: 100%;
    width: 100%;
    position: relative;
}

#map-iframe {
    overflow: hidden;
}

.content {
    width: 100%;
    height: 100%;
}

.iframe-container {
    display: none;
    float: left;
    overflow: hidden;
    height: 100%;
}

.map-container {
    float: left;
    height: 100%;
    position: relative;
    width: 100%;
}

body.iframe-active .iframe-container {
    display: block;
    width: 200px;
}

body.iframe-active .map-container {
    width: calc(100% - 200px);
}

body {
    margin: 0;
    overflow: hidden;
}

.VehicSchedule h3 > span {
    color: #FFFF00;
}

.VehicSchedule {
    position: absolute;
    width: 100%;
    height: 45px;
    margin: 0;
    bottom: 0;
    line-height: 20px;
    background-color: #1e7bbd;
    border-top-style: solid;
    border-color: #5e5e5e;
}

.line-separator {
    position: absolute;
    height: 50px;
    margin-left: 470px;
    border-left:2px solid #5e5e5e;
}

@-moz-keyframes VehicSchedule {
    0%   { -moz-transform: translateX(100%); }
    95% { -moz-transform: translateX(-20%); }
    100% { -moz-transform: translateX(-100%); }
}
@-webkit-keyframes VehicSchedule {
    0%   { -webkit-transform: translateX(100%); }
    95% { -webkit-transform: translateX(-20%); }
    100% { -webkit-transform: translateX(-100%); }
}
@keyframes VehicSchedule {
0%   {
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
95% {
        -moz-transform: translateX(-20%);
        -webkit-transform: translateX(-20%);
        transform: translateX(-20%);
}
100% {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

.olImageLoadError {
    display: none;
}

/* docked on the footer's top-right edge, reads as a tab of the footer */
.intellitrac-logo {
    position: absolute;
    bottom: 62px; /* footer min-height */
    right: 0;
    z-index: 999;
    max-width: 35%;
    background: rgba(255, 255, 255, .94);
    border-radius: 10px 0 0 0;
    box-shadow: 0 -6px 18px rgba(10, 35, 60, .15);
    padding: 6px 10px;
    box-sizing: border-box;
}

.intellitrac-logo-simple {
    position: absolute;
    bottom: 62px;
    right: 0;
    z-index: 999;
    max-width: 20%;
    background: rgba(255, 255, 255, .94);
    border-radius: 10px 0 0 0;
    box-shadow: 0 -6px 18px rgba(10, 35, 60, .15);
    padding: 5px 8px;
    box-sizing: border-box;
}

.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1024;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -6px 18px rgba(10, 35, 60, .25);
    display: flex;
    align-items: stretch;
    overflow: visible; /* let the shelter-name tooltip escape upward */
    min-height: 62px;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

#shelter-name {
   /* position: absolute;
    height: 45px;
    overflow: hidden;
    width: 100%;
    padding-left: 10px;
    margin-top: 13px;
    font-family: sans-serif;
    color: #fff;
    text-shadow: 1px 1px 5px #333;*/

    /*text-indent: 2em;*/
}

#shelter-name > span {
    color: #ffe14d;
}

#vehicle-schedule {
    /*text-indent: 2em;*/
   /* position: absolute;
    height: 45px;
    overflow: hidden;
    width: 100%;
    padding-left: 500px;
    margin-top: 13px;
    font-family: sans-serif;
    color: #fff;
    text-shadow: 1px 1px 5px #333;*/
    /*-moz-animation: VehicSchedule 15s linear infinite;*/
    /*-webkit-animation: VehicSchedule 15s linear infinite;*/
    /*animation: VehicSchedule 15s linear infinite;*/
}


.shelter-name-container {
    background: #0e2438;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    min-width: 210px;
    box-sizing: border-box;
    position: relative;
}

/* hover hint that the shelter name is clickable (mouse only, so it never
   sticks after a tap on the touch kiosk) */
@media (hover: hover) {
    .shelter-name-container::after {
        content: "Klik untuk ganti halte";
        position: absolute;
        left: 20px;
        bottom: calc(100% + 10px);
        background: #17293a;
        color: #fff;
        font-family: "Segoe UI", "Trebuchet MS", sans-serif;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        padding: 7px 12px;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(10, 35, 60, .35);
        opacity: 0;
        transform: translateY(4px);
        transition: opacity .15s ease, transform .15s ease;
        pointer-events: none;
        z-index: 1100;
    }

    .shelter-name-container::before {
        content: "";
        position: absolute;
        left: 40px;
        bottom: calc(100% + 4px);
        border: 6px solid transparent;
        border-top-color: #17293a;
        opacity: 0;
        transition: opacity .15s ease;
        pointer-events: none;
        z-index: 1100;
    }

    .shelter-name-container:hover::after {
        opacity: 1;
        transform: translateY(0);
    }

    .shelter-name-container:hover::before {
        opacity: 1;
    }
}

.shelter-pin {
    flex: none;
}

.shelter-name-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.footer-label {
    font-family: monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .18em;
    color: #7fc0ea;
    text-transform: uppercase;
}

.footer .info {
    font-weight: 800;
    font-size: 20px;
    line-height: 1.2;
    color: #ffe14d;
}

.bus-status-container {
    display: flex;
    flex: 1;
    min-width: 0;
}

.bus-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    flex: 1;
    min-width: 0;
}

.bus-cell + .bus-cell {
    border-left: 1px solid #dde5ec;
}

.bus-cell .num {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: #fff;
    background: #b9c4cd;
}

.bus-cell.ok .num {
    background: #1e9c53;
    font-size: 22px;
}

.bus-cell.eta .num {
    background: #1f6fb8;
}

.bus-cell.off .num {
    background: #b9c4cd;
}

.bus-cell .info .lbl {
    display: block;
    font-family: monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .16em;
    color: #7b8a97;
    text-transform: uppercase;
}

.bus-cell .info .txt {
    display: block;
    font-weight: 800;
    font-size: 17px;
    color: #17293a;
    white-space: nowrap;
}

.bus-cell.off .info .txt {
    color: #7b8a97;
}

.bus-cell .info .txt small {
    font-family: monospace;
    font-weight: 700;
    font-size: 12px;
    color: #5d707f;
    margin-left: 6px;
}

@media (max-width: 735px) {
    .footer {
        flex-direction: column;
    }

    .shelter-name-container {
        min-width: 0;
        gap: 8px;
        padding: 6px 14px;
    }

    .shelter-name-text {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .footer .info {
        font-size: 16px;
    }

    .bus-cell {
        padding: 6px 12px;
    }

    .bus-cell + .bus-cell {
        border-left: none;
    }

    .intellitrac-logo {
        bottom: 175px;
        display: none;
    }

    .intellitrac-logo-simple {
        bottom: 175px;
        display: block;
    }
}

@media (min-width: 736px) {
    .intellitrac-logo {
        bottom: 62px;
        display: block;
    }

    .intellitrac-logo-simple {
        bottom: 62px;
        display: none;
    }
}

.counter-time-container {
    position: absolute;
    z-index: 999;
    background-color: #394e69;
    left: 10px;
    top: 10px;
    border: 2px solid #dadada;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 0;
    color: #fff;
    width: 230px;
}
.counter-time-container.active {
    -webkit-animation: change-bg 1s infinite;
}

/* Second-bus mini digital counter beside the main counter,
   bottom-aligned with it (same visual language, ~40% height) */
.mini-counter {
    position: absolute;
    z-index: 999;
    left: 250px;
    top: 202px;
    width: 234px;
    background-color: #394e69;
    border: 2px solid #dadada;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    color: #fff;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

.mini-counter.active {
    -webkit-animation: change-bg 1s infinite;
    animation: change-bg 1s infinite;
}

.mini-counter .side {
    background-color: #7aa8d7;
    color: #181818;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 10px;
    border-right: 2px solid #476181;
    border-radius: 3px 0 0 3px;
    font-family: monospace;
    font-weight: bold;
    flex: none;
}

.mini-counter .side .t1 {
    font-size: 12px;
    letter-spacing: .1em;
}

.mini-counter .side .t2 {
    font-size: 15px;
}

.mini-counter .mdigits {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
}

.mini-counter .mdigits span {
    font-family: digitalFont, arial;
    font-size: 58px;
    line-height: 1;
}

.mini-counter .unit {
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    color: #b8cbe4;
    align-self: flex-end;
    padding: 0 8px 6px 0;
    flex: none;
}

.counter-time-container .counter-tag {
    font-family: monospace;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 2px;
    text-align: center;
    background-color: #7aa8d7;
    border-bottom: 2px #476181 solid;
    color: #181818;
    padding: 2px 0;
    border-radius: 3px 3px 0 0;
}

@font-face {
    font-family: digitalFont;
    src: url('../fonts/digital-7-mono.ttf');
    /* The font's hhea (800/200, used by Linux) and OS/2 usWin (900/187,
       used by Windows) metrics disagree, shifting glyphs ~20px at 240px.
       Force the Windows metrics everywhere so every platform renders
       exactly like the client's kiosk (values are /1100 unitsPerEm). */
    ascent-override: 81.8%;
    descent-override: 17%;
    line-gap-override: 0%;
}

#min span {
    font-size: 240px;
    font-family: digitalFont, arial;
    text-align: center;
    padding: 0px;
    width: 100%;
    box-sizing: border-box;
}

#min {
    padding-top: 3px;
    padding-bottom: 3px;
    height: 200px;
    margin-top: -25px;
}

.counter-time-container .minutes {
    font-size: 32px;
    font-family: monospace;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    background-color: #7aa8d7;
    border-top: 2px #476181 solid;
    color: #181818;
    padding: 0 10px;
    box-sizing: border-box;
}


@-webkit-keyframes change-bg /* Safari and Chrome */
{
    0%   {background:#394e69;}
    50%  {background:#31673a;}
    100%   {background:#394e69;}
}

@keyframes change-bg
{
    0%   {background:#394e69;}
    50%  {background:#31673a;}
    100%   {background:#394e69;}
}

/* Running text: navy panel ticker with a fixed route-colored label */
#destination-list-container {
    position: absolute;
    z-index: 9999;
    top: 10px; /* flush with the main counter's top */
    left: 258px;
    right: 60px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 52px;
    background: #0e2438;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(10, 35, 60, .35);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

#destination-list-container .t-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: none;
    padding: 5px 18px;
    background-color: #7b3fd4; /* overridden with the route info_color */
    border-radius: 10px 0 0 10px;
}

/* bus has arrived: green wins over the inline route color */
#destination-list-container .t-label.arrived {
    background-color: #1e9c53 !important;
}

#destination-list-container .t-eyebrow {
    display: block;
    font-family: monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
}

#destination-list-container .busname {
    display: block;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    line-height: 1.2;
}

#destination-list-container .t-view {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 44px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 44px), transparent 100%);
}

#destination-list-container .t-scroll {
    display: inline-flex;
    white-space: nowrap;
    /* size to content, never flex-shrink: translateX(-50%) must equal
       exactly one copy of the duplicated sequence */
    flex: none;
    width: -webkit-max-content;
    width: max-content;
    -webkit-animation: tickerMove 22s linear infinite;
    animation: tickerMove 22s linear infinite;
}

/* .seq is duplicated inside .t-scroll; translateX(-50%) shifts exactly
   one copy. Every destination ends with a dot separator so the spacing
   pattern stays uniform across the loop seam */
#destination-list-container .seq {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    /* trailing space so the loop seam keeps the same dot-name rhythm */
    padding-right: 30px;
}

#destination-list-container .dest {
    font-family: monospace;
    font-weight: 700;
    font-size: 19px;
    color: #dbe7f3;
    white-space: nowrap;
}

#destination-list-container .dest:after {
    content: "\2022";
    margin-left: 30px;
    color: rgba(255, 255, 255, .45);
}

@-webkit-keyframes tickerMove {
    from { -webkit-transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); }
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

#shelter-list {
    background-color: white;
    border-radius: 5px;
    padding: 8px;
    list-style-type: none;
    display: inline-block;
}

#shelter-list li {
    border-bottom: solid 1px;
    margin-bottom: 6px;
    font-weight: bold;
    display: inline;
    margin-left: 10px;
    padding: 3px;
}

.back-number {
    color: #dad9d9;
    opacity: 0.1;
    top: 4px; /* offset ghost digits below the counter-tag strip (was -22px) */
}

#img-arrived {
    height: 230px;
    width: 230px;
}

/* sits in the margin right of the ticker, vertically centered to it */
.connection-indicator-container {
    position: absolute;
    z-index: 9999;
    right: 15px;
    top: 21px;
}

#connection-indicator {
    width: 1.5em;
    height: 1.5em;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    border: 0.2em solid white;
}

.danger {
    background-color: #c62828;
}

.success {
    background-color: #2e7d32;
}

#destination-list {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    margin-bottom: -5px;
    width: 100%;
    font-family: monospace;
    color: white;
    font-size: 25px;
    display: inline-block;
}

.shelter-name-container {
    cursor: pointer;
}

#shelter-options {
    display: none;
    position: absolute;
    bottom: 76px;
    left: 10px;
    z-index: 999;
    width: 348px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(10, 35, 60, .38);
    overflow: hidden;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: #17293a;
}

@media (max-width: 735px) {
    #shelter-options {
        bottom: 175px;
    }
}

/* header (navy, matches the footer) */
.shelter-options--legend {
    background: #0e2438;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
}

.shelter-options--legend .halte-head-pin {
    flex: none;
}

.shelter-options--legend .halte-head-text {
    flex: 1;
    min-width: 0;
}

.shelter-options--legend .halte-head-eyebrow {
    display: block;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: .18em;
    color: #7fc0ea;
    text-transform: uppercase;
}

.shelter-options--legend .halte-head-title {
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
}

.close-legend {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

.close-legend:hover {
    background: rgba(255, 255, 255, .24);
}

/* scrollable list */
.shelter-options--container {
    padding: 6px;
    overflow-y: auto;
    max-height: 348px;
    scrollbar-width: thin;
    scrollbar-color: #b9c4cd transparent;
}

@media (max-width: 735px) {
    .shelter-options--container {
        max-height: 240px;
    }
}

.shelter-options--container::-webkit-scrollbar {
    width: 8px;
}

.shelter-options--container::-webkit-scrollbar-thumb {
    background: #c3ccd4;
    border-radius: 8px;
    border: 2px solid #fff;
}

.shelter-options--container > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shelter__option--list {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #17293a;
}

.shelter__option--list + .shelter__option--list {
    margin-top: 2px;
}

.shelter__option--list .opt-dot {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #b9c4cd;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shelter__option--list .opt-dot::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b9c4cd;
}

.shelter__option--list .opt-name {
    flex: 1;
    min-width: 0;
}

.shelter__option--list:hover {
    background: #eef4fb;
}

.shelter__option--list.current {
    background: #eaf1f8;
    color: #0e2438;
    font-weight: 800;
    box-shadow: inset 3px 0 0 #ffc233;
}

.shelter__option--list.current .opt-dot {
    border-color: #1f6fb8;
}

.shelter__option--list.current .opt-dot::after {
    background: #1f6fb8;
}

.shelter__option--list.current .opt-badge {
    margin-left: auto;
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: #ffc233;
    color: #4a3500;
    border-radius: 999px;
    padding: 3px 9px;
}