/* Grid/List View Toggle Styles */

/* List view styles */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-view > div {
    width: 100% !important;
    max-width: 100%;
}

.list-view .card {
    display: flex;
    flex-direction: row;
    height: auto !important;
}

.list-view .card img,
.list-view .card .card-img-top {
    width: 120px;
    min-width: 120px;
    height: 180px !important;
    border-radius: 0.375rem 0 0 0.375rem;
}

.list-view .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-view .card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* View toggle button styles */
.view-toggle-btns .btn {
    padding: 0.375rem 0.75rem;
}

.view-toggle-btns .btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.view-toggle-btns .btn:not(.active) {
    background-color: transparent;
    color: var(--bs-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-view .card {
        flex-direction: column;
    }

    .list-view .card img,
    .list-view .card .card-img-top {
        width: 100%;
        height: 300px !important;
        border-radius: 0.375rem 0.375rem 0 0;
    }
}
