/* Center the title */
h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

/* Center the listings container */
#listings-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers horizontally */
    align-items: stretch; /* Ensures all cards stretch to the same height */
    gap: 20px; /* Adds spacing between cards */
}

/* Style for individual listing cards */
.listing {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px; /* Fixed width */
    text-align: center; /* Centers text inside card */
    
    display: flex;
    flex-direction: column; /* Ensures content is stacked */
    justify-content: space-between; /* Distributes content evenly */
    height: 100%; /* Makes sure all cards take full height */
}

/* Ensures images don’t affect card heights differently */
.images img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image fills area properly */
    border-radius: 5px;
    margin-top: 10px;
}
