body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 15px;
    color: #1f2937;
}
.header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: 0 auto 20px auto;
    position: relative;
}
h1 {
    margin: 0 0 15px 0;
    color: #1e3a8a;
    font-size: 24px;
    text-align: center;
}
.secao-filtros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}
@media (max-width: 768px) {
    .secao-filtros { grid-template-columns: 1fr; }
}
.bloco-filtro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
label {
    font-weight: 600;
    font-size: 13.5px;
    color: #4b5563;
}
.input-rua-container {
    display: flex;
    gap: 8px;
}
.input-text {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.btn-gps {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.btn-principal {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    width: 100%;
}
.controles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}
.abas-container {
    display: flex;
    gap: 8px;
}
.aba {
    padding: 8px 16px;
    background: #e5e7eb;
    border: none;
    color: #4b5563;
    font-weight: bold;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.aba.ativa {
    background: #1e3a8a;
    color: white;
}
.filtro-tempo {
    display: flex;
    background: #e5e7eb;
    padding: 4px;
    border-radius: 8px;
}
.btn-tempo {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}
.btn-tempo.ativo {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-busca {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 15px;
    border-radius: 10px;
    font-size: 14.5px;
    display: none;
}
.painel-quadro {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 6px solid #1e3a8a;
}
.quadro-titulo {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1e3a8a;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
}
.tabela-horarios {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.coluna-sentido {
    flex: 1;
    min-width: 280px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.coluna-titulo {
    font-size: 12px;
    font-weight: bold;
    color: #4b5563;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
    background: #edf2f7;
    padding: 6px;
    border-radius: 4px;
}
ul { list-style: none; padding: 0; margin: 0; }
li {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    gap: 10px;
}
li strong { color: #111827; font-size: 15px; }
.nome-linha {
    color: #6b7280;
    flex-grow: 1;
    text-align: left;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge {
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    min-width: 38px;
    text-align: center;
}
.vazio {
    text-align: center;
    color: #9ca3af;
    padding: 15px;
    font-style: italic;
    font-size: 13.5px;
}
.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    z-index: 10;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #1e3a8a;
    font-size: 16px;
}

/* Banner de Disclaimer */
.banner-disclaimer {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 5px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 5px;
}

.disclaimer-icone {
    font-size: 22px;
    line-height: 1;
}

.disclaimer-conteudo strong {
    color: #991b1b;
    font-size: 14.5px;
    display: block;
    margin-bottom: 4px;
}

.disclaimer-conteudo p {
    margin: 0;
    color: #7f1d1d;
    font-size: 13px;
    line-height: 1.5;
}

.disclaimer-conteudo a {
    color: #b91c1c;
    font-weight: bold;
    text-decoration: underline;
}

.disclaimer-conteudo a:hover {
    color: #7f1d1d;
}

@media (max-width: 480px) {
    .banner-disclaimer {
        flex-direction: column;
        gap: 8px;
    }
}

/* Container relativo para o Input e o Botão X */
.wrapper-input-limpar {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Ajuste para o texto não ficar por baixo do X */
.wrapper-input-limpar .input-text {
    padding-right: 35px; 
    width: 100%;
}

/* Botão de Limpar (X) */
.btn-limpar {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Escondido por padrão, aparece via JS */
    line-height: 1;
    padding: 0;
}

.btn-limpar:hover {
    color: #4b5563;
}

/* Container dos botões de Switch */
.switch-direcao {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 15px;
    gap: 4px;
}

/* Botões do Switch */
.btn-direcao {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

/* Botão Ativo (Selecionado) */
.btn-direcao.ativo {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Ajuste fino para o hover nos botões inativos */
.btn-direcao:not(.ativo):hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}