/*
Theme Name: Elite Real Estate RTL
Theme URI: https://example.com/elite-real-estate-rtl
Author: Your Name
Author URI: https://yourwebsite.com
Description: Premium WordPress theme for real estate in Arabic with RTL support
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elite-realestate-rtl
Tags: real-estate, rtl, arabic, responsive, modern
*/

/* 
===================
TABLE OF CONTENTS:
===================
1. CSS Variables & Base Styles
2. Typography
3. Layout & Grid
4. Buttons & Forms
5. Header Styles
6. Footer Styles
7. Hero Section
8. About Section
9. Projects Section
10. Gallery Section
11. Contact Section
12. Single Project Styles
13. Archive & Category Pages
14. Blog & Posts Styles
15. Sidebar & Widgets
16. Popup Contact Form
17. Comments & Discussion
18. RTL Specific Styles
19. Utility Classes
20. Responsive Styles
21. Animations & Effects
22. Units Section Styles
===================
*/

/* 
=======================================
1. CSS Variables & Base Styles
=======================================
*/

:root {
    /* Color palette */
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-full: 50px;
    
    /* Spacing system */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;
    
    /* Typography */
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-md: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem;  /* 36px */
    
    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: var(--line-height-normal);
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

/* 
=======================================
2. Typography
=======================================
*/

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
    color: var(--dark-color);
    line-height: var(--line-height-tight);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

blockquote {
    border-right: 4px solid var(--secondary-color);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

code, pre {
    font-family: monospace;
    background-color: #f5f5f5;
    border-radius: var(--radius-sm);
}

pre {
    padding: var(--space-md);
    overflow-x: auto;
    margin: var(--space-lg) 0;
    border: 1px solid var(--border-color);
}

code {
    padding: var(--space-xxs) var(--space-xs);
}

/* 
=======================================
3. Layout & Grid
=======================================
*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--space-md));
}

.col {
    padding: 0 var(--space-md);
    flex: 1;
    min-width: 0; /* Prevents overflow issues */
}

.section-spacing {
    padding: var(--space-xxl) 0;
}

.content-wrapper {
    display: flex;
    gap: var(--space-xl);
}

.main-content {
    flex: 2;
    min-width: 0; /* Prevents overflow issues */
    background-color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    position: relative;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #777;
    font-size: var(--font-size-lg);
}

.section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* 
=======================================
4. Buttons & Forms
=======================================
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    text-align: center;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: var(--font-size-sm);
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.btn:hover:before {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: #d35400;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background-color: #2980b9;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: calc(var(--space-sm) - 2px) calc(var(--space-lg) - 2px);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-md);
}

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

.btn i {
    transition: all 0.3s ease;
}

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

.btn-loading {
    position: relative;
    text-indent: -9999px;
}

.btn-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s infinite linear;
}

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

/* Form Styles */
input, textarea, select, button {
    font-family: 'Cairo', sans-serif;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    color: var(--dark-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
    background-color: white;
}

/* 
 * Fix for project meta items to ensure text is visible 
 * against the hero section background
 */

/* Project meta in hero section */
.hero-section .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.hero-section .meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    /* Ensure text is visible - add contrasting color */
    color: white;
    font-weight: var(--font-weight-semibold);
    backdrop-filter: blur(2px);
}

.hero-section .meta-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.25);
}

.hero-section .meta-item i {
    color: var(--secondary-color);
    font-size: var(--font-size-md);
    /* Make the icon slightly larger for better visibility */
    font-size: 1.2em;
}

/* For dark backgrounds, ensure text has shadow for better readability */
.hero-section .meta-item {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Make sure the meta items are properly spaced on mobile */
@media (max-width: 768px) {
    .hero-section .project-meta {
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .hero-section .meta-item {
        padding: var(--space-xxs) var(--space-sm);
        font-size: var(--font-size-xs);
    }
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-left: var(--space-xs);
}

.form-group .checkbox-label,
.form-group .radio-label {
    display: inline-block;
    margin-bottom: 0;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    font-family: 'Cairo', sans-serif;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.submit-btn:hover:before {
    width: 100%;
}

.submit-btn:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}


/**
 * Additional CSS to enhance units and project location pages
 * Add this to your theme's custom CSS or style.css
 */

/* Enhanced units page with project filtering */
.units-archive .archive-header {
    margin-bottom: 30px;
}

.units-archive .archive-title {
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.units-archive .archive-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.units-archive .archive-description {
    color: #777;
    margin-bottom: 25px;
    font-size: var(--font-size-md);
    line-height: 1.6;
}

/* Filter styles for both units and projects */
.filters-toggle {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-weight: var(--font-weight-bold);
}

.filters-toggle:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.filters-container {
    background-color: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* Units grid - larger display for project-specific units */
.units-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.unit-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

/* Unit thumbnail */
.unit-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.unit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

/* Unit status badges */
.unit-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.status-available {
    background-color: #27ae60;
}

.status-reserved {
    background-color: #f39c12;
}

.status-sold {
    background-color: #e74c3c;
}

/* Unit price tag */
.unit-price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 10px 0 0 0;
    font-size: 14px;
    z-index: 2;
}

.unit-price-tag i {
    margin-left: 5px;
}

/* Unit info */
.unit-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.unit-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.unit-title a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.unit-title a:hover {
    color: var(--secondary-color);
}

.unit-project {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.unit-project i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.unit-project a {
    color: var(--accent-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.unit-project a:hover {
    color: var(--secondary-color);
}

/* Unit meta details */
.unit-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.unit-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 13px;
}

.unit-detail i {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Unit description */
.unit-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Unit actions */
.unit-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* Projects grid for location pages */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

/* Location info section styles */
.location-info-section {
    margin-top: 50px;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.location-info-header h2 {
    color: var(--dark-color);
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.location-info-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

.location-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.location-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.location-description {
    flex: 1;
    min-width: 300px;
}

.location-features {
    margin: 20px 0;
}

.location-features h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.features-list li i {
    color: var(--secondary-color);
}

.location-cta {
    margin-top: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .units-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .location-content-wrapper {
        flex-direction: column;
    }
    
    .location-image {
        order: 1;
        width: 100%;
    }
    
    .location-description {
        order: 2;
        width: 100%;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .units-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .unit-meta {
        grid-template-columns: 1fr 1fr;
    }
}
.form-response {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.form-response.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-response.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.form-response i {
    margin-left: var(--space-xs);
}

/* 
 * CSS for Enhanced Territory Filtering 
 */

/* Improve performance during filtering animations */
.filtering .project-card,
.filtering .unit-card {
    transition: none !important;
}

/* Optional debugging styles - useful during development */
.no-territory {
    border: 2px dashed #ff6b6b;
    position: relative;
}

.no-territory:after {
    content: "بدون منطقة";
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    z-index: 10;
}

.no-project {
    border: 2px dashed #ff6b6b;
    position: relative;
}

.no-project:after {
    content: "بدون مشروع";
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    z-index: 10;
}

/* Make sure filter buttons are clearly visible when active */
.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.filter-btn:hover:before {
    width: 100%;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Filter animation effects */
.project-card, .unit-card {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .unit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

/* Animation for projects appearing when filtered */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animation to appearing projects */
.projects-grid .project-card,
.units-grid .unit-card {
    animation: fadeInScale 0.4s ease;
}

/* Fix flexbox issues in IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .flex-container, .content-wrapper, .project-meta, .footer-widgets, .project-actions {
        display: block;
    }
    
    .ie-flex-container {
        display: table;
        width: 100%;
    }
    
    .ie-flex-container > * {
        display: table-cell;
        vertical-align: middle;
    }
}

/* Fix for iOS fixed position issues */
.ios-device.popup-open {
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Improve tap target sizes on mobile */
@media (max-width: 768px) {
    .btn, button, 
    .filter-btn, 
    .meta-item,
    .navbar-toggler,
    .form-control,
    .slick-arrow {
        min-height: 44px;
        min-width: 44px;
    }
    
    .units-filters .filter-btn,
    .projects-filters .filter-btn {
        margin-bottom: 8px;
    }
}

/* Better support for RTL in specific components */
.rtl .slick-slider .slick-track {
    direction: rtl;
}

.rtl .filter-btn i {
    margin-right: 0;
    margin-left: 5px;
}

/* Optimize animations for reduced motion preference */
@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;
    }
    
    .hero-section {
        background-attachment: scroll !important;
    }
}

/* Performance optimizations */
.filtering .project-card,
.filtering .unit-card {
    transition: none !important;
}

/* Add hardware acceleration for smoother animations */
.slick-slide, 
.gallery-item img, 
.project-card, 
.unit-card,
.popup-container,
.stat-card:hover,
.stat-icon-container,
#back-to-top,
.btn:hover,
.amenity-item:hover {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Fix z-index stacking context issues */
.site-header {
    z-index: 1000;
}

.floating-buttons {
    z-index: 999;
}

.contact-popup {
    z-index: 1100;
}

.gallery-slider .slick-arrow {
    z-index: 10;
}

/* Accessibility improvements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

:focus {
    outline: 2px dotted var(--accent-color);
    outline-offset: 2px;
}

.error-field {
    border-color: var(--error-color) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

/* Optimize for print */
@media print {
    .site-header, 
    .site-footer, 
    .floating-buttons, 
    #back-to-top,
    .project-actions,
    .social-sharing,
    .related-projects {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .project-card,
    .unit-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* Search Form */
.search-form {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-field {
    flex-grow: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: var(--font-size-md);
}

.search-submit {
    background-color: var(--accent-color);
    color: white;
    padding: 0 var(--space-md);
    border: none;
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: var(--secondary-color);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper .search-field {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-left: 50px;
    border-radius: var(--radius);
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.search-input-wrapper .search-field:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.search-input-wrapper .search-submit {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: none;
    color: var(--accent-color);
    padding: 0 var(--space-md);
}

.search-input-wrapper .search-submit:hover {
    color: var(--secondary-color);
}

/* New Badge for Projects */
.new-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-xxs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Unit Status Badge */
.unit-status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    color: white;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease;
    font-size: var(--font-size-sm);
}

.status-available {
    background-color: var(--success-color);
}

.status-reserved {
    background-color: var(--accent-color);
}

.status-sold {
    background-color: var(--error-color);
}

/* Unit Price in Hero */
.unit-price {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: white;
    background-color: rgba(230, 126, 34, 0.8);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    display: inline-block;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease 0.2s;
    animation-fill-mode: both;
}

/* Project Link in Unit Page */
.unit-project-link {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.5s ease 0.1s;
    animation-fill-mode: both;
}

.unit-project-link a {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s ease;
}

.unit-project-link a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.unit-project-link i {
    font-size: var(--font-size-md);
}

/* 
=======================================
5. Header Styles
=======================================
*/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.transparent-header {
    background-color: transparent;
    box-shadow: none;
}

.transparent-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
    margin-left: var(--space-lg);
}

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

.site-title {
    font-size: var(--font-size-xl);
    margin: 0;
}

.site-title a {
    color: var(--dark-color);
}

.transparent-header .site-title a {
    color: white;
}

.transparent-header.scrolled .site-title a {
    color: var(--dark-color);
}

.site-description {
    margin: 0;
    font-size: var(--font-size-sm);
    color: #777;
}

.transparent-header .site-description {
    color: rgba(255, 255, 255, 0.8);
}

.transparent-header.scrolled .site-description {
    color: #777;
}

/* Main Navigation - Redesigned */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    padding-right: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
    padding: var(--space-xs) var(--space-sm);
    display: block;
    position: relative;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.main-navigation a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--secondary-color);
}

.main-navigation a:hover:after,
.main-navigation .current-menu-item > a:after {
    width: 100%;
}

.transparent-header .main-navigation a {
    color: white;
}

.transparent-header.scrolled .main-navigation a {
    color: var(--dark-color);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: var(--space-xs) 0;
    border-radius: 0 0 var(--radius) var(--radius);
    display: block;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    margin: 0;
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: var(--transition);
    margin: 0 auto;
}

.transparent-header .menu-icon {
    background-color: white;
}

.transparent-header.scrolled .menu-icon {
    background-color: var(--dark-color);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    position: absolute;
    transition: var(--transition);
}

.transparent-header .menu-icon::before,
.transparent-header .menu-icon::after {
    background-color: white;
}

.transparent-header.scrolled .menu-icon::before,
.transparent-header.scrolled .menu-icon::after {
    background-color: var(--dark-color);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 
=======================================
6. Footer Styles
=======================================
*/

.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: var(--space-xxl) 0 0;
    position: relative;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.footer-widget-area {
    color: #ecf0f1;
}

.widget-title {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.widget ul {
    list-style: none;
    padding-right: 0;
}

.widget ul li {
    margin-bottom: var(--space-xs);
    transition: all 0.3s ease;
}

.widget ul li a {
    color: #ecf0f1;
    transition: var(--transition);
    display: block;
    padding: var(--space-xxs) 0;
}

.widget ul li a:hover {
    color: var(--secondary-color);
    padding-right: var(--space-xs);
}

.site-info {
    text-align: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Buttons - Redesigned */
.floating-buttons {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 999;
}

.floating-buttons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-lg);
    transition: all 0.3s ease;
    background-color: var(--accent-color);
}

.floating-buttons a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.whatsapp-btn {
    background-color: #25d366;
}

.call-btn {
    background-color: #e74c3c;
}

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

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 99;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-md);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Mobile Floating Contact Button */
.mobile-contact-btn {
    display: none;
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
}

.mobile-contact-btn i {
    margin-left: var(--space-xs);
}

/* 
=======================================
7. Hero Section
=======================================
*/

.hero-section {
    height: 85vh;
    min-height: 500px;
    background-image: url('assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 var(--space-md);
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    line-height: var(--line-height-tight);
}

.hero-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

/* 
=======================================
8. About Section
=======================================
*/

.about-section {
    padding: var(--space-xxl) 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.2;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-2xl);
    position: relative;
    padding-bottom: var(--space-sm);
}

.about-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.about-text p {
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-md);
    color: #555;
    margin-bottom: var(--space-lg);
}

.stats-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: var(--font-size-3xl);
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.stat-title {
    color: #777;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
}

/* About Section Responsive */
.about-section-responsive {
    padding: var(--space-xxl) 0;
    background-color: white;
    position: relative;
}

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.about-header h2 {
    font-size: var(--font-size-3xl);
    position: relative;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--dark-color);
}

.about-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

.about-flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
    align-items: center;
}

.about-text-wrapper {
    flex: 1;
    min-width: 300px;
}

.about-text-content {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: #555;
}

.about-text-content p {
    margin-bottom: var(--space-md);
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-container:before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    opacity: 0.2;
    z-index: 0;
}

.about-image-container img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    transition: all 0.5s ease;
}

.about-image-container:hover img {
    transform: scale(1.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stat-icon-container {
    font-size: var(--font-size-2xl);
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-container {
    transform: scale(1.2);
}

.stat-number-display {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-title-display {
    color: #777;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
}

/* 
=======================================
9. Projects Section
=======================================
*/

.projects-section {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
    position: relative;
}

.projects-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, transparent);
}

.projects-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    font-size: var(--font-size-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* Enhanced Project Card */
.project-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.project-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-xxs) var(--space-lg);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.project-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.thumbnail-link {
    display: block;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.project-price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-xs) var(--space-md);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius) 0 0 0;
    font-size: var(--font-size-sm);
    z-index: 2;
}

.project-price-tag i {
    margin-left: var(--space-xs);
}

.project-info {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-snug);
}

.project-title a {
    color: var(--dark-color);
    transition: var(--transition);
}

.project-title a:hover {
    color: var(--secondary-color);
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    background-color: #f9f9f9;
    padding: var(--space-sm);
    border-radius: var(--radius);
}

.meta-detail {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: #777;
    font-size: var(--font-size-sm);
}

.meta-detail i {
    color: var(--secondary-color);
    font-size: var(--font-size-md);
}

.project-excerpt {
    color: #666;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    flex-grow: 1;
}

.project-actions {
    display: flex;
    gap: var(--space-xs);
    margin-top: auto;
}

.project-location,
.project-price {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: #777;
    font-size: var(--font-size-sm);
}

.project-price {
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
}

.view-all {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Projects Archive */
.projects-archive {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
}

.archive-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.archive-title {
    font-size: var(--font-size-3xl);
    color: var(--dark-color);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.archive-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.archive-description {
    max-width: 800px;
    margin: 0 auto;
    color: #777;
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

/* Project Filters - Initially Closed */
.projects-filters-wrapper {
    margin-bottom: var(--space-xl);
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background-color: var(--dark-color);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: var(--space-sm);
}

.filters-toggle:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.filters-container {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    display: none; /* Initially hidden */
}

.filter-row {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h4 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
    color: var(--dark-color);
    position: relative;
    padding-bottom: var(--space-xs);
}

.filter-group h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: var(--space-sm);
}

.filter-list li a {
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
}

.filter-list li a:before {
    content: '\f0da';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: var(--space-xs);
    color: var(--border-color);
    transition: var(--transition);
}

.filter-list li a:hover,
.filter-list li.active a {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.filter-list li a:hover:before,
.filter-list li.active a:before {
    color: var(--secondary-color);
}

.filter-search {
    flex: 2;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-xxl) 0;
}

.no-results-icon {
    font-size: var(--font-size-4xl);
    color: #ddd;
    margin-bottom: var(--space-lg);
}

.no-results h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    color: var(--dark-color);
}

.no-results p {
    color: #777;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-md);
}

/* 
=======================================
10. Gallery Section
=======================================
*/

/* Home gallery slider */
.gallery-section {
    padding: var(--space-xxl) 0;
    background-color: white;
    position: relative;
}

.gallery-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #f9f9f9, white);
}

.home-gallery-slider {
    margin: var(--space-xl) auto;
    max-width: 1200px;
    position: relative;
    padding: 0 var(--space-xl);
}

.home-gallery-slider .gallery-item {
    padding: var(--space-sm);
    transition: all 0.4s ease;
}

.home-gallery-slider .gallery-item img {
    border-radius: var(--radius-lg);
    height: 350px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    filter: brightness(0.95);
}

.home-gallery-slider .gallery-item:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    background: rgba(44, 62, 80, 0.8);
    color: white;
    padding: var(--space-sm);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.home-gallery-slider .slick-dots {
    bottom: -40px;
}

.home-gallery-slider .slick-dots li {
    margin: 0 var(--space-xxs);
}

.home-gallery-slider .slick-dots li button:before {
    font-size: var(--space-sm);
    color: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.home-gallery-slider .slick-dots li.slick-active button:before {
    color: var(--secondary-color);
    transform: scale(1.5);
}

.home-gallery-slider .slick-prev,
.home-gallery-slider .slick-next {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.home-gallery-slider .slick-prev {
    right: 0;
    left: auto;
}

.home-gallery-slider .slick-next {
    left: 0;
    right: auto;
}

.home-gallery-slider .slick-prev:hover,
.home-gallery-slider .slick-next:hover {
    background-color: var(--dark-color);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.home-gallery-slider .slick-prev i,
.home-gallery-slider .slick-next i {
    color: white;
    font-size: var(--font-size-md);
}

/* Project Gallery */
.project-gallery {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
}

.gallery-content {
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-slider {
    margin-bottom: var(--space-md);
    position: relative;
}

.gallery-slider .slick-slide {
    height: 480px;
    position: relative;
}

.gallery-slider .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-slider .slick-prev,
.gallery-slider .slick-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.gallery-slider .slick-prev {
    right: var(--space-md);
    left: auto;
}

.gallery-slider .slick-next {
    left: var(--space-md);
    right: auto;
}

.gallery-slider .slick-prev:hover,
.gallery-slider .slick-next:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.gallery-slider .slick-prev i,
.gallery-slider .slick-next i {
    color: var(--dark-color);
    font-size: var(--font-size-lg);
    transition: all 0.3s ease;
}

.gallery-slider .slick-prev:hover i,
.gallery-slider .slick-next:hover i {
    color: white;
}

.gallery-thumbnails {
    padding: 0 var(--space-xl);
    margin-top: var(--space-md);
}

.gallery-thumbnails .thumbnail-item {
    cursor: pointer;
    padding: 0 var(--space-xs);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gallery-thumbnails .thumbnail-item img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnails .slick-current {
    opacity: 1;
}

.gallery-thumbnails .slick-current img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.gallery-link {
    display: block;
    height: 100%;
    position: relative;
}

.gallery-link:hover:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.gallery-link:before {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: var(--font-size-xl);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.gallery-link:hover:before {
    opacity: 1;
}

/* 
=======================================
11. Contact Section
=======================================
*/

.contact-section {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
    position: relative;
}

.contact-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, #f9f9f9);
}

.contact-content {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.1);
}

.info-text h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
    color: var(--dark-color);
}

.info-text p {
    color: #555;
    font-size: var(--font-size-md);
}

.contact-form {
    flex: 1;
}

.elite-contact-form {
    background-color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.elite-contact-form:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

/* Responsive Contact Section */
.contact-section-responsive {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
    position: relative;
}

.contact-section-responsive:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, #f9f9f9);
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.contact-header h2 {
    font-size: var(--font-size-3xl);
    position: relative;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--dark-color);
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

.contact-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #777;
    font-size: var(--font-size-md);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.contact-info-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-info-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-item-responsive {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed #eee;
}

.info-item-responsive:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon-responsive {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-item-responsive:hover .info-icon-responsive {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.info-text-responsive {
    flex-grow: 1;
}

.info-text-responsive h4 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-xs);
    color: var(--dark-color);
}

.info-text-responsive p {
    color: #555;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    margin: 0;
    word-break: break-word;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-form-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-card:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

.form-group-responsive {
    margin-bottom: var(--space-md);
}

.form-group-responsive label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    font-size: var(--font-size-sm);
}

.form-group-responsive input,
.form-group-responsive textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    color: #333;
    font-family: 'Cairo', sans-serif;
}

.form-group-responsive input:focus,
.form-group-responsive textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
    background-color: white;
}

.submit-btn-responsive {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    font-family: 'Cairo', sans-serif;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.submit-btn-responsive:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.submit-btn-responsive:hover:before {
    width: 100%;
}

.submit-btn-responsive:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.form-response-responsive {
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.form-response-responsive.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-response-responsive.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.contact-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.contact-popup.active .popup-container {
    transform: scale(1);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid #eee;
    background: linear-gradient(to left, var(--accent-color), var(--secondary-color));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: white;
    font-weight: var(--font-weight-bold);
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: var(--font-size-lg);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.popup-content {
    padding: var(--space-lg);
}

body.popup-open {
    overflow: hidden;
}

/* Enhanced Contact Popup */
.popup-container {
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 90vh;
}

.popup-container.zoom-in {
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-header {
    background: linear-gradient(to left, var(--accent-color), var(--secondary-color));
}

.popup-close {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.popup-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.popup-content {
    padding: var(--space-lg);
}

.popup-overlay {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.7);
}

/* 
=======================================
12. Single Project Styles
=======================================
*/

.breadcrumbs {
    background-color: #f5f5f5;
    padding: var(--space-md) 0;
    margin-top: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumbs a {
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: var(--font-weight-semibold);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs .separator {
    margin: 0 var(--space-xs);
    color: #777;
}

.breadcrumbs .current {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
}

.project-header {
    padding: var(--space-xxl) 0 var(--space-xl);
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
    color: var(--dark-color);
    position: relative;
    padding-bottom: var(--space-sm);
    font-weight: var(--font-weight-bold);
}

.project-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background-color: #f9f9f9;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.meta-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: #f5f5f5;
}

.meta-item i {
    color: var(--secondary-color);
    font-size: var(--font-size-md);
}

/* Project Details - Compact */
.project-details {
    padding: var(--space-xxl) 0;
    background-color: white;
}

.project-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.detail-item {
    background-color: #f9f9f9;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: white;
}

.detail-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-md);
    box-shadow: var(--shadow-sm);
}

.detail-content h4 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xxs);
    color: #777;
    font-weight: var(--font-weight-semibold);
}

.detail-content p {
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 0;
    font-size: var(--font-size-md);
}

.project-content {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
}

.main-content .section-title {
    text-align: right;
}

.main-content .section-title:after {
    right: 0;
    left: auto;
    transform: none;
}

.entry-content {
    margin-top: var(--space-lg);
    color: #555;
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-md);
}

.social-sharing {
    margin-top: var(--space-xl);
    background-color: #f5f5f5;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px dashed #ddd;
}

.social-sharing h4 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-md);
    color: var(--dark-color);
    font-weight: var(--font-weight-bold);
}

.sharing-links {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sharing-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sharing-links li a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow);
}

.sharing-links .facebook {
    background-color: #3b5998;
}

.sharing-links .twitter {
    background-color: #1da1f2;
}

.sharing-links .linkedin {
    background-color: #0077b5;
}

.sharing-links .whatsapp {
    background-color: #25d366;
}

/* Project inquiry button */
.project-inquiry-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    font-size: var(--font-size-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-inquiry-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.project-inquiry-btn:hover:before {
    width: 100%;
}

.project-inquiry-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-inquiry-btn i {
    transition: all 0.3s ease;
}

.project-inquiry-btn:hover i {
    transform: translateX(-5px);
}

/* Project amenities - Compact */
.project-amenities {
    padding: var(--space-xxl) 0;
    background-color: white;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.amenity-item {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background-color: #f9f9f9;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.amenity-item:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.amenity-icon {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.amenity-item:hover .amenity-icon {
    color: white;
    transform: scale(1.2);
}

.amenity-name {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

/* Related projects */
.related-projects {
    padding: var(--space-xxl) 0;
    background-color: #f9f9f9;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.related-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.card-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-thumbnail:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.related-card:hover .card-thumbnail:after {
    opacity: 1;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-card:hover .card-thumbnail img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--space-md);
    position: relative;
}

.card-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-bold);
}

.card-title a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.card-title a:hover {
    color: var(--secondary-color);
}

.card-location,
.card-price {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-sm);
}

.card-location {
    color: #777;
}

.card-price {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
}

.card-location i,
.card-price i {
    color: var(--secondary-color);
    font-size: var(--font-size-md);
}

/* 
=======================================
13. Archive & Category Pages
=======================================
*/

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.page-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-2xl);
    color: var(--dark-color);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: var(--space-sm);
    display: inline-block;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.pagination {
    margin-top: var(--space-xl);
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: var(--space-xxs);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: white;
    color: var(--text-color);
    border-radius: 50%;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-full);
    gap: var(--space-xxs);
}

.pagination .prev i,
.pagination .next i {
    transition: all 0.3s ease;
}

.pagination .prev:hover i {
    transform: translateX(3px);
}

.pagination .next:hover i {
    transform: translateX(-3px);
}

/* Search results */
.search-item {
    margin-bottom: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.search-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.search-item-wrapper {
    display: flex;
    gap: var(--space-md);
}

.search-thumbnail {
    flex-shrink: 0;
    width: 220px;
    height: 100%;
}

.search-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-content {
    padding: var(--space-md) var(--space-lg) var(--space-md) 0;
    flex-grow: 1;
}

.search-content .entry-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.search-content .entry-summary {
    margin-bottom: var(--space-md);
    color: #666;
    line-height: var(--line-height-relaxed);
}

.search-content .read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
}

.search-content .read-more:hover {
    color: var(--secondary-color);
}

.search-content .read-more i {
    transition: all 0.3s ease;
}

.search-content .read-more:hover i {
    transform: translateX(-5px);
}

/* 
=======================================
14. Blog & Posts Styles
=======================================
*/

.post-card {
    margin-bottom: var(--space-xl);
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.thumbnail-link {
    display: block;
}

.thumbnail-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.post-card:hover .thumbnail-link img {
    transform: scale(1.05);
}

.post-date {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.post-date .day {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.post-date .month {
    display: block;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
}

.post-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-snug);
}

.entry-title a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.entry-title a:hover {
    color: var(--secondary-color);
}

.entry-meta {
    display: flex;
    gap: var(--space-md);
    color: #777;
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xxs);
}

.entry-meta i {
    color: var(--secondary-color);
}

.entry-meta a {
    color: #777;
    transition: all 0.3s ease;
}

.entry-meta a:hover {
    color: var(--secondary-color);
}

.entry-summary {
    margin-bottom: var(--space-md);
    color: #666;
    line-height: var(--line-height-relaxed);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    transition: all 0.3s ease;
}

.read-more:hover i {
    transform: translateX(-5px);
}

.featured-image {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image img {
    width: 100%;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    color: #777;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.nav-previous,
.nav-next {
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
}

.nav-previous a:hover,
.nav-next a:hover {
    color: white;
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* 
=======================================
15. Sidebar & Widgets
=======================================
*/

.widget-area {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
}

.widget {
    margin-bottom: var(--space-xl);
}

.widget:last-child {
    margin-bottom: 0;
}

.sidebar-contact-form .elite-contact-form {
    background-color: #f5f5f5;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-contact-form .submit-btn {
    width: 100%;
}

.recent-projects {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-project-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px dashed #eee;
}

.recent-project-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-thumb:hover img {
    transform: scale(1.1);
}

.project-details h4 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xxs);
    line-height: var(--line-height-snug);
}

.project-details h4 a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.project-details h4 a:hover {
    color: var(--secondary-color);
}

.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px dashed #eee;
}

.contact-info li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info li i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.contact-info li a {
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.contact-info li a:hover {
    color: var(--secondary-color);
}

/* 
=======================================
16. Comments & Discussion
=======================================
*/

.comments-area {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.comments-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list ol {
    list-style: none;
    margin: var(--space-lg) 0 0 var(--space-lg);
    padding: 0;
}

.comment-body {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.comment-author .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-author .fn {
    font-weight: var(--font-weight-bold);
    font-style: normal;
    color: var(--dark-color);
    font-size: var(--font-size-md);
}

.comment-metadata {
    font-size: var(--font-size-xs);
    color: #777;
    margin-bottom: var(--space-sm);
}

.comment-metadata a {
    color: #777;
    transition: all 0.3s ease;
}

.comment-metadata a:hover {
    color: var(--secondary-color);
}

.comment-content {
    margin-bottom: var(--space-sm);
    color: #555;
    line-height: var(--line-height-relaxed);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    text-align: left;
}

.comment-reply-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: #f5f5f5;
    color: var(--dark-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.comment-respond {
    margin-top: var(--space-xl);
    background-color: #f9f9f9;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.comment-reply-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.comment-reply-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 
=======================================
18. RTL Specific Styles
=======================================
*/

/* Basic Direction Settings */
body,
input,
textarea,
select {
    direction: rtl;
    text-align: right;
}

/* Header */
.site-branding {
    margin-right: 0;
    margin-left: var(--space-lg);
}

.main-navigation ul {
    padding-right: 0;
}

.main-navigation ul ul {
    right: 0;
    left: auto;
}

/* Section Headings */
.section-header h2::after,
.section-title::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.widget-title::after {
    right: 0;
    left: auto;
}

/* List Items */
.widget ul {
    padding-right: 0;
}

/* Icon positioning */
.meta-item i,
.project-location i,
.project-price i,
.detail-item i,
.amenity-icon i,
.info-icon i {
    margin-right: 0;
    margin-left: var(--space-xxs);
}

/* Form elements */
.form-group label {
    text-align: right;
}

/* Breadcrumbs */
.breadcrumbs .separator {
    margin: 0 var(--space-xs);
}

/* Gallery navigation arrows - for RTL sliders */
.slick-prev {
    right: var(--space-xs) !important;
    left: auto !important;
}

.slick-next {
    left: var(--space-xs) !important;
    right: auto !important;
}

/* Floating Buttons */
.floating-buttons {
    left: var(--space-md);
    right: auto;
}

/* Project Details */
.detail-icon {
    margin-right: 0;
    margin-left: var(--space-md);
}

/* Comment section */
.comment-author .avatar {
    float: right;
    margin-right: 0;
    margin-left: var(--space-sm);
}

.comment-metadata {
    margin-right: 70px;
    margin-left: 0;
}

.reply {
    text-align: left;
}

.comment-list .children {
    margin-right: 70px;
    margin-left: 0;
}

/* Pagination */
.pagination .nav-links {
    direction: rtl;
}

/* Filter adjustments */
.filter-btn i {
    margin-right: 0;
    margin-left: var(--space-xxs);
}

/* Card layouts */
.project-card .project-info,
.related-card .card-content {
    text-align: right;
}

/* Search form */
.search-form .search-field {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.search-form .search-submit {
    border-radius: var(--radius) 0 0 var(--radius);
}

/* Search input wrapper */
.search-input-wrapper .search-submit {
    left: 0;
    right: auto;
}

/* Mobile menu */
@media (max-width: 768px) {
    .menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
    
    .main-navigation.active ul {
        right: 0;
        left: auto;
    }
    
    .main-navigation ul li a {
        padding: var(--space-sm) var(--space-md);
    }
}

/* RTL fixes for flex layouts */
.about-content,
.contact-content,
.content-wrapper,
.info-item,
.detail-item,
.project-meta,
.amenity-item,
.search-item-wrapper,
.recent-project-item {
    flex-direction: row;
}

/* Sidebar fix */
@media (min-width: 992px) {
    .content-wrapper .sidebar {
        margin-right: var(--space-xl);
        margin-left: 0;
    }
}

/* Project gallery thumbnails */
.gallery-thumbnails .thumbnail-item.slick-current img {
    border-right: 3px solid var(--secondary-color);
    border-left: none;
}

/* Ensure correct display of Arabic fonts */
body, 
h1, h2, h3, h4, h5, h6,
input, textarea, select, button {
    font-family: 'Cairo', sans-serif;
}

/* Fix slider arrows for RTL */
.slick-slider {
    direction: ltr;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    direction: rtl;
}

/* Fix pagination arrows */
.pagination .page-numbers.prev .fas,
.pagination .page-numbers.next .fas {
    transform: rotate(180deg);
}

/* Fix read more icon direction */
.read-more:hover i {
    transform: translateX(-5px);
}

/* Fix search icon position */
.search-input-wrapper .search-submit {
    right: auto;
    left: 0;
}

/* 
=======================================
19. Units Section Styles
=======================================
*/

.units-section {
    padding: var(--space-xxl) 0;
    background-color: white;
    position: relative;
}

.units-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #f9f9f9, white);
}

.units-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.unit-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.unit-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.unit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.unit-price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-xs) var(--space-md);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius) 0 0 0;
    font-size: var(--font-size-sm);
    z-index: 2;
}

.unit-status {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xxs) var(--space-sm);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    z-index: 2;
}

.unit-info {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.unit-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-snug);
}

.unit-title a {
    color: var(--dark-color);
    transition: var(--transition);
}

.unit-title a:hover {
    color: var(--secondary-color);
}

.unit-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    background-color: #f9f9f9;
    padding: var(--space-sm);
    border-radius: var(--radius);
}

.unit-detail {
    display: flex;
    align-items: center;
    gap: var(--space-xxs);
    color: #777;
    font-size: var(--font-size-xs);
}

.unit-detail i {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
}

.unit-project {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xs);
    color: #777;
}

.unit-project a {
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition);
}

.unit-project a:hover {
    color: var(--secondary-color);
}

.unit-description {
    color: #666;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    flex-grow: 1;
}

.unit-actions {
    display: flex;
    gap: var(--space-xs);
    margin-top: auto;
}

.unit-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.unit-feature {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    font-size: var(--font-size-xs);
    padding: var(--space-xxs) var(--space-sm);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xxs);
}

.unit-feature i {
    font-size: var(--font-size-xs);
}

.single-unit-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.unit-meta-item {
    background-color: #f9f9f9;
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition);
}

.unit-meta-item:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.unit-meta-item:hover .unit-meta-value,
.unit-meta-item:hover .unit-meta-label {
    color: white;
}

.unit-meta-icon {
    font-size: var(--font-size-xl);
    color: var(--secondary-color);
    margin-bottom: var(--space-xs);
    transition: var(--transition);
}

.unit-meta-item:hover .unit-meta-icon {
    color: white;
}

.unit-meta-value {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: var(--space-xxs);
    transition: var(--transition);
}

.unit-meta-label {
    font-size: var(--font-size-xs);
    color: #777;
    transition: var(--transition);
}

/* 
=======================================
20. Responsive Styles
=======================================
*/

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects-grid,
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-counters,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .project-title {
        font-size: var(--font-size-2xl);
    }
    
    .gallery-slider .slick-slide {
        height: 450px;
    }
    
    .project-icons {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-gallery-slider .gallery-item img {
        height: 320px;
    }
}

@media (max-width: 992px) {
    :root {
        --space-xxl: 40px;
        --space-xl: 30px;
        --space-lg: 20px;
    }
    
    .container {
        max-width: 720px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        margin-top: var(--space-xl);
        margin-right: 0 !important;
        max-width: 100%;
    }
    
  /* About Section - Mobile Layout */
    .about-content,
    .about-flex-wrapper {
        flex-direction: column;
    }
    
    .about-image,
    .about-image-wrapper {
        margin-bottom: var(--space-lg);
        width: 100%;
    }
    
    /* Contact Section - Mobile Layout */
    .contact-content,
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-info-wrapper {
        margin-bottom: var(--space-xl);
        width: 100%;
    }
    
    .contact-form,
    .contact-form-wrapper {
        width: 100%;
    }
    
    /* Fix other sections for tablet */
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-slider .slick-slide {
        height: 380px;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-section {
        height: auto;
        padding: 130px 0 80px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: var(--font-size-xl);
    }
    
    .meta-item {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    .gallery-thumbnails .thumbnail-item img {
        height: 70px;
    }
    
    /* Project details & amenities - Mobile compact */
    .detail-item {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-sm);
    }
    
    .detail-content h4 {
        font-size: var(--font-size-xs);
    }
    
    .detail-content p {
        font-size: var(--font-size-sm);
    }
    
    /* Main content */
    .main-content {
        padding: var(--space-md);
    }
    
    /* Gallery slider */
    .home-gallery-slider {
        padding: 0 var(--space-xl);
    }
    
    .home-gallery-slider .gallery-item img {
        height: 280px;
    }
    
    /* Single unit meta */
    .single-unit-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Units grid */
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Menu toggle */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 280px;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow);
        overflow-y: auto;
        transition: var(--transition);
        z-index: 1000;
        padding: var(--space-xs) 0;
    }
    
    .main-navigation.active ul {
        right: 0;
    }
    
    .main-navigation a {
        padding: var(--space-sm) var(--space-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a:after {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xxl: 30px;
        --space-xl: 24px;
        --space-lg: 16px;
    }
    
    .container {
        max-width: 540px;
    }
    
    /* Project cards - Single column */
    .projects-grid, 
    .related-grid,
    .units-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Amenities grid - Two columns */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    /* Footer widgets - Single column */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: var(--font-size-xl);
    }
    
    .hero-content p {
        font-size: var(--font-size-md);
    }
    
    /* Section headers */
    .section-header h2, 
    .section-title,
    .archive-title {
        font-size: var(--font-size-xl);
    }
    
    /* Gallery slider */
    .gallery-slider .slick-slide {
        height: 300px;
    }
    
    .gallery-thumbnails {
        padding: 0 var(--space-lg);
    }
    
    .gallery-thumbnails .thumbnail-item img {
        height: 50px;
    }
    
    .gallery-slider .slick-prev,
    .gallery-slider .slick-next {
        width: 40px;
        height: 40px;
    }
    
    /* Project meta section */
    .project-meta {
        gap: var(--space-sm);
    }
    
    .meta-item {
        padding: var(--space-xxs) var(--space-xs);
        font-size: var(--font-size-xs);
        width: calc(50% - var(--space-sm));
    }
    
    /* Project details & amenities - More compact for mobile */
    .project-icons {
        gap: var(--space-sm);
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }
    
    .detail-icon {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-xs);
    }
    
    .detail-content h4 {
        font-size: var(--font-size-xs);
    }
    
    .detail-content p {
        font-size: var(--font-size-sm);
    }
    
    /* Text content */
    .entry-content {
        font-size: var(--font-size-sm);
    }
    
    /* Social sharing */
    .social-sharing {
        padding: var(--space-md);
    }
    
    .social-sharing h4 {
        font-size: var(--font-size-md);
    }
    
    .sharing-links li a {
        width: 32px;
        height: 32px;
    }
    
    /* About section */
    .about-text h3 {
        font-size: var(--font-size-xl);
    }
    
    .about-text p {
        font-size: var(--font-size-sm);
    }
    
    /* Search results layout */
    .search-item-wrapper {
        flex-direction: column;
    }
    
    .search-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .search-content {
        padding: var(--space-md);
    }
    
    /* Post navigation */
    .post-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-previous, 
    .nav-next {
        max-width: 100%;
    }
    
    .comment-list .children {
        margin-right: var(--space-md);
    }
    
    /* Floating buttons - Mobile layout */
    .floating-buttons {
        flex-direction: row;
        left: 50%;
        transform: translateX(-50%);
        bottom: var(--space-md);
        gap: var(--space-md);
    }
    
    .floating-buttons a {
        width: 42px;
        height: 42px;
    }
    
    /* Home gallery slider */
    .home-gallery-slider {
        padding: 0 var(--space-lg);
    }
    
    .home-gallery-slider .gallery-item img {
        height: 220px;
    }
    
    .gallery-item .gallery-caption {
        bottom: var(--space-md);
        left: var(--space-md);
        right: var(--space-md);
        padding: var(--space-xs);
    }
    
    /* Contact popup */
    .popup-container {
        width: 95%;
    }
    
    .popup-header {
        padding: var(--space-md) var(--space-lg);
    }
    
    .popup-content {
        padding: var(--space-lg);
    }
    
    /* Mobile contact button */
    .mobile-contact-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    :root {
        --space-xxl: 24px;
        --space-xl: 20px;
        --space-lg: 16px;
        --space-md: 12px;
        --space-sm: 8px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--space-sm);
    }
    
    /* Amenities grid - Single column */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: var(--font-size-lg);
    }
    
    .hero-content p {
        font-size: var(--font-size-sm);
    }
    
    /* Section headers */
    .section-header h2, 
    .section-title,
    .archive-title {
        font-size: var(--font-size-lg);
    }
    
    /* Gallery slider */
    .gallery-slider .slick-slide {
        height: 220px;
    }
    
    .gallery-thumbnails {
        padding: 0 var(--space-md);
    }
    
    .gallery-thumbnails .thumbnail-item img {
        height: 40px;
    }
    
    /* Entry meta */
    .entry-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    /* Project actions */
    .project-actions {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    /* Project header */
    .project-header {
        padding: var(--space-lg) 0 var(--space-md);
    }
    
    .project-title {
        font-size: var(--font-size-lg);
    }
    
    /* Meta items */
    .meta-item {
        width: 100%;
        justify-content: center;
    }
    
    /* Section spacing */
    .project-details,
    .project-gallery,
    .project-content,
    .project-amenities,
    .related-projects {
        padding: var(--space-xl) 0;
    }
    
    /* Home gallery slider */
    .home-gallery-slider {
        padding: 0 var(--space-md);
        margin: var(--space-lg) auto;
    }
    
    .home-gallery-slider .gallery-item img {
        height: 180px;
    }
    
    /* Button sizes */
    .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-size-xs);
    }
    
    .btn-lg {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
    }
    
    .btn-sm {
        padding: var(--space-xxs) var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    /* Contact popup */
    .popup-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .popup-header h3 {
        font-size: var(--font-size-md);
    }
    
    .popup-content {
        padding: var(--space-md);
    }
    
    /* Social sharing links */
    .sharing-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Comment titles */
    .comments-title,
    .comment-reply-title {
        font-size: var(--font-size-md);
    }
    
    /* Section spacing */
    .about-section, 
    .projects-section,
    .gallery-section,
    .contact-section,
    .units-section {
        padding: var(--space-xl) 0;
    }
    
    /* About section */
    .about-text h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Stats counter */
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .stat-title {
        font-size: var(--font-size-xs);
    }
    
    /* Project card adjustments */
    .project-card {
        border-radius: var(--radius);
    }
    
    .project-thumbnail {
        height: 180px;
    }
    
    .project-meta {
        padding: var(--space-xs);
        gap: var(--space-xs);
    }
    
    .project-info {
        padding: var(--space-sm);
    }
    
    .project-title {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-sm);
    }
    
    .project-excerpt {
        margin-bottom: var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    /* Unit card */
    .unit-thumbnail {
        height: 180px;
    }
    
    .unit-info {
        padding: var(--space-sm);
    }
    
    .unit-meta {
        padding: var(--space-xs);
    }
    
    .unit-meta-item {
        padding: var(--space-sm);
    }
}

/* 
=======================================
21. Animations & Effects
=======================================
*/

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease-in-out;
}

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

.fade-in-down {
    animation: fadeInDown 0.5s ease-in-out;
}

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

.fade-in-left {
    animation: fadeInLeft 0.5s ease-in-out;
}

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

.fade-in-right {
    animation: fadeInRight 0.5s ease-in-out;
}

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

.zoom-in {
    animation: zoomIn 0.5s ease-in-out;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-in-out;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-in-out 0.2s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-in-out 0.4s;
    animation-fill-mode: both;
}