/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Container for listings */
.listings-container {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Individual listing */
.listing {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: 100%;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px;
}

h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.price {
    font-size: 18px;
    color: #e67e22;
    margin-bottom: 16px;
}

.property-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.icon-item {
    text-align: center;
    flex: 1;
}

.icon-item i {
    font-size: 24px;
    color: #333;
}

.icon-item p {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

button {
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

button i {
    margin-right: 8px;
}

button.view-details {
    background-color: #3498db;
}

button.apply-now {
    background-color: #27ae60;
}

button:hover {
    opacity: 0.9;
}