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

html, body {
    height: 100%;
}

/* Body Styling */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Styling */
#logo img {
    width: 50%;  /* Make logo 50% of its current size */
    height: auto; /* Maintain aspect ratio */
}

/* Listings Container */
.listings-container {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 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);
    border: 1px solid #ccc; /* Thin gray border */
    overflow: hidden;
    height: 100%;
}

/* Property Image */
.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 5px;
}

/* Interior Image */
.interior-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

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

.address-details p {
    font-size: 14px;
    color: #555;
}

.price {
    font-size: 22px; /* Larger rent font size */
    color: #e67e22;
    margin-bottom: 16px;
}

/* Property Details */
.property-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.bed-bath {
    font-size: 18px;
    color: #333;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column; /* Ensure buttons stack vertically */
    gap: 10px;
    width: 100%; /* Make sure the buttons take up full width */
}

button {
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    display: block; /* Make button block-level so it occupies full width */
    width: 100%; /* Ensure button spans full width of container */
    text-align: center; /* Center align text inside button */
}

button i {
    margin-right: 8px;
}

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

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

button:hover {
    opacity: 0.9;
}

/* Style adjustments */
.filter-container {
    margin: 20px 0;
    text-align: center;
    font-size: 1.2em; /* Larger font for filter */
}

.filter-container select {
    font-size: 1.1em; 
    padding: 8px 15px;
}

.no-underline {
    text-decoration: none;
    color: inherit;
}

.city-state-zip {
    font-size: 0.8em;
    color: #888;
}

.property-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.property-badge {
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 10px 20px;
    background: #fff;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

.price-container {
    text-align: center;
    margin: 10px 0;
}

.price {
    font-size: 1.4em;
    font-weight: bold;
}

.address-link {
    color: #004080; /* Deep blue */
    font-weight: bold;
}

.listing-count {
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: center;
}

/* Buttons with light gray background */
.buttons a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
}

.buttons img {
    max-height: 65px; /* Set 30% larger size for Zillow logo */
    max-width: 65px;  /* Set 30% larger size for Zillow logo */
    width: auto;      /* Maintain aspect ratio */
    height: auto;     /* Maintain aspect ratio */
}

.zillow-text {
    font-weight: bold;
    font-size: 1em;
}

/* Apply Now button text style */
.buttons .apply-now a {
    font-weight: bold; /* Make the text bold */
    color: green; /* Set text color to green */
    font-size: 1.4em; /* Make text bigger */
    text-decoration: none;
}