/* Bus Database Page Styles */
.manufacturer-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.manufacturer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem;
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color, #333);
    position: relative;
    min-height: 180px;
}

.manufacturer-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #0d6efd);
    color: var(--primary-color, #0d6efd);
}

.manufacturer-btn.active {
    border-color: var(--primary-color, #0d6efd);
    background: var(--primary-bg-subtle, rgba(13, 110, 253, 0.1));
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.manufacturer-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.manufacturer-btn:hover .manufacturer-logo {
    opacity: 1;
}

.manufacturer-name {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.3;
}

.manufacturer-count {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.25rem;
}

.view-all-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem;
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color, #333);
    min-height: 180px;
}

.view-all-btn:hover {
    transform: translateY(-4px);
    border-color: var(--success-color, #198754);
    color: var(--success-color, #198754);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.view-all-btn.active {
    border-color: var(--success-color, #198754);
    background: var(--success-bg-subtle, rgba(25, 135, 84, 0.1));
    border-style: solid;
}

.view-all-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.view-all-btn:hover .view-all-icon {
    opacity: 1;
}

/* Dark theme support */
.theme-dark .manufacturer-btn,
.theme-dark .view-all-btn {
    background: var(--bg-card);
    border-color: #ffffff;
    color: var(--text-color);
}

.theme-dark .manufacturer-btn:hover,
.theme-dark .view-all-btn:hover {
    border-color: #ffffff;
}

.theme-dark .btn-primary {
    color: #fff !important;
}

/* Table row spacing */
#publicBusesTable {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

#publicBusesTable thead th {
    padding-bottom: 0.75rem;
}

#publicBusesTable tbody tr {
    margin-bottom: 0.75rem;
}

#publicBusesTable tbody tr td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Dark theme table spacing */
.theme-dark #publicBusesTable {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.theme-dark #publicBusesTable thead th {
    padding-bottom: 0.75rem;
}

.theme-dark #publicBusesTable tbody tr {
    margin-bottom: 0.75rem;
}

.theme-dark #publicBusesTable tbody tr td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .manufacturer-filters {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .manufacturer-btn,
    .view-all-btn {
        padding: 1.25rem 0.75rem;
        min-height: 150px;
    }
    
    .manufacturer-logo {
        width: 90px;
        height: 90px;
    }
    
    .manufacturer-name {
        font-size: 0.9rem;
    }
    
    .view-all-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .manufacturer-filters {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .manufacturer-btn,
    .view-all-btn {
        padding: 1rem 0.5rem;
        min-height: 130px;
    }
    
    .manufacturer-logo {
        width: 70px;
        height: 70px;
    }
    
    .manufacturer-name {
        font-size: 0.85rem;
    }
    
    .view-all-icon {
        font-size: 2.5rem;
    }
}
