/* ========================================
   OPTIMIZED LARAVEL LAYOUT STYLES
   Mobile-First, Accessible, Modern Design
======================================== */

/* CSS Variables for Consistent Theming */
:root {
    --primary-color: #132749;
    --primary-light: #1e3a5f;
    --secondary-color: #0ea5e9;
    --success-color: #059669;
    --success-hover: #047857;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Layout */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.15s ease;
    --transition-fast: all 0.1s ease;
    --transition-slow: all 0.3s ease;
}

/* Base Reset and Improvements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
}

/* Improved Focus Management */
.focus-visible:focus {
    outline: 2px solid var(--info-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 6px;
    background: var(--info-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-main:focus {
    top: 6px;
}

/* ========================================
   BUTTON COMPONENT SYSTEM
======================================== */

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    min-height: 2.5rem;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Variants */
.btn-primary {
    background-color: var(--info-color);
    color: white;
    border-color: var(--info-color);
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-success:hover:not(:disabled) {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 2rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 3rem;
}

/* Mobile-first button behavior */
@media (max-width: 767px) {
    .btn-mobile-full {
        width: 100%;
    }
    
    .btn {
        min-height: 2.75rem; /* Larger touch targets on mobile */
    }
}

/* ========================================
   DROPDOWN COMPONENTS
======================================== */

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 5rem;
    height: 2.5rem;
}

.dropdown-trigger:hover {
    border-color: var(--gray-400);
    background-color: var(--gray-50);
}

.dropdown-trigger:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-height: 16rem;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--gray-50);
    color: var(--gray-900);
    outline: none;
}

.dropdown-item.active {
    background-color: var(--info-color);
    color: white;
}

/* ========================================
   HEADER COMPONENTS
======================================== */

/* Top bar styling */
.header-top-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--info-color);
    background-color: var(--gray-50);
}

.nav-link.active {
    color: var(--info-color);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--info-color);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile menu enhancements */
.mobile-menu-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
}

/* ========================================
   MOBILE MENU FIXES - EXACT HTML STRUCTURE
======================================== */

/* Mobile menu close button - targeting your exact HTML */
.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    font-weight: bold;
}

.mobile-menu-button:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Fix mobile dropdown positioning in your settings section */
.flex.gap-3.mb-4 .dropdown-btn-wrapper {
    position: relative;
    width: 100%;
}

/* Make language/currency dropdowns show full list in mobile */
.flex.gap-3.mb-4 .dropdown-btn-wrapper select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: white !important;
    color: #374151 !important;
    font-size: 14px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* Mobile menu scrollable content fix */
.mobile-menu-overlay .flex-1.overflow-y-auto {
    padding-bottom: 100px !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ========================================
   FOOTER FIXES - EXACT HTML STRUCTURE  
======================================== */

/* Remove "More Cities" column - target 4th column */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr; /* Removed 4th column */
        gap: 3rem;
    }
}

/* Hide the "More Cities" column specifically */
.footer-column:nth-child(4) {
    display: none;
}

/* Update contact information with your new details */
.contact-item:nth-child(1) span {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    color: #cbd5e1;
}

/* Newsletter section - make wider and responsive */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
}

@media (min-width: 768px) {
    .footer-newsletter {
        min-width: 400px;
        padding: 2.5rem;
    }
}

@media (min-width: 992px) {
    .footer-newsletter {
        min-width: 480px;
        padding: 3rem;
    }
}

/* Newsletter form - 100% width on mobile */
.newsletter-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-wrapper form {
        flex-direction: row;
        gap: 12px;
    }
}

.newsletter-wrapper input,
.newsletter-wrapper button {
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}

.newsletter-wrapper input {
    flex: 1;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
}

.newsletter-wrapper button {
    background: linear-gradient(135deg, #b71807 0%, #991506 100%);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-wrapper button:hover {
    background: linear-gradient(135deg, #991506 0%, #7f1d1d 100%);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .newsletter-wrapper button {
        width: auto;
        min-width: 140px;
        flex-shrink: 0;
    }
}
.footer-title,
.footer-brand {
    white-space: nowrap; /* force single line */
}

/* ========================================
   NAVIGATION LABEL FIXES - TARGET EXACT TEXT
======================================== */

/* Target the specific nav elements in your mobile menu */
.mobile-nav-item:nth-child(1)::after { content: "Home"; }
.mobile-nav-item:nth-child(2)::after { content: "Buy Property"; }
.mobile-nav-item:nth-child(3)::after { content: "Buyer Guide"; }
.mobile-nav-item:nth-child(4)::after { content: "Turkish Citizenship"; }
.mobile-nav-item:nth-child(5)::after { content: "Blog"; }
.mobile-nav-item:nth-child(6)::after { content: "Buy Property Online"; }
.mobile-nav-item:nth-child(7)::after { content: "Power of Attorney"; }

/* Hide the original translation text */
.mobile-nav-item {
    font-size: 0; /* Hide original text */
}

.mobile-nav-item::after {
    font-size: 16px; /* Show clean text */
    font-weight: 500;
}

.mobile-nav-item i {
    font-size: 18px !important; /* Keep icon visible */
}

/* Footer service links - target "footer.invest_in_turkey" */
.footer-column:nth-child(2) h3 {
    position: relative;
}

.footer-column:nth-child(2) h3::after {
    content: "Prime Property Partner";
    position: absolute;
    top: 0;
    left: 0;
    color: inherit;
}

/* Hide original heading text */
.footer-column:nth-child(2) h3 { 
    font-size: 0; /* Hide original text */
    margin: 0;
    position: relative;
}

/* Add styled heading using ::after */
.footer-column:nth-child(2) h3::after {
    content: 'Our Services'; /* Put the heading text here */
    font-size: 1.25rem;       /* Correct decimal */
    font-weight: 600;
    display: block;
    color: #132749;           /* Optional: match your theme */
    margin-bottom: 0.75rem;   /* spacing below heading */
}


/* ========================================
   FORM COMPONENTS
======================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
    border-color: var(--danger-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.form-help {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* ========================================
   SEARCH COMPONENT
======================================== */

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.search-button {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: var(--info-color);
    color: white;
    border-radius: calc(var(--border-radius) - 1px);
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: #2563eb;
}

/* ========================================
   MODAL COMPONENTS
======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 32rem;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow);
}

.modal-close:hover {
    color: var(--gray-700);
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* ========================================
   FOOTER COMPONENTS - UPDATED FOR PRIME PROPERTY PARTNER
======================================== */

/* Footer Container */
.footer-main {
    margin-top: 5rem;
    position: relative;
}

/* Wave Separator */
.footer-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Footer Background */
.footer-content {
    background: linear-gradient(135deg, #132749 0%, #1f2937 100%);
    color: #e2e8f0;
}

/* Grid System - Remove More Cities, Auto-fit for Prime Property Partner */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.legal-link {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.legal-link:hover {
    color: #ffffff;
}

/* Back to Top Button - Brand Style */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #b71807;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(183, 24, 7, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #991506;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 24, 7, 0.4);
}

/* Responsive Design - Global Standards */
@media (max-width: 991px) {
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-newsletter {
        padding: 1.5rem;
        margin-top: 1rem;
        min-width: auto;
    }
}

@media (max-width: 767px) {
    .footer-content .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-newsletter {
        padding: 1.5rem;
        min-width: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        gap: 1rem;
    }
}

/* Accessibility - Global Standards */
.footer-link:focus,
.social-link:focus,
.legal-link:focus,
.back-to-top:focus {
    outline: 2px solid #4596e6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .footer-main {
        background: none !important;
        color: #000000 !important;
    }
    
    .back-to-top {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-300: #a1a1aa;
        --gray-400: #71717a;
        --gray-500: #52525b;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .dark-mode-ready {
        --gray-50: #1f2937;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-300: #6b7280;
        --gray-400: #9ca3af;
        --gray-500: #d1d5db;
        --gray-600: #e5e7eb;
        --gray-700: #f3f4f6;
        --gray-800: #f9fafb;
        --gray-900: #ffffff;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */

/* GPU acceleration for smooth animations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Prevent layout shifts */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Optimize font loading */
.font-display-swap {
    font-display: swap;
}

/* Fix horizontal swipe issue globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Property cards container */
.property-cards-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0 1rem;
    scroll-snap-type: x mandatory;
}

/* Individual property card */
.property-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .property-card {
        width: 260px;
        min-width: 260px;
    }
    
    .property-cards-container {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
}

/* Hide scrollbar but keep functionality */
.property-cards-container::-webkit-scrollbar {
    display: none;
}

.property-cards-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Prevent full-width behavior */
.property-cards-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.property-cards-container {
    display: flex;
    width: max-content;
    max-width: none;
}

/* Ensure cards don't expand */
.property-card {
    flex-shrink: 0;
    flex-grow: 0;
    max-width: 280px;
}

.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.scroll-snap-x {
    scroll-snap-type: x mandatory;
}

.flex-shrink-0 {
    scroll-snap-align: start;
}

/* ========================================
   GLOBAL SPACING STANDARDS - UI/UX BEST PRACTICES
======================================== */

:root {
    /* Base spacing unit (8px grid system) */
    --spacing-unit: 8px;
    
    /* Spacing scale */
    --spacing-0: 0;
    --spacing-1: calc(var(--spacing-unit) * 0.5);  /* 4px */
    --spacing-2: var(--spacing-unit);              /* 8px */
    --spacing-3: calc(var(--spacing-unit) * 1.5);  /* 12px */
    --spacing-4: calc(var(--spacing-unit) * 2);    /* 16px */
    --spacing-5: calc(var(--spacing-unit) * 2.5);  /* 20px */
    --spacing-6: calc(var(--spacing-unit) * 3);    /* 24px */
    --spacing-8: calc(var(--spacing-unit) * 4);    /* 32px */
    --spacing-10: calc(var(--spacing-unit) * 5);   /* 40px */
    --spacing-12: calc(var(--spacing-unit) * 6);   /* 48px */
    --spacing-16: calc(var(--spacing-unit) * 8);   /* 64px */
    --spacing-20: calc(var(--spacing-unit) * 10);  /* 80px */
    --spacing-24: calc(var(--spacing-unit) * 12);  /* 96px */
    
    /* Component-specific spacing */
    --section-spacing-mobile: var(--spacing-12);   /* 48px */
    --section-spacing-tablet: var(--spacing-16);   /* 64px */
    --section-spacing-desktop: var(--spacing-20);  /* 80px */
    
    --content-spacing-mobile: var(--spacing-6);    /* 24px */
    --content-spacing-tablet: var(--spacing-8);    /* 32px */
    --content-spacing-desktop: var(--spacing-10);  /* 40px */
    
    --card-spacing: var(--spacing-4);              /* 16px */
    --card-spacing-mobile: var(--spacing-3);       /* 12px */
}

/* ========================================
   GLOBAL SECTION SPACING
======================================== */

/* Main content sections */
.main-section,
.content-section,
.hero-section,
.features-section,
.properties-section,
.testimonials-section,
.contact-section {
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
}

/* Reduce spacing between consecutive sections */
.main-section + .main-section,
.content-section + .content-section,
.section + .section {
    padding-top: calc(var(--section-spacing-mobile) * 0.5);
}

@media (min-width: 768px) {
    .main-section,
    .content-section,
    .hero-section,
    .features-section,
    .properties-section,
    .testimonials-section,
    .contact-section {
        padding-top: var(--section-spacing-tablet);
        padding-bottom: var(--section-spacing-tablet);
    }
    
    .main-section + .main-section,
    .content-section + .content-section,
    .section + .section {
        padding-top: calc(var(--section-spacing-tablet) * 0.6);
    }
}

@media (min-width: 1024px) {
    .main-section,
    .content-section,
    .hero-section,
    .features-section,
    .properties-section,
    .testimonials-section,
    .contact-section {
        padding-top: var(--section-spacing-desktop);
        padding-bottom: var(--section-spacing-desktop);
    }
    
    .main-section + .main-section,
    .content-section + .content-section,
    .section + .section {
        padding-top: calc(var(--section-spacing-desktop) * 0.7);
    }
}

/* ========================================
   CONTENT SPACING STANDARDS
======================================== */

/* Headings spacing */
h1, h2, h3, h4, h5, h6 {
    margin-top: var(--content-spacing-mobile);
    margin-bottom: var(--spacing-4);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

/* Paragraph spacing */
p {
    margin-top: 0;
    margin-bottom: var(--spacing-4);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

p:last-child {
    margin-bottom: 0;
}

/* List spacing */
ul, ol {
    margin-top: 0;
    margin-bottom: var(--spacing-4);
    padding-left: var(--spacing-6);
}

li {
    margin-bottom: var(--spacing-2);
}

li:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    h1, h2, h3, h4, h5, h6 {
        margin-top: var(--content-spacing-tablet);
        margin-bottom: var(--spacing-5);
    }
    
    p {
        margin-bottom: var(--spacing-5);
    }
    
    ul, ol {
        margin-bottom: var(--spacing-5);
    }
}

@media (min-width: 1024px) {
    h1, h2, h3, h4, h5, h6 {
        margin-top: var(--content-spacing-desktop);
        margin-bottom: var(--spacing-6);
    }
    
    p {
        margin-bottom: var(--spacing-6);
    }
    
    ul, ol {
        margin-bottom: var(--spacing-6);
    }
}

/* ========================================
   PROPERTY CARDS - ENHANCED EQUAL SPACING
======================================== */

/* Property cards grid system */
.properties-grid {
    display: grid;
    gap: var(--card-spacing-mobile);
    grid-template-columns: 1fr;
    padding: 0 var(--spacing-4);
}

@media (min-width: 640px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--card-spacing);
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-6);
    }
}

@media (min-width: 1280px) {
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced property card styling */
.property-card-enhanced {
    background: white;
    border-radius: var(--spacing-3);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    height: fit-content;
}

.property-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    border-color: var(--secondary-color);
}

.property-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.property-card-image-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card-enhanced:hover .property-card-image-enhanced {
    transform: scale(1.05);
}

.property-card-content-enhanced {
    padding: var(--spacing-6);
}

.property-card-title-enhanced {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 var(--spacing-2) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-price-enhanced {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 var(--spacing-4) 0;
}

.property-card-details-enhanced {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-4);
    margin: var(--spacing-4) 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.property-card-location-enhanced {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: var(--spacing-3) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.property-card-button-enhanced {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: calc(var(--spacing-2));
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: var(--spacing-4);
    font-size: 0.875rem;
}

.property-card-button-enhanced:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* ========================================
   NAVIGATION SPACING IMPROVEMENTS
======================================== */

.navbar {
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    margin-right: var(--spacing-8);
}

.navbar-nav {
    display: flex;
    gap: var(--spacing-6);
    align-items: center;
}

.navbar-item {
    padding: var(--spacing-2) var(--spacing-3);
}

@media (max-width: 767px) {
    .navbar {
        padding: var(--spacing-3) 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: var(--spacing-2);
        width: 100%;
    }
    
    .navbar-item {
        width: 100%;
        text-align: center;
        padding: var(--spacing-3) var(--spacing-4);
    }
}

/* ========================================
   FORM SPACING IMPROVEMENTS
======================================== */

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-row {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    
    .form-col {
        min-width: auto;
    }
}

/* ========================================
   BUTTON GROUP SPACING
======================================== */

.button-group {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.button-group-vertical {
    flex-direction: column;
}

@media (max-width: 767px) {
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* ========================================
   CARD SYSTEM IMPROVEMENTS
======================================== */

.card {
    background: white;
    border-radius: var(--spacing-3);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-body {
    padding: var(--spacing-6);
}

.card-footer {
    padding: var(--spacing-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ========================================
   RESPONSIVE SPACING ADJUSTMENTS
======================================== */

/* Mobile spacing reductions */
@media (max-width: 767px) {
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--spacing-4);
    }
    
    .form-group {
        margin-bottom: var(--spacing-4);
    }
}

/* ========================================
   UTILITY CLASSES FOR SPACING
======================================== */

/* Margin utilities */
.m-0 { margin: var(--spacing-0); }
.m-1 { margin: var(--spacing-1); }
.m-2 { margin: var(--spacing-2); }
.m-3 { margin: var(--spacing-3); }
.m-4 { margin: var(--spacing-4); }
.m-5 { margin: var(--spacing-5); }
.m-6 { margin: var(--spacing-6); }
.m-8 { margin: var(--spacing-8); }

/* Margin top */
.mt-0 { margin-top: var(--spacing-0); }
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }
.mt-8 { margin-top: var(--spacing-8); }

/* Margin bottom */
.mb-0 { margin-bottom: var(--spacing-0); }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }

/* Padding utilities */
.p-0 { padding: var(--spacing-0); }
.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }

/* Padding horizontal */
.px-0 { padding-left: var(--spacing-0); padding-right: var(--spacing-0); }
.px-1 { padding-left: var(--spacing-1); padding-right: var(--spacing-1); }
.px-2 { padding-left: var(--spacing-2); padding-right: var(--spacing-2); }
.px-3 { padding-left: var(--spacing-3); padding-right: var(--spacing-3); }
.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }

/* Padding vertical */
.py-0 { padding-top: var(--spacing-0); padding-bottom: var(--spacing-0); }
.py-1 { padding-top: var(--spacing-1); padding-bottom: var(--spacing-1); }
.py-2 { padding-top: var(--spacing-2); padding-bottom: var(--spacing-2); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }
.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }
.py-6 { padding-top: var(--spacing-6); padding-bottom: var(--spacing-6); }

/* Gap utilities for flexbox and grid */
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

/* ========================================
   SPECIFIC COMPONENT SPACING FIXES
======================================== */

/* Header spacing */
.header {
    margin-bottom: var(--spacing-0);
}

.header + .main {
    margin-top: var(--spacing-0);
}

/* Footer spacing */
.footer {
    margin-top: var(--spacing-8);
    padding-top: var(--spacing-12);
    padding-bottom: var(--spacing-8);
}

/* Navigation spacing */
.navigation {
    padding: var(--spacing-4) 0;
}

.nav-links {
    display: flex;
    gap: var(--spacing-6);
    align-items: center;
}

@media (max-width: 767px) {
    .nav-links {
        flex-direction: column;
        gap: var(--spacing-3);
    }
}

/* ========================================
   CONTENT WRAPPER IMPROVEMENTS
======================================== */

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 0 var(--spacing-6);
    }
}

@media (min-width: 1024px) {
    .content-wrapper {
        padding: 0 var(--spacing-8);
    }
}

/* ========================================
   GRID SYSTEM WITH CONSISTENT SPACING
======================================== */

.grid-container {
    display: grid;
    gap: var(--card-spacing-mobile);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
    .grid-container {
        gap: var(--card-spacing);
    }
}

@media (min-width: 1024px) {
    .grid-container {
        gap: var(--spacing-6);
    }
}

/* Auto-responsive grid */
.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========================================
   ANIMATION & INTERACTION IMPROVEMENTS
======================================== */

/* Smooth transitions for spacing changes */
.smooth-spacing {
    transition: margin 0.3s ease, padding 0.3s ease;
}

/* Hover effects with proper spacing */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* ========================================
   ACCESSIBILITY SPACING
======================================== */

/* Ensure minimum touch targets on mobile */
@media (max-width: 767px) {
    .btn,
    .nav-link,
    .dropdown-trigger {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Focus spacing improvements */
*:focus {
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES WITH PROPER SPACING
======================================== */

@media print {
    .section {
        padding: var(--spacing-4) 0;
    }
    
    .section + .section {
        margin-top: var(--spacing-6);
    }
    
    .property-card-enhanced {
        break-inside: avoid;
        margin-bottom: var(--spacing-6);
    }
}

/* Blog Swiper Styles - Consistent with Property Cards */
.blog-swiper {
    padding-bottom: 50px !important;
    margin: 0 -15px;
}

.blog-swiper .swiper-wrapper {
    align-items: stretch;
}

.blog-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Blog Card Enhanced - Small & Compact */
.blog-card-enhanced {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.blog-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Stretched Link for Full Card Click */
.blog-card-enhanced .stretched-link {
    position: static;
}

.blog-card-enhanced .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Image Container */
.blog-card-enhanced .relative {
    position: relative;
    overflow: hidden;
}

/* Content Styling */
.blog-card-enhanced .p-4 {
    padding: 12px;
}

.blog-card-enhanced h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
}

.blog-card-enhanced h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-enhanced h3 a:hover {
    color: #2563eb;
}

.blog-card-enhanced p {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Section */
.blog-card-enhanced .text-blue-600 {
    font-size: 11px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.blog-card-enhanced .text-gray-500 {
    font-size: 10px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .blog-swiper {
        margin: 0 -10px;
        padding-bottom: 40px !important;
    }
    
    .blog-card-enhanced {
        height: 260px;
    }
    
    .blog-card-enhanced .w-full {
        height: 120px;
    }
    
    .blog-card-enhanced .p-4 {
        padding: 10px;
    }
    
    .blog-card-enhanced h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .blog-card-enhanced p {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .blog-card-enhanced .text-blue-600 {
        font-size: 10px;
    }
    
    .blog-card-enhanced .text-gray-500 {
        font-size: 9px;
    }
    
    .blog-card-enhanced .absolute {
        top: 8px;
        right: 8px;
        padding: 4px 6px;
        border-radius: 6px;
    }
    
    .blog-card-enhanced .absolute .text-sm {
        font-size: 12px;
    }
    
    .blog-card-enhanced .absolute .text-xs {
        font-size: 9px;
    }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .blog-card-enhanced {
        height: 290px;
    }
    
    .blog-card-enhanced .w-full {
        height: 140px;
    }
}

/* Desktop Optimizations */
@media (min-width: 1025px) {
    .blog-card-enhanced {
        height: 320px;
    }
    
    .blog-card-enhanced .w-full {
        height: 160px;
    }
    
    .blog-card-enhanced h3 {
        font-size: 15px;
    }
    
    .blog-card-enhanced p {
        font-size: 13px;
    }
}

/* Swiper Navigation Consistency */
.blog-swiper .swiper-button-next,
.blog-swiper .swiper-button-prev {
    background: rgba(37, 99, 235, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.blog-swiper .swiper-button-next:hover,
.blog-swiper .swiper-button-prev:hover {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.1);
}

.blog-swiper .swiper-button-next::after,
.blog-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.blog-swiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: #2563eb;
    transform: scale(1.3);
}

/* Touch Optimizations */
.blog-card-enhanced.touch-optimized {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.1);
}

.blog-card-enhanced.touch-optimized:active {
    transform: scale(0.98);
}

/* Consistent spacing with property cards */
.property-card-enhanced-spacing {
    padding: 0 8px;
}

@media (max-width: 640px) {
    .property-card-enhanced-spacing {
        padding: 0 6px;
    }
}

/* Loading states */
.blog-swiper.swiper-initialized {
    opacity: 1;
}

.blog-swiper:not(.swiper-initialized) {
    opacity: 0.7;
}

/* Focus states for accessibility */
.blog-card-enhanced:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Enhanced hover effects for desktop */
@media (min-width: 1025px) {
    .blog-card-enhanced::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 0;
    }
    
    .blog-card-enhanced:hover::before {
        opacity: 1;
    }
}

/* Force View All Articles button to always show */
.view-all-btn,
.text-center.mt-8 a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb !important;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.text-center.mt-8 a:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
}

/* ========================================
   ENHANCED INLINE STYLES - BETTER ORGANIZATION
======================================== */

/* Button System - Consistent & Accessible */
.btn:focus { 
    filter: brightness(.9); 
    outline: 2px solid #3b82f6; 
    outline-offset: 2px; 
}

@media(max-width:767px){ 
    .btn { width: 100%; } 
}

/* Navigation System */
.cat-list a.active {
    font-weight: 700;
    color: #0ea5e9 !important;
    position: relative;
}

.cat-list a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0ea5e9;
    border-radius: 1px;
}

/* Dropdown System - Enhanced UX */
.dropdown-btn-wrapper select,
.dropdown-btn-wrapper button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    background: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    min-width: 100px;
    height: 40px;
    line-height: 1.2;
}

.dropdown-btn-wrapper select:hover,
.dropdown-btn-wrapper button:hover {
    border-color: #6b7280 !important;
    background: #f9fafb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dropdown-btn-wrapper select:focus,
.dropdown-btn-wrapper button:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Appointment & Contact Buttons */
.appointment-btn-wrapper button,
.appointment-btn-wrapper a,
.contact-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    text-decoration: none !important;
    height: 44px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.appointment-btn-wrapper button::before,
.appointment-btn-wrapper a::before,
.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.appointment-btn-wrapper button:hover::before,
.appointment-btn-wrapper a:hover::before,
.contact-button:hover::before {
    left: 100%;
}

.appointment-btn-wrapper button:hover,
.appointment-btn-wrapper a:hover,
.contact-button:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3) !important;
    text-decoration: none !important;
    color: white !important;
}

.appointment-btn-wrapper button:focus,
.appointment-btn-wrapper a:focus,
.contact-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3), 0 8px 25px rgba(5, 150, 105, 0.2) !important;
}

/* Login & Dashboard Buttons */
.login-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    height: 44px;
    min-width: 120px;
}

.login-dashboard-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
}

.login-dashboard-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* Enhanced Mobile Menu System */
.mobile-menu-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content.open {
    transform: translateX(0);
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.mobile-menu-button:active {
    background-color: rgba(59, 130, 246, 0.2);
    transform: scale(0.95);
}

/* Mobile Navigation Items */
@media (max-width: 768px) {
    .mobile-nav-item {
        padding: 16px 20px;
        border-bottom: 1px solid #f3f4f6;
        touch-action: manipulation;
        display: flex;
        align-items: center;
        color: #374151;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        min-height: 56px;
    }
    
    .mobile-nav-item:hover {
        background-color: #f8fafc;
        color: #059669;
        padding-left: 24px;
    }
    
    .mobile-nav-item:active {
        background-color: #f1f5f9;
        transform: scale(0.98);
    }

    .mobile-nav-item i {
        width: 20px;
        text-align: center;
        margin-right: 12px;
        font-size: 1.1rem;
    }
}

/* Search result highlighting */
.match-highlight {
    background: linear-gradient(90deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 3px solid #007bff;
    font-weight: 600;
    margin: 2px -8px;
    padding: 10px 8px;
    border-radius: 4px;
}

.match-partial {
    background: linear-gradient(90deg, #f5f5f5 0%, #fafafa 100%);
    border-left: 2px solid #28a745;
    font-weight: 500;
    margin: 2px -8px;
    padding: 10px 8px;
    border-radius: 4px;
}

.radio-item.match-highlight:hover,
.checkbox-item.match-highlight:hover {
    background: linear-gradient(90deg, #bbdefb 0%, #e1bee7 100%);
}

.radio-item.match-partial:hover,
.checkbox-item.match-partial:hover {
    background: linear-gradient(90deg, #eeeeee 0%, #f5f5f5 100%);
}.footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2.5fr 1fr 1fr 2fr;
        gap: 3rem;
    }
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* Company Section - Prime Property Partner */
.footer-company {
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 280px;
    letter-spacing: 0.01em;
}

/* Section Titles - Brand Style */
.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    letter-spacing: -0.01em;
}

.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #b71807;
    border-radius: 2px;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

/* Contact Information - UPDATED DETAILS */
.footer-contact {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

.contact-icon {
    margin-right: 0.75rem;
    width: 1rem;
    color: #b71807;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    flex: 1;
}

/* Updated contact styling */
.contact-phone {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    color: #cbd5e1;
}

.contact-address {
    max-width: 280px;
    line-height: 1.6;
}

/* Newsletter Section - ENHANCED WIDTH & RESPONSIVENESS */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
}

@media (min-width: 768px) {
    .footer-newsletter {
        min-width: 350px;
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-newsletter {
        min-width: 420px;
        padding: 3rem;
    }
}

/* Newsletter Component Integration - FIXED RESPONSIVE */
.footer-newsletter .w-full.h-fit p {
    color: #e2e8f0;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.footer-newsletter .w-full.h-fit form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}


@media (min-width: 768px) {
    .footer-newsletter .w-full.h-fit form {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

}

.footer-newsletter .w-full.h-fit input[type="email"] {
    height: 3rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #2E3138;
    border: 1px solid #e5e7eb;
    outline: none;
    font-size: 0.875rem;
    width: 100%;
    flex: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.footer-newsletter .w-full.h-fit input[type="email"]:focus {
    border-color: #4596e6;
    box-shadow: 0 0 0 3px rgba(69, 150, 230, 0.1);
}

.footer-newsletter .w-full.h-fit input[type="email"]::placeholder {
    color: #9ca3af;
}

.footer-newsletter .w-full.h-fit input[type="submit"] {
    height: 3rem;
    padding: 0 2rem;
    background-color: #b71807;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(183, 24, 7, 0.2);
    align-self: center;
    flex-shrink: 0;
}

.footer-newsletter .w-full.h-fit input[type="submit"]:hover {
    background-color: #991506;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 24, 7, 0.3);
}

/* Mobile newsletter 100% width */
@media (max-width: 767px) {
    .footer-newsletter .w-full.h-fit input[type="email"],
    .footer-newsletter .w-full.h-fit input[type="submit"] {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* Newsletter responsive styles - ENHANCED */
.newsletter-wrapper {
    width: 100%;
}

.newsletter-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 769px) {
    .newsletter-wrapper form {
        flex-direction: row;
        gap: 12px;
    }
}

.newsletter-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    width: 100%;
}

.newsletter-wrapper button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

.newsletter-wrapper button:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
}

@media (min-width: 769px) {
    .newsletter-wrapper button {
        flex-shrink: 0;
        min-width: 140px;
        width: auto;
    }
}

/* Social Media */
.footer-social {
    margin-top: 1rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    letter-spacing: -0.01em;
}

.social-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #4596e6;
    border-radius: 2px;
    
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* Brand Colors for Social */
.social-facebook:hover { background-color: #1877f2; }
.social-instagram:hover { background-color: #e4405f; }
.social-twitter:hover { background-color: #000000; }
.social-linkedin:hover { background-color: #0a66c2; }
.social-whatsapp:hover { background-color: #25d366; }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

.copyright-text {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.company-info {
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

/* Legal Links */
.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Target your exact component structure in mobile preferences */
.border-t.border-slate-200.p-4 .dropdown-btn-wrapper .flex.flex-col.absolute {
    /* Make dropdown open upward */
    bottom: 100% !important;
    top: auto !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    
    /* Make it scrollable */
    max-height: 150px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    
    /* Enhance styling */
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1) !important;
}

/* Style the scrollbar */
.border-t.border-slate-200.p-4 .dropdown-btn-wrapper .flex.flex-col.absolute::-webkit-scrollbar {
    width: 6px !important;
}

.border-t.border-slate-200.p-4 .dropdown-btn-wrapper .flex.flex-col.absolute::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

.border-t.border-slate-200.p-4 .dropdown-btn-wrapper .flex.flex-col.absolute::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 3px !important;
}

.border-t.border-slate-200.p-4 .dropdown-btn-wrapper .flex.flex-col.absolute::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}




/* Enhanced Footer Styles - Responsive Design */
.footer-main {
    background: linear-gradient(135deg, #132749 0%, #1e3a5f 100%);
    color: #ffffff;
    position: relative;
    margin-top: auto;
}

.footer-wave {
    height: 60px;
    overflow: hidden;
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
}

.footer-content {
    padding: 0;
}

/* Main Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.3fr;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

/* Footer Column Base Styles */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
}

/* Company Section */
.footer-company {
    max-width: 100%;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #34d399);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Contact Information */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.contact-icon {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.contact-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #10b981;
}

.contact-address {
    color: #cbd5e1;
    line-height: 1.5;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 4px;
    position: relative;
}

.footer-link:hover {
    color: #10b981;
    padding-left: 0.5rem;
}

.footer-link i {
    font-size: 0.9rem;
    width: 16px;
}

/* Locations */
.footer-locations .locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-locations .locations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.location-link {
    font-size: 0.9rem;
}

.view-all-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 0.75rem;
}

/* Newsletter & Social */
.footer-newsletter {
    max-width: 100%;
}

.newsletter-section {
    margin-bottom: 2rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Social Links */
.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .social-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: fit-content;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-facebook:hover { background: #1877f2; }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-twitter:hover { background: #1da1f2; }
.social-linkedin:hover { background: #0077b5; }
.social-whatsapp:hover { background: #25d366; }
.social-youtube:hover { background: #ff0000; }

.social-text {
    font-weight: 500;
}

/* Quick Contact */
.quick-contact {
    margin-top: 1rem;
}

.quick-contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.quick-contact-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}
.quick-contact-buttons a[href^="tel:"] {
    pointer-events: all !important;
    position: relative !important;
    z-index: 999 !important;
    display: flex !important;
}
.quick-call {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.quick-call:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.quick-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
}

.quick-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
}

/* Trust Indicators */
.footer-trust {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.trust-icon {
    color: #10b981;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.trust-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.trust-content p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    flex: 1;
}

.copyright-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.company-info {
    color: #94a3b8;
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.legal-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #10b981;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-company {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .quick-contact-buttons {
        flex-direction: column;
    }
    
    .quick-btn {
        flex: none;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    .footer-main {
        display: none;
    }
}


@media (min-width: 768px) {
    .footer-newsletter .w-full.h-fit form {
        flex-direction: row;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .footer-newsletter .w-full.h-fit input[type="email"] {
        flex: 2;
        min-width: 0;
    }
    
    .footer-newsletter .w-full.h-fit input[type="submit"] {
        flex: 0 0 120px;
        width: 120px;
    }
}


/* ========================================
   ENHANCED SECTION TITLES - PROFESSIONAL UI/UX
======================================== */

/* Base Section Title Styling */
.section-title,
.why-choose-title,
.new-listing-title,
.discounted-properties-title,
.what-we-offer-title,
.latest-news-title,
.testimonials-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: capitalize;
}

/* Gradient Text Effect for Premium Look */
.section-title-gradient,
.why-choose-title,
.what-we-offer-title {
    background: linear-gradient(135deg, #132749 0%, #0ea5e9 50%, #132749 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Decorative Underline */
.section-title::after,
.why-choose-title::after,
.new-listing-title::after,
.discounted-properties-title::after,
.what-we-offer-title::after,
.latest-news-title::after,
.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
    animation: expand 0.8s ease-out forwards;
}

@keyframes expand {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

/* Special Styling for Specific Sections */

/* Why Choose Us - Premium Gold Accent */
.why-choose-title {
    color: var(--primary-color);
    position: relative;
}

.why-choose-title::before {
    content: '★';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* New Listing - Fresh Green Accent */
.new-listing-title {
    color: var(--success-color);
}

.new-listing-title::after {
    background: linear-gradient(90deg, transparent, var(--success-color), transparent);
}

/* Discounted Properties - Attention Red */
.discounted-properties-title {
    color: var(--danger-color);
    position: relative;
}

.discounted-properties-title::before {
    content: '🏷️';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.discounted-properties-title::after {
    background: linear-gradient(90deg, transparent, var(--danger-color), transparent);
}

/* What We Offer - Professional Blue */
.what-we-offer-title {
    color: var(--info-color);
}

.what-we-offer-title::after {
    background: linear-gradient(90deg, transparent, var(--info-color), transparent);
}

/* Latest News - Modern Purple */
.latest-news-title {
    color: #6366f1;
}

.latest-news-title::after {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

/* What Our Clients Say - Trust Orange */
.testimonials-title {
    color: #f59e0b;
}

.testimonials-title::after {
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* Subtitle Support */
.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title,
    .why-choose-title,
    .new-listing-title,
    .discounted-properties-title,
    .what-we-offer-title,
    .latest-news-title,
    .testimonials-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .section-title::after,
    .why-choose-title::after,
    .new-listing-title::after,
    .discounted-properties-title::after,
    .what-we-offer-title::after,
    .latest-news-title::after,
    .testimonials-title::after {
        width: 60px;
    }
    
    .why-choose-title::before,
    .discounted-properties-title::before {
        left: -1.5rem;
        font-size: 1.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .section-title,
    .new-listing-title,
    .what-we-offer-title,
    .latest-news-title,
    .testimonials-title {
        color: #e2e8f0;
    }
    
    .section-subtitle {
        color: #94a3b8;
    }
}

/* Hover Effects for Interactive Elements */
.section-title-interactive {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title-interactive:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Accessibility Improvements */
.section-title:focus,
.why-choose-title:focus,
.new-listing-title:focus,
.discounted-properties-title:focus,
.what-we-offer-title:focus,
.latest-news-title:focus,
.testimonials-title:focus {
    outline: 2px solid var(--info-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .section-title-gradient {
        animation: none;
        background: var(--primary-color);
        background-clip: initial;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
    }
    
    .section-title::after,
    .why-choose-title::after,
    .new-listing-title::after,
    .discounted-properties-title::after,
    .what-we-offer-title::after,
    .latest-news-title::after,
    .testimonials-title::after {
        animation: none;
    }
    
    .why-choose-title::before {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .section-title,
    .why-choose-title,
    .new-listing-title,
    .discounted-properties-title,
    .what-we-offer-title,
    .latest-news-title,
    .testimonials-title {
        color: #000000 !important;
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
        text-shadow: none !important;
    }
    
    .section-title::after,
    .why-choose-title::after,
    .new-listing-title::after,
    .discounted-properties-title::after,
    .what-we-offer-title::after,
    .latest-news-title::after,
    .testimonials-title::after,
    .why-choose-title::before,
    .discounted-properties-title::before {
        display: none !important;
    }
}

.property-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.key-features .feature {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bae6fd;
    position: relative;
}

.key-features .feature:before {
    content: "✓";
    color: #059669;
    font-weight: 700;
    margin-right: 6px;
    font-size: 12px;
}


.image-gallery {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.swipe-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    cursor: pointer;
}

.image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}



/* Buyer Guide Dropdown Fix */
[x-show="guide"] {
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 250px !important;
    background: white !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px 0 !important;
    margin-top: 8px !important;
}

#nav-urls .relative {
    overflow: visible !important;
}

header, .desktop-nav, #nav-urls {
    z-index: 50 !important;
}

.hero-section * {
    z-index: 1 !important;
}


.save-search-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.save-search-btn:hover {
    background: #3b82f6;
    color: white;
}








