/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

/* Header / Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(5px);
    padding: 5px 0;
    z-index: 999;
}


/* Hero Section */
.hero {
    background: linear-gradient(
        rgba(0, 0, 0, 0.5), 
        rgba(0, 0, 0, 0.5)
    ), url('/static/images/detroit10.jpg') center top / cover no-repeat;

    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;

    animation: zoomOut 5s ease forwards;
}



/* Define the animation */
@keyframes zoomOut {
    0% {
        background-size: 120%;
    }
    100% {
        background-size: 100%;
    }
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.btn {
    background-color: #001f3f;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #C9A065;
    transform: scale(1.05);
}

/* Featured Listings */
.featured-listings {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.featured-listings h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.listings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.listing-card {
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
    padding-bottom: 20px;
}

.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-card h3 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.listing-card p {
    margin-bottom: 15px;
    color: #666;
}

/* About Us */
.about {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    font-size: 20px;
}

.text-column {
    flex: 1 1 500px;
}

.image-column {
    flex: 1 1 500px;
}

.image-column img {
    width: 100%;
    border-radius: 10px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.why-choose-us ul {
    list-style: none;
    max-width: 700px;
    margin: auto;
    text-align: left;
    font-size: 20px;
}

.why-choose-us ul li {
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    background-color: #001f3f;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.testimonials h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
}

.testimonial {
    font-size: 20px;
    max-width: 800px;
    margin: auto;
}

.testimonial span {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    color: #C9A065;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 16px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-content div {
    margin-bottom: 20px;
}

.footer-content a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
    font-size: 16px;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content p {
    font-size: 14px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    .listings-grid {
        flex-direction: column;
        align-items: center;
    }
    .about-content {
        flex-direction: column;
    }
    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
    }
}

.contact-main {
    padding: 60px 20px;
    background-color: #ffffff;
}

.contact-form-section {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.contact-form-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.contact-form-section p {
    font-size: 25px;
    
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form label {
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

.contact-form button {
    margin-top: 10px;
}

/* Thank You Page */
.thank-you-section {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: #f8f9fa;
    color: #333;
    padding: 0 20px;
}

.thank-you-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.thank-you-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.carousel {
    width: 100%;
    max-width: 600px; /* Nice readable size */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.carousel-grid {
    display: flex;
    transition: transform 1.0s ease-in-out;
}

.carousel-grid .listing-card {
    flex: 0 0 100%; /* 👈 Each card takes 100% of the .carousel width */
    max-width: 100%; /* 👈 Prevent it from overflowing */
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.carousel-grid .listing-card img {
    width: 100%;         /* Make image fill the card horizontally */
    height: 250px;       /* Set a nice fixed height */
    object-fit: contain;   /* Make sure the image covers the box without stretching */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery a img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery a img:hover {
    transform: scale(1.05);
}

.contact-main h1, h2 {
    font-size: 32px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.listing-main {
    padding: 20px;
}

.listing-title {
    font-size: 32px;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.property-details {
    text-align: center;
    font-size: 25px;
    color: #666;
    margin-bottom: 20px;
}

.property-description {
    background-color: #f9f9f9 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    font-size: 25px !important;
    line-height: 1.7 !important;
    color: #333 !important;
    margin-top: 20px !important;
}


.requirements {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.requirements h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: #2c3e50;
}

.requirements ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 25px;
    line-height: 1.6;
}

.requirements li {
    margin-bottom: 10px;
}

.requirements a {
    color: #0077cc;
    text-decoration: underline;
}

.requirements a:hover {
    color: #005fa3;
}
.listings-page {
    padding: 20px;
}

.listings-page h1, .listings-page h2 {
    text-align: center;
    margin-bottom: 20px;
}
.listings-page p{
    font-size: 50px;
}

.listings-grid .listing-thumb {
    width: 125px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 8px;
}


.listing-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}



.listing-info {
    padding: 15px;
}

.listing-info h3 {
    margin: 0 0 10px 0;
}

.listing-info p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #555;
}

.listing-info .btn {
    background: #0077cc;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s;
}

.listing-info .btn:hover {
    background: #005fa3;
}

.section-divider {
    border: none;
    height: 2px;
    background-color: #eee;
    margin: 40px auto;
    width: 80%;
}
.contact-links {
    margin-top: 20px;
}

.contact-links h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.contact-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.contact-links a:hover {
    text-decoration: underline;
}

.mortgage-affiliate p {
    font-size: 25px;

}

.rental-list {
    font-size: 25px;
    line-height: 1.7;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;
}

.logo img.logo-img {
    height: 80px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}
img {
    max-width: 100%;
    height: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        background-color: rgba(51, 51, 51, 0.95);
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .nav-links.show {
        display: flex;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filters a {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #f8f8f8;
}

.filters a:hover {
    background-color: #e2e6ea;
    border-color: #bbb;
}

.filters a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

