Welcome to San Francisco
If your itinerary is set in stone and there's no chance of canceling, it looks like Hotwire has some 4 and 5 stars in your budget.
If you need help with determining good and bad neighborhoods of SF, there's plenty of people here that can help you.