/* Reset and Body */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Page Backgrounds */
.index-bg {
    background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c");
}

.about-bg {
    background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c");
}

.contact-bg {
    background-image: url("https://images.unsplash.com/photo-1605146769289-440113cc3d00");
}

/* Overlay for darkened backgrounds */
.overlay {
    background: rgba(0,0,0,0.65);
    min-height: 100vh;
    padding: 40px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

/* Grid layout for properties */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Card for each property */
.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Property Image */
.card img {
    width: 100%;           /* full width of the card */
    height: 200px;         /* fixed height for uniformity */
    object-fit: cover;     /* scales image nicely without distortion */
    display: block;
}

/* Card Body */
.card-body {
    padding: 15px;
}

/* Price */
.price {
    color: green;
    font-size: 20px;
    font-weight: bold;
}

/* Button */
button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}