/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use the same gradient as the body for a seamless transition */
    background: linear-gradient(120deg, #102542, #f87060);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Ensure it's on top of everything */
    transition: opacity 0.5s ease; /* Smooth fade-out */
}

.loader {
    border: 8px solid rgba(255, 255, 255, 0.3); /* Light border for the circle */
    border-top: 8px solid #f87060; /* Colored part of the spinner */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite; /* Spinning animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Rest of your existing CSS (from previous response) --- */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #102542, #f87060); /* Your existing gradient */
    min-height: 100vh;
    display: flex; /* Use flexbox for overall layout */
    flex-direction: column;
    justify-content: space-between; /* Pushes footer to bottom */
    color: #fff; /* Default text color for body */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.15); /* Slightly less opaque for better blend */
    backdrop-filter: blur(12px); /* Increased blur for more depth */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.25); /* Stronger border for separation */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for lift */
    position: sticky; /* Make navbar sticky */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
}

.logo {
    color: #fff;
    font-size: 24px; /* Slightly larger logo */
    font-weight: 700; /* Bolder for impact */
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px; /* Increased gap for better spacing */
    list-style: none;
    transition: transform 0.3s ease-in-out; /* Smooth transition for mobile menu */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px; /* Slightly larger font size */
    padding: 5px 0; /* Add padding for better hover area */
    position: relative; /* For underline effect */
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f87060; /* Highlight color for underline */
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after { /* Added active state */
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active { /* Added active state */
    color: #f87060; /* Color change on hover */
}

/* Burger Menu (for mobile) */
.burger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Container and Forms (for login/register popups) */
/* The .container class should primarily be used for layout, not necessarily for the glassy effect directly */
.container {
    flex-grow: 1; /* Allows container to take available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add some padding around the container */
}

.glassy {
    background: rgba(255, 255, 255, 0.1); /* Slightly more transparent */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Stronger border */
    backdrop-filter: blur(15px); /* Increased blur for a softer look */
    border-radius: 20px; /* More rounded corners */
    padding: 40px; /* Increased padding */
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    animation: fadeIn 1s ease-out; /* Fade in animation */
    width: 100%; /* Ensure it takes full width on smaller screens */
    max-width: 450px; /* Increased max-width for forms */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-box h2,
.popup-content h3 {
    text-align: center;
    margin-bottom: 30px; /* Increased margin */
    color: #fff;
    font-weight: 600;
    font-size: 28px; /* Larger headings */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
}

.input-icon {
    position: relative;
    margin-bottom: 25px; /* Increased margin between inputs */
}

.input-icon i {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 15px; /* Adjust left position */
    transform: translateY(-50%); /* Fine-tune vertical alignment */
    color: #f87060; /* Icon color */
    font-size: 18px; /* Slightly larger icons */
}

input,
select,
textarea { /* Apply styles to textarea as well */
    width: 100%;
    padding: 15px 15px 15px 45px; /* Adjust padding for icon */
    border: 1px solid rgba(255,255,255,0.3); /* Subtle border for inputs */
    border-radius: 10px; /* More rounded input fields */
    background: rgba(255,255,255,0.25); /* Slightly less opaque background */
    color: #fff;
    outline: none;
    font-size: 16px; /* Larger font size for inputs */
    transition: all 0.3s ease; /* Smooth transition on focus */
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255,255,255,0.35); /* Slightly brighter on focus */
    border-color: #f87060; /* Highlight border on focus */
    box-shadow: 0 0 8px rgba(248, 112, 96, 0.5); /* Soft glow on focus */
}

input::placeholder,
textarea::placeholder {
    color: #e0e0e0; /* Lighter placeholder text */
    opacity: 0.8;
}

select {
    appearance: none; /* Remove default select arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom arrow for select. Ensure this SVG is correctly encoded for CSS. */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20fill%3D%22%23f87060%22%20d%3D%22M205.66%2099.34L128%20177l-77.66-77.66a8%208%200%200%200-11.32%2011.32l83.33%2083.34a8%208%200%200%200%2011.32%200l83.33-83.34a8%208%200%200%200-11.32-11.32z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    padding-right: 40px; /* Space for custom arrow */
}

textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px; /* Minimum height for textarea */
    /* Only apply padding-left if an icon is truly used for textarea */
    /* If no icon for textarea, remove padding-left: 45px; and padding-top: 15px; */
    /* Otherwise, padding: 15px; might be enough. */
    /* For consistency with input-icon structure, you might put textarea in input-icon div */
    padding-left: 45px; /* Adjust for icon, assuming textarea also uses input-icon wrapper */
    padding-top: 15px; /* Adjust for content, assuming textarea also uses input-icon wrapper */
}

.btn {
    width: 100%;
    background: #f87060;
    color: #fff;
    border: none;
    padding: 15px; /* Increased padding */
    border-radius: 10px; /* More rounded button */
    font-weight: 700; /* Bolder font */
    font-size: 17px; /* Larger font size */
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transitions */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(248, 112, 96, 0.4); /* Button shadow */
}

.btn:hover {
    background: #102542;
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(16, 37, 66, 0.4); /* Deeper shadow on hover */
}

.form-links {
    margin-top: 25px; /* Increased margin */
    text-align: center;
    display: flex; /* Use flexbox for links */
    justify-content: space-around; /* Distribute links evenly */
    flex-wrap: wrap; /* Allow links to wrap on smaller screens */
    gap: 10px; /* Gap between links */
}

.form-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.form-links a:hover {
    color: #f87060; /* Highlight on hover */
    text-decoration: underline;
}

/* Popups */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 37, 66, 0.9); /* Slightly darker overlay */
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Higher z-index for popups */
    opacity: 0; /* For fade in/out animation */
    transition: opacity 0.3s ease;
}

.popup.show { /* Class added by JS to show popup */
    opacity: 1;
    display: flex;
}

.popup-content {
    width: 90%;
    max-width: 500px; /* Increased max-width for popup forms */
    padding: 35px; /* Increased padding */
    position: relative;
    transform: translateY(-20px); /* For slide-in effect */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup.show .popup-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 20px; /* Adjust position */
    top: 15px; /* Adjust position */
    font-size: 28px; /* Larger close icon */
    color: #f87060;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: rotate(90deg); /* Rotate on hover */
    color: #fff;
}

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); /* Slightly increased blur */
    text-align: center;
    padding: 20px; /* Increased padding */
    font-size: 15px; /* Slightly larger font */
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.15); /* Subtle top border */
    margin-top: auto; /* Pushes footer to the bottom */
}

.footer a {
    color: #f87060;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- New Page Specific Styles (Corrected) --- */

.page-content {
    flex-grow: 1; /* Allows content to take available space */
    width: 100%;
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center content */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between sections */
    /* IMPORTANT: If you have a .admin-login-page specific style that sets background images/overlays,
       ensure those styles override or coexist correctly with this general .page-content.
       The admin-login-page background styles will apply to its specific main content area.
    */
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05); /* Very subtle glassy background for hero */
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2,
.section-heading {
    font-size: 2.5em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header p,
.section-subheading {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Available Houses Grid */
.houses-grid-section {
    padding: 40px 0; /* Padding inside the section */
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0; /* Padding around the grid items */
}

.house-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Ensure the glassy effect is applied here as well, if it's meant to be. */
    /* Add 'glassy' class to the house-card div in HTML, or add these properties: */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* backdrop-filter: blur(15px); */
    /* border-radius: 20px; */ /* Adjusted from 18px for consistency with .glassy */
    /* box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2); */
}

.house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.3);
}

.house-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensure consistency with .house-card border-radius */
    border-radius: 20px 20px 0 0; /* Adjusted from 18px for consistency with .glassy */
}

.card-content {
    padding: 25px;
    flex-grow: 1; /* Ensures content takes available space */
    display: flex; /* Added for correct button alignment */
    flex-direction: column; /* Added for correct button alignment */
}

.house-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #f87060;
    font-weight: 600;
}

.house-location {
    font-size: 1.0em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.house-location i {
    margin-right: 8px;
    color: #f87060; /* Changed to #f87060 for consistency with other icons/accents */
}

.house-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.house-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take up available space */
    overflow: hidden; /* Hide overflow if description is too long */
    text-overflow: ellipsis; /* Add ellipsis if text is cut off */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.house-features {
    margin-top: 10px; /* Adjusted margin */
    margin-bottom: 15px; /* Adjusted margin */
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.house-features span {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    color: #fff;
    display: flex;
    align-items: center;
}

.house-features span i {
    margin-right: 7px;
    color: #f87060;
}

.view-details-btn {
    margin-top: auto; /* Push button to bottom */
    width: 100%; /* Make button full width of card content */
    padding: 12px 20px; /* Adjusted padding for a better look */
    font-size: 1em; /* Adjusted font size */
    /* Removed align-self: flex-start; as width:100% makes it unnecessary and it was conflicting. */
}


/* About Us Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    margin-bottom: 30px;
    /* Consider adding glassy styles here if it's intended to be a glassy container */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border-radius: 20px; */
    /* backdrop-filter: blur(15px); */
    /* box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2); */
}

.about-section.reverse-layout {
    flex-direction: row-reverse; /* Reverse order for alternating sections */
}

.about-content {
    flex: 1;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1em;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glassy-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px; /* Consistent border radius */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease;
}

.glassy-image:hover {
    transform: scale(1.02);
}

.team-section {
    text-align: center;
    padding: 40px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Consider applying glassy effect here as well */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border-radius: 20px; */
    /* backdrop-filter: blur(15px); */
    /* box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2); */
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.3);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #f87060;
    box-shadow: 0 0 15px rgba(248, 112, 96, 0.5);
}

.team-member h3 {
    font-size: 1.6em;
    color: #f87060;
    margin-bottom: 5px;
}

.member-title {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
}

.member-bio {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Contact Us Section */
.contact-section {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    padding: 40px 0;
    justify-content: center;
}

.contact-form-container,
.contact-info-container {
    flex: 1;
    min-width: 300px; /* Minimum width for flex items */
    padding: 40px;
    /* Apply glassy effect directly here if they are meant to be glassy */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border-radius: 20px; */
    /* backdrop-filter: blur(15px); */
    /* box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2); */
}

/* If textarea is within .input-icon, the padding will be handled. */
/* If it's not, you might want to adjust its padding manually. */
.contact-form textarea {
    /* If NOT within .input-icon: */
    /* padding: 15px; */
    /* Otherwise, remove this specific override if .input-icon padding handles it */
    padding-left: 15px; /* Adjust for textarea as it doesn't typically have an icon in contact form */
}


.contact-info-container .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-container .info-item i {
    color: #f87060;
    font-size: 1.4em;
    margin-right: 15px;
    width: 30px; /* Fixed width for icon alignment */
    text-align: center;
}

.social-heading {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left; /* Align to left within its container */
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Align to left within its container */
}

.social-links a {
    color: #fff;
    font-size: 2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #f87060;
    transform: translateY(-3px);
}

.map-section {
    padding: 40px;
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px;
    overflow: hidden; /* Ensure image doesn't overflow */
    position: relative; /* Needed for absolute positioning of text */
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    border-radius: 15px;
}

.map-text {
    position: absolute; /* Position text over image */
    color: #fff;
    font-size: 1.8em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1; /* Ensure text is above image */
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 25px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: rgba(16, 37, 66, 0.95);
        position: absolute; /* Changed from fixed to absolute for better flow within header */
        top: 60px; /* Aligns below the navbar */
        left: 0;
        transform: translateX(-100%);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .burger-menu {
        display: block;
    }

    /* Burger animation */
    .burger-menu.toggle .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-menu.toggle .bar2 {
        opacity: 0;
    }

    .burger-menu.toggle .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .container {
        margin: 30px auto;
        padding: 15px;
    }

    .glassy {
        padding: 30px;
    }

    .form-box h2,
    .popup-content h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    input,
    select,
    textarea {
        padding: 12px 12px 12px 40px;
        font-size: 15px;
    }

    .input-icon i {
        font-size: 16px;
        left: 12px;
    }

    .btn {
        padding: 12px;
        font-size: 16px;
    }

    .form-links {
        flex-direction: column;
        gap: 8px;
    }

    .popup-content {
        padding: 25px;
    }

    .close {
        font-size: 24px;
        right: 15px;
        top: 10px;
    }

    /* New Page Responsive Adjustments */
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-header h2,
    .section-heading {
        font-size: 2em;
    }

    .section-header p,
    .section-subheading {
        font-size: 0.9em;
    }

    .houses-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .about-section {
        flex-direction: column; /* Stack content and image vertically */
        padding: 25px;
        gap: 25px;
    }

    .about-section.reverse-layout {
        flex-direction: column; /* Keep stacked for mobile */
    }

    .about-content {
        font-size: 1em;
    }

    .team-grid {
        grid-template-columns: 1fr; /* Single column for team members */
    }

    .contact-section {
        flex-direction: column; /* Stack contact form and info */
        gap: 25px;
    }

    .contact-form-container,
    .contact-info-container {
        min-width: unset; /* Remove min-width for mobile */
        padding: 30px;
    }

    .social-links {
        justify-content: center; /* Center social links on mobile */
    }

    .map-placeholder {
        height: 300px; /* Adjust map height for mobile */
    }

    .map-text {
        font-size: 1.4em;
    }
}

/* Even Smaller Screens (e.g., iPhone 5/SE) */
@media (max-width: 480px) {
    .navbar {
        padding: 15px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .form-box h2,
    .popup-content h3 {
        font-size: 22px;
    }
    /* Reduce hero title font size further for very small screens */
    .hero-title {
        font-size: 2em;
    }
}

/* --- New Styles for House Type Summary & Dynamic Cards (Corrected) --- */
.house-type-summary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px 30px;
    margin: 40px auto 30px auto; /* Center and give space */
    max-width: 800px; /* Constrain width */
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: #fff;
}

.house-type-summary h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #f87060;
    font-weight: 600;
}

.house-type-summary ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 25px; /* Space between list items */
}

.house-type-summary li {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    display: flex;
    align-items: center;
}

.house-type-summary li .count {
    font-weight: 600;
    color: #f87060; /* Highlight the count */
    font-size: 1.2em;
    margin-left: 8px;
}

/* House card styles, refined for consistency */
.house-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Applying the glassy effect explicitly here for house cards */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px; /* Consistent with other glassy elements */
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
}

.house-card:hover {
    transform: translateY(-5px); /* Lift card on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35); /* Deeper shadow */
}

.house-image {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Ensure images cover the area without distortion */
    border-top-left-radius: 20px; /* Match house-card border-radius */
    border-top-right-radius: 20px; /* Match house-card border-radius */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to take up available space */
}

.house-card h3 {
    font-size: 1.5em;
    color: #f87060; /* Accent color for titles */
    margin-bottom: 10px;
}

.house-location, .house-price {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.house-location i {
    margin-right: 8px;
    color: #f87060; /* Consistent icon color */
}

.house-price {
    font-weight: 600;
    color: #fff; /* Make price stand out */
    font-size: 1.1em;
    margin-bottom: 15px;
}

.house-description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to take up available space */
    overflow: hidden; /* Hide overflow if description is too long */
    text-overflow: ellipsis; /* Add ellipsis if text is cut off */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.house-features {
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.house-features span {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    color: #fff;
    display: flex;
    align-items: center;
}

.house-features span i {
    margin-right: 7px;
    color: #f87060;
}

.view-details-btn {
    margin-top: auto; /* Push button to the bottom */
    width: 100%; /* Make button full width */
}

.no-listings {
    text-align: center;
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 20px;
    grid-column: 1 / -1; /* Span across all columns in grid */
}

/* Responsive adjustments for house summary */
@media (max-width: 768px) {
    .house-type-summary {
        margin: 30px auto;
        padding: 20px;
    }

    .house-type-summary h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .house-type-summary ul {
        flex-direction: column; /* Stack counts vertically */
        gap: 10px;
    }
    .house-type-summary li {
        font-size: 1em;
        justify-content: center;
    }

    .house-card {
        max-width: none; /* Allow cards to take full width of grid column */
    }
}

@media (max-width: 480px) {
    .house-image {
        height: 180px;
    }
    .card-content {
        padding: 15px;
    }
    .house-card h3 {
        font-size: 1.3em;
    }
    .house-location, .house-price, .house-description {
        font-size: 0.85em;
    }
    .house-features span {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}