.distance-nearest {
    color: #638f03 !important;
    font-weight: bold;
    text-decoration: underline;
}

body.dark-mode .distance-nearest {
    color: #7db603 !important;
    font-weight: bold;
    text-decoration: underline;
}

.mobile-bottom-nav,
body.dark-mode .mobile-bottom-nav {
    display: none;
}

.nav-link {
    color: #000;
}

#scrollUp {
    display: none !important;
}

.page-title-wrapper>div>div:first-child {
    margin-bottom: 0px;
}

li.breadcrumb-item a:hover,
body.dark-mode li.breadcrumb-item a:hover {
    padding: 10px;
    border-radius: 52px;
    margin-right: 0.3em;
    margin-left: 0.3em;
}

li.breadcrumb-item a,
body.dark-mode li.breadcrumb-item a {
    padding: 10px;
    border-radius: 52px;
    margin-right: 0.3em;
    margin-left: 0.3em;
}


@media (min-width: 995px) {
    .page-header-section {
        padding-top: 7em;
        background: #ececea;
    }

    .navbar-nav {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        flex-direction: row !important;
    }

    .breadcrumb-fixed-placeholder,
    .breadcrumb.breadcrumb-fixed {
        display: none !important;
    }

    .breadcrumb-wrapper .breadcrumb-desktop {
        display: block !important;
    }
}


/* Mobile-Tablet */
@media (max-width: 994px) {
    .container {
        max-width: 100vw !important;
    }

    .container-xxl {
        padding-right: 30px;
        padding-left: 30px;
    }

    .page-title-wrapper>div>div:first-child {
        margin-bottom: 0px !important;
    }

    .navbar,
    body.dark-mode .navbar {
        display: none !important;
    }

    .breadcrumb-wrapper .breadcrumb-desktop {
        display: none !important;
    }


    .page-header-section {
        padding-top: 0em;
        background: #ececea;
    }

    /* Floating breadcrumb only on mobile/tablet */
    .breadcrumb-fixed-placeholder {
        padding-top: 4em;
    }

    .breadcrumb.breadcrumb-fixed {
        position: fixed;
        top: 20px;
        left: 20px;
        transform: none;
        width: auto;
        max-width: 90vw;
        z-index: 2000;
        background: rgba(253, 253, 253, 0.635);
        backdrop-filter: blur(25px);
        margin: 0;
        border-radius: 50px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 8px rgba(0, 0, 0, 0.08);
        padding: 0.75em 0em;
        display: flex;
        align-items: center;
        opacity: 0.97;
        transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    }

    body.dark-mode .breadcrumb.breadcrumb-fixed {
        background: #292a2b;
        backdrop-filter: blur(25px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 20px;
        left: 20px;
        transform: none;
        width: auto;
        max-width: 90vw;
        z-index: 2000;
        margin: 0;
        border-radius: 50px;
        padding: 0.75em 0em;
        display: flex;
        align-items: center;
        opacity: 0.97;
        transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    }

    .breadcrumb.breadcrumb-fixed.at-top {
        top: 0;
        background: none;
        box-shadow: none;
        padding-top: 1.5em;
        padding-left: 0em;
    }

    body.dark-mode .breadcrumb.breadcrumb-fixed.at-top {
        top: 0;
        background: none;
        box-shadow: none;
        padding-top: 1.5em;
        padding-left: 0em;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: transparent;
        display: flex !important;
        justify-content: center;
        pointer-events: none;
    }

    .mobile-bottom-nav ul {
        background: rgba(253, 253, 253, 0.935);
        backdrop-filter: blur(25px);
        border-radius: 50px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        display: flex;
        margin: 12px 8px;
        padding: 0 4px;
        width: 100%;
        max-width: 420px;
        justify-content: space-between;
        pointer-events: auto;
    }

    body.dark-mode .mobile-bottom-nav ul {
        background: #0e0e0e91;
        backdrop-filter: blur(25px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .mobile-bottom-nav li {
        list-style: none;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 0 6px 0;
        margin: 4px 2px;
        border-radius: 50px;
        transition: background 0.2s;
        cursor: pointer;
    }

    .mobile-bottom-nav li.active {
        background: linear-gradient(90deg, rgb(0, 112, 147) 0%, rgb(45, 147, 172) 100%);
    }

    .mobile-bottom-nav .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 2px;
        color: #000;
    }

    .mobile-bottom-nav li.active .label {
        color: #fff;
        font-weight: bold;
    }

    .mobile-bottom-nav li.active .icon i {
        color: #fff;
    }

    .mobile-bottom-nav .label {
        font-size: 11px;
        color: #000;
        margin-top: 0px;
        letter-spacing: 0.01em;
        transition: color 0.2s, font-weight 0.2s;
    }

    body.dark-mode .mobile-bottom-nav .label,
    body.dark-mode .mobile-bottom-nav .icon {
        color: #fff;
    }
}





/* ---------------- Table ART - Light --------------------------*/
.table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 8px;
    padding-left: 20px;
}

.table tr:last-child td:first-child {
    border-bottom-left-radius: 25px;
}

.table tr:last-child td:last-child {
    border-bottom-right-radius: 25px;
}

table th {
    background-color: #94d40b !important;
    color: #000;
    font-size: 20px;
    margin: 5px;
}

.bus-time {
    display: inline-flex;
    width: 200px;
    text-align: center;
    margin-right: 4em;
    font-size: 20px;
    /* justify-content: space-evenly; */
    font-weight: bold;
    margin-top: 2px;
    margin-bottom: 2px;
}

.svcNum {
    background-color: #94d40b;
    border-radius: 25px;
    color: #000;
    font-weight: bold;
}

.svcNumtd {
    text-align: center;
    width: 85px;
    white-space: nowrap;
    margin-right: 3em;
}

.departure-spacing {
    padding-left: 3em !important;
    padding-right: 1em !important;
}

.sch-spacing {
    padding-left: 1em !important;
    padding-right: 1em !important;
}

.operator-logo {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.operator-column {
    text-align: center;
    width: 20em;
}

.operator-logo {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.arrival-now {
    color: #7bb108;
    font-weight: bold;
}

.arrival-grey {
    color: #8d8d8d;
    font-weight: bold;
}

.message {
    font-size: 15px;
    text-align: center;
}

.fleet-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: left;
    margin-top: 1em;
    padding-bottom: 1em;
}

.fleet-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5em;
    border-radius: 15px;
}

.fleet-icon {
    width: 50px;
    height: auto;
    object-fit: contain;
}

#bus-stops {
    margin-top: 20px;
}

.bus-stop {
    transition-duration: 800ms;
    background-color: #fff;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-radius: 25px;
    position: relative;
    z-index: 1;
    margin-top: 1em;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.bus-stop:hover {
    background-color: #d8e6f3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bus-stop-code {
    color: #3294ac !important;
    cursor: pointer;
    transition-duration: 800ms;
}

.bus-stop-code:hover {
    color: #52718d !important;
}

.bs-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 2px;
    cursor: pointer;
    text-align: left !important;
}

.bs-info {
    cursor: pointer;
    text-align: left !important;
}

.list-group-item:first-child,
.list-group-item:last-child {
    transition-duration: 800ms;
    border-radius: 20px;
    margin-top: 1em;
    font-size: 20px;
}

.list-group-item {
    transition-duration: 800ms;
    border-radius: 20px;
    margin-top: 1em;
    font-size: 20px;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-top: 0.7em;
    padding-bottom: 0.7em;
}

.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 3px solid #ccc;
    border-top: 3px solid #3b3b3b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pagination-buttons {
    margin-right: 0em;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pw-btn-next {
    position: relative;
    z-index: 1;
    min-width: 160px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 0 30px;
    text-align: center;
    text-transform: capitalize;
    background-color: #de652e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #252525;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    margin-left: 3em;
    margin-right: 3em;
}

.pw-btn-prev {
    position: relative;
    z-index: 1;
    min-width: 160px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 0 30px;
    margin-left: 3em;
    margin-right: 3em;
    text-align: center;
    text-transform: capitalize;
    background-color: #366ca7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #252525;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
}

.pw-btn-next.btn-2,
.pw-btn-prev.btn-2 {
    color: #fff;
}

.pw-btn-next:focus,
.pw-btn-next:hover,
.pw-btn-prev:focus,
.pw-btn-prev:hover {
    font-weight: 500;
    background-color: #6d99c0 !important;
    color: #fff;
    transform: translateY(-2px);
}

/*  */
.card-bz {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 1em;
    text-align: center;
    flex: 1 1 calc(20% - 1em);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.card-bz:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.header h1 {
    margin: 0;
    font-size: 2em;
}

.header p {
    margin: 0.5em 0 0;
    font-size: 1em;
    color: #666;
}


.pinned {
    margin-bottom: 2em;
}

.pinned h2 {
    font-size: 35px;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: bolder;
    color: #3b3b3b;
    text-align: center;
}

.card-container {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    margin-bottom: 4em;
    padding: 0 1em;
}

.card-bz p {
    margin-top: 0.7em;
    font-size: 25px;
    color: #000;
    font-weight: bold;
    text-align: center !important;
    line-height: 1.5;
}

.card-icon {
    border-radius: 25px;
}

.bz-btn {
    position: relative;
    z-index: 1;
    min-width: 50px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 0 30px;
    text-align: center;
    text-transform: capitalize;
    background-color: #de652e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #fff;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    margin-left: 3em;
    margin-right: 3em;
    width: 80px !important;
}

.btn-unpin {
    position: relative;
    z-index: 1;
    min-width: 50px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 0 30px;
    text-align: center;
    text-transform: capitalize;
    background-color: #ec451b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #fff;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    margin-left: 1em;
}

.btn-nbs {
    margin-left: 0em !important;
    width: 80px !important;
}

.btn-toPin {
    position: relative;
    z-index: 1;
    min-width: 50px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 0 30px;
    text-align: center;
    text-transform: capitalize;
    color: #000;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    margin-left: 1em;
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff4d;
}

.btn-busloc {
    background-color: #de652e;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.btn-busloc:disabled {
    background-color: #cecece;
    color: #535353;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}


.bz-btn.btn-2,
.btn-unpin.btn-2,
.btn-toPin.btn-2 {
    color: #fff;
}

.bz-btn:focus,
.bz-btn:hover,
.btn-unpin:focus,
.btn-unpin:hover,
.btn-toPin:focus,
.btn-toPin:hover,
.btn-busloc:focus,
.btn-busloc:hover {
    font-weight: 500;
    background-color: #6d99c0 !important;
    color: #fff;
    transform: translateY(-2px);
}

/*  */
.list-group-item.active {
    z-index: 2;
    color: #000;
    background-color: #c7e3fb;
}

.lg-ann {
    font-size: 25px;
    margin-bottom: 0px;
    font-weight: bolder;
}

.lg-date {
    font-size: 15px;
    margin-bottom: 0px;
    color: #757575;
}

.lg-menu {
    font-size: 20px;
    margin-bottom: 0px;
    font-weight: bolder;
}

.pin-msg {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1em;
    padding-left: 1em;
}

.pinned p {
    text-align: center;
    color: #000;
    cursor: pointer;
}

.fetch {
    margin-top: 1em;
    color: #4d4d4d;
    text-align: left !important;
}

.alert-warning {
    border-radius: 25px;
}

/* Load Indicator Styles */
.load-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

/* Seats Available (SEA) - Green */
.load-indicator.sea i {
    color: #28a745;
    font-size: 19px;
}

/* Standing Available (SDA) - Yellow */
.load-indicator.sda i {
    color: #dfa908;
    font-size: 15px;
}

/* Limited Standing (LSD) - Red */
.load-indicator.lsd i {
    color: #dc3545;
    font-size: 15px;
}

/* Default Load Indicator (Fallback) */
.load-indicator.default i {
    color: #6c757d;
    font-size: 17px;
}



/* ---------------- Table ART - Dark ----------------------*/

body.dark-mode .table {
    border: 1px solid #000;
}

body.dark-mode table th {
    background-color: #7db603 !important;
    color: #000;
}

body.dark-mode table td {
    background-color: #1f1e1e;
    color: #fff;
    border-color: #000;
}

body.dark-mode .svcNum {
    background-color: #7db603;
    border-radius: 5px;
    color: #000;
}

body.dark-mode .arrival-now {
    color: #7db603;
    font-weight: bold;
}

body.dark-mode .bus-stop {
    background-color: #2e2e2e;
    color: #fff !important;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .bus-stop:hover {
    background-color: #334250;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .bus-stop-code {
    color: #3294ac !important;
    cursor: pointer;
    transition-duration: 800ms;
}

body.dark-mode .bus-stop-code:hover {
    color: #a4c5e2 !important;
}

body.dark-mode .list-group-item:first-child,
.body.dark-mode .list-group-item:last-child {
    transition-duration: 800ms;
    border-radius: 20px;
    margin-top: 1em;
    font-size: 20px;
}

body.dark-mode .list-group-item {
    background-color: #2e2e2e;
    color: #fff !important;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-top: 0.7em;
    padding-bottom: 0.7em;
}

body.dark-mode .list-group-item:hover {
    background-color: #334250;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/*  */
body.dark-mode .card-bz {
    background-color: #2e2e2e;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 1em;
    text-align: center;
    flex: 1 1 calc(20% - 1em);
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


body.dark-mode .card-bz:hover {
    background-color: #334250;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .btn-toPin {
    background-color: #494949;
    border: 1px solid #2b2b2b33;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(61, 61, 61, 0.384);
    color: #fff;
}

/*  */
body.dark-mode .list-group-item.active {
    z-index: 2;
    color: #000;
    background-color: #52718d;
}

body.dark-mode .lg-date {
    color: #dbdbdb;
}

body.dark-mode .pin-msg {
    background-color: #2e2e2e;
    color: #fff !important;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.dark-mode .pinned p {
    text-align: center;
    color: #fff;
    cursor: pointer;
}

body.dark-mode .alert-warning {
    background-color: #332701;
    color: #ffda6a;
    border-color: #997404;
}

body.dark-mode .btn-busloc {
    border: 1px solid #2b2b2b33;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(61, 61, 61, 0.384);
    color: #fff;
}

body.dark-mode .fleet-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2e2e2e;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5em;
    border-radius: 15px;
}

body.dark-mode .btn-busloc:disabled {
    background-color: #3d3d3d;
    color: #535353;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #2b2b2b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}