body {
    font-family: arial;
    background-color: #f4f4f4;
    margin: 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;  /* Space between the cards */
    max-width: 1300px;  /* Adjust based on your requirements */
    margin: 20px auto;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 300px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    flex: 1 1 calc(25% - 20px);  /* This ensures 4 cards in one row and accounts for the gap */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price {
    color: grey;
    font-size: 22px;
}

.state {
    color: brown;
    font-size: 16px;
}

.card button {
    border: none;
    outline: 0;
    padding: 12px;
    color: white;
    background-color: #000;
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    transition: 0.3s;  /* Adds rounded corners to bottom of button */
}

.card button:hover {
    opacity: 0.7;
}
