/* GRID VIEW */

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.plant-item {
    width: 100%;
}

.plant-card {
    width: 100%;
    height: 100%;
}

.plant-card .card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.plant-card .card-body {
    flex-direction: column;
}
.list-only {
    display: none;
}

/* LIST VIEW */

.plant-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plant-grid.list-view .list-only {
    display: block;
    margin-top: 1rem;
}

.plant-grid.list-view .plant-item {
    width: 100%;
}

.plant-grid.list-view .plant-card {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.plant-grid.list-view .card-img-top {
    width: 250px;
    min-width: 250px;
    height: 250px;
    object-fit: cover;
}

.plant-grid.list-view .card-body {
    flex: 1;
    padding: 1.5rem;
    text-align: left;
    justify-content: center;
}

.plant-grid.list-view .btn {
    width: fit-content;
}

/* MOBILE */

@media (max-width: 768px) {

    .plant-grid.list-view .plant-card {
        flex-direction: column;
    }

    .plant-grid.list-view .card-img-top {
        width: 100%;
        height: 250px;
    }

}