body.noscroll {overflow:hidden;}
.search {float:right;width:85%;}
.search-sidebar {float:left;width:15%;}
.search-sidebar h2 {font-size: 22px;border-bottom:2px solid #981b1e;padding-bottom: 5px;margin-bottom: 15px;}

.search-pagination {padding:0 10px;text-align:center;}
/*
.search-perpage {width:175px;float:left;text-align:left;}
.search-sort {width:175px;float:right;text-align:right;}
.search-perpage-box,
.search-sort-box {
	float:left;
	width:80%;
	border:0;
	height:25px;
	font-family:'Raleway';
	font-size:14px;
	padding:0 5px;
	border:1px solid #981b1e;
}
.search-perpage-button,
.search-sort-button {
	float:left;
	width:20%;
	background:#981b1e;
	color:#fff;
	height:25px;
	border:0;
	padding:0;
}
*/
.search-pagination a {
	position:relative;
	display:inline-block;
	background:#981b1e;
	color:#fff;
	transition:all .3s;
	z-index:1;
	padding:0;
	line-height:35px;
	width:30px;
	margin:0 2px;
    border-bottom: 0;
}
.search-pagination a.active {background:#333232;}
.search-pagination a.prev,
.search-pagination a.next {padding:0 20px;width:auto;margin:0;}
.search-pagination a.prev {float:left;}
.search-pagination a.next {float:right;}
.search-pagination a:hover,
.search-pagination a:hover:before {background:#333232;}

.search-results > div,
.search-nearby {display: flex;flex-wrap: wrap;}
.search-item:after {content:'';display:block;clear:both;}
.search-results .search-item {width:100%;box-sizing:border-box;padding:10px;position:relative;}
.search-nearby .search-item {width:100%;box-sizing:border-box;padding:10px;position:relative;}
@media (min-width:478px){
    .search-results .search-item {width:50%;}
    .search-nearby .search-item {width:50%;}
}
@media (min-width:768px){
    .search-nearby .search-item {width:100%;}
}
@media (min-width:991px){
    .search-results .search-item {width:50%;}
    .search-nearby .search-item {width:50%;}
}
@media (min-width:1200px){
    .search-results .search-item {width:33.33%;}
}
@media (min-width:1400px){
    .search-results .search-item {width:25%;}
    .search-results .search-item.search-featured {width:33.33%;}
    .search-nearby .search-item {width:33.33%;}
}
.search-container {display: flex;height:100%;flex-direction: column;background:#002a12;border: 1px solid #fce300;padding:10px;}
.search-item.search-featured .search-container {background:#981b1e;}
.search-photo {position:relative;overflow:hidden;background-size:cover;background-position:center;margin-bottom:5px;}
.search-photo a {display:block;padding-bottom:75%;border-bottom: 0;}
.search-photo img.flag {position:absolute;top:0;left:0;height:90px;}
.search-photo img.photo {display:none;position:absolute;top:0;height:100%;width:auto;max-width:none;}

.search-photo:hover .search-fav {display:block;}
.search-fav {display:none;position:absolute;top:0px;right:0px;font-size:26px;background:#7b3436;}
.search-fav.isFav {display:block;background:#981b1e;}
.search-fav.isFav a {color:#fff !important;}
.search-fav a {padding:10px;display:block;line-height: 29px;}
.search-fav a:link,
.search-fav a:visited {color:#ab7c7d;}
.search-fav a:hover,
.search-fav a:active,
.search-fav a:focus {color:#fff;}

.search-details {flex-grow: 1;}
.search-details:after {content:'';display:block;clear:both;}
.search-details > div {float:left;font-size:15px;line-height:24px;}
.search-details > div:nth-child(2n) {margin-left:2%;text-align:right;float:right;}
.search-details > div:nth-child(2n+1) {clear:both;}
.search-id,
.search-citystate,
.search-subdivision {font-weight:bold;}
.search-description {clear:both;}
.search-id {font-size:14px;}
.search-content {display:none;position:absolute;top:10px;left:10px;right:10px;bottom:10px;background:rgba(0,0,0,0.75);color:#fff;padding:10px;font-size:16px;line-height:24px;}
.search-item .btn__md {padding-top:10px;padding-bottom:10px;margin-top:10px;border:2px solid #fce300;}
.search-item .btn__md:hover {background: #fce300;color:#000;}
.search-item .btn__md::before {height:40px;}
a.search-open {color:#981b1e;}
a.search-close {float:right;margin:0 0 5px 10px;font-size:21px;line-height:21px;padding:5px;background:#981b1e;color:#fff;font-family:'Raleway';font-weight:300;border-bottom: 0;}

.search-item.search-featured .btn__md {border-color: #fce300;}
.search-item.search-featured .btn__md:hover {background: #fce300;}

.search-search-box {float:left;width:80%;border:1px solid #981b1e;padding:0 9px;margin-bottom:10px;box-sizing:border-box;font-size:18px;line-height:28px;font-family:'Raleway';}
.search-perpage-box,
.search-sort-box,
.search-distance-box,
.search-footage-box,
.search-baths-box,
.search-bedrooms-box {float:left;width:80%;border:1px solid #981b1e;padding:0 5px;margin-bottom:10px;height:30px;box-sizing:border-box;font-size:18px;font-family:'Raleway';}
.search-perpage-box,
.search-sort-box {margin-bottom: 20px;}
.search-perpage-button,
.search-sort-button,
.search-distance-button,
.search-footage-button,
.search-baths-button,
.search-bedrooms-button,
.search-search-button {float:left;width:20%;border:1px solid #981b1e;background:#981b1e;color:#fff;padding:0 9px;box-sizing:border-box;font-size:18px;line-height:28px;font-family:'Raleway';}
.search-sidebar > div > a {display:block;background:#981b1e;color:#fff;padding:0 10px;margin-bottom:10px;border-bottom: 0;}
.search-sidebar > div > a:hover,
.search-sidebar > div > a:active,
.search-sidebar > div > a:focus {color:#ff0;}
.search-sidebar-items {clear:both;margin-bottom:10px;max-height:500px;overflow:auto;}
.search-sidebar-items > * {display:none;font-size:16px;line-height:24px;}
.search-sidebar-items.active > * {display:block;}
.search-sidebar-items > *.active {display:block;}
.search-sidebar-items > a {border-bottom: 0;}
.search-sidebar-items > a.active {color:#fff;}
.search-sidebar-items > a.active:before {content:'-';border:1px solid #981b1e;padding:0 5px;margin-left:5px;float:right;line-height:18px;transition:all .3s;}
.search-sidebar-items > a.active:hover:before {background:#981b1e;}

.search-toolbar {display:none;position: fixed;bottom: 0;left: 0;width: 100%;z-index:1000;}
.search-toolbar > a {width: 33.33%;float: left;background: #444;color: #fff;text-align: center;box-sizing: border-box;padding: 10px 0;font-weight: 700;border-right: 1px solid #981b1e;border-bottom:0;}
.search-toolbar > a:hover,
.search-toolbar > a:active,
.search-toolbar > a:focus {color:#ff0;}
.search-toolbar > a[data-toolbar=filter] {background: #981b1e;}

.toolbar-window {display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.9);}
.toolbar-window h4 {background: #981b1e;text-align: center;margin-bottom:15px;}
.toolbar-window h4 a.close {position: absolute;right: 10px;border-bottom:0;}
.toolbar-window h4 a.close:hover,
.toolbar-window h4 a.close:active,
.toolbar-window h4 a.close:focus {color:#ff0;}

.filter-items > a {width: 25%;float: left;padding-bottom: 25%;position: relative;border-right: 1px solid #981b1e;box-sizing: border-box;border-bottom: 1px solid #981b1e;}
.filter-items > a span {position: absolute;top: 50%;left: 0;width: 100%;text-align: center;color: #fff;font-weight: 700;transform: translateY(-50%);}
.filter-items {border-top: 1px solid #981b1e;}
.filter-search input[type=text] {float: left;width: 80%;box-sizing: border-box;font-family: inherit;font-size: 18px;padding: 0 10px;line-height: 30px;border: 0;}
.filter-search:after {content: '';display: block;clear: both;}
.filter-search button {border: 0;background: #981b1e;color: #fff;padding: 0;text-align: center;width: 20%;font-size: 18px;line-height: 30px;cursor: pointer;}

.filter-active {padding:10px;}
.filter-active > a {display: inline-block;padding: 2px 10px;background: #444;color: #ccc;font-size: 14px;text-decoration: none;margin-right: 5px;margin-bottom: 5px;font-family: 'Raleway';font-weight: 300;border-bottom:0;}
.filter-active > a:hover,
.filter-active > a:active,
.filter-active > a:focus {color:#ff0;}
.filter-active > a.clear-all {background: #ccc;color: #000;}

.filter-window {display: none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.9);color:#fff;}
.filter-window a.apply {
	display: block;
	background: #fff;
	color: #000;
	text-decoration: none;
	padding: 5px 20px;
	width: 25%;
	margin: 0 auto;
	text-align: center;
}
.filter-window .pad-10p {padding:0 10%;}
.filter-options {
	position:absolute;
	width:100%;
	top:95px;
	bottom:0;
	overflow-y:auto;
	padding-bottom:2em;
}
.sort-options > a,
.filter-options > a {display:block;border-bottom:1px solid #981b1e;padding:5px 15px;}
.sort-options > a:hover,
.sort-options > a:active,
.sort-options > a:focus,
.filter-options > a:hover,
.filter-options > a:active,
.filter-options > a:focus {color:#ff0;}
.sort-options > a:before,
.filter-options > a:before {content:url('/images/bullet-circle.png');margin-right:5px;width:16px;display:inline-block;}
.sort-options > a.active:before,
.filter-options > a.active:before {content:url('/images/bullet-disc.png');}
.sort-perpage {margin-bottom:15px;}
.sort-perpage:after {clear:both;content:'';display:block;}
.sort-perpage .search-perpage-box,
.sort-perpage .search-perpage-button {font-size:16px;height:30px;}

@media (max-width:1199px){
	.search-photo img.flag {height:65px;}
}
@media (max-width:979px){
	.search {float:none;width:100%;}
	.search-sidebar,
	.search-perpage,
	.search-sort {display:none;}
	.search-toolbar {display:block;}
	.search-item:nth-child(3n+1) {clear:none;}
	.search-item:nth-child(2n+1) {clear:both;}
	.search-photo img.flag {height:90px;}
}
@media (max-width:767px){
	.search-pagination a.desktop {display:none;}
	.search-item:nth-child(2n+1) {clear:none;}
	.filter-items > a {width:33.33%;padding-bottom:33%;}
}
@media (max-width:479px){
	.search-pagination a {width:20px;}
	.search-pagination a.prev,
	.search-pagination a.next {padding:0 5px;}
	.search-pagination a.prev:before,
	.search-pagination a.next:before {display:none;}
	.search-photo img.flag {height:65px;}
}
