/* ================= HÀNG 3: NÚT LOẠI BĐS (phiên bản tối giản) ================= */
.wpr-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-start; /* Căn trái toàn hàng */
}

.wpr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Icon + chữ canh giữa trong nút */
    justify-content: center;
    width: 90px;
    height: 90px;
    font-size: 13px;
    color: #333;
    text-align: center;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpr-type-btn img {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    object-fit: contain;
}

.wpr-type-btn:hover {
    opacity: 0.8;
}

.wpr-type-btn.active {
    color: #0073aa;
}

/* ================= Responsive ================= */

/* Tablet */
@media (max-width: 991px) {
    .wpr-type-btn {
        width: 80px;
        height: 80px;
        font-size: 12px;
    }
    .wpr-type-btn img {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wpr-type-row {
        gap: 10px;
        justify-content: flex-start; /* Vẫn căn trái */
    }
    .wpr-type-btn {
        width: 70px;
        height: 70px;
        font-size: 11px;
    }
    .wpr-type-btn img {
        width: 24px;
        height: 24px;
        margin-bottom: 3px;
    }
}


/* ================= Mobile: chuyển hàng 3 thành thanh trượt ================= */
@media (max-width: 600px) {
    .wpr-type-row {
        display: flex;
        flex-wrap: nowrap;          /* Không xuống dòng */
        overflow-x: auto;            /* Cho phép vuốt ngang */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;       /* Ẩn scrollbar Firefox */
        gap: 10px;
        padding-bottom: 4px;
    }

    .wpr-type-row::-webkit-scrollbar {
        display: none;               /* Ẩn scrollbar Chrome/Safari */
    }

    .wpr-type-btn {
        flex: 0 0 auto;              /* Đảm bảo không co giãn */
        width: 70px;
        height: 70px;
        font-size: 11px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        padding: 6px 4px;
        transition: transform 0.2s ease;
    }

    .wpr-type-btn:hover {
        transform: scale(1.05);
    }

    .wpr-type-btn.active {
        color: #0073aa;
        font-weight: 600;
        box-shadow: 0 0 0 2px #0073aa inset;
    }

    .wpr-type-btn img {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }
}
