@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Theme Variables */
:root {
    /* Light Theme */
    --header-bg: #fff;
    --header-text: #003087;
    --header-text-hover: #ff6200;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --body-bg: #f8f9fa;
    --text-color: #333;
}

body.dark-theme {
    /* Dark Theme */
    --header-bg: #1e2a44;
    --header-text: #d1d5db;
    --header-text-hover: #00c853;
    --header-shadow: rgba(255, 255, 255, 0.1);
    --body-bg: #1f2937;
    --text-color: #d1d5db;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    padding-top: 70px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--header-shadow);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .flex.items-center.gap-8 {
    gap: 30px; /* Increased gap to match the spacing in the image */
}

.logo {
    height: 40px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--header-text-hover);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-switch {
    padding: 8px 24px 8px 12px;
    border: 1px solid var(--header-text);
    border-radius: 5px;
    background: transparent;
    color: var(--header-text);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.language-switch:focus {
    outline: none;
    border-color: var(--header-text-hover);
}

.language-selector::after {
    content: '\f078'; /* Font Awesome chevron-down icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--header-text);
    pointer-events: none;
    font-size: 12px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 20px;
    color: var(--header-text);
    transition: color 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    color: var(--header-text-hover);
}

.hidden {
    display: none;
}

/* Responsive Adjustments for Header */
@media (max-width: 768px) {
    .header .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
    }

    .language-switch {
        padding: 6px 20px 6px 10px;
        font-size: 12px;
    }

    .theme-icon {
        font-size: 18px;
    }

    .header .flex.items-center.gap-8 {
        gap: 15px; /* Reduced gap for mobile */
    }
}



/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    background-image: url('/images/bus2.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    animation: fadeIn 1s ease-in-out;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeIn 1s ease-in-out 0.2s;
}

.search-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out 0.4s;
}

.trip-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    background: #e0e0e0;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.tab.active {
    background: #003087;
    color: #fff;
}

.tab:hover {
    background: #d0d0d0;
}

.tab.active:hover {
    background: #002060;
}

.trip-form {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
}

.trip-form[data-form="one-way"] {
    display: block;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>')
        no-repeat right 10px center;
    background-size: 12px;
}

.search-input[type="date"],
.search-input[type="text"] {
    background: none;
}

.search-input[type="text"] {
    text-transform: uppercase;
}

.search-input[type="textarea"],
textarea.search-input {
    height: 80px;
    resize: vertical;
}

.search-button {
    background-color: #00c853;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-end;
}

.search-button:hover {
    background-color: #00a846;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: 700;
}

.step-icon {
    font-size: 40px;
    color: #2563eb;
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-promotion {
    text-align: center;
    color: #333;
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.app-promotion p {
    margin-bottom: 20px;
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-link {
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.app-link:hover {
    background: #003087;
}

/* Featured Bus Operators */
.operators {
    padding: 60px 0;
    background: linear-gradient(to right, #e0f2fe, #dbeafe);
}

.operator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.operator-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.operator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.operator-image {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.operator-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #003087;
}

.operator-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: color 0.3s ease;
}

.operator-link:hover {
    color: #003087;
    text-decoration: underline;
}

/* Popular Routes */
.routes {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.route-card {
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #e0f2fe);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom right, #e0f2fe, #dbeafe);
}

.route-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: #2563eb;
}

.route-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-left: 30px;
    color: #003087;
}

.route-link {
    display: inline-block;
    background: #00c853;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 80px;
    line-height: 1;
}

.route-link:hover {
    background: #00a846;
    color: #fff;
    text-decoration: none;
}

.load-more-button {
    display: block;
    margin: 30px auto 0;
    background-color: #2563eb;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.load-more-button:hover {
    background-color: #003087;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feature {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 220px;
    transition: background 0.3s ease;
}

.feature:hover {
    background: #dbeafe;
}

.feature-icon {
    font-size: 40px;
    color: #2563eb;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}



/* footer */

/* Footer */
.footer {
    background: #1e2a44; /* Darker blue to match Bus Bora */
    color: #fff;
    padding: 20px 0; /* Slightly more padding for spacing */
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Increased gap for better spacing */
    align-items: flex-start; /* Align items to the top */
    padding-bottom: 15px; /* Space between content and bottom row */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}

.footer-section {
    flex: 1;
    min-width: 200px; /* Slightly larger min-width for better spacing */
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    height: 40px; /* Slightly larger logo to match Bus Bora */
}

.footer-title {
    font-size: 16px; /* Larger font size for titles */
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 8px;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: color 0.3s ease;
}

.footer-link i {
    font-size: 14px;
    color: #d1d5db;
}

.footer-link:hover {
    color: #00c853; /* Green color on hover to match your theme */
}

.footer-link:hover i {
    color: #00c853;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    color: #fff;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background for icons */
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background: #00c853; /* Green background on hover */
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    font-size: 12px;
    color: #d1d5db;
}

.copyright {
    margin: 0;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 5px;
}

.powered-by span {
    font-size: 12px;
    color: #d1d5db;
}

.powered-by-logo {
    height: 20px; /* Smaller logo for "Powered by" */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: left; /* Align text to the left on mobile */
        gap: 20px;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* end of footer */







/* Route Summary */
.route-summary {
    margin-bottom: 30px;
    text-align: left;
    color: #666;
    font-size: 16px;
}

.route-summary p {
    line-height: 1.5;
}

.route-summary p strong {
    font-weight: 600;
    color: #333;
}

/* Search Results Section */
.search-results {
    padding: 40px 0;
    background-color: #f1f5f9;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #2563eb;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bus-info {
    flex: 1;
}

.bus-name {
    font-size: 20px;
    font-weight: 600;
    color: #003087;
    margin-bottom: 5px;
}

.bus-type {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.type {
    background: #e0f2fe;
    color: #2563eb;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.via {
    color: #666;
    font-size: 14px;
}

.amenities {
    display: flex;
    gap: 10px;
    color: #2563eb;
    font-size: 18px;
}

.schedule-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.time-location {
    display: flex;
    flex-direction: column;
}

.time {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.location {
    font-size: 14px;
    color: #666;
}

.duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ff6200;
}

.duration i {
    font-size: 18px;
}

.seats-price {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.seats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.available {
    font-size: 16px;
    font-weight: 500;
    color: #00c853;
}

.layout {
    font-size: 14px;
    color: #666;
}

.price-book {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #003087;
}

.book-button {
    background: #00c853;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.book-button:hover {
    background: #00a846;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    display: flex;
    gap: 20px;
}

.seat-map-section {
    flex: 1;
}

.seat-legend {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.seat-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.seat {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.seat.available {
    background-color: #28a745;
    color: #fff;
}

.seat.taken {
    background-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

.seat.selected {
    background-color: #ffc107;
    color: #333;
}

.seat-map-wrapper {
    flex: 1;
}

.seat-map-header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.seat-map-header i {
    font-size: 24px;
    color: #333;
    margin: 0 35px;
}

.driver-assistant,
.driver {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-assistant i,
.driver i {
    font-size: 24px;
    color: #333;
}

.seat-map {
    display: flex;
    gap: 5px;
}

.seat-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.seat-row {
    display: flex;
    gap: 5px;
}

.seat-row.last-row {
    gap: 0;
    justify-content: center;
}

.empty-row {
    height: 35px;
}

.toilet-row {
    height: 75px;
}

.seat-toilet {
    width: 75px;
    height: 75px;
    background: #f1f5f9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.right-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 400px;
}

.seat-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.passenger-details-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.passenger-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.passenger-details-header {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.seat-selection label,
.passenger-details label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.passenger-details .search-input {
    background-color: #fff;
    border: 1px solid #ccc;
}

.passenger-details .search-input:focus {
    outline: none;
    border-color: #003087;
    box-shadow: 0 0 5px rgba(0, 48, 135, 0.2);
}

.phone-input {
    display: flex;
    gap: 10px;
}

.phone-code {
    width: 100px;
}

.phone-number {
    flex: 1;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.continue-button {
    background-color: #003087;
    color: #fff;
    padding: 12px 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: center;
}

.continue-button:hover {
    background-color: #002060;
}

.legend-indicator {
    width: 35px;
    height: 35px;
    display: inline-block;
    border-radius: 5px;
    pointer-events: none;
}

.legend-indicator.available {
    background-color: #28a745;
}

.legend-indicator.taken {
    background-color: #dc3545;
}

.legend-indicator.selected {
    background-color: #ffc107;
}

/* Confirmation Section */
.confirmation-section {
    padding: 60px 0;
}

.cards-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: #003087;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #2563eb;
    font-size: 24px;
}

.card-subtitle {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.trip-details,
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.detail-row:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.detail-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    color: #2563eb;
    font-size: 18px;
}

.detail-value {
    font-size: 16px;
    color: #555;
    font-weight: 400;
}

/* Tabbed Passenger Details */
.passenger-details {
    position: relative;
}

.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 8px 15px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e0f2fe;
    color: #003087;
}

.tab-btn.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.tab-content.active {
    display: block;
}

.passenger-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
}

/* Payment Details */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.payment-method:hover {
    background: #e0f2fe;
    transform: scale(1.03);
}

.payment-method input[type="radio"] {
    margin-right: 5px;
}

.payment-method img {
    height: 25px;
}

.payment-method span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-in-out;
}

.btn {
    padding: 12 amp; 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #00c853 0%, #00a846 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00a846 0%, #00853b 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #333;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.child-details {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.child-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.child-form-buttons {
    display: flex;
    gap: 10px;
}

.add-child-btn,
.remove-child-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.add-child-btn {
    background: #2563eb;
    color: #fff;
}

.add-child-btn:hover {
    background: #1e40af;
}

.remove-child-btn {
    background: #dc2626;
    color: #fff;
}

.remove-child-btn:hover {
    background: #b91c1c;
}

/* Bus Schedule Trip */
main {
    flex: 1;
    padding: 60px 20px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
    padding: 32px;
    display: flex;
    gap: 32px;
    backdrop-filter: blur(1px);
}

.filter-panel {
    width: 300px;
}

.schedules-panel {
    flex: 1;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #2563eb;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.filter-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-panel h3 i {
    font-size: 16px;
    color: #4b5563;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
}

.time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.time-button {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-button i {
    margin-right: 8px;
    color: #2563eb;
}

.time-button:hover {
    background: #f9fafb;
}

.time-button.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.time-button.active i {
    color: #ffffff;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.filter-section select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-section select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Table Styling */
.schedules-table,
.operators-table,
.routes-table {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.table-header,
.trip-row,
.operator-row,
.route-row {
    display: grid;
    padding: 16px 24px;
    align-items: center;
    gap: 16px;
}

.table-header {
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.table-header div {
    min-height: 40px;
    text-align: left; /* Left-align header content */
}

.trip-row,
.operator-row,
.route-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease, transform 0.3s ease;
}

.trip-row:hover,
.operator-row:hover,
.route-row:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.trip-row:last-child,
.operator-row:last-child,
.route-row:last-child {
    border-bottom: none;
}

.trip-row div,
.operator-row div,
.route-row div {
    font-size: 14px;
    color: #1f2937;
    white-space: normal;
    min-height: 40px;
    text-align: left; /* Left-align body content */
}

.schedules-table .table-header,
.schedules-table .trip-row {
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1fr 1fr 1fr 1fr; /* 8 columns for schedules */
}

.operators-table .table-header,
.operators-table .operator-row {
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr; /* 4 columns for operators */
}

.routes-table .table-header,
.routes-table .route-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* 4 columns for routes */
}

.status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-align: center; /* Status badges remain centered for visual appeal */
}

.status.active {
    background: #dcfce7;
    color: #15803d;
}

.status.cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.operator-logo {
    width: 80px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.book-button,
.operator-link,
.route-link {
    background: #00c853;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 80px;
    line-height: 1;
    text-decoration: none;
}

.book-button:hover,
.operator-link:hover,
.route-link:hover {
    background: #00a846;
}

.book-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Consistent sort buttons for operators and routes */
.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sort-button {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-button:hover {
    background: #f9fafb;
}

.sort-button.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Add hidden class */
.hidden {
    display: none !important;
}

/* Adjust wrapper to prevent overflow */
.trip-rows-wrapper,
.operator-rows-wrapper,
.route-rows-wrapper {
    max-height: none;
    overflow: visible;
}

/* Company Buses Section */
.company-buses {
    padding: 40px 0;
    background: linear-gradient(to right, #e0f2fe, #dbeafe);
}

.bus-routes {
    padding: 40px 0;
    background: linear-gradient(to right, #e0f2fe, #dbeafe);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .schedule-card {
        flex-direction: column;
    }

    .filter-panel {
        width: 100%;
    }

    .schedules-panel {
        width: 100%;
    }

    .schedules-table .table-header,
    .schedules-table .trip-row {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /* Maintain 8 columns */
        gap: 12px;
    }

    .operators-table .table-header,
    .operators-table .operator-row,
    .routes-table .table-header,
    .routes-table .route-row {
        grid-template-columns: 1fr 1fr 1fr 1fr; /* Maintain 4 columns */
        gap: 12px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    main {
        padding: 40px 16px;
    }

    .schedule-card {
        padding: 24px;
    }

    .header .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
    }

    .trip-form {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    .search-button {
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero {
        background-size: cover;
        height: 500px;
    }

    .steps,
    .features {
        flex-direction: column;
        align-items: center;
    }

    .step,
    .feature {
        width: 100%;
        max-width: 300px;
    }

    .trip-tabs {
        gap: 8px;
    }

    .tab {
        font-size: 14px;
        padding: 8px 16px;
    }

    .operator-grid {
        gap: 20px;
    }

    .route-grid {
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }

    .result-card {
        flex-direction: column;
        gap: 15px;
    }

    .schedule-info {
        flex-direction: column;
        gap: 10px;
    }

    .seats-price {
        align-items: flex-start;
    }

    .price-book {
        align-items: flex-start;
        width: 100%;
    }

    .book-button {
        width: 100%;
        text-align: center;
    }

    .route-summary {
        text-align: center;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .modal-body {
        flex-direction: column;
    }

    .right-section {
        width: 100%;
    }

    .passenger-details .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .passenger-details .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .phone-input {
        flex-direction: column;
        gap: 5px;
    }

    .phone-code {
        width: 100%;
    }

    .continue-button {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .passenger-info {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .payment-methods {
        flex-direction: column;
    }

    .tab-nav {
        gap: 5px;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .table-header,
    .trip-row,
    .operator-row,
    .route-row {
        grid-template-columns: 1fr; /* Single column for mobile */
        text-align: left;
        padding: 16px;
    }

    .table-header {
        display: none; /* Hide header on mobile */
    }

    .trip-row div,
    .operator-row div,
    .route-row div {
        padding: 8px 0;
    }

    .trip-row div::before,
    .operator-row div::before,
    .route-row div::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 4px;
    }

    .status {
        display: inline-block;
    }

    .book-button,
    .operator-link,
    .route-link {
        max-width: 100%; /* Full width on mobile */
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 28px;
    }

    .time-button {
        min-width: 80px;
        padding: 8px;
        font-size: 13px;
    }

    .checkbox-group label {
        font-size: 13px;
    }

    .filter-section select {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
