/* الحاوية الرئيسية */
.hcz-filter-container {
    direction: rtl;
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

/* تصميم الزجاجي للفلتر */
.hcz-glass-filter {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e6e6e6;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

/* شبكة الفلتر الأساسية */
.hcz-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: flex-end;
}

/* الحاوية الديناميكية (التي تظهر فيها حقول "أرض" و "شقة") */
#hcz_custom_drawer_id {
    display: grid !important; /* إجبار الظهور ضد أكواد القالب */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

/* تنسيق العناصر الفردية */
.hcz-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hcz-filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 0;
}

/* تنسيق المدخلات */
.hcz-input {
    width: 100% !important;
    height: 45px !important;
    padding: 0 15px !important;
    border: 1px solid #dce0e0 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    color: #444 !important;
    display: block !important; /* لضمان عدم إخفائها بواسطة القالب */
    appearance: auto !important; /* لإظهار سهم الاختيار الأصلي */
}

.hcz-input:focus {
    border-color: #0056b8 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,86,184,0.1);
}

/* زر البحث */
.hcz-main-btn {
    background-color: #0056b8;
    color: #fff;
    border: none;
    height: 45px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.hcz-main-btn:hover {
    background-color: #004494;
    transform: translateY(-1px);
}

/* رسالة التحميل */
.loading-msg {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    color: #0056b8;
    animation: fadePulse 1.5s infinite;
}

@keyframes fadePulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hcz-filter-grid, #hcz_custom_drawer_id {
        grid-template-columns: 1fr 1fr;
    }
}