/* ==========================================================================
   Base Styles
   ========================================================================== */
   :root {
    /* Primary Colors */
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --primary-light: #2a7fda;
    
    /* Secondary Colors */
    --secondary-color: #ffcc00;
    --secondary-dark: #e6b800;
    --secondary-light: #ffd633;
    
    /* Neutral Colors */
    --dark: #212529;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Feedback Colors */
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacer: 1rem;
    
    /* Border Radius */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-sm: 0.25rem;
    
    /* Box Shadow */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transition */
    --transition-base: all 0.2s ease-in-out;
    
    /* Z-index */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
}

/* Reset & Base Styles */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.reduced-motion * {
    transition: none !important;
    animation: none !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.focus-visible {
    outline: 3px solid var(--primary-light) !important;
    outline-offset: 2px !important;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    z-index: var(--z-index-fixed);
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    position: relative;
    box-shadow: var(--box-shadow-sm);
}

.header-alert {
    background-color: var(--secondary-color);
    color: var(--dark);
    padding: 0.75rem 0;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-sm);
    border-radius: var(--border-radius);
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-badges .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-card {
    margin-top: 2rem;
}

.booking-card .card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.booking-card .card-header {
    background-color: var(--primary-color);
    padding: 1.25rem;
    border-bottom: none;
}

.booking-card .card-body {
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .booking-card {
        margin-top: 0;
    }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 3rem 0;
}

.section-heading {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--box-shadow-sm);
    height: 100%;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.feature-title {
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-description {
    color: var(--gray);
    margin-bottom: 0;
}

/* ==========================================================================
   Routes Section
   ========================================================================== */
.routes-section {
    padding: 3rem 0;
    background-color: var(--light);
}

.route-tabs {
    margin-top: 2rem;
}

.nav-tabs {
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    transition: var(--transition-base);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -2px;
}

.tab-content {
    padding: 1rem 0;
}

.route-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.route-info {
    padding: 1.5rem;
}

.route-info h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.route-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    margin-bottom: 1rem;
}

.detail-icon {
    flex: 0 0 40px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.detail-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-content p {
    margin-bottom: 0;
    color: var(--gray);
}

.route-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
    .route-image {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    margin: 3rem 0;
}

.cta-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section .lead {
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Schedule Section
   ========================================================================== */
.schedule-section {
    padding: 3rem 0;
}

.schedule-search {
    margin-top: 2rem;
}

.table-align-middle td, .table-align-middle th {
    vertical-align: middle;
}

.schedule-results {
    margin-top: 2rem;
}

.schedule-results .card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.price-tables .card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.price-notice {
    border-radius: var(--border-radius);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 3rem 0;
    background-color: var(--light);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 500;
    color: var(--gray-dark);
    background-color: var(--white);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-light);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white);
}

/* ==========================================================================
   Service Section
   ========================================================================== */
.service-section {
    padding: 3rem 0;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--box-shadow-sm);
    height: 100%;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding-top: 3rem;
}

.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-middle {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-payment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-label {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.footer-language {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.language-label {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
}

.language-switcher {
    display: flex;
    gap: 1rem;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.language-switcher a:hover {
    color: var(--white);
    text-decoration: none;
}

.language-switcher a.active {
    color: var(--white);
    font-weight: 500;
}

.footer-bottom {
    padding: 2rem 0;
}

.copyright {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

@media (max-width: 767.98px) {
    .footer-disclaimer {
        text-align: left;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: var(--z-index-fixed);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 1.5rem 0;
    z-index: var(--z-index-modal);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h2 {
    margin-bottom: 0.5rem;
}

.cookie-text p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-text a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 767.98px) {
    .section-heading {
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .features-section, .routes-section, .schedule-section, .faq-section, .service-section {
        padding: 2rem 0;
    }
    
    .cta-section {
        padding: 2.5rem 0;
        margin: 2rem 0;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Accessibility Focus Styles */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .btn-primary, .btn-outline-primary:hover {
        background-color: Highlight !important;
        color: HighlightText !important;
    }
    
    a {
        color: LinkText !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}