:root {
    --primary-color: #2a5a78;
    --primary-light: #3a7fa6;
    --secondary-color: #d4af37;
    --accent-color: #8b5a2b;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-color: #f8f5f2;
    --bg-secondary: #e8e5e2;
    --card-bg: #ffffff;
    --border-color: #e0d7d0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --footer-bg: #1a2e3b;
    --footer-text: #e8e5e2;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #3a7fa6;
    --primary-light: #4a9fc6;
    --secondary-color: #e4c15c;
    --accent-color: #a6754b;
    --text-color: #f0f0f0;
    --text-light: #c0c0c0;
    --text-lighter: #909090;
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --footer-bg: #0d1a21;
    --footer-text: #e8e5e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== Global Components ===== */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: var(--secondary-color);
    color: #333;
}

.btn-accent:hover {
    background-color: #e4c15c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Header Styles ===== */
.main-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.logo i {
    margin-right: 12px;
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    font-size: 16px;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle i {
    position: absolute;
    transition: var(--transition);
    opacity: 1;
    font-size: 18px;
}

.theme-toggle .fa-sun {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
}

/* ===== Home Page Styles ===== */
.home-page .home-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('home.avif') no-repeat center center/cover;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 80px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-page .home-hero .hero-content {
    max-width: 800px;
}

.home-page .home-hero h1 {
    font-size: 64px;
    margin-bottom: 25px;
    line-height: 1.2;
    color: white;
}

.home-page .home-hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
}

.home-page .home-hero .hero-actions {
    display: flex;
    gap: 20px;
}

.home-page .search-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--text-color);
    margin-top: 40px;
}

.home-page .search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.home-page .search-tabs button {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 16px;
}

.home-page .search-tabs button.active {
    color: var(--primary-color);
    position: relative;
}

.home-page .search-tabs button.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.home-page .search-filters {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-page .search-filters select, 
.home-page .search-filters input {
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.home-page .search-filters select:focus, 
.home-page .search-filters input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 90, 120, 0.2);
}

.home-page .search-filters button {
    grid-column: span 1;
    padding: 14px;
}

/* Featured Properties */
.home-featured-properties {
    padding: 100px 0;
}

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

.home-featured-properties .section-header h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.home-featured-properties .section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.home-featured-properties .view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-featured-properties .view-all:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.home-featured-properties .view-all i {
    transition: var(--transition);
}

.home-featured-properties .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

/* Property Card (Reusable Component) */
.property-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-card .property-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-card .property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: #333;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.property-card .property-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1;
}

.property-card .property-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.property-card .property-actions button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.property-card .property-info {
    padding: 25px;
}

.property-card .property-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.property-card .property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.property-card .property-address {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-card .property-address i {
    color: var(--primary-color);
}

.property-card .property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.property-card .property-feature {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 15px;
    gap: 6px;
}

.property-card .property-feature i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Property Types */
.home-property-types {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.home-property-types h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.home-property-types h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
}

.home-property-types .types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.home-property-types .type-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.home-property-types .type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.home-property-types .type-card .icon {
    width: 70px;
    height: 70px;
    background-color: rgba(42, 90, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 28px;
    transition: var(--transition);
}

.home-property-types .type-card:hover .icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.home-property-types .type-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--primary-color);
}

.home-property-types .type-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Stats Section */
.home-stats {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.home-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.home-stats .stat-item {
    padding: 30px;
}

.home-stats .stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.home-stats .stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* Testimonials */
.home-testimonials {
    padding: 100px 0;
    background: linear-gradient(rgba(248, 245, 242, 0.9), rgba(248, 245, 242, 0.9)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    overflow: hidden;
}

[data-theme="dark"] .home-testimonials {
    background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.9)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
}

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

.home-testimonials h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

.home-testimonials h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.home-testimonials .testimonials-slider {
    display: flex;
    gap: 30px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.home-testimonials .testimonials-slider::-webkit-scrollbar {
    display: none;
}

.home-testimonials .testimonial-card {
    flex: 0 0 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    scroll-snap-align: start;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin: 0 10px;
}

.home-testimonials .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.home-testimonials .rating {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 18px;
}

.home-testimonials .testimonial-card p {
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
}

.home-testimonials .client {
    display: flex;
    align-items: center;
}

.home-testimonials .client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
}

.home-testimonials .client-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.home-testimonials .client-info span {
    color: var(--text-light);
    font-size: 15px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .home-testimonials .testimonial-card {
        flex: 0 0 calc(50% - 40px);
        max-width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .home-testimonials {
        padding: 80px 0;
    }
    
    .home-testimonials h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .home-testimonials .testimonial-card {
        flex: 0 0 calc(100% - 40px);
        max-width: calc(100% - 40px);
        padding: 30px;
    }
    
    .home-testimonials .rating {
        font-size: 16px;
    }
    
    .home-testimonials .testimonial-card p {
        font-size: 15px;
    }
    
    .home-testimonials .client img {
        width: 50px;
        height: 50px;
    }
    
    .home-testimonials .client-info h4 {
        font-size: 18px;
    }
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 20px;
    color: #333;
}

.avatar-initial {
    display: block;
    text-align: center;
    line-height: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 15px;
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.client {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-info h4 {
    margin: 0;
    font-size: 18px;
}

.client-info span {
    color: #666;
    font-size: 14px;
}

/* CTA Section */
.home-cta {
    padding: 120px 0;
    background: linear-gradient(rgba(42, 90, 120, 0.9), rgba(42, 90, 120, 0.9)), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
}

.home-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-cta h2 {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.home-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.home-cta .cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.home-cta .btn-outline {
    border-color: white;
    color: white;
}

.home-cta .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Newsletter */
.home-newsletter {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.home-newsletter .newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-newsletter h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.home-newsletter p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.home-newsletter .newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.home-newsletter .newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.home-newsletter .newsletter-form button {
    border-radius: 0 6px 6px 0;
    padding: 15px 30px;
}

/* ===== Footer Styles ===== */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
}

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

.main-footer .footer-col h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: white;
}

.main-footer .footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.main-footer .footer-col p {
    margin-bottom: 25px;
    color: var(--footer-text);
    opacity: 0.8;
    line-height: 1.8;
}

.main-footer .footer-col ul {
    list-style: none;
}

.main-footer .footer-col ul li {
    margin-bottom: 15px;
}

.main-footer .footer-col ul li a {
    color: var(--footer-text);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-footer .footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.main-footer .footer-col ul li a i {
    width: 20px;
    color: var(--secondary-color);
}

.main-footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.main-footer .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    transition: var(--transition);
    font-size: 18px;
}

.main-footer .social-links a:hover {
    background-color: var(--secondary-color);
    color: #333;
    transform: translateY(-5px);
}

.main-footer .contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0.8;
    gap: 12px;
}

.main-footer .contact-info i {
    color: var(--secondary-color);
    font-size: 18px;
}

.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-footer .footer-bottom p {
    color: var(--footer-text);
    opacity: 0.7;
    font-size: 14px;
}

.main-footer .footer-links {
    display: flex;
    gap: 25px;
}

.main-footer .footer-links a {
    color: var(--footer-text);
    opacity: 0.7;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.main-footer .footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 1100;
    padding: 30px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-menu ul li {
    margin-bottom: 25px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu ul li a i {
    width: 24px;
    color: var(--primary-color);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .home-page .home-hero h1 {
        font-size: 56px;
    }
    
    .home-page .search-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-page .search-filters button {
        grid-column: span 2;
    }
    
    .home-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .home-page .home-hero h1 {
        font-size: 48px;
    }
    
    .home-page .home-hero p {
        font-size: 18px;
    }
    
    .home-cta h2 {
        font-size: 36px;
    }
    
    .home-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .home-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .home-page .home-hero {
        height: auto;
        padding: 120px 0;
        min-height: auto;
        text-align: center;
    }
    
    .home-page .home-hero .hero-content {
        margin: 0 auto;
    }
    
    .home-page .home-hero .hero-actions {
        justify-content: center;
    }
    
    .home-featured-properties .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .home-newsletter .newsletter-form {
        flex-direction: column;
    }
    
    .home-newsletter .newsletter-form input {
        border-radius: 6px;
        margin-bottom: 15px;
    }
    
    .home-newsletter .newsletter-form button {
        border-radius: 6px;
        width: 100%;
    }
    
    .main-footer .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-footer .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-actions .btn {
        display: none;
    }
    
    .home-page .home-hero h1 {
        font-size: 36px;
    }
    
    .home-page .home-hero p {
        font-size: 16px;
    }
    
    .home-page .search-filters {
        grid-template-columns: 1fr;
    }
    
    .home-page .search-filters button {
        grid-column: span 1;
    }
    
    .home-featured-properties .section-header h2 {
        font-size: 28px;
    }
    
    .home-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Logo Styles - Only affects logo.png */
.logo-img {
    height: 120px; /* Fixed height */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Prevent distortion */
    display: block; /* Remove extra space under image */
}

/* Adjust logo size on smaller screens */
@media (max-width: 992px) {
    .logo-img {
        height: 110px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 100px;
    }
}

/* Optional: Hide text on very small screens */
@media (max-width: 576px) {
    .logo span {
        display: none;
    }
    .logo-img {
        height: 90px;
    }
}

/* Ensure logo container stays aligned */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
}

/* ===== About Page Styles ===== */
.about-page {
    padding-top: 80px;
}

.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') 
                no-repeat center center/cover;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') 
                no-repeat center center/cover;
}

.about-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* About Intro */
.about-intro {
    padding: 100px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.intro-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.intro-image:hover img {
    transform: scale(1.03);
}

/* Core Values */
.core-values {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 18px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(42, 90, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--primary-color);
    color: white;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

/* Leadership Team */
.leadership-team {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 5px solid var(--secondary-color);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member .position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.team-member .bio {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Milestones */
.milestones {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
}

.timeline-year {
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    z-index: 1;
    flex-shrink: 0;
    margin: 0 30px;
}

.timeline-content {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border-color);
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    transform: translateY(-50%) rotate(45deg);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.timeline-item:nth-child(odd) .timeline-content:before {
    right: -10px;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.timeline-item:nth-child(even) .timeline-content:before {
    left: -10px;
    border-right: none;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About CTA */
.about-cta {
    padding: 120px 0;
    background: linear-gradient(rgba(42, 90, 120, 0.9), rgba(42, 90, 120, 0.9)), 
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') 
                no-repeat center center/cover;
    color: white;
    text-align: center;
}

.about-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-cta h2 {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.about-cta .cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-cta .btn-outline {
    border-color: white;
    color: white;
}

.about-cta .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image {
        order: -1;
    }
    
    .timeline:before {
        left: 60px;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-year {
        margin: 0 0 20px 0;
        align-self: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
    }
    
    .timeline-content:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 42px;
    }
    
    .about-hero p {
        font-size: 18px;
    }
    
    .intro-content h2 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-cta h2 {
        font-size: 36px;
    }
    
    .about-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: 70vh;
    }
    
    .about-hero h1 {
        font-size: 36px;
    }
    
    .about-hero p {
        font-size: 16px;
    }
    
    .intro-content h2 {
        font-size: 30px;
    }
    
    .timeline-year {
        width: 100px;
        height: 100px;
        font-size: 20px;
    }
    
    .about-cta {
        padding: 80px 0;
    }
    
    .about-cta h2 {
        font-size: 30px;
    }
    
    .about-cta p {
        font-size: 18px;
    }
}
/* Add to your styles.css */
@media (max-width: 600px) {
    #pwa-install-overlay {
      max-width: 90%;
      left: 5%;
      right: auto;
      bottom: 10px;
    }
  }
  
  /* Animation for the overlay */
  #pwa-install-overlay {
    animation: fadeInUp 0.3s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}