/* General Reset */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and borders are included in element's total width and height */
}

/* Header */
.header {
    background-color: #004080;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.header .nav {
    display: flex;
    gap: 20px;
}

.header .nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000; /* Fallback color */
}

.hero h1, .hero p {
    position: absolute;
    z-index: 10;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    top: 30%;
}

.hero p {
    top: 50%;
    font-size: 1.5rem;
}

/* Apartment Slider */
.apartment-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

/* Each individual image slide */
.apartment-slider .slide {
    flex-shrink: 0;
    width: calc(100% - 30px);
    height: 100%;
    margin-right: 30px;
}

/* The images inside the slides */
.apartment-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* Container for buttons */
.buttons {
    position: absolute;
    bottom: 20%;
    display: flex;
    gap: 20px;
    z-index: 10;
}

/* Common button styling */
.buttons a {
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Button specific backgrounds */
.buttons .view-apartments {
    background-color: #4CAF50; /* Green */
}

.buttons .contact-us {
    background-color: #2196F3; /* Blue */
}

/* Hover effect for buttons */
.buttons a:hover {
    background-color: #000;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header adjustments */
    .header .logo {
        font-size: 20px; /* Reduce logo font size */
    }

    .header .nav {
        flex-direction: column;
        gap: 10px;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2rem; /* Smaller hero title */
        top: 25%;
    }

    .hero p {
        font-size: 1.2rem; /* Smaller hero paragraph */
        top: 40%;
    }
    
    /* Stack buttons vertically */
    .buttons {
        flex-direction: column;
        bottom: 10%;
    }

    /* Buttons full-width on small screens */
    .buttons a {
        width: 100%;
        text-align: center;
    }

    /* Form input and button adjustments */
    .search-section form input,
    .search-section form select,
    .search-section form button {
        width: 100%; /* Full-width for form elements */
    }

    /* Adjust property card layout */
    .property-cards {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two cards per row */
        gap: 15px;
    }

    .property-card {
        width: 100%; /* Full-width property cards */
    }
}

/* Search Section */
.search-section {
    background-color: #f8f8f8;
    padding: 30px;
    text-align: center;
}

.search-section form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-section form input,
.search-section form select {
    padding: 10px;
    font-size: 16px;
    width: 200px;
}

.search-section form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Featured Properties Section */
.featured-properties {
    padding: 30px;
    text-align: center;
}

.featured-properties h2 {
    margin-bottom: 20px;
}

/* Property Cards */
.property-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.property-card {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .details {
    padding: 15px;
    text-align: left;
}

.property-card .details h4 {
    margin: 0;
    font-size: 18px;
}

.property-card .details p {
    margin: 5px 0;
    font-size: 14px;
}

.property-card .details .price {
    font-size: 20px;
    color: #28a745;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}
