/* ======= سایدبار فیلترها ======= */
.filters-sidebar {
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid #e8f5e9;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #2d774d;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "📊";
    font-size: 14px;
}

/* دسته‌بندی‌ها */
.category-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover {
    background: #f8fff8;
    color: #00a650;
    border-color: #e0f0e0;
}

.category-link.active {
    background: #00a650;
    color: white;
    border-color: #00a650;
}

.category-link.parent-category {
    font-weight: 600;
    background: #f8f9fa;
    border-left: 3px solid #00a650;
}

.category-link.child-category {
    font-weight: normal;
    margin-right: 20px;
    font-size: 13px;
    background: white;
}

.category-link.child-category .category-icon {
    font-size: 12px;
}

.subcategories {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 5px;
}

.category-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* مشاوران */
.advisors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advisor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}

.advisor-item:last-child {
    border-bottom: none;
}

.advisor-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.advisor-link:hover {
    background: #f8fff8;
    color: #00a650;
    border-color: #e0f0e0;
}

.advisor-link.active {
    background: #00a650;
    color: white;
    border-color: #00a650;
}

.advisor-name {
    font-weight: 600;
    font-size: 14px;
}

.advisor-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888;
}

.advisor-link.active .advisor-stats {
    color: rgba(255,255,255,0.8);
}

.listing-count {
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.advisor-link.active .listing-count {
    background: rgba(255,255,255,0.2);
}

.advisor-province {
    font-size: 10px;
}

.view-project-link {
    color: #00a650;
    text-decoration: none;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.view-project-link:hover {
    background: #00a650;
    color: white;
}

/* فوتر */
.footer-info .section-title::before {
    content: "ℹ️";
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-link {
    text-decoration: none;
    color: #666;
    padding: 6px 0;
    transition: color 0.3s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: #00a650;
}

.footer-link::before {
    content: "›";
    font-size: 12px;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .filters-sidebar {
        display: none; /* در موبایل سایدبار نمایش داده نمی‌شود */
    }
}