/**
 * Components Stylesheet
 *
 * أنماط المكونات القابلة لإعادة الاستخدام
 *
 * @version 1.0.0
 * @date 2025-11-16
 */

/* ===================================================
   1. Property Card - Featured
   =================================================== */

.property-card {
    background: var(--bg-white) !important;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* صورة العقار */
.property-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-lighter) !important;
}

.property-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.property-card:hover .property-card-image {
    transform: scale(1.1);
}

.property-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Badges */
.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

[dir="rtl"] .property-badges {
    left: auto;
    right: 15px;
}

.badge-featured {
    background: var(--primary-gradient) !important;
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge-sale {
    background: #10b981 !important;
    color: var(--bg-white);
}

.badge-rent {
    background: #3b82f6 !important;
    color: var(--bg-white);
}

.badge-sold {
    background: #ef4444 !important;
    color: var(--bg-white);
}

/* زر المفضلة */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

[dir="rtl"] .btn-favorite {
    right: auto;
    left: 15px;
}

.btn-favorite:hover {
    background: var(--primary-color) !important;
    color: var(--bg-white) !important;
    transform: scale(1.1);
}

.btn-favorite.active i {
    font-weight: 900;
    color: #ef4444 !important;
}

/* محتوى البطاقة */
.property-card-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-family: var(--font-numbers);
    margin-bottom: var(--spacing-sm);
}

.price-amount {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.price-currency {
    font-size: var(--font-size-base);
    color: var(--text-medium);
    margin-right: 5px;
}

[dir="rtl"] .price-currency {
    margin-right: 0;
    margin-left: 5px;
}

.property-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.property-title a {
    color: var(--text-dark);
    transition: color var(--transition-fast);
}

.property-title a:hover {
    color: var(--primary-color);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.property-location i {
    color: var(--primary-color);
}

.property-features {
    display: flex;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
    font-size: var(--font-size-sm);
}

.feature-item i {
    color: var(--primary-color);
    font-size: var(--font-size-base);
}

/* فوتر البطاقة */
.property-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.agent-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.agent-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-details {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.agent-phone {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-phone:hover {
    color: var(--primary-color);
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color) !important;
    color: var(--bg-white) !important;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-view-details:hover {
    background: var(--primary-dark) !important;
    transform: translateX(-3px);
}

[dir="rtl"] .btn-view-details:hover {
    transform: translateX(3px);
}

/* ===================================================
   2. Neighborhood Card
   =================================================== */

.neighborhood-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.neighborhood-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.neighborhood-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.neighborhood-card:hover .neighborhood-card-image {
    transform: scale(1.1);
}

.neighborhood-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 57, 66, 0.3) 0%,
        rgba(27, 57, 66, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl);
    color: var(--bg-white);
}

.neighborhood-card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.neighborhood-card-count {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.neighborhood-card-price {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    color: var(--accent-color);
}

.neighborhood-card-link {
    margin-top: var(--spacing-sm);
    color: var(--bg-white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.neighborhood-card:hover .neighborhood-card-link {
    gap: 12px;
}

/* ===================================================
   3. Service Card
   =================================================== */

.service-card {
    background: var(--bg-white) !important;
    border-radius: var(--card-radius);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--primary-gradient) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 2rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.service-description {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
    gap: 10px;
}

/* ===================================================
   4. Category Card
   =================================================== */

.category-card {
    background: var(--bg-light) !important;
    border-radius: var(--card-radius);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.category-card:hover {
    background: var(--primary-color) !important;
    color: var(--bg-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    color: var(--bg-white);
    transform: scale(1.2);
}

.category-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.category-count {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.category-card:hover .category-count {
    color: var(--bg-white);
    opacity: 0.9;
}

/* ===================================================
   5. Stat Counter
   =================================================== */

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: var(--primary-gradient) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.75rem;
}

.stat-number {
    font-family: var(--font-numbers);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--text-medium);
}

/* نمط للخلفية الداكنة */
.section-dark .stat-number {
    color: var(--accent-color);
}

.section-dark .stat-label {
    color: var(--bg-white);
    opacity: 0.9;
}

/* ===================================================
   6. Search Form
   =================================================== */

.search-form {
    background: var(--bg-white) !important;
    border-radius: var(--card-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
}

.search-form-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.search-tab {
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent !important;
    border: none;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.search-tab.active {
    color: var(--primary-color);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color) !important;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.form-input,
.form-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(148, 121, 47, 0.1);
}

.btn-search {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-gradient) !important;
    color: var(--bg-white) !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================================
   7. Responsive Styles
   =================================================== */

@media (max-width: 767px) {
    .property-card-image-wrapper {
        height: 220px;
    }

    .property-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-view-details {
        justify-content: center;
        width: 100%;
    }

    .property-features {
        justify-content: space-between;
    }

    .neighborhood-card {
        height: 300px;
    }

    .service-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .search-form {
        padding: var(--spacing-lg);
    }

    .search-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .property-features {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 1 1 auto;
        min-width: 80px;
        justify-content: center;
    }
}

/* ===================================================
   8. Hero Section Luxury
   =================================================== */

.hero-luxury {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ارتفاعات مختلفة */
.hero-full {
    min-height: 100vh;
    height: 100vh;
}

.hero-large {
    min-height: 80vh;
    height: 80vh;
}

.hero-medium {
    min-height: 60vh;
    height: 60vh;
}

/* الخلفية */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* تأثير Parallax (اختياري) */
.hero-luxury[data-animation="parallax"] .hero-background-image {
    transform: scale(1.1);
    transition: transform 0.3s ease-out;
}

/* التراكب */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* المحتوى */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-3xl) 0;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* العنوان الرئيسي */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--bg-white);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* محاذاة النص */
.hero-luxury.text-center .hero-inner {
    text-align: center;
}

.hero-luxury.text-left .hero-inner {
    text-align: left;
}

.hero-luxury.text-right .hero-inner {
    text-align: right;
}

/* أزرار CTA */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-luxury.text-center .hero-cta {
    justify-content: center;
}

.hero-luxury.text-left .hero-cta {
    justify-content: flex-start;
}

.hero-luxury.text-right .hero-cta {
    justify-content: flex-end;
}

.hero-cta .btn {
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

/* نموذج البحث */
.hero-search {
    margin-top: var(--spacing-2xl);
    position: relative;
    z-index: 100;
}

.hero-search-inline {
    max-width: 100%;
}

.hero-search-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.hero-search-below {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--bg-white) !important;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

/* مؤشر السكرول */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--bg-white);
    border-radius: 25px;
    position: relative;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-down span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--bg-white) !important;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-animation 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll-animation {
    0% {
        top: 8px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* تأثيرات الرسوم المتحركة */
.hero-luxury[data-animation="fade"] .hero-title,
.hero-luxury[data-animation="fade"] .hero-subtitle {
    animation: fadeInUp 1s ease-out;
}

.hero-luxury[data-animation="zoom"] .hero-title,
.hero-luxury[data-animation="zoom"] .hero-subtitle {
    animation: zoomIn 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   Responsive - Hero Section
   =================================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-full {
        min-height: 80vh;
        height: 80vh;
    }

    .hero-large {
        min-height: 70vh;
        height: 70vh;
    }

    .hero-medium {
        min-height: 50vh;
        height: 50vh;
    }

    .hero-search-below {
        width: 95%;
        bottom: -80px;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-cta .btn {
        width: 100%;
        min-width: auto;
    }

    .hero-full {
        min-height: 70vh;
        height: 70vh;
    }

    .hero-large {
        min-height: 60vh;
        height: 60vh;
    }

    .hero-medium {
        min-height: 50vh;
        height: 50vh;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-search-below {
        position: relative;
        bottom: 0;
        transform: none;
        width: 100%;
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: var(--spacing-2xl) 0;
    }
}

/* ===================================================
   9. Modern Search Form - Enhanced Professional Design
   =================================================== */

.modern-search-wrapper {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%) !important;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 50px rgba(27, 57, 66, 0.08),
                0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(148, 121, 47, 0.08);
    position: relative;
    overflow: hidden;
}

.modern-search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient) !important;
    opacity: 0.6;
}

/* الصف الأول */
.search-row-primary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

/* أزرار البيع/الإيجار - تحسين كبير */
.status-toggle-wrapper {
    position: relative;
}

.status-toggle {
    display: inline-flex;
    background: linear-gradient(145deg, #f8f8f8, #f0f0f0) !important;
    border-radius: 10px;
    padding: 5px;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.status-btn {
    padding: 0.7rem 2.25rem;
    border: none;
    background: transparent !important;
    color: #888;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-family: var(--font-heading);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.status-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient) !important;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.status-btn.active {
    background: var(--bg-white) !important;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(148, 121, 47, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.status-btn.active::before {
    opacity: 0.08;
}

.status-btn:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px);
}

/* حقل الموقع - تحسين */
.location-field-wrapper {
    position: relative;
}

.location-input {
    width: 100%;
    height: 52px;
    padding: 0 3.75rem 0 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    direction: rtl;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.location-input:hover {
    border-color: #d0d0d0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.location-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(148, 121, 47, 0.12),
                0 4px 16px rgba(148, 121, 47, 0.15);
    transform: translateY(-1px);
}

.location-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.location-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(148, 121, 47, 0.3));
}

/* زر البحث - تحسين كبير */
.btn-search-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none;
    border-radius: 10px;
    height: 52px;
    padding: 0 3rem;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(148, 121, 47, 0.35),
                0 2px 8px rgba(148, 121, 47, 0.2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-search-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent);
    transition: left 0.6s ease;
}

.btn-search-primary:hover::before {
    left: 100%;
}

.btn-search-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(148, 121, 47, 0.45),
                0 4px 12px rgba(148, 121, 47, 0.3);
}

.btn-search-primary:active {
    transform: translateY(-1px);
}

.btn-search-primary i {
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* الصف الثاني - الفلاتر - تحسين */
.search-row-secondary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* حقول الفلاتر - تحسين كبير */
.filter-field {
    position: relative;
}

.filter-select {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #777;
    background: var(--bg-white) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    cursor: pointer;
    appearance: none;
    direction: rtl;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-select:hover {
    border-color: #d0d0d0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(148, 121, 47, 0.12),
                0 4px 16px rgba(148, 121, 47, 0.15);
    color: var(--text-dark);
    transform: translateY(-1px);
}

.filter-select option {
    padding: 1rem;
    direction: rtl;
    font-size: 0.95rem;
}

.filter-select option:first-child {
    color: #999;
}

.filter-select option:not(:first-child) {
    color: var(--text-dark);
}

/* السهم في الفلتر - تحسين */
.filter-arrow {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.8rem;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-field:hover .filter-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.filter-select:focus ~ .filter-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) rotate(180deg);
}

/* عندما يكون الفلتر محدد */
.filter-select:not([value=""]) {
    color: var(--text-dark);
    font-weight: 600;
    border-color: rgba(148, 121, 47, 0.3);
}

/* ===================================================
   Responsive - Modern Search Form
   =================================================== */

@media (max-width: 1199px) {
    .search-row-secondary {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-field:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .modern-search-wrapper {
        padding: 1.5rem;
    }

    .search-row-primary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .status-toggle {
        width: 100%;
        justify-content: center;
    }

    .status-btn {
        flex: 1;
    }

    .btn-search-primary {
        width: 100%;
        justify-content: center;
    }

    .search-row-secondary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .modern-search-wrapper {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .search-row-secondary {
        grid-template-columns: 1fr;
    }

    .location-input,
    .filter-select,
    .btn-search-primary {
        height: 48px;
        font-size: 0.95rem;
    }

    .status-btn {
        padding: 0.65rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .modern-search-wrapper {
        padding: 1rem;
    }

    .location-input,
    .filter-select,
    .btn-search-primary {
        height: 46px;
        font-size: 0.9rem;
    }

    .status-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-search-primary {
        padding: 0 2rem;
    }

    .btn-search-primary i {
        font-size: 0.85rem;
    }
}

/* ===================================================
   10. Stats Section
   =================================================== */

.stat-card {
    background: var(--bg-white) !important;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--primary-gradient) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Dark Section Variant */
.section-dark {
    background: linear-gradient(135deg, var(--secondary-color), #0d2128) !important;
    color: var(--bg-white);
}

.section-dark .stat-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-dark .stat-number {
    color: var(--bg-white);
}

.section-dark .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {
    .stat-card {
        padding: var(--spacing-xl);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-number {
        font-size: 2rem;
    }
}
