@import 'variables-20251230110953.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Layout */
main {
    max-width: 900px;
    padding: var(--spacing-md);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Typography */
main>section>h1 {
    color: var(--text-color);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

[id^="linhas-onibus"]>h2, #operadoras-list>h2 {
    color: #000;
    margin: var(--spacing-md) 0;
    font-size: var(--font-size-xl);
}

[id^="linhas-onibus"]>h3 {
    color: var(--color-dark-grey);
    margin: 0 0 var(--spacing-sm);
}

main>section>p {
    font-size: var(--font-size-base);
}

/* Lists - Scope to specific sections */
.bus-routes ul {
    list-style: none;
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: var(--spacing-md);
}

.bus-routes ul li {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
    max-width: 90vw;
}

.bus-routes ul li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Links - Scope to specific sections */
.bus-routes ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    height: 100%;
}

.bus-routes ul li a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sections */
.bus-routes {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

/* Media Queries */
@media (max-width: 600px) {
    main>section>h1 {
        font-size: var(--font-size-xl);
    }

    .bus-routes ul {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

form label {
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

form input[type="text"],
form input[type="email"],
form textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    width: 100%;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-md);
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

form button[type="submit"]:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-1px);
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.search-section {
    padding: 0.15rem 0;
    margin: 1rem 0;
    width: 100%;
}

.search-container {
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 0.5rem;
    max-width: 90vw;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0.25rem 0.5rem;
    display: none;
    transition: color 0.2s ease;
}

.clear-search-btn:hover {
    color: #333;
}

.search-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .search-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}