/* search results page */



/* fix row breakage, clear floats for every 3rd property - Stephen Gravitt 06-021-2016 */
#property-wrapper .pfmls_property:nth-of-type(3n+4) {
    clear: both;
}

#property-wrapper .pfmls_property {
    clear: none;
    width: calc(33% - 10px);
    vertical-align: top;
    display: inline-block;
    border-radius: 2px;
    margin: 15px 4px;
    border: 1px solid #c8c8c8;
    z-index: 5;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    min-height: 625px;
}

.home #property-wrapper .pfmls_property {
    width: 23.85%;
}

#property-wrapper .pfmls_property h2 {
    text-align: center;
    margin-bottom: 10px;
    background: none;
    padding: 0;
    font-size: 18px;
    height: 72px;
}

#property-wrapper .pfmls_property h2 a {
	color: #000;
}

#property-wrapper .pfmls_property .listing-image {
	float: none;
	max-width: 100%;
	width: 100%;
	min-height: 225px;
}

#property-wrapper .pfmls_property .listing-image img {
	width: 100%;
	max-height: 215px;
}

.entry-content #property-wrapper .pfmls_property .pfmls_prop_data ul, .entry-content #property-wrapper .pfmls_property .actions ul, .pfmls_paging ul {
	margin-left: 0;
	margin-bottom: 10px;
}

.entry-content #property-wrapper .pfmls_property .pfmls_prop_data ul li {
	border-bottom: 1px solid #c8c8c8;
	font-size: 18px;
	font-weight: 200;
}

#property-wrapper .pfmls_property .pfmls_prop_data ul li.list_price {
	font-size: 26px;
	color: #659f13;
}

#property-wrapper .pfmls_property .pfmls_prop_data {
	float: none;
	display: block;
	width: 100%;
}

#property-wrapper .pfmls_prop_data ul li:nth-child(even) {
	background: #FAFAFA;
}

#property-wrapper .pfmls_property .actions ul li {
	text-align: center;
	width: 100%;
}

#property-wrapper .pfmls_property .actions {
	float: none;
    width: 100%;
}

#property-wrapper { clear: both;}

/* remove 2 buttons */
.mls_search_listings .pfmls_property .actions li:nth-child(2), .mls_search_listings .pfmls_property .actions li:nth-child(3) {
	display: none;
}

.pfmls_save_searches [class^="icon-"], [class*=" icon-"] {
	margin-top: 2px;
}

#property-wrapper .pfmls_property .actions .btn:hover {
	background-color: #000;
	border-color: #000;
}

.pfmls_paging {
	clear: both;
}

.pfmls_paging .well {
	background-color: transparent;
    border: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding: 0;
}

.pfmls_paging .pagination>li>a, .pfmls_paging .pagination>li>span {
	background-color: #f60;
	color: #fff;
	background-image: none;
    background-image: none;
    background-image: none;
    background-image: none;
    background-image: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.pfmls_paging .pagination>li>span.nolink {
	color: #ccc;
}

.pfmls_paging .pagination>li>a:hover, .pfmls_paging .pagination>li>span:hover {
	background-color: #000;
	color: #fff;
}

.pfmls_paging .pagination li.current span.nolink {
	font-weight: bold;
	color: #fff;
	background: #000;
}

div.mls_disclosure {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    max-width: 800px;
    margin-bottom: 20px;
}

/* Fix clear if map is not used in grid view */
#property-wrapper { 
	clear: both;
}

@media only screen and (max-width: 1140px) { 
	#property-wrapper .pfmls_property {
		width: 48%;
		max-width: 100%;
	}
}


@media only screen and (max-width: 960px) { 
	.home #property-wrapper .pfmls_property {
		width: 48%;
	}
}

@media (max-width: 733px) {
	#property-wrapper .pfmls_property {
	    float: none;
	    clear: both;
	    width: 100%;
	    vertical-align: top;
	    display: -ms-flexbox;
	    display: -webkit-flex;
	    display: flex;
	    -ms-flex-wrap: wrap;
	    -webkit-flex-wrap: wrap;
	    flex-wrap: wrap;
	    border-radius: 2px;
	    max-width: 100%;
	    margin: 15px auto;
	    border: 1px solid #c8c8c8;
	    z-index: 5;
	    position: relative;
	    box-shadow: 0 1px 1px rgba(0,0,0,.1);
	    min-height: auto;
	}
	
	.home #property-wrapper .pfmls_property {
		width: 100%;
	}
	
	#property-wrapper .pfmls_property h2 {
		height: auto;
	}
	
	#property-wrapper .pfmls_property .listing-image {
		min-height: auto;
		height: auto;
	}
	
	#property-wrapper .pfmls_property .listing-image img {
		max-height: 100%;
	} 
}


