/* ODC Campinas EMDEC v2.0.0 Front Styles */
.odcc-horarios-container {
    display: grid;
    gap: 18px;
    margin: 16px 0 24px;
}
.odcc-sentido-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.odcc-sentido-header {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}
.odcc-periodo-bloco {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
}
.odcc-periodo-titulo {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 10px;
}
.odcc-periodo-titulo small {
    font-weight: 500;
    color: #64748b;
}
.odcc-grade-horarios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.odcc-time-chip {
    display: inline-flex;
    align-items: baseline;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}
.odcc-time-code {
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    margin-left: 2px;
}

/* Leaflet 2.0 Map + Direction Filter */
.odcc-map-wrapper {
    margin: 16px 0 24px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}
.odcc-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.odcc-map-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.odcc-map-filter-btn:hover {
    border-color: #0b5ed7;
}
.odcc-map-filter-btn.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.odcc-sense-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.odcc-leaflet-canvas {
    width: 100%;
    height: 430px;
    z-index: 1;
}
.odcc-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 9px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12.5px;
    color: #475569;
}
.odcc-map-legend i {
    display: inline-block;
    width: 14px;
    height: 4px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}
.odcc-dir-arrow {
    background: transparent !important;
    border: none !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 3px #ffffff, 0 0 3px #ffffff;
    pointer-events: none;
}

/* Global Search & Hubs */
.odcc-global-search-widget {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0 24px;
}
.odcc-search-controls {
    display: grid;
    grid-template-columns: 1fr minmax(210px, 260px);
    gap: 10px;
}
@media (max-width: 680px) {
    .odcc-search-controls {
        grid-template-columns: 1fr;
    }
}
.odcc-search-input,
.odcc-search-terminal {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
}
.odcc-search-status {
    font-size: 13px;
    color: #475569;
    margin: 10px 0 12px;
}
.odcc-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.odcc-line-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.odcc-line-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.odcc-line-pill {
    background: #0b5ed7;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.odcc-line-card-title {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}
.odcc-line-card-title a {
    color: #0f172a;
    text-decoration: none;
}
.odcc-line-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.odcc-mini-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 11.5px;
    padding: 2px 7px;
    border-radius: 999px;
}
.odcc-line-card-next,
.odcc-line-card-streets {
    font-size: 12.5px;
    color: #475569;
}
.odcc-line-card-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #0b5ed7;
    text-decoration: none;
}


/* Catálogo Completo de Linhas [odcc_todas_linhas] */
.odcc-catalogo-wrapper {
    margin: 20px 0 28px;
}
.odcc-catalogo-titulo {
    margin: 0 0 14px;
    font-size: 1.45em;
    color: #0f172a;
}
.odcc-catalogo-controles {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: grid;
    gap: 12px;
}
.odcc-catalogo-search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}
.odcc-catalogo-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
}
.odcc-catalogo-search-input:focus {
    outline: 2px solid #2563eb;
    border-color: #2563eb;
}
.odcc-catalogo-clear-btn {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.odcc-catalogo-clear-btn:hover {
    background: #e2e8f0;
}
.odcc-catalogo-area-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.odcc-area-pill {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.odcc-area-pill:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}
.odcc-area-pill.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}
.odcc-catalogo-status {
    font-size: 13px;
    color: #475569;
}
.odcc-catalogo-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}
.odcc-catalogo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    margin: 0;
}
.odcc-catalogo-table thead tr {
    background: #f1f5f9;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
}
.odcc-catalogo-table th,
.odcc-catalogo-table td {
    padding: 10px 12px;
    vertical-align: middle;
}
.odcc-catalogo-row {
    border-bottom: 1px solid #e2e8f0;
}
.odcc-catalogo-row:hover {
    background: #f8fafc;
}
.odcc-col-linha a,
.odcc-linha-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    color: #ffffff;
    background: #334155;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: opacity 0.15s ease, transform 0.1s ease;
}
.odcc-col-linha a:hover,
.odcc-linha-pill:hover {
    opacity: 0.92;
}
.odcc-badge-prefixo-1 { background: #2563eb !important; color: #ffffff !important; }
.odcc-badge-prefixo-2 { background: #dc2626 !important; color: #ffffff !important; }
.odcc-badge-prefixo-3 { background: #16a34a !important; color: #ffffff !important; }
.odcc-badge-prefixo-4 { background: #1e3a8a !important; color: #ffffff !important; }
.odcc-badge-prefixo-5 { background: #16a34a !important; color: #ffffff !important; }
.odcc-badge-corujao   { background: #ea580c !important; color: #ffffff !important; }
.odcc-linha-link {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    display: inline-block;
}
.odcc-linha-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.odcc-linha-sentido {
    display: block;
    font-size: 0.85em;
    color: #475569;
    margin-top: 2px;
}
.odcc-area-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.82em;
    font-weight: 600;
}
.odcc-btn-ver-horarios {
    display: inline-block;
    padding: 5px 11px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
.odcc-btn-ver-horarios:hover {
    background: #1d4ed8;
}
.odcc-catalogo-empty-filter {
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    font-weight: 500;
}
@media (max-width: 680px) {
    .odcc-col-area {
        display: none;
    }
}


/* Caixa de Pesquisa Instantânea via AJAX [odcc_busca_linha] */
.odcc-ajax-search-box {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 16px 0 22px;
    z-index: 40;
}
.odcc-ajax-search-label {
    display: block;
    font-weight: 700;
    font-size: 0.95em;
    color: #0f172a;
    margin-bottom: 6px;
}
.odcc-ajax-search-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.odcc-ajax-search-field-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.odcc-ajax-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 13px;
    color: #64748b;
    pointer-events: none;
}
.odcc-ajax-search-input {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    padding: 12px 12px 12px 10px !important;
    font-size: 15.5px !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}
.odcc-ajax-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.odcc-ajax-search-spinner {
    width: 17px;
    height: 17px;
    margin-right: 10px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: odcc-spin 0.65s linear infinite;
    flex-shrink: 0;
}
@keyframes odcc-spin {
    to { transform: rotate(360deg); }
}
.odcc-ajax-search-clear {
    border: 0;
    background: #e2e8f0;
    color: #334155;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.odcc-ajax-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}
.odcc-ajax-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    max-height: 360px;
    overflow-y: auto;
    z-index: 999;
}
.odcc-ajax-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.12s ease;
}
.odcc-ajax-result-item:last-child {
    border-bottom: 0;
}
.odcc-ajax-result-item:hover,
.odcc-ajax-result-item.is-highlighted {
    background: #eff6ff;
}
.odcc-ajax-result-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px 8px;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92em;
    flex-shrink: 0;
}
.odcc-ajax-result-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.odcc-ajax-result-name {
    font-size: 0.96em;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.odcc-ajax-result-sense {
    font-size: 0.82em;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.odcc-ajax-result-go {
    font-size: 0.82em;
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
    flex-shrink: 0;
}
.odcc-ajax-result-empty {
    padding: 14px 16px;
    font-size: 0.92em;
    color: #475569;
    text-align: center;
}

.odcc-catalogo-row[hidden],
.odcc-catalogo-table-wrap[hidden],
.odcc-catalogo-empty-filter[hidden],
.odcc-catalogo-clear-btn[hidden] {
    display: none !important;
}


/* Hub de Terminais e Corredores [odcc_terminal] */
.odcc-terminal-header {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 14px 16px;
}
.odcc-terminal-desc {
    margin: 4px 0 10px;
    color: #334155;
    font-size: 0.95em;
}
.odcc-terminal-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.odcc-terminal-tag {
    display: inline-block;
    padding: 3px 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.82em;
    color: #1e293b;
}


