﻿ 
:root {
    --brand: #a4161a;
    --accent: #28a745;
    --bg: #f8f9fa;
}

body {
    background: var(--bg);
}

.header {
    background: var(--brand);
    color: #fff;
    padding: 24px;
}

.lang-switch {
    border-radius: 20px;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    padding: 2px 12px;
    margin-left: 10px;
}

.card-custom {
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-item {
    border: 1px solid #e9ecef;
}

.accordion-button {
    padding: 1rem 1.25rem;
}

    .accordion-button:focus {
        box-shadow: none;
    }

    .accordion-button::after {
        background-image: none !important;
    }
/* hide default caret */
.bus-stop-title {
    font-weight: 600;
}

.distance-label {
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 14px;
    white-space: nowrap;
}

.navigate-btn {
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.bus-card {
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    background: #F9FBFF;
}

.book-btn {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: transparent;
    border-radius: 20px;
    padding: 4px 14px;
    white-space: nowrap;
}

.accordion-button > .btn-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn-row .right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

    .btn-row .right > * {
        flex: 0 0 auto;
    }

.accordion-header {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.accordion-button:not(.collapsed) {
    background: none;
    box-shadow: none;
}

.lang-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: system-ui, sans-serif;
}

.lang-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lang-track {
    width: 90px;
    height: 36px;
    background: rgb(255 255 255 / 15%);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    position: relative;
    transition: background 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.lang-thumb {
    position: absolute;
    top: 3px;
    left: 8px;
    width: 40px;
    height: 30px;
    background: white;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.lang-option {
    z-index: 1;
    flex: 1;
    text-align: center;
    pointer-events: none;
}

.lang-en {
    color: #fff;
}

.lang-ar {
    color: #fff;
}

.lang-input:checked + .lang-track .lang-thumb {
    transform: translateX(35px);
}

.lang-input:not(:checked) + .lang-track .lang-en {
    color: #971D24;
}

.lang-input:checked + .lang-track .lang-ar {
    color: #971D24;
}

.accordion-button::after {
    content: "\f282";
    font-family: "bootstrap-icons";
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #971D24;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.navigate-btn:hover img {
    filter: brightness(0.3);
}

.navigate-btn:hover {
    background: #ddd;
}

.form-check-input:checked {
    background-color: #a4161a;
    border-color: #a4161a;
}

button.accordion-button.filter-title {
    border-bottom: 1px solid #971D24;
    border-radius: 0 !important;
    font-size: 20px;
    font-weight: 500;
}

button.btn.btn-upcoming {
    border: 1px solid #a4161a;
  
}

span.dot-station {
    width: 10px;
    height: 10px;
    display: inline-block;
    background: #a4161a;
    border-radius: 50px;
}

button.btn.text-white {
    background: rgb(255 255 255 / 15%);
}

/* Loading and Location Access Styles */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.location-access-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.location-access-denied {
    color: #dc3545;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.location-btn {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 5px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 250px;
}

    .location-btn:hover {
        background: #8a1419;
        color: white;
    }

    .location-btn.outline {
        background: transparent;
        color: var(--brand);
        border: 2px solid var(--brand);
    }

        .location-btn.outline:hover {
            background: var(--brand);
            color: white;
        }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Map Modal Styles */
.map-modal {
    background: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 85%;
    margin: 20px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

@media (max-width:767px) {
    .navigate-btn {
        font-size: 0;
        gap: 0;
    }

    .distance-label {
        font-size: 12px;
    }

    h5.bus-stop-title {
        font-size: 16px;
    }

    .location-access-container {
        margin: 10px;
        padding: 20px;
    }
}

.btn-upcoming.active {
    background-color: #a4161a;
    color: white;
}

 
