/* Base Styles & Variables */
:root {
    --primary: #d32f2f; /* A classic red, stands out */
    --bg-color: #f4f5f7;
    --text-dark: #333;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.header-content p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

#searchInput {
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    width: 100%;
    max-width: 500px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Categories Navigation */
.categories {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Grid Layout for Listings */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Business Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

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

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card .tag {
    display: inline-block;
    background: #e0e0e0;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.card .rating {
    color: #f5b041;
    font-weight: bold;
}
/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    background-color: #e0e0e0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}
:root {
    --primary: #d32f2f; 
    --secondary: #1976d2;
    --bg-color: #f4f5f7;
    --text-dark: #333;
    --text-light: #666;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-dark); }

header { background-color: var(--primary); color: white; padding: 2.5rem 1rem; text-align: center; }
.header-content p { margin-top: 0.5rem; font-size: 1rem; opacity: 0.9; }
#searchInput { margin-top: 1.5rem; padding: 0.8rem 1.2rem; width: 100%; max-width: 500px; border: none; border-radius: 25px; font-size: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* Transit Facts Dashboard */
.transit-facts { max-width: 1200px; margin: -2rem auto 2rem auto; background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); position: relative; width: 90%; }
.transit-facts h2 { text-align: center; font-size: 1.1rem; color: var(--text-light); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.fact-box { padding: 1rem; background: var(--bg-color); border-radius: 8px; border-bottom: 3px solid var(--secondary); }
.fact-number { display: block; font-size: 1.8rem; font-weight: bold; color: var(--primary); }
.fact-label { font-size: 0.85rem; color: var(--text-dark); font-weight: 600; }

.categories { display: flex; justify-content: center; gap: 0.8rem; padding: 0 1rem 1.5rem 1rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.2rem; border: 2px solid var(--primary); background-color: transparent; color: var(--primary); border-radius: 20px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background-color: var(--primary); color: white; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; padding: 0 1.5rem 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; color: var(--text-dark); }
.card .tag { display: inline-block; background: #e0e0e0; padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; margin-bottom: 0.8rem; }
.card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.4rem; line-height: 1.4; }

footer { text-align: center; padding: 2rem 1rem; margin-top: 3rem; background-color: #e0e0e0; color: var(--text-dark); font-size: 0.9rem; }
footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) { .facts-grid { grid-template-columns: 1fr 1fr; } }