/* Base styles */
:root {
    --primary-color: #004aad;
    --secondary-color: #0056b3;
    --background-color: #ffffff;
    --text-color: #202124;
    --border-color: #e8eaed;
    --shadow: 0 2px 4px rgba(0,0,0,0.08);
    --hover-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    transition: background-color 0.3s !important;
}

.account-btn:hover {
    background: var(--secondary-color);
}

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

/* Search Section */
.search-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtitle {
    color: #5f6368;
    font-size: 1.1rem;
}

/* Search Form */
.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.location-input-container,
.date-input-container {
    padding-left: 2.5rem;
}

.location-input-container label,
.date-input-container label {
    display: block;
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 0.3rem;
}

.location-input-container input,
.date-input-container input {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    font-size: 1.1rem;
    color: var(--text-color);
    background: transparent;
}

.location-input-container input:focus,
.date-input-container input:focus {
    outline: none;
}

.swap-btn {
    display: flex;
    align-items: center;
}

.swap-btn button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.swap-btn button:hover {
    background: var(--hover-bg);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.suggestions.active {
    display: block !important;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: var(--hover-bg);
}

.suggestion-item .city-name {
    font-weight: 500;
}

.suggestion-item .state-name {
    font-size: 0.85rem;
    color: #5f6368;
}

.search-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.quick-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--hover-bg);
}

.quick-link i {
    font-size: 1.2rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

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

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
}

/* Popular Routes */
.popular-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.popular-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.route-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.route-meta {
    color: #666;
    font-size: 0.9rem;
}

.route-price {
    text-align: right;
    color: var(--primary-color);
    font-weight: 500;
}

.route-price i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Bus List Page Styles */
.bus-list-container {
    max-width: 950px;
    margin: 80px auto 40px;
    padding: 0 15px;
}

.search-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.route-info h2 {
    font-size: 1.3rem;
    margin: 0 0 2px;
    font-weight: 600;
    color: var(--gray-900);
}

.journey-date {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.modify-search {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modify-search:hover {
    background: var(--primary-light);
}

.sort-controls {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.sort-controls label {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.sort-controls select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.9rem;
}

.bus-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bus-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out forwards;
}

.bus-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.bus-card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.15);
    transform: translateY(-2px);
}

.bus-card-content {
    padding: 1rem;
}

.bus-card-content {
    padding: 15px;
}

.bus-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bus-operator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

.bus-operator-details {
    flex: 1;
}

.bus-operator h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.bus-type {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.bus-rating {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 3px;
}

.bus-rating i {
    font-size: 0.8rem;
    margin-right: 4px;
}

.bus-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.bus-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.bus-seat-info {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.bus-schedule {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.departure, .arrival {
    flex: 0 0 auto;
}

.departure h4, .arrival h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.departure p, .arrival p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.duration {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    position: relative;
}

.duration-line {
    width: 100%;
    height: 1px;
    background: var(--gray-300);
    position: relative;
}

.duration-line::before, .duration-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
    top: -2px;
}

.duration-line::before {
    left: 0;
}

.duration-line::after {
    right: 0;
}

.duration-time {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 6px;
    background: white;
    padding: 0 10px;
}

.bus-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.amenity {
    font-size: 0.8rem;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.select-seats-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.select-seats-btn:hover {
    background: var(--primary-dark);
}

/* Sort Controls */
.sort-controls {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-controls label {
    color: #5f6368;
    font-weight: 500;
}

.sort-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    background: white;
    cursor: pointer;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.error-message h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-message p {
    color: #5f6368;
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

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

.app-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.app-button:hover {
    opacity: 0.9;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #5f6368;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 80px 10px 40px;
        width: 100%;
    }

    /* Header and menu for mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        padding: 80px 2rem 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--hover-bg);
    }

    .account-btn {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Rest of mobile styles */
    .search-section {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 8px;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-group {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
    }

    .input-group {
        width: 100%;
    }

    .location-input-container,
    .date-input-container {
        width: 100%;
    }

    .location-input-container input,
    .date-input-container input {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .search-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .swap-btn {
        display: none;
    }

    /* Bus list page specific */
    .bus-list-container {
        padding: 10px 8px 16px;
        width: 100%;
    }

    .search-summary {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .route-info h2 {
        font-size: 1rem;
    }

    .journey-date {
        font-size: 0.75rem;
        margin-top: 0.1rem;
    }

    .modify-search {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }

    .sort-controls {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
    }

    .sort-controls label {
        font-size: 0.8rem;
    }

    .sort-controls select {
        font-size: 0.8rem;
        padding: 0.35rem;
    }

    .bus-card {
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }

    .bus-card-content {
        padding: 0.75rem;
    }

    .bus-main-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .bus-operator {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
    }

    .bus-operator-details {
        flex: 1;
    }

    .bus-price {
        text-align: left;
        margin-top: 10px;
    }

    .bus-ratings-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }

    .bus-price-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .bus-price {
        text-align: right;
    }

    .bus-amenities {
        margin: 0.5rem 0;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .amenity {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        display: inline-block;
        background-color: #f1f3f4;
        color: #5f6368;
        border-radius: 3px;
    }

    .bus-operator {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
    }

    .bus-operator-details {
        flex: 1;
    }

    .bus-type {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .bus-rating {
        font-size: 0.75rem;
        padding: 2px 6px;
    }

    .bus-price-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .bus-price {
        text-align: right;
        font-size: 1.1rem;
    }

    .bus-seat-info {
        font-size: 0.7rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-container {
        padding: 70px 8px 30px;
    }

    nav {
        padding: 0 1rem;
    }

    .nav-links {
        padding: 80px 1.5rem 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.9rem;
    }

    .search-section {
        padding: 1.2rem;
    }

    .search-header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-group {
        padding: 0.8rem;
    }

    .location-input-container input,
    .date-input-container input {
        font-size: 16px;
    }
}

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

.feature, .route-card {
    animation: fadeIn 0.5s ease-out forwards;
}

@media (max-width: 768px) {
    .bus-list-container {
        margin-top: 70px;
    }
    
    .search-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modify-search {
        align-self: flex-start;
    }
    
    .bus-main-info {
        flex-direction: column;
    }
    
    .bus-price {
        text-align: left;
        margin-top: 10px;
    }
    
    .bus-ratings-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }
    
    .bus-price-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .bus-price {
        text-align: right;
    }
    
    .bus-amenities {
        margin: 0.5rem 0;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .amenity {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
        display: inline-block;
        background-color: #f1f3f4;
        color: #5f6368;
        border-radius: 3px;
    }
}
 /* Modern clean design based on Indeed/Uber */
 :root {
    --primary-color: #004aad;
    --primary-light: #e6f0ff;
    --primary-dark: #003580;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.03);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: var(--gray-900);
    line-height: 1.5;
}

/* Hero Section */
.hero {
    padding-top: 96px;
    padding-bottom: 30px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--gray-900);
}

/* Search Box */
.search-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    width: 100%;
}

.form-row {
    display: flex;
    margin-bottom: 16px;
    gap: 16px;
}

.form-group {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 14px 16px;
    padding-left: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.form-icon {
    position: absolute;
    left: 12px;
    top: 45px;
    color: var(--primary-color);
    font-size: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 16px;
}

.swap-icon {
    cursor: pointer;
    width: 36px;
    height: 36px;
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-top: 34px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.2s ease;
    position: relative;
    z-index: 5;
}

.swap-icon:hover {
    background-color: var(--primary-light);
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

.search-button:hover {
    background-color: var(--primary-dark);
}

/* Suggestions dropdown */
.suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    display: none;
}

.suggestions.active {
    display: block !important;
}

.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--gray-100);
}

.suggestion-item .city-name {
    font-weight: 500;
    color: var(--gray-900);
    display: block;
}

.suggestion-item .state-name {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Date styling */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* Feature cards */
.features-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--gray-900);
}

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

.feature-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-desc {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Popular routes */
.routes-section {
    padding: 60px 0;
    background-color: white;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.route-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.route-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.route-info h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 6px;
}

.route-meta {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.route-price {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-price i {
    transition: transform 0.2s ease;
}

.route-card:hover .route-price i {
    transform: translateX(3px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-content {
        padding: 10px 0;
    }
    
    .search-card {
        padding: 24px;
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
        position: relative;
    }
    
    .swap-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 46px;
        height: 46px;
        background-color: white;
        color: var(--primary-color);
        border: 1px solid var(--gray-300);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        z-index: 10;
    }
    
    .swap-icon i {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

/* Footer styles */
.footer {
    background-color: white;
    padding: 60px 0 30px;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gray-900);
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--gray-900);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.app-button i {
    font-size: 20px;
}

.app-button:hover {
    opacity: 0.9;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.9rem;
}
