/* Kareemat Estates - Main Stylesheet
   A sophisticated real estate platform offering architectural integrity and market intelligence
   ========================================================================== */

/* Table of Contents
   -----------------
   1.  CSS Variables & Root Settings
   2.  Reset & Base Styles
   3.  Typography
   4.  Layout & Containers
   5.  Utility Classes
   6.  Buttons & Interactive Elements
   7.  Forms & Inputs
   8.  Cards & Content Blocks
   9.  Navigation & Header
   10. Footer
   11. Hero Sections
   12. Property Components
   13. Insights & Blog
   14. Contact Page
   15. Admin Dashboard
   16. Modal & Overlay Components
   17. Animations
   18. Responsive Breakpoints
   19. Print Styles
   ========================================================================== */

/* 1. CSS Variables & Root Settings
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #0a3641;
    --primary-light: #1f5563;
    --primary-dark: #052027;
    --primary-rgb: 10, 54, 65;
    
    --accent: #c8a15e;
    --accent-light: #dbb47a;
    --accent-dark: #a88244;
    --accent-rgb: 200, 161, 94;
    
    --gray-bg: #f7f9fc;
    --gray-light: #f0f3f7;
    --gray-border: #e2e7ed;
    --gray-medium: #cbd5e0;
    --text-dark: #1e2b37;
    --text-muted: #546e7a;
    --text-light: #94a3b8;
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --black: #000000;
    --black-rgb: 0, 0, 0;
    
    /* Status Colors */
    --success: #28a745;
    --success-light: #d4edda;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --info: #17a2b8;
    --info-light: #d1ecf1;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.05);
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 30px;
    --border-radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Container max-widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* 2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

/* 3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    font-weight: 600;
    letter-spacing: -0.02em;
}
h2 { 
    font-size: clamp(2rem, 4vw, 2.8rem); 
    letter-spacing: -0.01em;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem); 
}
h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
}
h5 { 
    font-size: clamp(1.1rem, 2vw, 1.25rem); 
    font-weight: 600;
}
h6 { 
    font-size: 1rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

strong, b {
    font-weight: 600;
    color: var(--primary);
}

small, .text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.25rem;
}

/* 4. Layout & Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

.section-lg {
    padding: calc(var(--spacing-3xl) * 2) 0;
}

/* 5. Utility Classes
   ========================================================================== */
/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text Colors */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }

/* Background Colors */
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-gray { background: var(--gray-bg); }
.bg-white { background: var(--white); }
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

/* Margins */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.ml-1 { margin-left: var(--spacing-sm); }
.ml-2 { margin-left: var(--spacing-md); }
.ml-3 { margin-left: var(--spacing-lg); }
.ml-4 { margin-left: var(--spacing-xl); }

.mr-1 { margin-right: var(--spacing-sm); }
.mr-2 { margin-right: var(--spacing-md); }
.mr-3 { margin-right: var(--spacing-lg); }
.mr-4 { margin-right: var(--spacing-xl); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }
.p-5 { padding: var(--spacing-2xl); }

.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-2xl); }

.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-2xl); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-initial { flex: initial; }
.flex-none { flex: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }
.gap-4 { gap: var(--spacing-xl); }
.gap-5 { gap: var(--spacing-2xl); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-auto-lg { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

/* Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-screen { width: 100vw; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* Border Utilities */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-full { border-radius: var(--border-radius-full); }

.border { border: 1px solid var(--gray-border); }
.border-t { border-top: 1px solid var(--gray-border); }
.border-b { border-bottom: 1px solid var(--gray-border); }
.border-l { border-left: 1px solid var(--gray-border); }
.border-r { border-right: 1px solid var(--gray-border); }
.border-0 { border: none; }

/* Shadow Utilities */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* 6. Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--gray-bg);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: var(--gray-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.btn-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: none;
    box-shadow: none;
}

.btn-link::after {
    display: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: 50%;
}

.btn-icon.btn-large {
    padding: 1rem;
}

.btn-icon.btn-small {
    padding: 0.5rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 7. Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--text-dark);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--gray-medium);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
    background: var(--danger-light);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: var(--gray-bg);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-check-label {
    color: var(--text-dark);
    cursor: pointer;
}

/* 8. Cards & Content Blocks
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-border);
    background: var(--gray-bg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.card-subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

/* 9. Navigation & Header
   ========================================================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}


.logo strong {
    font-weight: 600;
    color: var(--primary);
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Enhanced Logo/Branding */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.logo-first {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-last {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.logo-last::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover .logo-last::after {
    transform: scaleX(1);
}

.logo-estates {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-left: 0.2rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 100;
}

.mobile-menu-toggle:hover {
    color: var(--accent);
}

/* Desktop CTA */
.desktop-only {
    display: inline-flex;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
}

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

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* Mobile Menu Header */
.mobile-menu-header {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-border);
}

.mobile-logo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-logo .logo-first {
    font-size: 1.5rem;
}

.mobile-logo .logo-last {
    font-size: 1.8rem;
}

/* Mobile Navigation Links */
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-links a i {
    width: 24px;
    color: var(--accent);
    font-size: 1.2rem;
}

.mobile-menu-links a:hover {
    background: var(--gray-bg);
    color: var(--accent);
    transform: translateX(5px);
}

.mobile-menu-links a.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-links a.active i {
    color: var(--primary);
}

/* Mobile Contact Info */
.mobile-contact {
    background: linear-gradient(135deg, var(--gray-bg), white);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-border);
}

.mobile-phone,
.mobile-email {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-phone i,
.mobile-email i {
    color: var(--accent);
    width: 20px;
}

.mobile-phone:hover,
.mobile-email:hover {
    background: white;
    color: var(--accent);
    transform: translateX(5px);
}

/* Mobile Social Icons */
.mobile-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gray-bg), white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-border);
}

.mobile-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(200, 161, 94, 0.3);
}

/* Active Navigation State for Desktop */
.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .nav-links,
    .desktop-only {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-first {
        font-size: 1.5rem;
    }
    
    .logo-last {
        font-size: 1.7rem;
    }
    
    .logo-estates {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-first {
        font-size: 1.3rem;
    }
    
    .logo-last {
        font-size: 1.5rem;
    }
    
    .mobile-menu {
        width: 90%;
        padding: 1.5rem;
    }
    
    .mobile-menu-links a {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-cta {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.header-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: var(--z-modal);
    overflow-y: auto;
}

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

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-close:hover {
    color: var(--danger);
}

.mobile-menu-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-modal) - 1);
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* 10. Footer - Enhanced Visibility
   ========================================================================== */
.site-footer {
    background: var(--primary-dark, #052027);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    max-width: var(--container-xl);
    margin: 0 auto;
}

/* Footer Column Headings */
.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    opacity: 1;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Footer Logo */
.footer-logo-img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

/* Footer Text */
.footer-col p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.footer-links a i {
    color: var(--accent);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

/* Email and Phone Links */
.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Additional Footer Improvements for better UI/UX */

/* Footer subheadings for better visual hierarchy */
.footer-subheading {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.footer-subheading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
}

/* Social section styling */
.social-section {
    margin-bottom: 1.5rem;
}

/* Brand icon section - directly under social */
.brand-icon-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon row positioning */
.icon-row {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

/* Hide on tablets and mobile */
@media (max-width: 1024px) {
    .icon-row.desktop-only {
        display: none;
    }
}

/* Icon link styling - maintaining your circle design */
.animated-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; /* Slightly smaller for better proportion */
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    animation: softPulse 3s ease-in-out infinite;
}

/* Icon image styling */
.footer-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    opacity: 0.95;
}

/* Even larger on ultra-wide screens */
@media (min-width: 1920px) {
    .animated-icon-link {
        width: 160px;
        height: 160px;
    }
    
    .footer-icon-img {
        width: 115px;
        height: 115px;
    }
}

/* Hover effects */
.animated-icon-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    animation: none;
    box-shadow: 0 10px 20px rgba(200, 161, 94, 0.3);
}

.animated-icon-link:hover .footer-icon-img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

/* Pulse animation */
@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 161, 94, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px 5px rgba(200, 161, 94, 0.2);
    }
}

/* Tooltip on hover */
.animated-icon-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 16px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.animated-icon-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* Responsive adjustments for the first column */
@media (max-width: 768px) {
    .footer-col:first-child {
        text-align: center;
    }
    
    .footer-subheading {
        text-align: center;
        display: block;
    }
    
    .footer-subheading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .icon-row {
        justify-content: center;
    }
    
    .brand-icon-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Social Icons - Enhanced with image support */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-icons a {
    color: #ffffff;
    transition: all var(--transition-base);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    overflow: hidden;
}

.social-icons a:hover {
    color: var(--primary);
    background: var(--accent);
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(200, 161, 94, 0.3);
}

/* Style for image-based social icon */
.social-icons a:hover {
    filter: brightness(0) invert(0);
}

/* Icon row under social links - Desktop only */
.icon-row {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
}

/* Hide on tablets and mobile */
@media (max-width: 1024px) {
    .icon-row.desktop-only {
        display: none;
    }
}

/* Icon link styling */
.animated-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

/* Icon row under social links - Desktop only */
.icon-row {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
}

/* Hide on tablets and mobile */
@media (max-width: 1024px) {
    .icon-row.desktop-only {
        display: none;
    }
}

/* Icon link styling - THIS creates the circle */
.animated-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 168px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    animation: softPulse 3s ease-in-out infinite;
}

/* Icon image - just the image without circle styling */
.footer-icon-img {
    width: 120px;  /* Smaller than container to show padding */
    height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes dark images white - remove if your image is already white */
    transition: all 0.3s ease;
    opacity: 0.95;
}

/* Even larger on ultra-wide screens */
@media (min-width: 1920px) {
    .animated-icon-link {
        width: 184px;
        height: 184px;
    }
    
    .footer-icon-img {
        width: 132px;
        height: 132px;
    }
}

/* Hover effects */
.animated-icon-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    animation: none;
    box-shadow: 0 10px 20px rgba(200, 161, 94, 0.3);
}

.animated-icon-link:hover .footer-icon-img {
    filter: brightness(0) invert(1); /* Keeps image white on hover */
    transform: scale(1.05);
}

/* Pulse animation */
@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 161, 94, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px 5px rgba(200, 161, 94, 0.2);
    }
}

/* Tooltip on hover */
.animated-icon-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 16px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.animated-icon-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* Remove any conflicting styles */
/* Delete these older rules that might be causing conflicts:
   - Any other .footer-icon-img rules
   - Any .social-icon-img rules that might be targeting the same element
*/

/* Animation 1: Gentle pulse */
.animated-icon {
    animation: softPulse 3s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Animation 2: Subtle glow on hover */
.animated-icon-link:hover .animated-icon {
    animation: none;
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--accent));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation 3: Gentle slide in on page load */
@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }
    100% {
        opacity: 0.95;
        transform: translateX(0);
    }
}

/* Animation 4: Subtle rotation on hover */
@keyframes subtleSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animation 5: Gentle floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.animated-icon-float {
    animation: gentleFloat 4s ease-in-out infinite;
}

.animated-icon-link:hover .animated-icon-spin {
    animation: subtleSpin 0.7s ease-out;
}

.icon-row {
    animation: slideInFade 0.8s ease-out forwards;
}

/* Optional: Add a subtle tooltip-like effect on hover */
.animated-icon-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 16px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.animated-icon-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* For when the icon is placed after social icons */
.social-icons + .icon-row {
    margin-top: 1.2rem;
}

/* Ensure alignment with social icons on desktop */
@media (min-width: 1025px) {
    .icon-row {
        margin-left: 4px;
    }
}

/* Footer Bottom Section - Centered */
.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.footer-bottom .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.copyright-text {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
}

/* Footer Note with Heartbeat - Centered */
.footer-note {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    width: 100%;
}

.footer-note i {
    color: var(--accent);
    margin: 0 0.3rem;
    animation: heartbeat 1.5s ease infinite;
}

/* Footer Brand/Name Styling */
.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand-name {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.footer-brand-name .brand-light {
    font-weight: 300;
    color: #ffffff;
}

.footer-brand-name .brand-bold {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

/* Animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-brand-name {
        font-size: 1.6rem;
    }
    
    .footer-tagline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 1rem 1rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-brand-name {
        font-size: 1.4rem;
    }
}

/* Ensure proper centering on all screen sizes */
@media (max-width: 768px) {
    .footer-bottom .container {
        padding: 0 1rem;
    }
    
    .copyright-text {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .copyright-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* 11. Hero Sections
   ========================================================================== */
/* Hero Section Premium Styling */
.hero {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 161, 94, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 54, 65, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content h1 span {
    font-weight: 700;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(200, 161, 94, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 85%;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Image/Logo Container */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 30px;
    height: 450px;
    box-shadow: 0 30px 50px -20px rgba(10, 54, 65, 0.3);
    overflow: hidden;
    animation: fadeInRight 1s ease;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.hero-logo-wrapper {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 50%;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.hero-logo-overlay {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

/* Section Headings Enhancement */
.section-heading {
    text-align: center;
    margin: 5rem 0 3rem;
    position: relative;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h2::before,
.section-heading h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.section-heading h2::before {
    left: -70px;
}

.section-heading h2::after {
    right: -70px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Listing Cards Premium Styling */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.listing-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--gray-border);
    position: relative;
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px -15px rgba(10, 54, 65, 0.2);
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    position: relative;
}

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

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.card-content {
    padding: 1.8rem;
    position: relative;
    background: white;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.address {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.location i {
    color: var(--accent);
    font-size: 0.8rem;
}

.details {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--gray-border);
    padding-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.details i {
    color: var(--accent);
    margin-right: 0.3rem;
    width: 16px;
}

.view-details {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.view-details::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.view-details:hover {
    color: var(--accent);
}

.view-details:hover::after {
    width: 100%;
}

.view-details i {
    transition: transform 0.3s ease;
    margin-left: 0.3rem;
}

.view-details:hover i {
    transform: translateX(5px);
}

/* About Section Enhancement */
.about-section {
    background: linear-gradient(135deg, var(--gray-bg) 0%, #ffffff 100%);
    padding: 5rem 2rem;
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    height: 500px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 40px -20px rgba(10, 54, 65, 0.3);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 20px;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text h2 strong {
    color: var(--accent);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.about-text h2 strong::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(200, 161, 94, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.signature {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2rem;
    opacity: 0.8;
    position: relative;
    display: inline-block;
}

.signature::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Services Grid Enhancement */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(200, 161, 94, 0.2);
    border-color: var(--accent);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-border);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(200, 161, 94, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: var(--font-serif);
}

.testimonial-content {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid var(--gray-border);
    padding-top: 1.2rem;
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Contact Bar Enhancement */
.contact-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 40px;
    margin: 5rem auto;
    max-width: 1100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(10, 54, 65, 0.4);
}

.contact-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.contact-bar h3 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-bar .highlight {
    font-weight: 600;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.contact-bar .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(200, 161, 94, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(0,0,0,0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ============================================
   LISTINGS PAGE (listings.html) ENHANCED STYLES
   ============================================ */

/* Page Hero Enhancement */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,161,94,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

/* Filters Sidebar Enhancement */
.filters-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeInLeft 1s ease;
}

.filters-sidebar:hover {
    box-shadow: 0 20px 40px -15px rgba(10, 54, 65, 0.1);
}

.filters-sidebar h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.3rem;
    position: relative;
}

.filters-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.filter-group {
    margin-bottom: 1.8rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:hover, .filter-input:hover {
    border-color: var(--accent);
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 161, 94, 0.1);
}

/* ============================================
   HIGHLY VISIBLE FILTER BUTTON
   ============================================ */

/* Filter Buttons Container - Side by Side */
.filter-buttons-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.filter-btn {
    flex: 2; /* Takes up 2/3 of the space */
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 15px -5px rgba(200, 161, 94, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.clear-btn {
    flex: 1; /* Takes up 1/3 of the space */
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    color: var(--text-muted);
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Hover Effects */
.filter-btn:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(200, 161, 94, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.clear-btn:hover {
    background: var(--gray-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Active States */
.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -2px rgba(200, 161, 94, 0.4);
}

.clear-btn:active {
    transform: translateY(0);
}

/* Icon styling */
.filter-btn i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .filter-buttons-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .filter-btn,
    .clear-btn {
        flex: none;
        width: 100%;
        padding: 0.9rem;
    }
    
    .filter-btn {
        font-size: 1rem;
    }
    
    .clear-btn {
        font-size: 0.95rem;
    }
}

/* Optional: Add a subtle animation */
.filter-buttons-container {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CALCULATOR STYLES - ADD THIS AT THE END
   ============================================ */

/* Calculator Tabs - Add top border and spacing */
.calculator-tabs {
    display: flex;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 2px solid var(--gray-border);
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--gray-border);
}

.calc-tab {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    flex: 1;
    text-align: center;
}

.calc-tab:hover {
    color: var(--accent);
}

.calc-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Calculator Panels - Fix spacing and scrolling */
.calculator-panel {
    display: none;
    margin-top: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for calculator panels */
.calculator-panel::-webkit-scrollbar {
    width: 6px;
}

.calculator-panel::-webkit-scrollbar-track {
    background: var(--gray-bg);
    border-radius: 10px;
}

.calculator-panel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.calculator-panel.active {
    display: block;
}

.calculator-panel h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    padding: 0.5rem 0;
    z-index: 5;
}

.calculator-panel h4 i {
    color: var(--accent);
}

.calc-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.calc-field {
    margin-bottom: 1rem;
}

.calc-field.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-field.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.calc-field.checkbox-field label {
    margin-bottom: 0;
    cursor: pointer;
}

.calc-btn {
    width: 100%;
    margin: 1.5rem 0;
    position: sticky;
    bottom: 0;
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 -5px 10px rgba(255,255,255,0.5);
    z-index: 5;
}

.calc-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 161, 94, 0.3);
}

.calc-result {
    background: var(--gray-bg);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.calc-details {
    margin-top: 1rem;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.calc-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--gray-border);
}

.calc-detail-item:last-child {
    border-bottom: none;
}

.calc-detail-item.highlight {
    font-weight: 700;
    color: var(--primary);
    background: var(--gray-bg);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.3rem;
}

.calc-viability {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.calc-viability.success {
    background: #d4edda;
    color: #155724;
}

.calc-viability.warning {
    background: #fff3cd;
    color: #856404;
}

.calc-viability.danger {
    background: #f8d7da;
    color: #721c24;
}

.calc-viability strong {
    display: block;
    margin-bottom: 0.3rem;
}

.insurance-recommendation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 12px;
}

.insurance-recommendation h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.insurance-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
}

.insurance-item {
    text-align: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.insurance-item span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

.insurance-item strong {
    font-size: 0.95rem;
    color: white;
}

.insurance-note {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
    margin-top: 0.5rem;
}

#garage-size-field, #extension-size-field {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-light);
}

/* Responsive adjustments for calculators */
@media (max-width: 1024px) {
    .calculator-tabs {
        flex-wrap: wrap;
    }
    
    .calc-tab {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .insurance-range {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .filters-sidebar {
        max-height: none;
        overflow-y: visible;
    }
    
    .calculator-panel {
        max-height: none;
        overflow-y: visible;
    }
}

/* Listings Header Enhancement */
.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.results-count {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    background: var(--gray-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.sort-select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    border: 1px solid var(--gray-border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546e7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2rem;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--accent);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a15e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Status Badges Enhancement */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.status-badge.active {
    background: rgba(200, 161, 94, 0.95);
    color: var(--primary);
}

.status-badge.sold {
    background: rgba(229, 62, 62, 0.95);
    color: white;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

/* Card Image Wrapper Enhancement */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

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

/* No Results Enhancement */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--gray-bg), white);
    border-radius: 30px;
    grid-column: 1 / -1;
    border: 2px dashed var(--gray-border);
}

.no-results i {
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Pagination Enhancement */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 0.8rem;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 161, 94, 0.3);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-link.dots {
    border: none;
    padding: 0.5rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
    }
    
    .about-grid {
        gap: 2rem;
    }
    
    .hero-logo-wrapper {
        width: 220px;
        height: 220px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .hero-logo-wrapper {
        width: 180px;
        height: 180px;
        padding: 1.5rem;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .section-heading h2::before,
    .section-heading h2::after {
        display: none;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
    
    .contact-bar h3 {
        font-size: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .listings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-wrapper {
        width: 150px;
        height: 150px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .listing-card {
        margin: 0 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* 12. Property Components
   ========================================================================== */
.property-detail {
    padding: 2rem 0 4rem;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.property-address {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i {
    color: var(--accent);
}

.property-price {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-gallery {
    margin-bottom: 3rem;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-thumbnail {
    height: 80px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.property-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Quick Facts */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gray-bg);
    border-radius: var(--border-radius-xl);
}

.fact-item {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.fact-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.fact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.fact-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Agent Card */
.agent-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.agent-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent);
    padding: 3px;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.agent-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.agent-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.agent-license {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.agent-contact {
    margin-bottom: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    border-radius: var(--border-radius-md);
}

.contact-link:hover {
    color: var(--accent);
    background: var(--gray-bg);
}

/* Mortgage Calculator */
.mortgage-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
}

.mortgage-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mortgage-card h3 i {
    color: var(--accent);
}

.calc-field {
    margin-bottom: 1rem;
}

.calc-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.calc-input:focus,
.calc-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray-bg);
    border-radius: var(--border-radius-md);
}

.result-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

/* 13. Insights & Blog
   ========================================================================== */
.insight-article {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: left;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta i {
    margin-right: 0.4rem;
    color: var(--accent);
}

.article-meta .category {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 0.85rem;
}

.article-featured-image {
    margin: 2rem 0 3rem;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-featured-image .caption {
    padding: 0.75rem 1rem;
    background: var(--gray-bg);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--gray-border);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content .lead {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 300;
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin: 1.8rem 0 0.8rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--gray-bg);
    border-left: 4px solid var(--accent);
    font-style: italic;
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: var(--font-serif);
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--accent-dark);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tag {
    background: var(--gray-bg);
    padding: 0.3rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.article-tag:hover {
    background: var(--accent);
    color: var(--primary);
}

.article-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Share Section - Enhanced Spacing */
.share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-bg), white);
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.share-label {
    text-align: center;
    margin-bottom: 2rem; /* Increased from 1.5rem */
}

.share-label span {
    background: var(--accent);
    color: var(--primary);
    padding: 0.6rem 2.2rem; /* Increased padding */
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem; /* Increased gap */
    font-size: 1.1rem; /* Slightly larger */
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(200, 161, 94, 0.2);
}

/* Grid layout for better spacing control */
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem; /* Increased gap between buttons */
    padding: 0.5rem; /* Inner padding */
    margin-bottom: 0.5rem;
}

/* Individual share buttons */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; /* Increased gap between icon and text */
    padding: 1rem 1.2rem; /* Increased padding */
    border: 1px solid var(--gray-border);
    border-radius: 12px; /* Slightly more rounded */
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    min-width: 140px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.share-btn i {
    font-size: 1.2rem; /* Larger icons */
    width: 1.4rem; /* Fixed width for alignment */
    text-align: center;
}

.share-btn-text {
    white-space: nowrap;
}

/* Hover effects with more spacing */
.share-btn:hover {
    transform: translateY(-3px); /* More noticeable lift */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 1rem; /* Slightly increase gap on hover */
}

/* Platform-specific hover colors */
.whatsapp-btn:hover { 
    background: #25D366; 
    color: white; 
    border-color: #25D366; 
}

.linkedin-btn:hover { 
    background: #0077B5; 
    color: white; 
    border-color: #0077B5; 
}

.facebook-btn:hover { 
    background: #1877F2; 
    color: white; 
    border-color: #1877F2; 
}

.x-btn:hover { 
    background: #000000; 
    color: white; 
    border-color: #000000; 
}

.reddit-btn:hover { 
    background: #FF4500; 
    color: white; 
    border-color: #FF4500; 
}

.email-btn:hover { 
    background: #EA4335; 
    color: white; 
    border-color: #EA4335; 
}

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

/* Status message with proper spacing */
.share-status {
    text-align: center;
    margin-top: 1.5rem; /* Increased top margin */
    padding: 0.8rem 1.5rem; /* Increased padding */
    border-radius: 50px;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.share-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
}

.share-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(114, 28, 36, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .share-label {
        margin-bottom: 1.5rem;
    }
    
    .share-label span {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .share-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .share-btn {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .share-btn i {
        font-size: 1rem;
        width: 1.2rem;
    }
}

@media (max-width: 480px) {
    .share-section {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .share-buttons-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 0.8rem;
    }
    
    .share-btn {
        padding: 0.7rem 0.5rem;
        flex-direction: column; /* Stack icon and text on very small screens */
        gap: 0.3rem;
    }
    
    .share-btn i {
        font-size: 1.2rem;
        width: auto;
        margin-bottom: 0.2rem;
    }
    
    .share-btn-text {
        white-space: normal;
        font-size: 0.8rem;
    }
}

/* Animation for status */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add tooltips for better UX */
.share-btn {
    position: relative;
}

.share-btn::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.share-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
    transform: translateX(-50%) scale(1);
}

/* Remove tooltip on mobile for cleaner UI */
@media (max-width: 768px) {
    .share-btn::after {
        display: none;
    }
}

/* Author Bio */
.author-bio {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-bg);
    border-radius: var(--border-radius-xl);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.author-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    font-size: 1.2rem;
}

.author-social a:hover {
    color: var(--accent);
}

/* Sources Box */
.sources-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--gray-bg);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
}

.sources-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.sources-box li {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* 14. Contact Page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card.linkedin-card {
    border-top: 4px solid #0077b5;
}

.contact-card.email-card {
    border-top: 4px solid var(--accent);
}

.contact-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card h3 i {
    color: var(--accent);
}

.linkedin-link {
    display: block;
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin: 1.5rem 0;
    transition: all var(--transition-base);
}

.linkedin-link:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    color: white;
}

.linkedin-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.linkedin-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.linkedin-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-method-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

.contact-method-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-method-content p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-method-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-method-link:hover {
    color: var(--accent);
}

.response-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.response-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-bg);
    border-radius: var(--border-radius-md);
}

.response-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.response-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Ad Section */
.contact-ad-section {
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background: var(--gray-bg);
    border-radius: var(--border-radius-xl);
}

.ad-label {
    margin-bottom: 1rem;
}

.ad-label span {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ad-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ad-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    border: 1px solid var(--gray-border);
}

.ad-badge {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: var(--accent);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.ad-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.ad-tagline {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.ad-description {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.ad-cta {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.ad-cta:hover {
    color: var(--primary);
}

.ad-placeholder {
    background: linear-gradient(135deg, var(--gray-light), var(--gray-bg));
    border: 2px dashed var(--gray-medium);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.placeholder-text h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.placeholder-text p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.placeholder-cta {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.ad-disclosure {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ad-disclosure i {
    color: var(--accent);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-section h3 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    margin: 0;
    color: var(--text-muted);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.action-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button-primary {
    background: var(--accent);
    color: var(--primary);
}

.action-button-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.action-button-secondary {
    background: var(--primary);
    color: white;
}

.action-button-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* 15. Admin Dashboard
   ========================================================================== */
.dashboard {
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    color: var(--primary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

:root {
    --primary: #0a3641;
    --primary-light: #1f5563;
    --primary-dark: #052027;
    --primary-rgb: 10, 54, 65;
    
    --accent: #c8a15e;
    --accent-light: #dbb47a;
    --accent-dark: #a88244;
    --accent-rgb: 200, 161, 94;
    
    --gray-bg: #f7f9fc;
    --gray-light: #f0f3f7;
    --gray-border: #e2e7ed;
    --gray-medium: #cbd5e0;
    --text-dark: #1e2b37;
    --text-muted: #546e7a;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* 16. Modal & Overlay Components
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--danger);
    background: var(--gray-bg);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-border);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--success);
    z-index: var(--z-toast);
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.back-to-top.visible {
    display: flex;
}

/* 17. Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-base);
}

.animate-slide-up {
    animation: slideUp var(--transition-base);
}

.animate-slide-down {
    animation: slideDown var(--transition-base);
}

.animate-slide-left {
    animation: slideLeft var(--transition-base);
}

.animate-slide-right {
    animation: slideRight var(--transition-base);
}

.animate-scale {
    animation: scale var(--transition-base);
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease infinite;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-light) 25%, var(--gray-border) 50%, var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-md);
}

/* 18. Responsive Breakpoints
   ========================================================================== */
/* 2XL Desktop */
@media (max-width: 1536px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* XL Desktop */
@media (max-width: 1280px) {
    .container {
        max-width: var(--container-lg);
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
}

/* Desktop */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quick-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-links,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .property-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quick-facts {
        grid-template-columns: 1fr;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .insights-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .listings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-button {
        text-align: center;
        justify-content: center;
    }
}

/* Mobile Landscape */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-icon {
        width: auto;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 10% 1rem;
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.8rem;
    }
    
    .property-address {
        font-size: 1.3rem;
    }
    
    .quick-facts {
        padding: 1rem;
    }
    
    .fact-item {
        padding: 0.75rem;
    }
    
    .agent-card {
        padding: 1.5rem;
    }
    
    .agent-image {
        width: 100px;
        height: 100px;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .ad-content {
        grid-template-columns: 1fr;
    }
    
    .ad-card,
    .ad-placeholder {
        flex-direction: column;
        text-align: center;
    }
}

/* 19. Print Styles
   ========================================================================== */
@media print {
    @page {
        margin: 2cm;
    }
    
    .site-header,
    .site-footer,
    .btn,
    .social-icons,
    .mobile-menu-toggle,
    .back-to-top,
    .modal,
    .toast,
    .hero-image,
    .property-gallery,
    .agent-card,
    .mortgage-card,
    .contact-form-section,
    .action-buttons,
    .share-buttons,
    .article-share,
    .author-social,
    .ad-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p, li, blockquote {
        orphans: 3;
        widows: 3;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .property-details-grid {
        display: block;
    }
    
    .quick-facts {
        border: 1px solid #ccc;
        padding: 1rem;
    }
    
    .fact-item {
        break-inside: avoid;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* No Results Enhancement */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--gray-bg), white);
    border-radius: 30px;
    grid-column: 1 / -1;
    border: 2px dashed var(--gray-border);
}

.no-results i {
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Distinct style for the no-results button */
.no-results .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.9rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(10, 54, 65, 0.3);
}

.no-results .btn-outline i {
    color: var(--primary);
    margin-right: 0.5rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.no-results .btn-outline:hover i {
    color: white;
}
