/* Styles for the enhanced bus-stop.html page */

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
}

/* Navigation */
.main-nav {
    background-color: #663399;
    padding: 15px 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero-section {
    background-color: #663399;
    color: white;
    text-align: center;
    padding: 40px 20px 60px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#search {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #663399;
}

/* Main content */
main {
    max-width: 1200px;
    margin: -30px auto 40px;
    padding: 0 20px;
}

.directory-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.directory-section h2 {
    color: #663399;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.directory-section p {
    margin-bottom: 20px;
    color: #666;
}

/* Table styles */
#busStopsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#busStopsTable th {
    background-color: #663399;
    color: white;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

#busStopsTable td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

#busStopsTable tbody tr:hover {
    background-color: #f9f9f9;
}

#busStopsTable a {
    color: #007bff;
    text-decoration: none;
}

#busStopsTable a:hover {
    text-decoration: underline;
}

/* Features section */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    color: #663399;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

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

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.feature-card i {
    font-size: 2rem;
    color: #663399;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #ccc;
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section a:hover {
    color: white;
}

.social-links li a {
    display: flex;
    align-items: center;
}

.social-links li i {
    margin-right: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    #busStopsTable {
        display: block;
        overflow-x: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
