/* ==================== LAYOUT PRINCIPAL ==================== */
.lista-section {
    padding: 40px 0 60px;
    min-height: calc(100vh - 80px);
    background-color: var(--section-bg-color);
}

.lista-section h2 {
    font-size: var(--h3-font-size);
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 8px;
}

.lista-section .subtitulo {
    color: #666;
    font-size: var(--p-font-size);
    margin-bottom: 0;
}

/* ==================== TABS DE TIPO ==================== */
.lista-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.lista-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.lista-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.lista-tab-btn:hover:not(.active) {
    color: var(--primary-color);
}

/* ==================== FILTROS ==================== */
.filtros-container {
    background: #f8f9fa;
    border-radius: var(--border-radius-small);
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filtro-busca {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filtro-busca input {
    padding-left: 38px;
    border-radius: var(--border-radius-small);
    border: 1px solid #ced4da;
    height: 40px;
    font-size: 14px;
    width: 100%;
}

.filtro-busca .bi-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.filtros-temporalidade {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-filtro-tempo {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #ced4da;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filtro-tempo.active,
.btn-filtro-tempo:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-favoritos {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #ced4da;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-favoritos.active,
.btn-favoritos:hover {
    background: #e74c8b;
    border-color: #e74c8b;
    color: white;
}

/* ==================== CARDS DA LISTA ==================== */
.lista-resultados {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-lista {
    background: white;
    border-radius: var(--border-radius-small);
    border: 1px solid #e9ecef;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
    
}

.card-lista:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.card-lista.destaque {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.card-lista-tipo-bar {
    width: 6px;
    flex-shrink: 0;
    background: var(--primary-color);
}

.card-lista-tipo-bar.evento {
    background: #dc3545;
}

.card-lista-tipo-bar.ponto {
    background: #198754;
}

.card-lista-img {
    width: 120px;
    flex-shrink: 0;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

.card-lista-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-lista-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-lista-titulo {
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 6px;
}

.card-lista-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-lista-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.card-lista-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
}

.badge-evento {
    background: #fde8e8;
    color: #dc3545;
}

.badge-ponto {
    background: #e8f5e9;
    color: #198754;
}

.badge-passado {
    background: #e9ecef;
    color: #6c757d;
}

.badge-presente {
    background: #fff3cd;
    color: #856404;
}

.badge-futuro {
    background: #cff4fc;
    color: #055160;
}

.card-lista-data,
.card-lista-local {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-lista-acoes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-favoritar {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s;
}

.btn-favoritar:hover,
.btn-favoritar.favoritado {
    color: #e74c8b;
}

.btn-rota {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-rota:hover {
    background: var(--primary-color);
}

/* ==================== ESTADO VAZIO ==================== */
.lista-vazia {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.lista-vazia i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.lista-vazia p {
    font-size: 16px;
    margin: 0;
}

/* ==================== CONTADOR ==================== */
.lista-contador {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

/* ==================== TOOLTIP ==================== */
.bv-tooltip {
    position: absolute;
    background: white;
    border-radius: var(--border-radius-small);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 14px 16px;
    width: 240px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    border: 1px solid #e9ecef;
}

.bv-tooltip.visivel {
    opacity: 1;
    pointer-events: auto;
}

.bv-tooltip-titulo {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 6px;
}

.bv-tooltip-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bv-tooltip-link {
    margin-top: 10px;
    display: inline-block;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.bv-tooltip-link:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 576px) {
    .filtros-row {
        flex-direction: column;
    }

    .filtro-busca {
        width: 100%;
    }

    /* Ajuste para o card não achatar no mobile */
    .card-lista {
        height: auto; 
    }

    .card-lista-img {
        width: 90px;
    }

    .lista-tabs {
        overflow-x: auto;
    }
}