/* Scoped to #real_estate_page to prevent global CSS leaks */
#real_estate_page {
    --brand-bg: #09090b;
    --brand-violet: #7c3aed;
    --brand-white: #ffffff;
    --brand-gray: #a1a1aa;
    --brand-border: #1f1f23;
    --brand-card-bg: #11111333;
    
    color: var(--brand-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

footer {
    position: relative;
    z-index: 10;
}

#real_estate_page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header Section --- */
#real_estate_page .hero-header {
    text-align: center;
    padding: 120px 0 80px 0;
}

#real_estate_page .badge {
    display: inline-block;
    color: var(--brand-violet);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

#real_estate_page h1 {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

#real_estate_page .hero-lead {
    font-size: 20px;
    color: var(--brand-gray);
    max-width: 750px;
    margin: 0 auto;
}

/* --- Zig Zag Rows --- */
#real_estate_page .feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 100px 0;
    max-height: 600px;
}

#real_estate_page .feature-row:nth-child(even) h2{
    text-align: right;
}

#real_estate_page .feature-row:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right !important;
}

#real_estate_page .text-col {
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: #11111333;
}

#real_estate_page .img-col {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

#real_estate_page h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

#real_estate_page p {
    font-size: 18px;
    color: var(--brand-gray);
    margin-bottom: 24px;
}

/* --- Image Constraints & Effects --- */
#real_estate_page .img-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    z-index: 2;
}

#real_estate_page .img-wrapper-full-image {
    padding: 20px;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    overflow: hidden;
}

#real_estate_page .canvas-container {
    width: 100%;
    max-width: 520px;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

#real_estate_page .canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#real_estate_page .feature-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5));
}

#real_estate_page .glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
    pointer-events: none;
}

/* --- Feature Grid --- */
#real_estate_page .grid-section {
    padding: 100px 0;
    text-align: center;
}

#real_estate_page .grid-section h2 {
    text-align: center !important;
}

#real_estate_page .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

#real_estate_page .card {
    background: var(--brand-card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--brand-border);
    text-align: left;
    transition: all 0.3s ease;
}

#real_estate_page .card:hover {
    border-color: var(--brand-violet);
    transform: translateY(-5px);
}

#real_estate_page .card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

#real_estate_page .card p {
    font-size: 16px;
    margin: 0;
}

/* --- CTA Section --- */
#real_estate_page .cta-section {
    padding: 120px 0;
    text-align: center;
}

#real_estate_page .cta-content {
    background: linear-gradient(180deg, #11111333 0%, #09090b33 100%);
    border: 1px solid var(--brand-border);
    padding: 80px 40px;
    border-radius: 32px;
}

#real_estate_page .cta-content h2 {
    text-align: center !important;
}

#real_estate_page .btn {
    display: inline-block;
    background: var(--brand-violet);
    color: white;
    padding: 18px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 30px;
}

#real_estate_page .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}



/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    #real_estate_page .feature-row, 
    #real_estate_page .feature-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 0px;
        padding: 60px 0;
        max-height: unset;
    }

    #real_estate_page h1 { font-size: 42px; }
    #real_estate_page h2 { font-size: 28px; text-align: center !important;}
    #real_estate_page p { text-align: center !important;}
    #real_estate_page span { margin: auto;}

    #real_estate_page .text-col {
        display:flex;
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    #real_estate_page .card h3 {
        text-align: center !important;
    }
}