/* =========================================================
   GUIA BUS PRO - ESTILOS DO FRONTEND
   ========================================================= */

/* =========================================================
   TRUQUE CSS: Ocultar Meta Dados do WordPress (Escrito por, Data)
   ========================================================= */
.single-gbc_linha .entry-header,
.single-gbc_linha .entry-meta,
.single-gbc_linha .post-meta,
.single-gbc_linha .post-date,
.single-gbc_linha .post-author,
.single-gbc_linha .wp-block-post-date,
.single-gbc_linha .wp-block-post-author,
.single-gbc_linha .wp-block-post-terms,
.single-gbc_linha .wp-block-post-title,
.single-gbc_linha .comments-area,
.single-gbc_linha #comments {
    display: none !important;
}

/* Garante que o nosso plugin ocupe o espaço corretamente */
.single-gbc_linha .entry-content,
.single-gbc_linha .wp-block-post-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
}

.gbc-card-linha {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Cabeçalho */
.gbc-card-header {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--gbc-cor, #333);
    position: relative;
}

.gbc-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.gbc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.gbc-badge-empresa { background: var(--gbc-cor); color: #fff; }
.gbc-badge-tarifa { background: #e2e8f0; color: #334155; }

.gbc-titulo-linha {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: var(--gbc-cor);
    font-weight: 800;
}

/* Botão Favorito */
.gbc-btn-favorito {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gbc-btn-favorito.ativo {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}
.gbc-btn-favorito.ativo svg { fill: #f59e0b; }

/* Itinerário (Details/Summary) */
.gbc-itinerario-box {
    border-bottom: 1px solid #e2e8f0;
}
.gbc-details { padding: 0; }
.gbc-details summary {
    display: flex; align-items: center; gap: 8px;
    padding: 15px 20px; background: #f1f5f9;
    font-size: 0.85rem; font-weight: 700; color: #475569;
    cursor: pointer; list-style: none;
}
.gbc-details summary::-webkit-details-marker { display: none; }
.gbc-details-content {
    padding: 15px 20px; background: #fff;
    font-size: 0.85rem; color: #334155; line-height: 1.5;
}
.gbc-details-content p { margin: 5px 0; }

/* Sistema de Abas */
.gbc-tabs {
    display: flex; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.gbc-tab-btn {
    flex: 1; padding: 15px 5px; border: none; background: transparent;
    font-size: 0.85rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; cursor: pointer; transition: 0.3s;
}
.gbc-tab-btn.active {
    background: #fff; color: var(--gbc-cor);
    border-bottom: 3px solid var(--gbc-cor);
}
.gbc-tab-content { display: none; animation: gbcFadeIn 0.3s ease; }
.gbc-tab-content.active { display: block; }

@keyframes gbcFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Tabela de Horários */
.gbc-table { width: 100%; border-collapse: collapse; }
.gbc-table th {
    background: var(--gbc-cor); color: #fff;
    padding: 10px; font-size: 0.75rem; text-transform: uppercase; width: 50%;
}
.gbc-table td {
    padding: 10px 5px; text-align: center;
    border-bottom: 1px solid #f1f5f9; width: 50%; vertical-align: top;
}
.gbc-table td:first-child, .gbc-table th:first-child { border-right: 2px solid #e2e8f0; }

/* Caixas de Tempo */
.gbc-time-box {
    display: inline-block; background: #ffffff;
    border: 1px solid #cbd5e1; padding: 6px 12px;
    border-radius: 6px; font-weight: 700; color: #334155;
    font-size: 0.95rem; transition: all 0.3s ease;
    position: relative;
}

/* O PRÓXIMO ÔNIBUS */
.gbc-time-box.gbc-next {
    background: #22c55e !important; color: #fff !important;
    border-color: #16a34a !important; transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); z-index: 2;
}
.gbc-time-box.gbc-next::after {
    content: 'PRÓXIMO'; position: absolute;
    top: -8px; left: 50%; transform: translateX(-50%);
    background: #15803d; font-size: 0.5rem;
    padding: 2px 6px; border-radius: 4px; color: #fff;
    letter-spacing: 0.5px;
}

/* Rodapé Informativo */
.gbc-informacoes-uteis {
    padding: 20px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.gbc-info-item {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.75rem; color: #64748b; line-height: 1.5;
    margin-bottom: 10px;
}
.gbc-info-item:last-child { margin-bottom: 0; }
.gbc-info-item svg { flex-shrink: 0; stroke: #94a3b8; }
/* =========================================================
   ESTILOS - PESQUISA, DIRETÓRIO E CIDADES
   ========================================================= */

/* Barra de Pesquisa */
.gbc-pesquisa-container { position: relative; max-width: 500px; margin: 0 auto; }
.gbc-pesquisa-box { display: flex; align-items: center; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px 15px; transition: 0.3s; }
.gbc-pesquisa-box:focus-within { border-color: #3b82f6; box-shadow: 0 4px 12px rgba(59,130,246,0.15); }
.gbc-pesquisa-box input { border: none; outline: none; width: 100%; margin-left: 10px; font-size: 1rem; color: #334155; background: transparent; }
.gbc-resultados-dropdown { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: none; z-index: 100; overflow: hidden; border: 1px solid #e2e8f0; }
.gbc-resultados-dropdown a { display: flex; align-items: center; gap: 10px; padding: 15px; color: #334155; text-decoration: none; border-bottom: 1px solid #f1f5f9; font-weight: 600; transition: 0.2s; }
.gbc-resultados-dropdown a:hover { background: #f8fafc; color: #3b82f6; padding-left: 20px; }
.gbc-pesquisa-vazio { padding: 15px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* Diretório (Filtros e Grelha) */
.gbc-diretorio-filtros { margin-bottom: 20px; }
#gbc-filtro-texto { width: 100%; padding: 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; margin-bottom: 15px; box-sizing: border-box; }
.gbc-diretorio-abas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.gbc-aba-empresa { padding: 8px 16px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 20px; cursor: pointer; font-weight: 600; color: #64748b; transition: 0.3s; }
.gbc-aba-empresa.active { background: #334155; color: #fff; border-color: #334155; }

.gbc-grelha-linhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.gbc-card-resumo { display: flex; align-items: stretch; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: 0.3s; }
.gbc-card-resumo:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.gbc-card-resumo-cor { width: 10px; flex-shrink: 0; }
.gbc-card-resumo-info { padding: 15px; }
.gbc-card-resumo-info h3 { margin: 0 0 5px 0; font-size: 1rem; color: #1e293b; }
.gbc-card-resumo-info span { font-size: 0.8rem; color: #64748b; font-weight: 600; text-transform: uppercase; }

/* Cidades (Multicidades) */
.gbc-grelha-cidades { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.gbc-card-cidade { background: #fff; padding: 30px 20px; border-radius: 16px; text-align: center; text-decoration: none; color: #334155; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: 0.3s; }
.gbc-card-cidade:hover { border-color: #3b82f6; transform: translateY(-5px); }
.gbc-card-cidade svg { stroke: #3b82f6; margin-bottom: 15px; }
.gbc-card-cidade h3 { margin: 0 0 5px 0; font-size: 1.25rem; }
.gbc-card-cidade span { font-size: 0.85rem; color: #64748b; }