/* ========= static\pages\css\base\components.css – المكونات الكاملة (أولوية مضبوطة) ========= */

/* ----- إعادة تعيين إضافية ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Cinzel', serif;
    background-color: #05010c;
    overflow-x: hidden;
    color: #e9e2c7;
    min-height: 100vh;
    transition: background-color 0.4s ease;
}

/* ----- الحركات (keyframes) ----- */
@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 120%; }
    100% { left: 120%; }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes instagramShine {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}
@keyframes featuredShine {
    0%, 100% { box-shadow: 0 0 8px rgba(106,13,173,0.4); }
    50% { box-shadow: 0 0 18px rgba(106,13,173,0.8), 0 0 8px rgba(255,255,255,0.4); }
}

/* ----- الشريط العلوي (navbar) ----- */
.navbar {
    padding: 0.5rem 1.5rem;
    gap: 0.8rem;
    background: rgba(5, 1, 12, 0.94);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.navbar-logo img {
    max-height: 80px;
    transition: filter 0.3s;
}
.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f9ecc7, #d4af37, #f5e7b2, #b87c1a);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Cinzel', serif;
    animation: goldShimmer 8s infinite;
}
.logo p {
    color: #d4af37;
    font-size: 0.65rem;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-right: auto;
}
.currency-selector-wrapper {
    position: relative;
    flex-shrink: 0;
}
.nav-link-currency {
    color: #e9e2c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.nav-link-currency:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}
.nav-link-currency i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(10, 10, 25, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    list-style: none;
    padding: 0.5rem;
    z-index: 1001;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    display: none;
}
.currency-dropdown li {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    color: #e9e2c7;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.currency-dropdown li:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #ffd700;
}
.currency-dropdown li i {
    color: #d4af37;
    width: 18px;
    text-align: center;
}

/* الروابط في الشريط */
.nav-links a:not(.btn-add-offer-green):not(.btn-profile-gold) {
    color: #e9e2c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:not(.btn-add-offer-green):not(.btn-profile-gold):hover {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

/* زر إضافة عرض */
.btn-add-offer-green {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff !important;
    font-weight: 700;
    padding: 0.55rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}
.btn-add-offer-green:hover {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

/* زر الملف الشخصي (ذهبي) */
.btn-profile-gold {
    background: linear-gradient(135deg, #b87c1a, #d4af37);
    color: #000 !important;
    font-weight: 700;
    padding: 0.55rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}
.btn-profile-gold:hover {
    background: linear-gradient(135deg, #c9901e, #e6c44d);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

/* شارة الإشعارات */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(229,57,53,0.5);
    padding: 0 2px;
}

/* صورة البطاقة */
.card-category-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(0,0,0,0.5);
}

/* ========== أزرار الطبقات ========== */
.class-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 2rem 1.5rem;
    flex-wrap: wrap;
}
.class-btn {
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.class-btn.active {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(212,175,55,0.5);
    border-color: rgba(255,255,255,0.8);
}
.class-bronze {
    background: linear-gradient(135deg, #c97e3a, #b87c1a, #9a5a2a);
    color: #fff0e0;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}
.class-bronze.active {
    background: linear-gradient(135deg, #e08e4a, #c97e3a, #b87c1a);
    box-shadow: 0 0 15px rgba(201, 126, 58, 0.7);
}
.class-silver {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0, #a0a0a0);
    color: #0a0515;
    text-shadow: 0 0 2px rgba(0,0,0,0.2);
}
.class-silver.active {
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0, #b0b0b0);
    box-shadow: 0 0 15px rgba(192,192,192,0.8);
}
.class-gold {
    background: linear-gradient(135deg, #f9ecc7, #d4af37, #b87c1a);
    color: #0a0515;
    text-shadow: 0 0 2px rgba(255,255,200,0.5);
}
.class-gold.active {
    background: linear-gradient(135deg, #ffe6b3, #e0b83a, #c9a03a);
    box-shadow: 0 0 15px rgba(212,175,55,0.8);
}

/* ضمان نقر أزرار الثيمات دائمًا */
#classButtonsExpanded .class-btn,
#classButtonsMain .class-btn,
.class-buttons .class-btn {
    pointer-events: auto !important;
}

/* أزرار المحافظات */
.cities-bar {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2rem 2rem 1rem;
    transition: opacity 0.4s ease, transform 0.3s ease;
}
.cities-bar.hide-cities {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}
.city-btn {
    background: rgba(12, 8, 20, 0.84);
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    color: #e9e2c7;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    letter-spacing: 1px;
}
.city-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #3cb371;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(60, 179, 113, 0.3);
}
.city-btn.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(212,175,55,0.1));
    border-color: #d4af37;
    color: #f5e7b2;
    box-shadow: 0 0 12px rgba(212,175,55,0.4);
    text-shadow: 0 0 5px rgba(212,175,55,0.5);
}

/* خانة الميزانية */
.budget-box {
    background: rgba(12, 8, 20, 0.84);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 32px;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    width: fit-content;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.budget-box i {
    font-size: 1.8rem;
    color: #d4af37;
    filter: drop-shadow(0 0 3px rgba(212,175,55,0.5));
}
.budget-input-group {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.budget-input-group input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    color: #f5e7b2;
    width: 220px;
    text-align: center;
    outline: none;
    transition: 0.2s;
}
.budget-input-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}
.budget-btn {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(0,0,0,0.4));
    border: 1px solid #d4af37;
    border-radius: 40px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    color: #f5e7b2;
    cursor: pointer;
    transition: 0.3s;
}
.budget-btn:hover {
    background: linear-gradient(135deg, #7a2e3a, #9e4a3a, #b87c1a);
    color: #f9eec1;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(60, 179, 113, 0.5);
    transform: scale(1.02);
}
.budget-hint {
    font-size: 0.7rem;
    color: #c9b574;
    border-right: 1px solid rgba(212,175,55,0.4);
    padding-right: 1rem;
    letter-spacing: 0.5px;
}
@media (max-width: 700px) {
    .budget-box { flex-direction: column; align-items: stretch; gap: 0.8rem; width: 90%; }
    .budget-hint { border-right: none; padding-right: 0; text-align: center; }
    .budget-input-group { width: 100%; }
    .budget-input-group input { flex: 1; width: auto; }
}

/* بطاقات الأقسام الرئيسية */
.card {
    background: rgba(12, 8, 20, 0.84);
    border-radius: 24px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.2), border-color 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
    cursor: pointer;
    opacity: 0;
    animation: smoothFadeUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.4s; }
.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 250, 240, 0.8);
    box-shadow: 0 20px 35px rgba(0,0,0,0.6), 0 0 22px rgba(255, 245, 220, 0.3);
    background: rgba(20, 14, 32, 0.85);
}
.card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #f3e2a9, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.card:hover i { transform: scale(1.1); filter: drop-shadow(0 0 8px #ffdd77); }
.card h3 { font-size: 1.6rem; font-weight: 700; margin: 0.5rem 0; letter-spacing: 1px; }
.card h3 small { font-size: 0.8rem; display: block; color: #e6d5b3; font-weight: 400; text-shadow: 0 0 3px rgba(0,0,0,0.5); }
.card p { color: #e9e0c2; margin: 0.8rem 0 1.2rem; font-size: 0.9rem; line-height: 1.4; text-shadow: 0 0 2px rgba(0,0,0,0.3); }

.btn-emp {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(0,0,0,0.4));
    border: 1.5px solid #d4af37;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: #f5e7b2;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    font-family: inherit;
}
.btn-emp:hover {
    background: linear-gradient(135deg, #7a2e3a, #9e4a3a, #b87c1a);
    color: #f9eec1;
    border-color: #d4af37;
    box-shadow: 0 0 18px rgba(212,175,55,0.5);
    transform: scale(1.02);
}

/* أقسام التحكم */
.control-section {
    background: rgba(12, 8, 20, 0.84);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 32px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.control-section .class-buttons,
.control-section .cities-bar {
    margin: 0; padding: 0; background: transparent;
    backdrop-filter: none; border: none; box-shadow: none; width: 100%;
}
@media (max-width: 700px) { .control-section { width: 100%; padding: 1rem; } }

/* أزرار الإيجار والبيع */
.rent-sale-buttons { display: flex; justify-content: center; gap: 1.5rem; margin: 1.5rem 0 2rem; }
.rent-sale-btn {
    padding: 0.6rem 2rem; border-radius: 50px; font-size: 1.1rem; font-weight: 600;
    font-family: 'Cairo', sans-serif; cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease; letter-spacing: 1px;
    background: rgba(12, 8, 20, 0.84);
    border: 1px solid rgba(212, 175, 55, 0.6); color: #f5e7b2;
}
.rent-sale-btn.active {
    background: linear-gradient(135deg, #d4af37, #b87c1a); color: #0a0515;
    border-color: #ffffff; box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); transform: scale(1.02);
}
.rent-sale-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }

/* شبكة فئات العقارات */
.realestate-categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin: 1.5rem 0 2rem; }
.realestate-category-card {
    background: rgba(0, 0, 0, 0.86); border-radius: 24px;
    padding: 1.2rem; text-align: center; border: 1px solid rgba(212, 175, 55, 0.4);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease; cursor: pointer;
}
.realestate-category-card:hover { transform: translateY(-8px); border-color: #d4af37; box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 15px rgba(212,175,55,0.3); background: rgba(0, 0, 0, 0.85); }
.realestate-category-card i { font-size: 2.5rem; background: linear-gradient(135deg, #f3e2a9, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.8rem; }
.realestate-category-card h4 { font-size: 1.3rem; font-weight: 700; color: #f5e7b2; text-shadow: 0 0 3px rgba(0,0,0,0.5); }
.realestate-category-card p { font-size: 0.8rem; color: #ddd0b0; text-shadow: 0 0 2px rgba(0,0,0,0.3); }
.realestate-category-card.active { background: rgba(212, 175, 55, 0.2); border-color: #d4af37; box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); transform: scale(1.02); }
@media (max-width: 1100px) { .realestate-categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .realestate-categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .realestate-categories-grid { grid-template-columns: 1fr; } }

/* شبكة المنتجات العامة */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.card-item {
    background: rgba(12, 8, 20, 0.88); border-radius: 28px;
    padding: 1.5rem; text-align: center; border: 1px solid rgba(212, 175, 55, 0.4); transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease; cursor: pointer;
}
.card-item:hover { transform: translateY(-8px); border-color: #d4af37; box-shadow: 0 20px 35px rgba(0,0,0,0.6), 0 0 15px rgba(212,175,55,0.5); }
.card-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 20px; margin-bottom: 1rem; }
.card-item h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card-item p { color: #ddd0b0; font-size: 0.9rem; }

/* شبكة بطاقات العقارات/السيارات */
.realestate-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; align-items: start; }
@media (max-width: 1100px) { .realestate-items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .realestate-items-grid { grid-template-columns: 1fr; } }

.realestate-item-card {
    background: rgba(0, 0, 0, 0.86); border-radius: 28px;
    padding: 1.5rem; text-align: center; border: 1px solid rgba(212, 175, 55, 0.5); transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease; cursor: pointer;
}
.realestate-item-card:hover { transform: translateY(-8px); border-color: #d4af37; box-shadow: 0 20px 35px rgba(0,0,0,0.6), 0 0 15px rgba(212,175,55,0.5); }
.realestate-item-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 20px; margin-bottom: 1rem; }
.realestate-item-card h4 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #f5e7b2; text-shadow: 0 0 5px rgba(0,0,0,0.5); }
.realestate-item-card p { color: #ddd0b0; font-size: 0.9rem; margin-bottom: 0.5rem; text-shadow: 0 0 3px rgba(0,0,0,0.3); }
.realestate-item-card .price { font-size: 1.1rem; font-weight: 600; color: #d4af37; margin: 0.5rem 0; text-shadow: 0 0 4px rgba(0,0,0,0.4); }
.realestate-item-card .quick-info { font-size: 0.8rem; color: #e9e0c2; margin-top: 0.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.realestate-item-card .quick-info span { background: rgba(0,0,0,0.5); padding: 0.2rem 0.6rem; border-radius: 20px; text-shadow: 0 0 2px rgba(0,0,0,0.5); }

/* زر التفاصيل */
.btn-detail {
    background: transparent; border: 1px solid #d4af37; padding: 0.7rem 1.5rem; border-radius: 50px;
    color: #d4af37; margin-top: 1rem; cursor: pointer; transition: 0.2s; font-size: 1rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-detail:hover { background: #d4af37; color: #0a0515; transform: scale(1.02); }
.btn-detail i { font-size: 1rem; }
.btn-icon { background: transparent; border: 1px solid #d4af37; border-radius: 30px; padding: 0.3rem 0.8rem; color: #d4af37; cursor: pointer; transition: 0.2s; }
.btn-icon:hover { background: #d4af37; color: #0a0515; }

/* ========== شارات الموثوقية (مصغرة) ========== */
.reputation-badge-mini {
    position: relative; display: inline-block; border-radius: 30px; padding: 2px;
    background: rgba(212,175,55,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.4); margin: 0.5rem 0; font-size: 0.8rem;
}
.reputation-bg-mini { position: absolute; top:0; left:0; right:0; bottom:0; border-radius: 30px; z-index:1; overflow: hidden; }
.shimmer-effect-mini {
    position: absolute; top:0; left:-100%; width:40%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    /* أُوقفت: حركة left لا تظهر أصلاً في الصفحة الرئيسية لكنها كانت تُجبر المتصفح على إعادة التخطيط لكل شارة */
    animation: none;
}
.reputation-content-mini {
    position: relative; z-index:2; background: rgba(0,0,0,0.38);
    border-radius: 30px; padding: 0.2rem 0.8rem; border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; gap: 0.3rem; color: #fff; font-weight: 600;
}
.reputation-content-mini i { font-size: 0.9rem; }

/* تدرجات ألوان الموثوقية */
.bg-red-gradient { background: linear-gradient(135deg, #b71c1c, #f44336, #b71c1c); background-size: 200% 200%; animation: gradientShift 3s ease 2; }
.bg-orange-gradient { background: linear-gradient(135deg, #e65100, #ff9800, #e65100); background-size: 200% 200%; animation: gradientShift 3s ease 2; }
.bg-green-gradient { background: linear-gradient(135deg, #1b5e20, #4caf50, #1b5e20); background-size: 200% 200%; animation: gradientShift 3s ease 2; }
.bg-blue-gradient { background: linear-gradient(135deg, #0d47a1, #2196f3, #0d47a1); background-size: 200% 200%; animation: gradientShift 4s ease 2; }
.bg-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #8a3ab9, #4b68da, #2b82d9); background-size: 300% 300%; animation: instagramShine 5s ease 2; }

/* ========== شارة نوع الحساب ========== */
.owner-badge {
    position: absolute; top: 12px; left: 12px; padding: 0.2rem 0.7rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem;
    background: rgba(0,0,0,0.78); border: 1px solid rgba(255,255,255,0.2); color: #fff; z-index:3;
}
.emperor-badge { background: rgba(180, 120, 30, 0.8); border-color: #d4af37; color: #000; }
.emperor-badge i { color: #d4af37; }
.user-badge { background: rgba(0,0,0,0.7); border-color: rgba(212,175,55,0.4); color: #f5e7b2; }
.user-badge i { color: #d4af37; }

/* ========== إطار العرض المميز ========== */
.featured-card { position: relative; border: 2px solid transparent; background-clip: padding-box; }
.featured-card::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #8a3ab9, #4b68da, #2b82d9);
    background-size: 300% 300%; border-radius: inherit; z-index: -1; animation: instagramShine 3s ease 3;
}
.featured-badge {
    position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #6a0dad, #1e3c72); color: #fff;
    padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem;
    box-shadow: 0 0 8px rgba(106,13,173,0.4); z-index:3;
}
.featured-badge::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 18px rgba(106,13,173,0.8), 0 0 8px rgba(255,255,255,0.4);
    opacity: 0; animation: featuredGlow 2s ease-in-out infinite;
}
@keyframes featuredGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ========== القائمة المنسدلة الفاخرة ========== */
.luxury-select {
    background: rgba(0,0,0,0.7); border: 1px solid rgba(212,175,55,0.6); border-radius: 30px;
    padding: 0.5rem 1rem; color: #f5e7b2; font-family: 'Cairo', sans-serif; font-size: 0.9rem;
    cursor: pointer; outline: none; transition: border-color 0.3s, box-shadow 0.3s; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23d4af37'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat; background-position: left 10px center;
}
.luxury-select:focus { border-color: #d4af37; box-shadow: 0 0 10px rgba(212,175,55,0.4); }
.luxury-select:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== تنسيقات Select2 (مدمجة) ========== */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
    background: rgba(0,0,0,0.7) !important;
    border: 1px solid rgba(212,175,55,0.6) !important;
    border-radius: 30px !important;
    height: auto !important;
    min-height: 46px;
    padding: 0.6rem 0.8rem !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f5e7b2 !important;
    line-height: 1.5 !important;
    padding-right: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    left: 10px !important;
    right: auto !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #d4af37 transparent transparent transparent !important;
}
.select2-dropdown {
    background: #1a1a2e !important;
    border: 1px solid #d4af37 !important;
    border-radius: 16px !important;
    color: #f5e7b2 !important;
}
.select2-container--default .select2-results__option {
    background: #1a1a2e !important;
    color: #f5e7b2 !important;
    padding: 8px 12px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(212,175,55,0.2) !important;
    color: #ffd700 !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(0,0,0,0.6) !important;
    border: 1px solid #d4af37 !important;
    color: #fff !important;
    border-radius: 20px !important;
}
.select2-brand-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.select2-brand-text {
    flex: 1;
    text-align: right;
}
.select2-brand-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 6px;
    background: transparent !important;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    mix-blend-mode: lighten;
    transition: transform 0.25s ease, filter 0.25s ease;
    padding: 2px;
}
.select2-brand-image:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(212,175,55,0.4));
}

/* ========== حاوية الفلاتر المدمجة ========== */
.filters-panel {
    background: rgba(0,0,0,0.84); border-radius: 24px;
    padding: 1rem; margin: 1rem 0; border: 1px solid rgba(212,175,55,0.4);
    display: flex; flex-direction: column; gap: 1rem;
}
.filters-panel .primary-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; justify-content: center; }
.filters-panel .primary-row .filter-group { flex: 1 1 160px; min-width: 140px; margin-bottom: 0; }
.filters-panel .primary-row .filter-group label { font-size: 0.85rem; color: #d4af37; margin-bottom: 0.25rem; display: block; }
.filters-panel .primary-row select,
.filters-panel .btn-all {
    width: 100%; padding: 0.7rem 1rem; font-size: 0.95rem; border-radius: 30px; height: 46px;
    background: rgba(0,0,0,0.7); border: 1px solid rgba(212,175,55,0.6); color: #f5e7b2; font-family: 'Cairo', sans-serif;
}
.filters-panel .btn-all {
    flex: 0 0 auto; min-width: 90px; background: rgba(212,175,55,0.2); border: 1px solid #d4af37;
    color: #d4af37; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease; white-space: nowrap;
}
.filters-panel .btn-all:hover { background: rgba(212,175,55,0.5); color: #000; }
.filters-panel .btn-extra {
    width: 100%; background: rgba(212,175,55,0.15); border: 1px solid rgba(212,175,55,0.5);
    color: #d4af37; padding: 0.7rem 1rem; border-radius: 30px; cursor: pointer; font-weight: bold;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease; font-size: 0.95rem;
}
.filters-panel .btn-extra:hover { background: rgba(212,175,55,0.4); color: #000; }
.filters-panel .extra-content { display: none; padding-top: 1rem; border-top: 1px solid rgba(212,175,55,0.3); }
.filters-panel .extra-content.show { display: block; }

/* تنسيق النطاقات عموديًا */
.range-vertical { display: flex; flex-direction: column; gap: 0.5rem; }
.range-vertical .range-row { display: flex; align-items: center; gap: 0.5rem; }
.range-vertical .range-row input {
    flex: 1; padding: 0.65rem 0.8rem; font-size: 0.9rem; border-radius: 20px;
    background: rgba(0,0,0,0.7); border: 1px solid rgba(212,175,55,0.6); color: #f5e7b2;
    font-family: inherit; text-align: center;
}
.range-vertical .range-sep { color: #d4af37; font-weight: bold; font-size: 1.3rem; white-space: nowrap; padding: 0 0.3rem; }

/* ========== إخفاء الشريط الجانبي ========== */
.expanded-sidebar { display: none; }
.expanded-layout { display: block; }
.expanded-main { width: 100%; }

/* ========== أخرى ========== */
.disabled-category,
.disabled-city { opacity: 0.5 !important; filter: grayscale(0.3); cursor: not-allowed !important; }
.realestate-category-card.disabled-category:hover,
.city-btn.disabled-city:hover { transform: none; box-shadow: none; }
/* زر فلاتر إضافية في السيارات - إضافة مسافة علوية */
#toggleCarExtraFiltersBtn {
    margin-top: 0.8rem;
}
/* ========== استجابة الجوال ========== */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; justify-content: center; }
    .nav-links { order: 3; width: 100%; justify-content: center; margin-top: 0.5rem; flex-wrap: wrap; }
    .logo h1 { font-size: 1.8rem; }
    .btn-add-offer-green, .btn-profile-gold { padding: 0.5rem 1.4rem; font-size: 0.9rem; }
}
/* صف النقاط الإحصائية (إشارات المرور) */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    color: #ccc;
}
.stat-dot {
    display: flex;
    align-items: center;
    gap: 4px;
}
.stat-dot i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.stat-dot.green i { background: #4caf50; }
.stat-dot.orange i { background: #ff9800; }
.stat-dot.red i { background: #f44336; }

/* شارة الوقت البديلة (حديث) */
.time-badge-placeholder {
    font-size: 0.7rem;
    color: #aaa;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 0.2rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}