:root {
    --navbar-bg-color: hsl(0, 0%, 15%);
    --navbar-text-color: hsl(0, 0%, 85%);
    --navbar-text-color-focus: white;
    --navbar-bg-contrast: hsl(0, 0%, 25%);
  }
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.flex-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding-top: 64px;
}

  .container {
    max-width: 1000px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    margin-left: auto;
    margin-right: auto;
  }
/* ── Navbar ── */

#navbar {
    --navbar-height: 64px;
    position: fixed;
    height: var(--navbar-height);
    background: rgba(30, 30, 35, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.navbar-brand:hover {
    color: #fff;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    color: #fff;
}

/* Hamburger */
#navbar-toggle {
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    transition: background 0.2s;
}

#navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: #ccc;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

#navbar-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Desktop nav links */
#navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.navbar-item {
    margin: 0;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.navbar-link i {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.navbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-link:hover i {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-link.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
}

.navbar-link.active i {
    color: #60a5fa;
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #2563eb;
}

/* Mobile */
@media (max-width: 699px) {
    #navbar-toggle {
        display: flex;
    }

    #navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: block;
    }

    #navbar-toggle[aria-expanded="true"] + #navbar-menu,
    #navbar-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar-links {
        flex-direction: column;
        background: rgba(30, 30, 35, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        margin: 12px 16px;
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.06);
        gap: 2px;
    }

    .navbar-item {
        width: 100%;
    }

    .navbar-link {
        padding: 12px 16px;
        width: 100%;
        border-radius: 10px;
        font-size: 1rem;
    }

    .navbar-link.active::after {
        display: none;
    }

    .navbar-link.active {
        background: rgba(37, 99, 235, 0.25);
        border-left: 3px solid #2563eb;
        border-radius: 10px 4px 4px 10px;
    }
}

@media (min-width: 700px) {
    #navbar-menu {
        display: flex;
        align-items: center;
        position: static;
        opacity: 1;
        visibility: visible;
        background: none;
        backdrop-filter: none;
    }
}

  footer {
    padding: 0;
    color: #ccc;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #999;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.9rem;
    color: #999;
    transition: color 0.2s, padding-left 0.2s;
}

footer .footer-link:hover {
    color: #fff;
    padding-left: 4px;
}

footer .footer-link i {
    width: 16px;
    color: #666;
    transition: color 0.2s;
}

footer .footer-link:hover i {
    color: #0d6efd;
}

footer .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

footer .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}

footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #999;
}

footer .contact-item i {
    margin-top: 3px;
    color: #0d6efd;
    width: 16px;
}

footer .contact-item span {
    line-height: 1.5;
}

footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 0.85rem;
    color: #666;
}

footer .copyright a {
    color: #999;
}

footer .copyright a:hover {
    color: #fff;
}
  
  /* ── Booking Page Styles ── */

.booking-page-body {
    font-family: 'Nunito', sans-serif;
}

.booking-page-content {
    background: #f0f2f5;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero */
.booking-hero {
    background: linear-gradient(135deg, rgba(30,58,95,0.85) 0%, rgba(37,99,235,0.75) 50%, rgba(29,78,216,0.7) 100%), url('../images/hero-booking.jpg') center/cover no-repeat;
    padding: 100px 0 60px;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.booking-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.booking-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.booking-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.booking-hero-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
    backdrop-filter: blur(4px);
}

.booking-hero-title {
    color: #fff;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.booking-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

/* Cards */
.booking-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.booking-card-header i {
    color: #2563eb;
    font-size: 1.1rem;
}

.booking-card-body {
    padding: 22px;
}

/* Form inputs */
.booking-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.booking-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.booking-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.booking-input-group i {
    padding: 0 0 0 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.booking-input-group:focus-within i {
    color: #2563eb;
}

.booking-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 14px 11px 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: transparent;
    font-family: 'Nunito', sans-serif;
}

.booking-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.booking-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset;
}

select.booking-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Seat selection hint */
.seat-selection-hint {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.seat-legend {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
}

.seat-legend.available {
    background: #b8bcc0;
    border: 1.5px solid #8a8e92;
}

.seat-legend.selected-legend {
    background: #2563eb;
    border: 1.5px solid #1d4ed8;
}

.seat-legend.taken-legend {
    background: #6b7280;
    border: 1.5px solid #4b5563;
    opacity: 0.5;
}

/* Bus diagrams container */
.bus-diagrams-container {
    background: #1e1e22;
    border-radius: 12px;
    padding: 16px;
}

/* Pay button */
.btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    width: 100%;
    letter-spacing: 0.3px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.btn-pay:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Summary sidebar */
.booking-summary {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 90px;
    margin-bottom: 20px;
    overflow: hidden;
}

.booking-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.booking-summary-header i {
    font-size: 1.1rem;
}

.booking-summary-body {
    padding: 16px 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.summary-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-label i {
    width: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    max-width: 55%;
    word-break: break-word;
}

.summary-divider {
    margin: 8px 0;
    border-color: #e2e8f0;
}

.summary-total .summary-label {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.summary-total .summary-value {
    font-size: 1.15rem;
    color: #2563eb;
    font-weight: 800;
}

/* Alert styling */
.alert-danger {
    border-radius: 12px;
    border: none;
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 991px) {
    .booking-hero {
        padding: 80px 0 40px;
    }

    .booking-hero-title {
        font-size: 1.7rem;
    }

    .booking-card-body {
        padding: 16px;
    }

    .booking-summary {
        position: static;
    }

@media (max-width: 576px) {
    .booking-hero {
        padding: 70px 0 32px;
        margin-top: 56px;
    }

    .booking-hero-title {
        font-size: 1.4rem;
    }

    .booking-hero-subtitle {
        font-size: 0.9rem;
    }

    .booking-hero-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .booking-card-header {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .booking-card-body {
        padding: 14px;
    }

    .booking-input {
        font-size: 0.9rem;
        padding: 10px 12px 10px 6px;
    }

    .btn-pay {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media screen and (min-width: 700px) {
    #navbar-toggle,
    #navbar-toggle[aria-expanded="true"] {
      display: none;
    }
  
    #navbar-menu,
    #navbar-toggle[aria-expanded="true"] #navbar-menu {
      visibility: visible;
      opacity: 1;
      position: static;
      display: block;
      height: 100%;
    }
  
    .navbar-links,
    #navbar-toggle[aria-expanded="true"] #navbar-menu .navbar-links {
      margin: 0;
      padding: 0;
      box-shadow: none;
      position: static;
      flex-direction: row;
      width: 100%;
      height: 100%;
    }
  }
