
/* ==========================================================================
   استایل سایدبار (Sidebar)
   ========================================================================== */
.ih-sidebar {
    width: 100%;
    max-width: 520px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    clear: both;
    box-sizing: border-box;
}

.ih-sidebar-title {
    font-size: 1.3rem;
    color: #1b1b1b;
    padding-inline: 10px;
    margin-bottom: 12px;
}

.ih-sidebar-line {
    width: 90%;
    height: 1px;
    background-color: #e0e0e0;
    margin-inline-start: 10px;
    margin-bottom: 30px;
}

.ih-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   استایل کارت‌ها (Cards)
   ========================================================================== */
.ih-sidebar-card {
    display: block;
    text-decoration: none;
    background-color: #fffdf2;
    border: 1px solid #f0ebd4;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ih-sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.ih-card-thumb img {
    width: 100%;
    height: 220px; /* ارتفاع ثابت اضافه شد تا عکس‌ها یکدست فیت بشن */
    object-fit: cover;
    display: block;
}

.ih-card-content {
    padding: 15px 12px;
}

.ih-card-title {
    font-size: 1rem;
    color: #1b1b1b;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 2.8rem;
    overflow: hidden;
}

.ih-card-line {
    width: 80%;
    height: 1px;
    background-color: #e8e3cc;
    margin-bottom: 12px;
}

.ih-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ih-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.ih-meta-item.location {
    color: #666666;
}

.ih-meta-item.price {
    color: #1F4E3D;
    font-weight: 600;
}

.ih-meta-item i {
    width: 16px;
    text-align: center;
}

/* ==========================================================================
   ریسپانسیو هوشمند (Responsive Fix)
   ========================================================================== */
@media (max-width: 480px) {
    .ih-sidebar {
        max-width: 100%;
        width: 100%;
        margin-inline: auto;
        border-radius: 0;
        padding: 15px 10px;
    }

    .ih-card-thumb img {
        height: 200px;
    }
}