:root {
    --primary-blue: #1e88e5;
    --dark-blue: #1565c0;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-dark: #212529;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Tajawal', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--light-gray); direction: rtl; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* الهيدر */
.top-bar { background: var(--dark-blue); color: var(--white); padding: 0.5rem 0; font-size: 0.9rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.contact-info a { color: var(--white); text-decoration: none; margin-left: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.contact-info a:hover { color: var(--light-blue); }
.auth-links a { color: var(--white); text-decoration: none; margin-right: 1rem; padding: 0.3rem 0.8rem; border-radius: 4px; background: rgba(255,255,255,0.1); }
.auth-links a:hover { background: rgba(255,255,255,0.2); }

.navbar { background: var(--white); box-shadow: var(--shadow-light); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.nav-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo { display: flex; align-items: center; text-decoration: none; gap: 1rem; height: 40px; }

.nav-menu { display: flex; list-style: none; gap: 0.5rem; flex-wrap: wrap; }
.nav-link { text-decoration: none; color: var(--text-dark); padding: 0.75rem 1.25rem; border-radius: 8px; display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.nav-link:hover { background: var(--light-blue); color: var(--primary-blue); }
.nav-link.active { background: var(--primary-blue); color: var(--white); }
.add-property-btn { background: linear-gradient(135deg, var(--primary-blue), #42a5f5); color: var(--white); padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; box-shadow: 0 4px 12px rgba(30,136,229,0.3); transition: all 0.3s; }
.add-property-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,136,229,0.4); color: var(--white); }

/* بحث */
.search-section { background: linear-gradient(135deg, var(--primary-blue), #42a5f5); padding: 3rem 0; margin-bottom: 3rem; color: var(--white); }
.search-title { font-size: 2.2rem; text-align: center; font-weight: 700; }
.search-subtitle { font-size: 1.1rem; text-align: center; margin-bottom: 2rem; opacity: 0.9; }
.main-search-form { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 12px 36px rgba(0,0,0,0.15); }
.search-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.search-group { display: flex; flex-direction: column; }
.search-group.full-width { grid-column: 1 / -1; }
.search-group label { color: var(--dark-blue); font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.search-select, .search-input { padding: 0.85rem 1rem; border: 2px solid var(--medium-gray); border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: 1rem; transition: all 0.3s; }
.search-select:focus, .search-input:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(30,136,229,0.2); }
.keyword-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.keyword-tag { background: var(--light-blue); color: var(--primary-blue); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.keyword-tag:hover { background: var(--primary-blue); color: var(--white); }
.search-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.search-btn { background: linear-gradient(135deg, var(--primary-blue), #42a5f5); color: var(--white); border: none; padding: 1rem 2.5rem; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; transition: all 0.3s; box-shadow: 0 4px 12px rgba(30,136,229,0.3); }
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,136,229,0.4); }
.reset-btn { background: var(--white); color: var(--dark-gray); border: 2px solid var(--medium-gray); padding: 1rem 2rem; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; transition: all 0.3s; text-decoration: none; }
.reset-btn:hover { background: var(--light-gray); border-color: var(--dark-gray); }
.popular-keywords { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); }
.popular-keywords h4 { color: var(--white); margin-bottom: 1rem; text-align: center; }
.keywords-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.keyword-link { background: rgba(255,255,255,0.1); color: var(--white); padding: 0.5rem 1rem; border-radius: 20px; text-decoration: none; font-size: 0.9rem; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.keyword-link:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* فلتر جانبي */
.filter-sidebar { background: var(--white); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow-light); margin-bottom: 2rem; }
.filter-title { color: var(--dark-blue); margin-bottom: 1.5rem; font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.filter-options { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem; border-radius: 4px; transition: all 0.3s; }
.filter-option:hover { background: var(--light-blue); }
.filter-option input { width: 18px; height: 18px; }

/* كروت */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.property-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-light); transition: all 0.3s; }
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.property-image { position: relative; height: 220px; overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s; }
.property-card:hover .property-image img { transform: scale(1.05); }
.no-image { height: 100%; background: var(--light-blue); display: flex; align-items: center; justify-content: center; color: var(--dark-gray); }
.property-badges { position: absolute; top: 15px; left: 15px; display: flex; flex-direction: column; gap: 0.5rem; }
.property-type-badge { padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; color: var(--white); }
.property-type-badge.sale { background: #e74c3c; }
.property-featured-badge { background: #ff9800; color: var(--white); padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; }
.property-info { padding: 1.5rem; }
.property-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.property-location { display: flex; align-items: center; gap: 0.5rem; color: var(--dark-gray); font-size: 0.95rem; }
.property-location i { color: var(--primary-blue); }
.property-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; padding: 1rem; background: var(--light-gray); border-radius: 8px; }
.detail-item { display: flex; align-items: center; gap: 0.75rem; }
.detail-item i { color: var(--primary-blue); font-size: 1.1rem; }
.detail-label { font-size: 0.85rem; color: var(--dark-gray); }
.detail-value { font-weight: 600; }
.property-price { background: linear-gradient(135deg, var(--light-blue), var(--white)); padding: 1rem; border-radius: 8px; text-align: center; margin: 1.5rem 0; border: 2px solid var(--primary-blue); }
.price-amount { font-size: 1.8rem; font-weight: 700; color: var(--primary-blue); }
.price-label { font-size: 0.9rem; color: var(--dark-gray); }
.property-actions { display: flex; gap: 0.75rem; }
.btn-view-details { flex: 1; background: var(--primary-blue); color: var(--white); padding: 0.85rem; border-radius: 8px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.3s; border: none; cursor: pointer; }
.btn-view-details:hover { background: var(--dark-blue); color: var(--white); }
.btn-whatsapp { width: 50px; background: #25D366; color: var(--white); border-radius: 8px; text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.3s; }
.btn-whatsapp:hover { background: #128C7E; }

/* صفحات */
.properties-page { padding: 2rem 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.page-title { color: var(--dark-blue); font-size: 1.8rem; font-weight: 700; }
.results-count { background: var(--light-blue); color: var(--primary-blue); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; }

/* تفاصيل العقار */
.property-details-page { background: var(--white); border-radius: 12px; padding: 2rem; margin-top: 2rem; box-shadow: var(--shadow-light); }
.property-header { margin-bottom: 2rem; border-bottom: 1px solid var(--medium-gray); padding-bottom: 1rem; }
.property-meta { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.type.sale { background: #e74c3c; color: white; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.status.available { background: #4caf50; color: white; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.status.sold { background: #e74c3c; color: white; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.featured-badge { background: #ff9800; color: white; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.property-gallery { margin-bottom: 2rem; }
.main-image { height: 400px; overflow: hidden; border-radius: 8px; margin-bottom: 1rem; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnails { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; }
.thumbnails img { width: 100px; height: 100px; object-fit: cover; cursor: pointer; border-radius: 4px; transition: all 0.3s; }
.thumbnails img:hover { opacity: 0.8; }
.property-content { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.info-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--light-gray); border-radius: 8px; }
.info-item.full-width { grid-column: 1 / -1; }
.info-item i { font-size: 1.5rem; color: var(--primary-blue); }
.label { font-size: 0.85rem; color: var(--dark-gray); }
.value { font-weight: bold; }
.description-section { margin-top: 2rem; }
.description-content { background: var(--light-gray); padding: 1.5rem; border-radius: 8px; line-height: 1.8; }
.contact-box { background: var(--light-gray); padding: 2rem; border-radius: 8px; text-align: center; position: sticky; top: 100px; }
.contact-btn { display: block; margin: 1rem 0; padding: 1rem; border-radius: 8px; font-weight: bold; text-decoration: none; transition: all 0.3s; }
.contact-btn.whatsapp { background: #25D366; color: white; }
.contact-btn.phone { background: var(--primary-blue); color: white; }
.contact-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.contact-info { margin-top: 1.5rem; text-align: right; }

/* لوحة التحكم */
.admin-page { margin-top: 2rem; }
.admin-header { background: var(--white); padding: 2rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: var(--shadow-light); }
.stats-section { background: var(--white); padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: var(--shadow-light); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat-card { background: var(--light-gray); padding: 1.5rem; border-radius: 8px; text-align: center; border-right: 4px solid var(--primary-blue); }
.stat-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: white; font-size: 1.5rem; }
.stat-info h3 { font-size: 1.8rem; color: var(--dark-blue); }
.table-responsive { overflow-x: auto; }
.properties-table { width: 100%; background: var(--white); border-collapse: collapse; border-radius: 8px; overflow: hidden; }
.properties-table th, .properties-table td { padding: 1rem; text-align: right; border-bottom: 1px solid var(--medium-gray); }
.properties-table th { background: var(--dark-blue); color: white; }
.properties-table tr:hover { background: var(--light-blue); }
.status-badge.success { background: #4caf50; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.status-badge.error { background: #e74c3c; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.visible-badge.success { background: #4caf50; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.visible-badge.error { background: #e74c3c; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.action-buttons { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; padding: 0.25rem 0.5rem; border-radius: 4px; text-decoration: none; color: white; font-size: 0.875rem; width: 30px; height: 30px; border: none; cursor: pointer; transition: all 0.3s; }
.btn-sm:hover { opacity: 0.8; }
.btn-info { background: var(--primary-blue); }
.btn-warning { background: #ff9800; }
.btn-danger { background: #e74c3c; }
.btn-secondary { background: #6c757d; }

/* نماذج */
.property-form { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow-light); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--dark-blue); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem; border: 2px solid var(--medium-gray); border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: 1rem; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(30,136,229,0.2); }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-label input { width: auto; }
.form-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: var(--primary-blue); color: white; }
.btn-primary:hover { background: var(--dark-blue); }
.btn-secondary { background: var(--dark-gray); color: white; }
.btn-secondary:hover { background: #343a40; }
.btn-warning { background: #ff9800; color: white; }
.btn-warning:hover { background: #e68900; }
.btn-block { width: 100%; justify-content: center; }

/* تنبيهات */
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* حالات خاصة */
.no-results, .no-data, .no-images { text-align: center; padding: 3rem; color: var(--dark-gray); background: var(--white); border-radius: 8px; margin-top: 2rem; }
.active-filters { background: var(--white); padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: var(--shadow-light); }
.active-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.active-tag { background: var(--light-blue); color: var(--primary-blue); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.remove-filter { color: #e74c3c; text-decoration: none; font-size: 0.8rem; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; }
.remove-filter:hover { background: #e74c3c; color: var(--white); }
.clear-all { background: #e74c3c; color: var(--white); padding: 0.5rem 1rem; border-radius: 20px; text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; }
.clear-all:hover { background: #c0392b; transform: translateY(-2px); }

/* فوتر */
.main-footer { background: var(--dark-blue); color: var(--white); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { margin-bottom: 1rem; border-bottom: 2px solid rgba(255,255,255,0.2); display: inline-block; padding-bottom: 0.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: white; padding-right: 0.5rem; }
.cities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.city-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; transition: all 0.3s; }
.city-link:hover { color: white; padding-right: 0.3rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.social-link { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: all 0.3s; text-decoration: none; }
.social-link:hover { background: white; color: var(--dark-blue); transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; }

/* تسجيل الدخول */
.login-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 200px); padding: 2rem 0; }
.login-container { width: 100%; max-width: 400px; background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow-medium); }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-footer { margin-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--dark-gray); }

/* تعديلات */
.edit-property-page { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow-light); margin-top: 2rem; }
.image-item { position: relative; border-radius: 8px; overflow: hidden; height: 150px; }
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.delete-image { position: absolute; top: 5px; left: 5px; background: #e74c3c; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s; }
.delete-image:hover { background: #c0392b; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.current-images { margin: 2rem 0; }

/* تجاوب */
@media (max-width: 992px) {
    .nav-menu { display: none; }
    .add-property-btn { display: none; }
    .search-row { grid-template-columns: repeat(2, 1fr); }
    .property-content { grid-template-columns: 1fr; }
    .contact-box { position: static; }
}

@media (max-width: 768px) {
    .search-title { font-size: 1.8rem; }
    .search-row { grid-template-columns: 1fr; }
    .properties-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .top-bar-content { flex-direction: column; text-align: center; }
    .contact-info a { margin: 0 0.5rem; }
    .main-search-form { padding: 1.5rem; }
    .search-actions { flex-direction: column; }
    .search-btn, .reset-btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-actions { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 576px) {
    .property-details-page { padding: 1rem; }
    .main-image { height: 250px; }
    .info-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .properties-table { font-size: 0.8rem; }
    .action-buttons { flex-direction: row; }
}
/* ========================================== */
/* تأثيرات و Animations - إضافات جديدة */
/* ========================================== */

/* ===== keyframes الأساسية ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomOut {
    from { opacity: 0; transform: scale(1.2); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(30, 136, 229, 0.3); }
    50% { box-shadow: 0 0 40px rgba(30, 136, 229, 0.6); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-blue); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================== */
/* تطبيقات التأثيرات على العناصر */
/* ========================================== */

/* --- تأثيرات الهيدر --- */
.navbar {
    animation: slideInDown 0.6s ease-out;
}

.logo-icon {
    animation: float 3s ease-in-out infinite;
}

.logo-icon:hover {
    animation: wiggle 0.5s ease;
}

/* --- تأثيرات البحث --- */
.search-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.search-title {
    animation: fadeInDown 0.8s ease-out;
}

.search-subtitle {
    animation: fadeInUp 1s ease-out;
}

.main-search-form {
    animation: zoomIn 0.8s ease-out;
}

/* --- كلمات البحث --- */
.keyword-tag {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.keyword-tag:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* --- أزرار البحث --- */
.search-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

/* --- كروت العقارات --- */
.property-card {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.property-card:nth-child(1) { animation-delay: 0.05s; }
.property-card:nth-child(2) { animation-delay: 0.1s; }
.property-card:nth-child(3) { animation-delay: 0.15s; }
.property-card:nth-child(4) { animation-delay: 0.2s; }
.property-card:nth-child(5) { animation-delay: 0.25s; }
.property-card:nth-child(6) { animation-delay: 0.3s; }
.property-card:nth-child(7) { animation-delay: 0.35s; }
.property-card:nth-child(8) { animation-delay: 0.4s; }

.property-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- شارات العقار --- */
.property-badges {
    animation: slideInRight 0.5s ease-out;
}

.property-type-badge {
    transition: all 0.3s ease;
}

.property-type-badge:hover {
    transform: scale(1.1);
}

.property-featured-badge {
    animation: pulse 2s infinite;
}

/* --- زر عرض التفاصيل --- */
.btn-view-details {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-view-details::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-view-details:hover::after {
    width: 300px;
    height: 300px;
}

.btn-view-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

/* --- زر واتساب --- */
.btn-whatsapp {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-whatsapp:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* --- الفلتر الجانبي --- */
.filter-sidebar {
    animation: fadeInLeft 0.6s ease-out;
}

.filter-option {
    transition: all 0.3s ease;
}

.filter-option:hover {
    transform: translateX(-5px);
    background: var(--light-blue);
}

.filter-option input:checked + span {
    color: var(--primary-blue);
    font-weight: 700;
}

/* --- جدول العقارات --- */
.properties-table tbody tr {
    transition: all 0.3s ease;
}

.properties-table tbody tr:hover {
    background: var(--light-blue);
    transform: scale(1.01);
}

.properties-table tbody tr:nth-child(odd) {
    animation: fadeInRight 0.3s ease-out;
}

.properties-table tbody tr:nth-child(even) {
    animation: fadeInLeft 0.3s ease-out;
}

/* --- أزرار الإجراءات في الجدول --- */
.btn-sm {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sm:hover {
    transform: scale(1.2) translateY(-2px);
}

/* --- الإحصائيات --- */
.stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: scaleIn 0.5s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon {
    transform: rotateY(180deg);
}

.stat-info h3 {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-info h3 {
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* --- النماذج --- */
.property-form {
    animation: fadeIn 0.6s ease-out;
}

.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
}

/* --- الأزرار في النماذج --- */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* --- تغيير كلمة المرور --- */
.password-form {
    animation: fadeInRight 0.6s ease-out;
}

/* --- التنبيهات --- */
.alert {
    animation: slideInRight 0.5s ease-out;
}

.alert-success {
    border-right: 4px solid #28a745;
}

.alert-error {
    border-right: 4px solid #dc3545;
}

.alert-close {
    transition: all 0.3s ease;
}

.alert-close:hover {
    transform: rotate(90deg) scale(1.2);
}

/* --- الفوتر --- */
.main-footer {
    animation: fadeInUp 0.8s ease-out;
}

.social-link {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    transform: translateY(-5px) rotate(10deg) scale(1.1);
}

.footer-links a {
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(-5px);
}

/* --- صور العقار --- */
.thumbnails img {
    transition: all 0.3s ease;
}

.thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- زر الاتصال --- */
.contact-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-btn:hover::after {
    width: 400px;
    height: 400px;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- مشاركة --- */
.share-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- علامة تبويب المدن --- */
.city-tag {
    transition: all 0.3s ease;
}

.city-tag:hover {
    transform: scale(1.05);
    background: var(--primary-blue);
    color: white;
}

/* ========================================== */
/* تأثيرات خاصة للشاشات الكبيرة */
/* ========================================== */
@media (min-width: 1200px) {
    .property-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .property-card:hover {
        transform: translateY(-15px) scale(1.02);
    }
}

/* ========================================== */
/* تأثيرات للشاشات الصغيرة (تقليل الحركة) */
/* ========================================== */
@media (max-width: 768px) {
    .property-card {
        animation: fadeIn 0.4s ease-out;
    }
    
    .property-card:hover {
        transform: translateY(-5px);
    }
    
    .stat-card:hover {
        transform: translateY(-3px);
    }
    
    /* تقليل الحركة للأجهزة المحمولة */
    .logo-icon {
        animation: none;
    }
    
    .property-featured-badge {
        animation: none;
    }
    
    .search-section {
        animation: none;
    }
}

/* ========================================== */
/* تفضيل تقليل الحركة */
/* ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================== */
/* تأثيرات إضافية للتفاعل */
/* ========================================== */

/* -- تأثير الشفافية عند التمرير -- */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* -- تأثير النبض للأيقونات -- */
.pulse-icon {
    animation: pulse 2s infinite;
}

/* -- تأثير الدوران للتحميل -- */
.spin-icon {
    animation: rotate 1s linear infinite;
}

/* -- تأثير التوهج للأزرار -- */
.glow-btn {
    animation: glow 2s infinite;
}

/* -- تأثير الكتابة الآلية -- */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-left: 2px solid var(--primary-blue);
    animation: typewriter 2s steps(20) forwards, blink 0.8s step-end infinite;
    width: 0;
}

/* -- تأثير التوسع عند التمرير -- */
.expand-on-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expand-on-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* -- تأثير الإضاءة الخلفية -- */
.shimmer-bg {
    background: linear-gradient(90deg, 
        var(--light-gray) 0%, 
        var(--white) 50%, 
        var(--light-gray) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* -- تأثير القفز للروابط -- */
.bounce-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.bounce-link:hover {
    animation: bounce 0.6s ease;
}

/* -- تأثير الاهتزاز للأخطاء -- */
.shake-error {
    animation: shake 0.5s ease;
}

/* -- تأثير التدرج المتحرك -- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue), var(--dark-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

/* -- تأثير الظل المتحرك -- */
.float-shadow {
    transition: all 0.3s ease;
}

.float-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.2);
}