.listing-container {	position:relative;	display:block;}

.listing-container:before, .listing-container:after {
    clear: both;
    content: "";
    width: 1px;
    display: table;
    height: 1px;
}

.listing{ margin: 0 15px; }

.listing-inner {position:relative;}
.listing-image-contain {  background-color: #999999; position:relative;}
.listing-inner .label {
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    background: #ffe512;
    padding: 10px;
}

.listing-description .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-bottom: -1px;
    margin-right: 5px;
    margin-top: 5px;
    background-size: contain;
    background-repeat: none;
}
.listing-description .text {    display: none;}

.listing-description .icon.bed{ background-image:url('icon-bedroom-black.png') }
.listing-description .icon.bath{ background-image:url('icon-bathroom-black.png') }
.listing-description .icon.park{ background-image:url('icon-carport-black.png') }


/*listing columns control - classes for small screens up */
@media (min-width:640px) {
	.listing-inner {padding:10px;}
	.cols_sm_2 .listing{ float: left; width:47.5%; margin: 0 0.8%;} 
	.cols_sm_2 .listing:nth-of-type(2n+3) { clear:left;}   
	.cols_sm_2 .listing-image-contain {   height: 170px; overflow-y: hidden; }
	
}

/*listing columns control - classes for medium screen size and up */
@media (min-width:1024px) {
	.listing-inner {padding:15px;}
	.listing-image-contain img {
		    position: relative;
		    left: 0;
		    top: 50%;
		    transform: translateY(-50%);
	}
	div[class*='cols_md'] .listing{ float: left; margin: 0 1%; }
	
	.cols_md_2 .listing{ width:47%; } 
	.cols_md_2 .listing-image-contain {   height: 250px; overflow-y: hidden; }
	.cols_md_3 .listing{ width:31%; }
	.cols_md_3 .listing-image-contain {   height: 150px; overflow-y: hidden; }
	.cols_md_4 .listing{ width:23%;}

	.cols_md_3.cols_sm_2 .listing:nth-of-type(2n+3),
	.cols_md_4.cols_sm_2 .listing:nth-of-type(2n+3){ clear:none;} 

	.cols_md_2 .listing:nth-of-type(2n+3),
	.cols_md_3 .listing:nth-of-type(3n+4),
	.cols_md_4 .listing:nth-of-type(4n+5) { clear:left !important;}


}
/*listing columns control - classes for large screens only */
@media (min-width:1200px) {
	.listing {min-height:430px;}
	.listing-inner {padding:20px;}
	
	div[class*='cols_lg'] .listing{ float: left; margin: 0 1.2%; }	
	.cols_md_2 .listing-image-contain {   height: 300px; overflow-y: hidden; }
	.cols_md_3 .listing-image-contain {   height: 200px; overflow-y: hidden; }

	.cols_lg_3 .listing{ width: 30.6%;}
	.cols_lg_3 .listing-image-contain {   height: 160px; overflow-y: hidden; }
	.cols_lg_4 .listing{ width:22.5%;}
	.cols_lg_5 .listing {width: 17.5%;}

	.cols_lg_3.cols_sm_2 .listing:nth-of-type(2n+3),
	.cols_lg_3.cols_md_2 .listing:nth-of-type(2n+3),
	.cols_lg_3.cols_md_4 .listing:nth-of-type(4n+5),

	.cols_lg_4.cols_sm_2 .listing:nth-of-type(2n+3),
	.cols_lg_4.cols_md_2 .listing:nth-of-type(2n+3),
	.cols_lg_4.cols_md_3 .listing:nth-of-type(3n+4),

	.cols_lg_5.cols_sm_2 .listing:nth-of-type(2n+3),
	.cols_lg_5.cols_md_2 .listing:nth-of-type(2n+3),
	.cols_lg_5.cols_md_3 .listing:nth-of-type(3n+4),
	.cols_lg_5.cols_md_4 .listing:nth-of-type(4n+5){ clear:none;} 

	.cols_lg_3 .listing:nth-of-type(3n+4),
	.cols_lg_4 .listing:nth-of-type(4n+5),
	.cols_lg_5 .listing:nth-of-type(5n+6) { clear:left !important;}
}
@media (min-width:1300px) {
	.cols_lg_3 .listing-image-contain {   height: 280px; overflow-y: hidden; }
}
