/* ================================
   房源卡片列表（多状态标签版）
================================ */

/* 列表容器 */
.house-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

/* 卡片基础 */
.house-item {
    position: relative;
    background: #ffffff;

    /* 单个居中房子 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231e3c72' fill-opacity='0.05'%3E%3Cpath d='M12 5l7 6v8h-4v-5H9v5H5v-8l7-6z'/%3E%3C/g%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px; /* 控制大小 */

    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid #e6eaf0;
    box-shadow: 0 6px 18px rgba(30,60,114,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

/* hover效果 */
.house-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(30,60,114,0.15);
}

/* 价格 */
.house-item .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.6rem;
}

/* 信息 */
.house-item .info p {
    margin: 4px 0;
    font-size: 0.92rem;
    color: #444;
}

/* 标签 */
.house-item .tag {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

/* ===== 右上角状态容器 ===== */
.house-item .status-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column; /* 多标签竖直排列，可改成 row 横向 */
    gap: 4px;
}

/* 单个状态标签 */
.house-item .status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    white-space: nowrap;
}

/* 状态颜色 */
.house-item .status.on-sale { background-color: #e74c3c; }      /* 在售 */
.house-item .status.verified { background-color: #4caf50; }     /* 已核验 */
.house-item .status.for-rent { background-color: #2196f3; }     /* 在租 */

/* 最低价高亮（可选） */
.house-item.lowest {
    border: 2px solid #e74c3c;
}

/* 发布房源卡片（主题统一） */
.house-item.sell {
    background: #1e3c72;
    color: #fff;
    border: none;
}

/* 卖房卡片不显示状态标签 */
.house-item.sell .status-container {
    display: none;
}

/* 卖房价格颜色 */
.house-item.sell .price {
    color: #ffd700;
}

/* 卖房文字 */
.house-item.sell .info p {
    color: rgba(255,255,255,0.95);
}

/* 卖房标签 */
.house-item.sell .tag {
    color: rgba(255,255,255,0.8);
}

/* hover */
.house-item.sell:hover {
    background: #2a5298;
}

/* ================================
   响应式优化
================================ */

/* 平板（2列） */
@media (max-width: 900px) {
    .house-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机（1列） */
@media (max-width: 600px) {
    .house-list {
        grid-template-columns: 1fr;
    }

    .house-item {
        padding: 1rem;
    }

    .house-item .price {
        font-size: 1.3rem;
    }
}