/* 首页租房列表 */
.rental-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rental-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: var(--wuye-radius-sm);
    box-shadow: 0 2px 8px var(--wuye-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.rental-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 14px var(--wuye-shadow-hover);
}

.rental-thumb {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--wuye-gray);
}

.rental-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rental-title-row {
    display: flex;
    align-items: baseline;
    min-width: 0;
    line-height: 1.35;
}

.rental-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wuye-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.rental-title-tag {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wuye-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.rental-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rental-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #FFF4E8;
    color: var(--wuye-primary);
    font-size: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 租房列表页 */
.rental-list-page .rental-item {
    align-items: flex-start;
}

.rental-list-page .rental-thumb {
    width: 110px;
    height: 88px;
}

.rental-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    margin-top: 4px;
}

.rental-price {
    color: var(--wuye-danger);
    font-weight: 700;
}

.rental-area {
    color: var(--wuye-text-light);
}

@media (max-width: 374px) {
    .rental-thumb {
        width: 86px;
        height: 70px;
    }

    .rental-title {
        font-size: 1rem;
    }

    .rental-tag {
        font-size: 0.8125rem;
        padding: 3px 8px;
    }
}
