/* إعداد عام ومتغيرات CSS - تصميم Apple */
:root {
    /* الألوان الأساسية - نمط Apple */
    --primary-color: #1d1d1f;
    --secondary-color: #0071e3;
    --accent-color: #0071e3;
    --background-color: #f5f5f7;
    --white: #ffffff;
    --text-dark: #1d1d1f;
    --text-light: #86868b;
    --text-medium: #424245;
    --border-color: #d2d2d7;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #0071e3, #0071e3);
    --gradient-secondary: linear-gradient(135deg, #f5f5f7, #ffffff);
    
    /* المسافات والقياسات - نمط Apple */
    --container-width: 1200px;
    --border-radius: 18px;
    --border-radius-small: 12px;
    --border-radius-large: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* الخطوط - خط تشانجا */
    --font-heading: 'Changa', sans-serif;
    --font-body: 'Changa', sans-serif;
    
}

/* إعادة تعيين الأنماط الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
    direction: rtl;
    text-align: right;
}

/* الحاوي العام */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === رأس الصفحة - نمط Apple === */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.logo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.site-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.02em;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-small);
    transition: var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(0, 113, 227, 0.08);
    transform: translateY(-1px);
}


/* === شريط التصفية - نمط Apple === */
.filter-section {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-label i {
    color: var(--secondary-color);
}

.filter-select {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--text-dark);
    transition: var(--transition-fast);
    cursor: pointer;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.clear-btn {
    padding: 0.875rem 1.5rem;
    background-color: var(--text-light);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-small);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: start;
    letter-spacing: -0.01em;
}

.clear-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* === المحتوى الرئيسي === */
.main-content {
    padding: 2rem 0;
}

/* إحصائيات سريعة - نمط Apple */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* مؤشر التحميل */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* رسالة عدم وجود نتائج */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.no-results h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

/* === شبكة العقارات - نمط Apple === */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

/* === عنصر التواصل للسعر === */
.property-price-contact {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid rgba(0, 113, 227, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.property-price-contact:hover {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border-color: rgba(0, 113, 227, 0.2);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.property-price-contact i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.property-price-contact:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* بطاقة العقار - نمط Apple */
.property-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    margin-bottom: 1.5rem;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* تأثير بسيط للبطاقات - نمط Apple */
.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover::before {
    opacity: 1;
}

.property-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.property-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.property-type {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--font-heading);
}

.property-status {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-sale {
    background: rgba(255, 255, 255, 0.3);
}

.status-rent {
    background: rgba(255, 255, 255, 0.3);
}

.property-content {
    padding: 2rem;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.property-price .currency {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 0.2rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.property-location i {
    color: var(--secondary-color);
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    text-align: center;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius-small);
}

.feature-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.feature-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* معلومات إضافية للعقار */
.property-reference {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem 0.8rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--border-radius-small);
    text-align: center;
    font-weight: 700;
}

.property-additional-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-tag {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--background-color);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
}

.property-contact {
    margin-top: 1rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--border-radius-small);
    text-align: center;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.property-contact i {
    margin-left: 0.5rem;
    color: var(--secondary-color);
}

/* عناصر جديدة للبطاقة المحسنة */
.property-price-per-meter {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius-small);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    border-top: 3px solid var(--secondary-color);
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.price-value {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.property-address {
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    line-height: 1.5;
}

.property-address i {
    color: var(--accent-color);
    margin-left: 0.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.property-address span {
    color: var(--text-dark);
    font-weight: 500;
}

.property-other-details {
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    line-height: 1.5;
}

.property-other-details i {
    color: #9b59b6;
    margin-left: 0.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.property-other-details span {
    color: var(--text-dark);
    font-weight: 500;
}

.property-deed-type {
    margin: 1rem 0;
    padding: 0.8rem;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
}

/* نوع السند زراعي - أخضر مريح للعين */
.deed-type-زراعي {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid #81c784;
}

.deed-type-زراعي i {
    color: #66bb6a;
    margin-left: 0.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.deed-type-زراعي span {
    color: #4caf50;
    font-weight: 600;
}

/* نوع السند صرف - أزرق */
.deed-type-صرف {
    background: rgba(52, 152, 219, 0.15);
    border: 2px solid #3498db;
}

.deed-type-صرف i {
    color: #3498db;
    margin-left: 0.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.deed-type-صرف span {
    color: #2980b9;
    font-weight: 700;
}

/* === التنقل بين الصفحات === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--background-color);
    border-radius: var(--border-radius-small);
}

/* === ذيل الصفحة - نمط Apple === */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* === قسم بطاقة التواصل === */
.contact-section {
    background: linear-gradient(135deg, #f5f5f7, #ffffff);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 113, 227, 0.1);
}

/* === بطاقة التواصل الجميلة === */
.contact-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 30px rgba(0, 113, 227, 0.2);
    border-color: rgba(0, 113, 227, 0.3);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0071e3, #005bb5, #0071e3);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff, #e9ecef);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(0, 113, 227, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.05), transparent);
    transition: left 0.6s ease;
}

.contact-card:hover .contact-card-header::before {
    left: 100%;
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 113, 227, 0.4);
}

.contact-card:hover .contact-card-icon::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.contact-card-title h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #1d1d1f, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-card-title p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

.contact-card-content {
    padding: 2rem;
}

.contact-office-section,
.contact-team-section {
    margin-bottom: 2rem;
}

.contact-office-section:last-child,
.contact-team-section:last-child {
    margin-bottom: 0;
}

.contact-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 113, 227, 0.1);
    position: relative;
}

.contact-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #0071e3, #005bb5);
    border-radius: 1px;
}

.contact-section-header i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 113, 227, 0.2));
}

.contact-section-header h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #1d1d1f, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.contact-office-address {
    background: linear-gradient(135deg, #f8f9fa, #ffffff, #f1f3f4);
    border-radius: var(--border-radius);
    padding: 2rem;
    border-right: 5px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-office-address::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bb5, #0071e3);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

.contact-office-address p {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: var(--text-medium);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.contact-office-address p:last-child {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-team-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-team-member {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid rgba(0, 113, 227, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.08);
}

.contact-team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-team-member::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bb5);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-team-member:hover {
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.15);
    transform: translateY(-4px) scale(1.02);
}

.contact-team-member:hover::before {
    left: 100%;
}

.contact-team-member:hover::after {
    transform: scaleX(1);
}

.member-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.contact-team-member:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.contact-team-member:hover .member-avatar::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.member-info {
    flex: 1;
}

.member-info h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #1d1d1f, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.member-phone {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin: 0;
    direction: ltr;
    text-align: right;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.call-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    position: relative;
    overflow: hidden;
}

.call-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.contact-team-member:hover .call-icon {
    background: linear-gradient(135deg, #005bb5, #003d82);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.contact-team-member:hover .call-icon::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.contact-card-footer {
    background: linear-gradient(135deg, #f8f9fa, #ffffff, #e9ecef);
    padding: 2rem;
    border-top: 1px solid rgba(0, 113, 227, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bb5, #0071e3);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.contact-cta-btn {
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.contact-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.contact-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.4);
    background: linear-gradient(135deg, #005bb5, #003d82);
}

.contact-cta-btn:hover::before {
    left: 100%;
}

.contact-cta-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.contact-cta-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.contact-cta-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* التصميم المتجاوب لبطاقة التواصل */
@media (max-width: 768px) {
    .contact-card {
        margin: 1.5rem 0;
    }
    
    .contact-card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-card-title h3 {
        font-size: 1.3rem;
    }
    
    .contact-card-content {
        padding: 1.5rem;
    }
    
    .contact-office-address {
        padding: 1rem;
    }
    
    .contact-team-member {
        padding: 1rem;
    }
    
    .member-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .call-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-card-footer {
        padding: 1rem 1.5rem;
    }
    
    .contact-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-card-header {
        padding: 1rem;
    }
    
    .contact-card-content {
        padding: 1rem;
    }
    
    .contact-office-address {
        padding: 0.75rem;
    }
    
    .contact-team-member {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .member-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .member-info h5 {
        font-size: 1rem;
    }
    
    .member-phone {
        font-size: 0.9rem;
    }
    
    .call-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .contact-card-footer {
        padding: 0.75rem 1rem;
    }
    
    .contact-cta-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* === النافذة المنبثقة للتواصل === */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideIn 0.3s ease;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.contact-modal-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-modal-header .office-icon {
    color: var(--secondary-color);
    font-size: 2rem;
}

.contact-office-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-right: 4px solid var(--secondary-color);
}

.contact-office-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-office-info .location-icon {
    color: var(--secondary-color);
}

.contact-office-address {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

.contact-members {
    margin-bottom: 2rem;
}

.contact-members h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-members .team-icon {
    color: var(--secondary-color);
}

.contact-member {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-member:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-light);
    transform: translateY(-2px);
}

.contact-member-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.contact-member-info {
    flex: 1;
}

.contact-member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.contact-member-phone {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
    direction: ltr;
    text-align: right;
}

.contact-cta {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.contact-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.contact-cta p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-close:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

/* الرسوم المتحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textGlow {
    0% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
    50% { text-shadow: 0 2px 4px rgba(0, 113, 227, 0.3); }
    100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* التصميم المتجاوب للنافذة المنبثقة */
@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .contact-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-office-info {
        padding: 1rem;
    }
    
    .contact-member {
        padding: 0.75rem;
    }
    
    .contact-member-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-member-name {
        font-size: 1rem;
    }
    
    .contact-member-phone {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        width: 98%;
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .contact-modal-header {
        margin-bottom: 1.5rem;
    }
    
    .contact-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .contact-office-info {
        padding: 0.75rem;
    }
    
    .contact-office-address {
        font-size: 1rem;
    }
}

/* === التصميم المتجاوب === */

/* الشاشات المتوسطة (التابلت) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .filter-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* الشاشات الصغيرة (الجوال) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .property-card {
        margin: 0;
        border-radius: var(--border-radius-large);
        border: 1px solid var(--border-color);
        position: relative;
        overflow: hidden;
    }
    
    .property-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
        border-color: var(--secondary-color);
    }
    
    .property-image {
        height: 180px;
    }
    
    .property-content {
        padding: 1.5rem;
        position: relative;
    }
    
    .property-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 1.5rem;
        right: 1.5rem;
        height: 1px;
        background: var(--border-color);
    }
    
    .property-header {
        border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
        position: relative;
    }
    
    .property-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .property-price {
        font-size: 1.3rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .filter-section {
        padding: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-info {
        order: -1;
    }
}

/* تحسينات إضافية للأداء */
.property-image,
.spinner,
.property-card {
    will-change: transform;
}

/* تأثيرات بصرية بسيطة - نمط Apple */
.property-card {
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* تحسين التباين لإمكانية الوصول */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
        --border-color: #666;
    }
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner {
        animation: none;
    }
}
