/* Crestmark Real Estate Website Styles */
/* Professional Color Palette inspired by real estate branding */

:root {
    /* Primary Colors - Professional Navy/Gold combination */
    --primary-color: #1a3a5c;
    --primary-dark: #0f2744;
    --primary-light: #2d5a87;
    
    /* Secondary Colors - Gold accent */
    --secondary-color: #c9a227;
    --secondary-light: #d4b84a;
    --secondary-dark: #a68521;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') no-repeat center center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 53, 144, 0.85) 0%, rgba(17, 53, 144, 0.75) 50%, rgba(17, 53, 144, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(201, 162, 39, 0.2);
    color: var(--secondary-light);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary-color);
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
}

.bg-light {
    background-color: var(--off-white);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--white);
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    background-color: var(--primary-light);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 12px;
}

/* Properties Section */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 250px;
    background-color: var(--gray-400);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.property-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.property-feature span {
    font-weight: 600;
    color: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main {
    width: 100%;
    height: 500px;
    background-color: var(--primary-light);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 5px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.business-hours {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.business-hours h4 {
    margin-bottom: 15px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item span:last-child {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about .logo-text {
    color: var(--white);
}

.footer-about .logo-subtext {
    color: var(--secondary-color);
}

.footer-about .logo-icon {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    text-align: center;
}

/* Add top padding to main sections on inner pages */
.about-section,
.services-section,
.properties-section,
.contact-section {
    padding-top: 80px;
}

/* Thin Hero for Inner Pages */
.thin-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    text-align: center;
    margin-bottom: 40px;
}

.thin-hero h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.thin-hero .breadcrumb {
    justify-content: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .header {
        position: relative;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Show nav-cta on landscape mobile */
    @media (orientation: landscape) {
        .nav-cta {
            display: flex;
            position: absolute;
            top: 20px;
            right: 80px;
            gap: 10px;
        }
        
        .nav-cta .btn {
            padding: 8px 16px;
            font-size: 0.85rem;
        }
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 25px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about .logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .properties-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-30 {
    margin-top: 30px;
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-form .form-group {
    margin-bottom: 0;
}

.search-form .btn {
    height: 50px;
}

/* Property Detail Page Styles */
.property-detail {
    padding: 40px 0;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-main {
    height: 400px;
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnails {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.gallery-thumb {
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.property-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.property-description {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.property-description h3 {
    margin-bottom: 20px;
}

.property-description p {
    margin-bottom: 15px;
}

.property-specs {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
    color: var(--primary-color);
}

.property-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.agent-card {
    text-align: center;
    margin-bottom: 25px;
}

.agent-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
}

.agent-card h4 {
    margin-bottom: 5px;
}

.agent-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Request Property Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Progress Bar */
.progress-container {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    width: 10%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.required-text {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.optional-text {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Option Buttons */
.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 12px 24px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: var(--off-white);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* Location Options */
.location-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.location-btn {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.location-btn:hover {
    border-color: var(--primary-color);
}

.location-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Budget Input */
.budget-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.budget-input .currency {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.budget-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.prev-btn,
.next-btn {
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.next-btn:hover {
    background: var(--primary-dark);
}

/* Proceed Button */
.proceed-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Form Section Headers */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Image Upload Styles */
.image-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 15px;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--off-white);
}

.image-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(26, 58, 92, 0.05);
}

.image-upload-trigger {
    pointer-events: none;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-container {
        padding: 20px;
    }
    
    .option-buttons {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
        text-align: center;
    }
    
    .location-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .prev-btn,
    .next-btn {
        width: 100%;
    }
}

/* Blog Styles */
.blog-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-featured-image {
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.blog-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.blog-featured-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.blog-category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.blog-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card .blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-meta i {
    margin-right: 5px;
}

/* Newsletter Box */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
}

.newsletter-content h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    width: 300px;
    font-size: 1rem;
}

.newsletter-form .btn {
    background: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
}

.newsletter-form .btn:hover {
    background: var(--secondary-light);
}

/* Blog Responsive */
@media (max-width: 992px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-image {
        min-height: 300px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Post Page Styles */
.blog-post-header {
    text-align: center;
    padding: 40px 0;
}

.blog-post-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin: 20px 0;
}

.blog-post-header .blog-meta {
    color: rgba(255, 255, 255, 0.8);
}

.blog-post-header .blog-category {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.blog-post-content .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.blog-post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-post-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.blog-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.blog-share h4 {
    margin-bottom: 15px;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    text-decoration: none;
    color: inherit;
}

.related-card:hover h4 {
    color: var(--primary-color);
}

.related-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.related-card h4 {
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-post-content {
        padding: 25px;
    }
    
    .blog-post-image {
        height: 250px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
