/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    background-color: #f8f9fa;
}

/* Navigation Bar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-logo h2 {
    color: #1A2E40;
    font-size: 26px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo a:visited,
.nav-logo a:active,
.nav-logo a:hover {
    color: inherit;
    background: none;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    padding: 8px 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f5f5f5;
}

.nav-link.active {
    background: #4A90E2;
    color: white !important;
}

.crm-link {
    background: #4A90E2;
    color: white !important;
}

.crm-link:hover {
    background: #357ABD !important;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #6B6B6B;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 24vh;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e1e5e9;
}

.search-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c1810;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* Properties Section */
.properties-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.section-title {
    font-size: 3.2rem;
    color: #2c1810;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: white;
    border: 2px solid #e1e5e9;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn.active,
.view-btn:hover {
    background: #4A90E2;
    border-color: #4A90E2;
    color: white;
}













/* List View Overrides the Grid */
.properties-grid.list-view {
    grid-template-columns: 1fr;            /* In list view, 1 column layout */
}

/* Individual Property Card */
.property-card {
    background: white;                     
    border-radius: 12.75px; /* 15px * 0.85 */
    overflow: hidden;                      
    box-shadow: 0 3.8px 15.3px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s ease;             
    cursor: pointer;                       
       /* 🔥 scales all rem/em-based values */
}

/* Hover effect on card */
.property-card:hover {
    transform: translateY(-4px); /* 5px * 0.85 */
    box-shadow: 0 11.5px 27px rgba(0, 0, 0, 0.15); 
}

/* Image container */
.property-image {
    position: relative;                    
    height: 200px; /* 185px * 0.85 */
    overflow: hidden;                      
}

/* Image inside card */
.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;                     
    transition: transform 0.3s ease;       
}

/* Image zoom effect on card hover */
.property-card:hover .property-image img {
    transform: none;
}

/* "New", "Featured", etc. badge */
.property-badge {
    position: absolute;
    top: 11.5px; /* 13.5px * 0.85 */
    left: 11.5px;
    background: #d02b2b;
    color: white;
    padding: 3.8px 9.2px; /* 4.5px 10.8px * 0.85 */
    border-radius: 15.3px; /* 18px * 0.85 */
    font-size: 0.8rem; /* 0.72rem * 0.85 */
}

/* Property content section */
.property-content {
    padding: 12px; /* 22.5px * 0.85 */
}

/* Title of the property */
.property-title {
    font-size: 1.3rem; /* 1.17rem * 0.85 */
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 2px; /* 9px * 0.85 */
    font-family: 'Montserrat', sans-serif;
}

/* Price of the property */
.property-price {
    font-size: 1.2rem; /* 1.35rem * 0.85 */
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 5px;
}

/* Location text */
.property-location {
    color: #666;
    margin-bottom: 11.5px; /* 13.5px * 0.85 */
    font-size: 0.73rem; /* 0.855rem * 0.85 */
}

/* Specifications: bedrooms, bathrooms, etc. */
.property-specs {
    display: flex;
    gap: 15px; /* 18px * 0.85 */
    margin-bottom: 11.5px;
    flex-wrap: wrap;
}

/* Individual spec icon + label */
.spec-item {
    display: flex;
    align-items: center;
    gap: 3.8px; /* 4.5px * 0.85 */
    color: #666;
    font-size: 0.69rem; /* 0.81rem * 0.85 */
}

/* Icon color */
.spec-item i {
    color: #4A90E2;
}

/* Description text */
.property-description {
    color: #666;
    font-size: 0.78rem; /* 0.81rem * 0.85 */
    line-height: 1.5;
    margin-bottom: 15.3px; /* 18px * 0.85 */
}

/* Action button section */
.property-actions {
    display: flex;
    gap: 7px; /* 9px * 0.85 */
}

/* Style for both buttons */
.action-btn {
    flex: 1;
    padding: 7.7px; /* 9px * 0.85 */
    border: none;
    border-radius: 6.1px; /* 7.2px * 0.85 */
    font-weight: 600;
    font-size: 14px; /* Added text size */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.8px; /* 4.5px * 0.85 */
}

/* View Details button */
.view-details-btn {
    background: #4A90E2;
    color: white;
}

.view-details-btn:hover {
    background: #357ABD;
}

/* Contact button */
.contact-btn {
    background: #f8f9fa;
    color: #333;
    border: 10px solid #e1e5e9;
}

.contact-btn:hover {
    background: #e9ecef;
    border-color: #4A90E2;
}
































/* List View Styles */
.property-card.list-view {
    display: flex;
    height: 200px;
}

.property-card.list-view .property-image {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

.property-card.list-view .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card.list-view .property-actions {
    align-self: flex-end;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 25px;
}

.load-more-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"],
.modal[style*="display:flex"] {
    display: flex !important;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

/* Inquiry Modal Styles */
.inquiry-modal-content {
    max-width: 600px;
    padding: 30px;
}

.inquiry-modal-content h2 {
    font-size: 1.8rem;
    color: #2c1810;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.inquiry-modal-content h2 i {
    color: #4A90E2;
}

.inquiry-modal-content .form-group {
    margin-bottom: 20px;
}

.inquiry-modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.inquiry-modal-content .form-group label i {
    margin-right: 8px;
    color: #4A90E2;
}

.inquiry-modal-content .form-group input,
.inquiry-modal-content .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    font-family: 'Open Sans', sans-serif;
}

.inquiry-modal-content .form-group input:focus,
.inquiry-modal-content .form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.inquiry-modal-content .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.inquiry-modal-content .submit-btn:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2c5f9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.inquiry-modal-content .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.property-images {
    background: #f8f9fa;
    padding: 30px;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #4A90E2;
}

.property-details {
    padding: 30px;
}

.property-details h2 {
    font-size: 2rem;
    color: #2c1810;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.property-meta span:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4A90E2;
}

.property-meta span:last-child {
    color: #666;
    font-size: 1.1rem;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-item i {
    color: #4A90E2;
    font-size: 1.1rem;
}

.property-description h3,
.property-amenities h3,
.contact-info h3 {
    font-size: 1.2rem;
    color: #2c1810;
    margin-bottom: 10px;
    font-weight: 600;
}

.property-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.amenity-tag {
    background: #4A90E2;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.contact-details i {
    color: #4A90E2;
    width: 20px;
}

.contact-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* Featured Section */
.featured-section {
    padding: 40px 0;
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.featured-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.featured-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: none;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 10px;
}

.featured-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 5px;
}

.featured-location {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.featured-specs {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.85rem;
}

/* Why Choose Section */
.why-choose-section {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c1810;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */    
.footer {
    background: #1f1f1f;
    color: white;
    padding: 20px 0 20px; /* Adjusted padding-top */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4A90E2;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section p i {
    margin-right: 10px;
    color: #4A90E2;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .properties-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .property-specs {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .property-card.list-view {
        flex-direction: column;
        height: auto;
    }
    
    .property-card.list-view .property-image {
        width: 100%;
        height: 200px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}