/* ===== CSS Reset & Base Styles - Mobile First Approach ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-color: #2a5c8a;
    --primary-light: #4a7caa;
    --primary-dark: #1e4568;
    --secondary-color: #f8f9fa;
    --accent-color: #e74c3c;
    --accent-green: #25D366;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --background-color: #ffffff;
    --light-gray: #f5f5f5;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
    --section-spacing: 50px;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button, .btn {
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

button:focus, .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Shared Components ===== */
.section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 45px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 92, 138, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

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

.btn-whatsapp:hover {
    background-color: #128C7E;
}

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

.btn-block {
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* ===== Header Styles ===== */
.main-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.6rem;
}

.company-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 4px 8px;
    background: var(--secondary-color);
    border-radius: var(--radius);
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
}

.mobile-menu-btn {
    display: block;
    font-size: 1.3rem;
    background: none;
    color: var(--text-color);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.nav-links {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
    flex-direction: column;
    gap: 15px;
}

.nav-links.active {
    display: flex;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.95rem;
    border-right: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: var(--light-gray);
    border-right-color: var(--primary-color);
}

.header-cta {
    display: none;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    padding: 25px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
    color: white;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide-content h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.slide-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    left: 0;
    right: 0;
}

.slider-controls .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-controls button:hover {
    opacity: 1;
    background-color: white;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* ===== Search Section ===== */
.search-section {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group label i {
    margin-left: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.search-button-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    background-color: white;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 92, 138, 0.1);
}

/* ===== Featured Projects ===== */
.featured-projects {
    padding: var(--section-spacing) 0;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info p {
    text-align: center !important;
}

.project-info ul {
    text-align: center !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: center;
}

.project-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.project-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.project-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.project-detail i {
    color: var(--primary-color);
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-available {
    background-color: #d4edda;
    color: #155724;
}

.status-sold {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== Why Us Section ===== */
.why-us {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0 0;
    justify-content: center;
}

.feature-item {
    background: white;
    padding: 35px 25px 35px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    border-right: 5px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 92, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(42, 92, 138, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin: 0;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: var(--section-spacing) 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--card-shadow);
    padding: 30px 20px;
    min-height: 250px;
}

.testimonial-item {
    text-align: center;
    padding: 0 10px;
    display: none;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: -10px;
}

.testimonial-content::before {
    right: 0;
}

.testimonial-content::after {
    left: 0;
    transform: rotate(180deg);
}

.testimonial-author {
    margin-top: 15px;
}

.testimonial-author h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== Partners Section ===== */
.partners {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
    align-items: center;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 360px;
    }
    
    .partner-logo {
        width: 160px;
        height: 110px;
    }
}

.partner-logo {
    width: 160px;
    height: 123px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.partner-logo i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partner-logo span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.partner-logo p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 15px 35px;
}

.cta-section .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Map Section ===== */
.map-section {
    padding: var(--section-spacing) 0;
}

.map-container {
    height: 300px;
    background-color: #f5f5f5;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #bbb;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: white;
    padding-right: 8px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a506b;
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.5;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    pointer-events: none;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    pointer-events: all;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.whatsapp-btn:hover {
    background-color: #128C7E;
}

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

.contact-btn:hover {
    background-color: var(--primary-dark);
}

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

.floating-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        padding: 0 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        padding: 0 15px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ===== Projects Page Styles ===== */
.projects-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1448630360428-65456885c650?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.projects-hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: underline;
}

.filters-section {
    padding: 20px 0 40px;
    background-color: var(--light-gray);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.projects-page .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: white;
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition);
}

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

.page-item:hover:not(.active) {
    background-color: var(--light-gray);
}

/* ===== About Page Styles ===== */
.about-hero {
    background: linear-gradient(rgba(42, 92, 138, 0.9), rgba(42, 92, 138, 0.9)), url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    padding: var(--section-spacing) 0;
}

.company-overview {
    margin-bottom: 40px;
}

.company-overview h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.company-overview p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.vision-box, .mission-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.vision-box h3, .mission-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.core-values {
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.value-item {
    background: white;
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(42, 92, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Contact Page Styles ===== */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1560264280-88b68371db39?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.departments-section {
    padding: var(--section-spacing) 0;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .departments-section {
        margin-bottom: 40px;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: var(--section-spacing) 0;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 992px) {
    .contact-content {
        gap: 40px;
    }
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
    .contact-form-container {
        padding: 25px;
    }
}

@media (min-width: 992px) {
    .contact-form-container {
        padding: 30px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
    .contact-info {
        padding: 25px;
    }
}

@media (min-width: 992px) {
    .contact-info {
        padding: 30px;
    }
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-method:hover {
    background-color: #e9f0f7;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-method p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.working-hours {
    background-color: #fff8e6;
    border-right: 4px solid #ffc107;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.working-hours h4 {
    color: #e65100;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-time {
    background-color: #e8f5e9;
    border-right: 4px solid #4CAF50;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

/* ===== Single Project Page Styles ===== */
.property-header-main {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.property-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}

.property-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-avg {
    background-color: #e8f4ff;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}

/* ===== Image Gallery ===== */
.image-gallery {
    margin-bottom: 20px;
}

.main-image-container {
    width: 100%;
    height: 50vw;
    max-height: 400px;
    min-height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    background-color: var(--light-gray);
}

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

.thumbnail-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 5px;
    margin: 0 -5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.thumbnail-container::-webkit-scrollbar {
    height: 3px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail-item.active, .thumbnail-item:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-color);
    z-index: 10;
    opacity: 0.8;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-nav:hover {
    opacity: 1;
    background-color: white;
}

.gallery-nav.prev {
    right: 10px;
}

.gallery-nav.next {
    left: 10px;
}

/* ===== Project Brief ===== */
.project-brief {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
    border-right: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

.brief-title {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

/* ===== Main Content ===== */
.main-content {
    display: block;
    margin-bottom: 30px;
}

.left-column {
    width: 100%;
}

/* ===== Property Details ===== */
.details-section {
    background-color: var(--background-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color);
}

.details-section .section-title {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    position: relative;
}

.details-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    min-height: 60px;
}

.detail-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content {
    flex-grow: 1;
    min-width: 0;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
    word-break: break-word;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    min-height: 50px;
}

.feature-item:hover {
    background-color: var(--light-gray);
}

.feature-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Category Cards ===== */
.category-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-title {
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.category-cards-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 15px;
    margin: 0 -15px;
    padding: 0 15px 10px;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.category-cards-container::-webkit-scrollbar {
    height: 4px;
}

.category-cards {
    display: flex;
    gap: 15px;
    width: max-content;
    padding: 5px 0;
}

.category-card {
    flex: 0 0 auto;
    width: 280px;
    background: var(--background-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 12px;
    scroll-snap-align: start;
    position: relative;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    margin: 10px 0;
}

.card-content {
    padding: 10px 0 0;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.card-details {
    margin-bottom: 12px;
}

.card-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

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

.card-detail-label {
    color: var(--text-light);
}

.card-detail-value {
    font-weight: 600;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.card-feature {
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sold-badge {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-card-contact, .btn-card-whatsapp {
    flex: 1;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
}

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

.btn-card-whatsapp {
    background-color: var(--accent-green);
    color: white;
}

/* ===== Map Section ===== */
.map-container {
    height: 180px;
    background-color: #f5f5f5;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-placeholder {
    text-align: center;
    padding: 15px;
}

.map-pin {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.map-location {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ===== Sidebar Contact Box ===== */
.sidebar {
    width: 100%;
    margin: 25px 0;
    position: relative;
}

.contact-box {
    background-color: var(--background-color);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.contact-box-title {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    text-align: center;
}

.contact-advertiser-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-advertiser-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.contact-advertiser-details h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.contact-advertiser-details p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.advertiser-role {
    color: var(--primary-color);
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating i {
    color: #FFC107;
    font-size: 0.7rem;
}

.rating-text {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-right: 5px;
}

.contact-phone-quick {
    background-color: var(--light-gray);
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.phone-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.call-now-badge {
    background-color: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-call-sidebar, .btn-whatsapp-sidebar {
    padding: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    min-height: 50px;
}

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

.btn-whatsapp-sidebar {
    background-color: var(--accent-green);
    color: white;
}

.response-time {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ===== Advertiser Section ===== */
.advertiser-section {
    background-color: var(--background-color);
    border-radius: var(--radius);
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-color);
}

.advertiser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.advertiser-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid var(--primary-color);
}

.advertiser-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.advertiser-info p {
    color: var(--text-light);
    font-size: 0.8rem;
}

.advertiser-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-details {
    flex-grow: 1;
    min-width: 0;
}

.contact-type {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.contact-value {
    color: var(--text-light);
    font-size: 0.8rem;
    word-break: break-word;
}

.contact-buttons-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.btn-call-now, .btn-whatsapp-msg {
    padding: 10px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 45px;
}

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

.btn-whatsapp-msg {
    background-color: var(--accent-green);
    color: white;
}

.security-warning {
    background-color: #fff8e6;
    border-right: 3px solid #ffc107;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.5;
}

/* ===== Similar Projects ===== */
.similar-projects {
    margin: 35px 0;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.similar-card {
    background: var(--background-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

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

.similar-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.similar-info {
    padding: 15px;
}

.similar-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.similar-location {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.similar-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Mobile Bottom Contact Bar ===== */
.mobile-contact-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.mobile-contact-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-mobile-call, .btn-mobile-whatsapp {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    min-height: 50px;
}

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

.btn-mobile-whatsapp {
    background-color: var(--accent-green);
    color: white;
}

/* ===== Lightbox Gallery ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    left: 0;
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: var(--transition);
    cursor: pointer;
}

.lightbox-nav:hover {
    opacity: 1;
    background-color: white;
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

/* ===== Alert System ===== */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.alert-success { 
    background-color: #4CAF50; 
}

.alert-error { 
    background-color: #f44336; 
}

.alert-info { 
    background-color: #2196F3; 
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 10px;
}

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

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

/* ===== Responsive Design ===== */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    html {
        font-size: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .property-title {
        font-size: 1.2rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        justify-content: center;
    }
    
    .category-card {
        width: 300px;
    }
    
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    html {
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        width: auto;
        gap: 20px;
    }
    
    .header-cta {
        display: block;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .search-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .vision-mission {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .mobile-contact-bar {
        display: none !important;
    }
    
    .property-title {
        font-size: 1.4rem;
    }
    
    .property-price-container {
        flex-direction: row;
        align-items: center;
    }
    
    .price-avg {
        width: auto;
        max-width: 60%;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 70px;
        height: 50px;
    }
    
    .main-content {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 25px;
    }
    
    .sidebar {
        position: sticky;
        top: 90px;
        height: fit-content;
        margin: 0;
    }
    
    /* تحويل السلايدر إلى شبكة على التابلت */
    .category-cards-container {
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    
    .category-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 20px;
    }
    
    .category-card {
        width: 100%;
        min-width: auto;
    }
    
    .similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-contact-bar {
        display: none;
    }
    
    .partners-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-slider {
        height: 600px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .property-title {
        font-size: 1.6rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        justify-content: center;
    }
    
    /* على الديسكتوب - 3 بطاقات في الصف */
    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-slider {
        height: 700px;
    }
    
    .category-cards {
        gap: 25px;
    }
    
    .similar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-slider {
        height: 800px;
    }
}

@media (max-width: 767px) {
    .mobile-bottom-bar {
        display: block;
    }
    
    .mobile-contact-bar {
        display: flex;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .property-title {
        font-size: 1rem;
    }
    
    .property-price {
        font-size: 1.2rem;
    }
    
    .main-image-container {
        height: 180px;
    }
    
    .details-grid,
    .features-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .category-card {
        width: 260px;
    }
    
    .card-image {
        height: 120px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 40px;
    }
    
    .btn-card-contact,
    .btn-card-whatsapp,
    .btn-call-sidebar,
    .btn-whatsapp-sidebar,
    .btn-mobile-call,
    .btn-mobile-whatsapp {
        font-size: 0.75rem;
        padding: 8px;
    }
    
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .property-title {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        width: 240px;
    }
}
