/* Common Styles for Header and Footer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========== HEADER STYLES ========== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo-section:hover {
    opacity: 0.9;
}

.logo-bg {
    margin-right: 0.75rem;
    background: #f3f4f6;
    padding: 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

/* Navigation */
.nav-menu {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 2rem;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 15px;
    color: #374151;
    text-decoration: none;
}

.nav-link:hover {
    color: #3b82f6;
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Auth Section */
.auth-section {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.login-btn:hover {
    color: #3b82f6;
    background-color: #f9fafb;
}

.login-icon {
    font-size: 16px;
}

.contact-btn {
    background: #000;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.contact-btn:hover {
    background: #374151;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Section */
.mobile-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-contact-btn {
    background: #000;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu-btn {
    color: #374151;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.mobile-menu-btn:hover {
    background: #e5e7eb;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 18rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    z-index: 50;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 0.5rem;
}

.mobile-menu-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.mobile-menu-item:hover {
    color: #3b82f6;
    background: #dbeafe;
}

.mobile-menu-icon {
    width: 1rem;
    height: 1rem;
    font-size: 14px;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: white;
    padding: 2.5rem 0 1.25rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-logo-bg {
    background: white;
    border-radius: 9999px;
    padding: 0.375rem;
    margin-right: 0.75rem;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
}

.footer-tagline {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.footer-description {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    max-width: 20rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #6b7280;
    transition: color 0.3s;
}

.social-link:hover {
    color: #374151;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer Headings */
.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.footer-help-heading {
    margin-top: 1.5rem;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-link {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #374151;
}

/* Contact Items */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.contact-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    font-size: 12px;
}

/* Properties Section */
.footer-properties {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.properties-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111827;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.properties-subheading {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.properties-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.properties-links li {
    margin: 0.25rem 0;
}

.properties-link {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s;
}

.properties-link:hover {
    color: #374151;
}

/* Resources Section */
.footer-resources {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.resources-subheading {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.resources-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-links li {
    margin: 0.25rem 0;
}

.resources-link {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s;
}

.resources-link:hover {
    color: #374151;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-bottom-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-link:hover {
    color: #374151;
}

/* ========== RESPONSIVE STYLES ========== */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-bottom-links {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
    
    .auth-section {
        display: flex;
    }
    
    .mobile-section {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== MAIN LAYOUT STYLES ========== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
}

.main-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 8px 0;
}

.toc a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.toc a:hover {
    color: #007bff;
}

/* Property Sidebar */
.property-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-price {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.property-location {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.view-btn {
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background: #0056b3;
}

/* Content Styles */
.breadcrumb {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

h1 {
    color: #2c3e50;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
}

h3 {
    color: #34495e;
    margin-top: 25px;
}

.meta {
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

.cta {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #007bff;
    margin: 30px 0;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .sidebar {
        position: static;
    }
}