#new_listing_menu{
 display:inline-block;
 clear:both;
 width:100%;
 background-color:#666;
 -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;
}
/*, #third_row*/
#first_row, #second_row, #third_row{
 display:block;
 float:left;
 padding:5px 0;
 background-color:#333;
}
#third_row{
 /*padding-top:3px;*/
 background-color:#666;
}
#first_row li, #second_row li{
 float:left;    
 display:block; 
}
#first_row li a{
 padding:13px 20px 17px 20px;
 border-right:1px solid #666;  
 font-size:15pt;
 display:block;
 -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;  
}
#second_row li a{
 padding:13px 20px 17px 20px;
 border-right:1px solid #666;
 font-size:15pt;
 display:block;
 -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;  
}
#second_row li:last-child a{
 border-right:none;
}
#new_listing_menu a{
 text-decoration:none;
 color:#ddd;
}
#new_listing_menu a:hover{
 color:#fff;         
}
#new_listing_menu .new_listing_menu_selected a{
 color:#b11116;    
}
#new_listing_menu label{
 position:relative;
 top:-2px;
 color:#ddd!important;
 padding-left:10px;
 cursor:pointer;
 margin-top:0;
 margin-bottom:0;
 display:inline;
}
#new_listing_menu input{
 margin:20px 0 0 20px;
 cursor:pointer;
}
@media(min-width:950px) and (max-width:1100px){
 #first_row li a,  #second_row li a{
  padding:15px; 
 }
 #second_row li:last-child a{
  padding-right:0;
 } 
}
@media (max-width:1250px){
 #new_listing_menu{
  background-color:#333;
 }
 #third_row{
  float:left;
  width:100%;
  clear:both;
 }    
 #third_row li{
  margin-top:-10px;
  margin-bottom:8px;     
 }
}
@media (max-width:950px){
 #new_listing_menu{
  background-color:#666;
 }
 #second_row li:last-child a{
  padding-right:20px;
 } 
 #third_row{
  display:block;
  float:left;
  padding:5px 0;
  width:auto;
  clear:none;
 }    
 #third_row li{
  margin-top:initial;
  margin-bottom:initial;     
 }     
}
@media (max-width:850px){
  #new_listing_menu{
  background-color:#333;
 }
 #third_row{
  float:left;
  width:100%;
  clear:both;
 }    
 #third_row li{
  margin-top:-8px;
  margin-bottom:8px;     
 }     
}
@media (max-width:640px){
 #new_listing_menu{
  padding:0;
 }
 #first_row, #second_row{
  float:none;
  width:100%;
  -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;
 }
 #first_row li, #second_row li{
  width:50%;       
  -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;  
 }
 #first_row li a, #second_row li a{ 
  padding:15px 0;
  text-align:center;
  border:none;
  font-size:13.5pt;
 }
 #first_row li:first-child a{
  border-right:1px solid #ddd;      
 }
 #first_row li a{
  border-bottom:1px solid #ddd;     
 }
 #second_row li:first-child a{
  border-right:1px solid #ddd;      
 }
 #first_row{
  padding-top:0;     
 }
}
@media (max-width:470px){
 #first_row li, #second_row li{
  float:none;
  width:100%;
  -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;
 }   
 #first_row li:last-child {
  margin-top: -3px;
 }
 #second_row li:first-child{
  margin-top:-12px;     
 } 
 #first_row li:first-child a, #second_row li:first-child a, #first_row li a, #second_row li a{
  border-right:none;    
 }
 #first_row li a, #second_row li a{
  -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;
  width:100%;
  border-bottom:1px solid #ddd;
 }
 #third_row{
  margin-top:-5px;
 }
 #third_row li{
  text-align:center;
  margin-left:-20px;     
 }
 #new_listing_menu label{
  top:-1px     
 }    
}
