/* ==========================================================================
   NESTROHUB HOMEPAGE MASTER STYLESHEET
   Architected for Scalability, Performance, and Accessibility.
   ========================================================================== */

/* ==========================================================================
   0. GLOBAL OVERRIDES (Force Remove PHP Inline Grids)
   ========================================================================== */
[style*="radial-gradient(#ffffff 1px"],
[style*="radial-gradient(circle at center, #ffffff 1px"],
[style*="radial-gradient(circle at center, #06b6d4 1px"],
[style*="linear-gradient(rgba(255,255,255,0.1) 1px"],
[style*="linear-gradient(#ffffff 1px"],
[style*="linear-gradient(45deg, #ffffff 1px"] {
    background-image: none !important;
    display: none !important;
}

/* ==========================================================================
   1. ROOT VARIABLES (DESIGN TOKENS)
   ========================================================================== */
:root {
    /* Theme Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #020617;
    --surface: #0f172a;
    --surface-light: #1e293b;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Segment Accents */
    --cyan: #06b6d4;
    --purple: #9333ea;
    --orange: #ea580c;
    --amber: #d97706;
    --indigo: #4f46e5;
    --emerald: #10b981;
    --yellow: #eab308;
    
    /* Structural / Alpha Accents */
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    
    /* Layout Tokens */
    --radius: 20px;
    --radius-sm: 8px;
    --radius-xl: 28px;
    
    /* Performance Optimized Transitions */
    --transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    box-sizing: border-box;
    background-color: var(--secondary);
}

*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.5;
    background: var(--secondary); 
}

section { scroll-margin-top: 100px; }

img, svg { display: block; max-width: 100%; }
img { height: auto; content-visibility: auto; }

::selection { background: var(--primary); color: #ffffff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ==========================================================================
   3. TYPOGRAPHY SYSTEM & CONTRAST FIXES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
p { margin: 0; color: #cbd5e1; }
.leading-tight { line-height: 1.25; }

/* Improved Accessibility Text Colors */
.text-slate-500 { color: #cbd5e1 !important; }
.text-slate-400 { color: #e2e8f0 !important; }
.text-brand-gold { color: #FACC15 !important; }
.text-xs { font-size: 13px !important; line-height: 1.5 !important; }

.text-gradient { background: linear-gradient(to right, var(--cyan), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-yellow { background: linear-gradient(to right, #fef08a, var(--yellow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   4. LAYOUT SYSTEM & CONTAINERS
   ========================================================================== */
.home-container, .container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
}

.home-section { position: relative; padding-block: 80px; }

.section-badge {
    display: inline-flex; align-items: center; gap: 0.375rem; padding: 6px 16px;
    border-radius: 999px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; background: rgba(255, 255, 255, 0.05);
}

.section-heading, .section-title { 
    font-size: 48px; 
    line-height: 1.2; 
    color: #ffffff; 
    margin-bottom: 20px; 
}
.section-description { 
    font-size: 18px; 
    max-width: 760px; 
    margin: auto; 
    color: #cbd5e1;
}

.grid-layout { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Common Helpers */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.w-full { width: 100%; }
.overflow-x-auto { overflow-x: auto; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.border-top { border-top: 1px solid var(--border-color); }
.icon-sm { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; }
.icon-arrow { width: 24px; height: 24px; display: inline-block; flex-shrink: 0; }
.divider { width: 1px; height: 40px; background-color: var(--border-color); margin: 0 12px; flex-shrink: 0; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.flex-shrink-0 { flex-shrink: 0; }
.corner-ribbon { position: absolute; top: 16px; left: -30px; transform: rotate(-45deg); padding: 4px 40px; text-align: center; }

/* ==========================================================================
   5. BUTTON SYSTEM & TOUCH TARGETS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 14px 24px; font-size: 0.875rem; font-weight: 700; 
    border-radius: 12px; text-transform: uppercase; letter-spacing: 0.025em; 
    text-decoration: none; transition: var(--transition); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background-color: var(--primary); color: #ffffff; }
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35); 
}

.btn-success { background-color: var(--success); color: #ffffff; }
.btn-success:hover { background-color: #059669; transform: translateY(-2px); }

.btn-warning { background-color: var(--warning); color: #000000; }
.btn-warning:hover { background-color: #d97706; transform: translateY(-2px); }

.btn-outline { background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: #ffffff; }
.btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.btn-outline-subtle { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: #cbd5e1; transition: var(--transition); }
.btn-outline-subtle:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: #ffffff; transform: translateY(-2px); }

.btn-ai { background: linear-gradient(to right, var(--cyan), var(--primary)); color: #ffffff; box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }
.btn-ai:hover { box-shadow: 0 0 25px rgba(6, 182, 212, 0.6); transform: translateY(-2px); }

.btn-anim { position: relative; overflow: hidden; }
.btn-anim::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.4s ease, height 0.4s ease;
}
.btn-anim:hover::after { width: 200%; height: 200%; }

/* Accessibility Touch Targets */
.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.icon-btn {
    min-width: 44px;
    min-height: 44px;
}

/* ==========================================================================
   6. CARDS & SKELETONS
   ========================================================================== */
.glass-card { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid var(--border-color); 
    padding: 24px;
    border-radius: 24px;
    transition: var(--transition);
}

.glass-card:hover, .glass-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background-color: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.skeleton, .animate-pulse { background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.3) 50%, rgba(30,41,59,0.5) 75%); background-size: 200% 100%; animation: skeleton-loading 2s infinite ease-in-out; border-radius: var(--radius-sm); }

/* ==========================================================================
   7. HERO SECTION (Redesigned Premium Layout)
   ========================================================================== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 850px;
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Luxury Background Image & Overlay */
.hero-bg-wrapper { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.hero-bg::before, .hero-bg::after { content: none !important; display: none !important; }
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.88)), url("/assets/images/hero/property.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.82));
    z-index: 2;
    pointer-events: none;
}

/* Floating Shapes (Moved behind overlay) */
.floating-shape { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; animation: float 12s infinite ease-in-out; z-index: 2; }
.shape-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: var(--primary); }
.shape-2 { bottom: -20%; right: -10%; width: 500px; height: 500px; background: var(--cyan); animation-delay: -5s; }

/* Structural Containers */
.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    position: relative;
    z-index: 10;
    padding-inline: 24px;
}

.hero-content {
    max-width: 980px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography Overhaul */
.hero-title {
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 20px;
}
.hero-title span { color: #3b82f6; }

.hero-description {
    max-width: 760px;
    margin: auto;
    color: #CBD5E1;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 45px;
}

/* Refined Premium Search Box */
.hero-search-hub { width: 100%; margin-bottom: 48px; position: relative; z-index: 10; }
.hero-search-box {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 28px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.search-form {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 220px;
    gap: 18px;
    align-items: center;
}

.search-input, .search-select {
    width: 100%; 
    height: 60px; 
    padding: 0 18px; 
    border-radius: 12px;
    background: #0f172a; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff; 
    font-size: 16px; 
    transition: var(--transition);
}
.search-input:focus, .search-select:focus { border-color: var(--primary); outline: none; background: #1e293b; }

.btn-search {
    height: 60px;
    width: 100%;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    background: #2563eb;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
}
.btn-search:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

/* Popular Trending Searches */
.popular-label { font-weight: 700; color: #cbd5e1; margin-right: 8px; }
.hero-popular { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.875rem; color: #e2e8f0; margin-top: 20px; }
.popular-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.popular-tag { padding: 6px 14px; background: rgba(255, 255, 255, 0.05); border-radius: 999px; transition: var(--transition); text-decoration: none; color: #cbd5e1; border: 1px solid transparent; }
.popular-tag:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

/* Hero CTA Buttons */
.hero-actions, .hero-ctas {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}
.hero-actions .btn, .hero-ctas .btn {
    padding: 18px 32px;
    font-size: 16px;
    border-radius: 14px;
}

/* Statistics Box Restructured */
.hero-metrics-panel {
    margin-top: 50px;
    max-width: 950px;
    margin-inline: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}
.hero-statistics {
    background: #0f172a;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.counter-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.counter, .stat-value { font-size: 42px; font-weight: 800; color: #ffffff; line-height: 1.1; display: block; }
.stat-label { color: #cbd5e1; }

/* Enhanced Ambient Badges */
.ambient-badges { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.ambient-badge {
    opacity: 0.95;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Softened Shadow */
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: #fff;
}
.verified-badge { color: var(--success); }
.premium-badge { color: var(--warning); }
.ai-match-badge { color: var(--cyan); }
.hot-badge { color: var(--danger); }
.bg-pos-1 { top: 15%; left: 5%; }
.bg-pos-2 { top: 22%; right: 6%; }
.bg-pos-3 { bottom: 28%; left: 8%; }
.bg-pos-4 { bottom: 20%; right: 10%; }

/* Trust Indicators */
.trust-indicators { display: flex; justify-content: center; align-items: flex-start; gap: 40px; padding-top: 40px; flex-wrap: wrap; position: relative; z-index: 10; }
.trust-badge { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-color); border-radius: 12px; backdrop-filter: blur(8px); color: #cbd5e1; font-weight: 500; transition: var(--transition); }
.trust-badge:hover { background: rgba(15, 23, 42, 0.85); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); color: #fff; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #94a3b8; font-size: 0.875rem; animation: bounce 2s infinite; z-index: 20; }

/* ==========================================================================
   8. CATEGORIES & PROPERTY CARDS 
   ========================================================================== */
.cat-card {
    min-height: 220px;
    padding: 24px;
}
.cat-icon {
    width: 60px;
    height: 60px;
}
.property-image {
    aspect-ratio: 16/10;
    object-fit: cover;
}
.property-title {
    font-size: 22px;
    line-height: 1.4;
}

.property-card, .land-card { border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); background-color: rgba(15, 23, 42, 0.4); }
.property-card:hover, .land-card:hover { transform: translateY(-8px); border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 15px 35px rgba(0,0,0,0.25); }
.prop-badge-container { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 5; }
.prop-badge { padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #ffffff; box-shadow: 0 4px 6px rgba(0,0,0,0.25); }

/* ==========================================================================
   9. PROFESSIONALS (Purple Theme)
   ========================================================================== */
#featured-professionals { position: relative; background: #020617; overflow: hidden; }
#featured-professionals::before { content: ""; position: absolute; width: 500px; height: 500px; top: -150px; left: -150px; border-radius: 50%; background: rgba(147, 51, 234, 0.12); filter: blur(140px); z-index: 0; }
#featured-professionals::after { content: ""; position: absolute; width: 450px; height: 450px; bottom: -150px; right: -150px; border-radius: 50%; background: rgba(37, 99, 235, 0.10); filter: blur(140px); z-index: 0; }
#featured-professionals > * { position: relative; z-index: 10; }
.pro-card { border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.pro-card:hover { border-color: rgba(147, 51, 234, 0.5); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.pro-card-avatar { margin-top: -2.5rem; border: 4px solid var(--secondary); background-color: var(--surface-light); }

/* ==========================================================================
   10. SUPPLIERS & MATERIALS (Amber Theme)
   ========================================================================== */
.sup-card { border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.sup-card:hover { border-color: rgba(217, 119, 6, 0.5); transform: translateY(-8px); }
.logo-marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.logo-marquee:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-glow { transition: var(--transition); }
.sup-card:hover .logo-glow { box-shadow: 0 0 25px rgba(245, 158, 11, 0.25); border-color: rgba(245, 158, 11, 0.8); }

/* ==========================================================================
   11. CONSTRUCTION (Orange Theme)
   ========================================================================== */
.comp-card { border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.comp-card:hover { border-color: rgba(234, 88, 12, 0.5); transform: translateY(-8px); }

/* ==========================================================================
   12. MORTGAGE CALCULATOR (Emerald Theme)
   ========================================================================== */
.custom-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); outline: none; transition: background 0.1s ease; }
.emerald-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); border: 3px solid #10b981; transition: transform 0.1s ease; }
.emerald-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.form-radio { accent-color: #10b981; }

/* ==========================================================================
   13. AI RECOMMENDATIONS (Cyan Theme)
   ========================================================================== */
.ai-pulse-bg { animation: slowPulse 8s infinite alternate ease-in-out; }
@keyframes slowPulse { 0% { opacity: 0.3; transform: scale(1); } 100% { opacity: 0.7; transform: scale(1.1); } }
.ai-score-badge { animation: glowScore 2s infinite alternate ease-in-out; }
@keyframes glowScore { 0% { box-shadow: 0 0 5px rgba(6,182,212,0.4); } 100% { box-shadow: 0 0 15px rgba(6,182,212,0.8); } }
.ai-card { min-height: 280px; border: 1px solid rgba(6, 182, 212, 0.2); transition: var(--transition); }
.ai-card:hover { border-color: var(--cyan); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15); transform: translateY(-8px); }

/* ==========================================================================
   14. BLOGS & REVIEWS
   ========================================================================== */
.blog-card { border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.blog-card:hover { border-color: rgba(79, 70, 229, 0.3); box-shadow: 0 15px 35px rgba(79, 70, 229, 0.15); transform: translateY(-8px); }
.review-card { border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.review-card:hover { border-color: rgba(234, 179, 8, 0.3); box-shadow: 0 15px 35px rgba(234, 179, 8, 0.1); transform: translateY(-8px); }

/* ==========================================================================
   15. FAQ ACCORDION
   ========================================================================== */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-icon { transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.rotate-180 { transform: rotate(180deg); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
footer a, .footer a { padding: 10px 0; display: inline-flex; }
.footer-social a { width: 48px; height: 48px; }

/* ==========================================================================
   17. LAYOUT GRIDS
   ========================================================================== */
.property-card-grid, .property-grid, .land-grid, .blog-grid-layout, .review-card-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-grid-layout, .cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS & MOBILE STICKY UI
   ========================================================================== */
@media (max-width: 1400px) { .container, .home-container { max-width: 1140px; } }
@media (max-width: 1200px) { 
    .container, .home-container { max-width: 960px; } 
    .property-card-grid, .property-grid, .land-grid, .blog-grid-layout, .review-card-layout { grid-template-columns: repeat(2, 1fr); }
    .ai-grid-layout, .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) { 
    .container, .home-container { max-width: 720px; } 
    .hero-title { font-size: 42px; letter-spacing: -1px; }
    .section-title, .section-heading { font-size: 36px; }
    .hero-description { font-size: 17px; }
    
    .search-form { grid-template-columns: 1fr; }
    .search-input, .search-select, .btn-search { width: 100%; }
    .hero-statistics { grid-template-columns: repeat(2, 1fr); }
    .divider { display: none; }
}

@media (max-width: 768px) {
    .container, .home-container { max-width: 540px; }
    .home-section { padding-block: 60px; }
    .hero-section { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
    
    .btn { width: 100%; }
    .hero-actions, .hero-ctas, .search-inputs-group { flex-direction: column; width: 100%; }
    .hero-search-box { padding: 16px; border-radius: 16px; }
    .trust-indicators { flex-direction: column; gap: 16px; align-items: stretch; }

    .flex-col-mobile { flex-direction: column !important; }
    .grid-2-mobile { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .hidden-mobile { display: none !important; }
    .w-full-mobile { width: 100% !important; }
    .flex-center-mobile { justify-content: center !important; text-align: center !important; }
    
    .hero-statistics { grid-template-columns: repeat(2, 1fr); }
    .property-card-grid, .property-grid, .land-grid, .blog-grid-layout, .review-card-layout, .ai-grid-layout, .cat-grid { grid-template-columns: 1fr; }
    
    .touch-target { min-height: 48px; min-width: 48px; }

    /* Sticky Mobile Search Bar */
    .mobile-sticky-search {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
        padding: 12px 16px; z-index: 100; border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 25px rgba(0,0,0,0.5); display: flex; gap: 12px;
    }
}

@media (max-width: 576px) {
    .container, .home-container { max-width: 100%; padding-inline: 16px; }
    .hero-statistics { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   19. REDUCED MOTION & PRINT STYLES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        animation-delay: -1ms !important; animation-duration: 1ms !important;
        animation-iteration-count: 1 !important; background-attachment: initial !important;
        scroll-behavior: auto !important; transition-duration: 0s !important; transition-delay: 0s !important;
    }
    .hover\:-translate-y-1:hover, .hover\:-translate-y-2:hover, .home-card:hover, .property-card:hover, .land-card:hover, .pro-card:hover, .sup-card:hover, .comp-card:hover, .blog-card:hover, .review-card:hover, .glass-card:hover { transform: none !important; }
}

@media print {
    body { background: #ffffff !important; color: #000000 !important; }
    #hero, button, .btn, footer, .mobile-sticky-search { display: none !important; }
    .glass-card, .property-card, .pro-card { background: transparent !important; border: 1px solid #cbd5e1 !important; page-break-inside: avoid; box-shadow: none !important; }
}
