/*
Theme Name: Horsefinder by Oxygen
Theme URI: http://oxygenagency.co.uk
Author: Oxygen Agency
Template: oxygen_base
Text Domain: horsefinder
Author URI: http://oxygenagency.co.uk
Description: Theme customised specifically for the Horsefinder website
Version: 1.0.0
*/
:root {
	--red: #b32b41;
	--green: #93c842;
	--grey: #777;
	--scrollbarBG: #CFD8DC;
	--thumbBG: #90A4AE;
}

.row {
	max-width:80em;
}
.row.link-to-listing:hover {
	cursor: pointer;
}
.acadp .img-responsive, 
.acadp .thumbnail > img, 
.acadp .thumbnail a > img, 
.acadp .carousel-inner > .item > img, 
.acadp .carousel-inner > .item > a > img {
	height: 100%;
	width: auto;
}

.acadp .breadcrumb a {
	font-size:0.5em;
	text-transform: none;
}

.main-content {
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.col-2 {
	flex-basis: 16.666%;
}

.col-6 {
	flex-basis: 50%;
}

.col-3 {
	flex-basis: 25%;
}

.col-9 {
	flex-basis: 75%;
}

.col-8 {
	flex-basis: 66.664%;
}

.left-sidebar {
	padding: 0 1rem;
}

.blog-btn img {
	margin: -7px 4px;
}

.blog-btn:hover {
	opacity: .85;
}

#responsive-menu-pro-additional-content .blog-btn {
	float: right;
}

a.edit-link {
	display: none;
}

.pad-top-30 {
	padding-top: 30px;
	clear: both;
}

.top-search-bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	background: var(--green);
	color: #fff;
}

.top-search-bar input[name="submit"] {
	margin: 1em 0 0 0;
	height: 36px;
	line-height: .5em;
}

.top-search-bar label {
	color: #fff;
	font-size: 1.5em;
}

.top-search-bar input[type="text"] {
	height:36px;
}

.search-field {
	padding: 10px 20px;
}

@media( max-width: 1024px ) {
	.search-field {
		padding: 5px;
	}
	.top-search-bar label {
		font-size: 1em;
	}
}

@media( max-width: 768px ) {
	#main-search {
		display: none;
	}
	.content h1:first-of-type {
		color: #fff;
		text-align: center;
		background: var(--green);
		padding: 1em;
		font-size: 1.25em;
	}
}

.autocomplete-holder {
	position: relative;
}

.suggestions {
	display: none	;
	position: absolute;
	z-index: 9999;
	background: rgba(255,255,255,.95);
	padding: 10px;
}

.suggestion {
	cursor: pointer;
	line-height: 1.5em;
	color: var(--grey);
	padding: 5px;
}

.suggestion:hover {
	color: #fff;
	background: var(--green);
}


/* adverts */
.row.top-ads,
.row.footer-ads {
	margin: 1rem auto;
}
.no-ad {
	background-color: var(--grey);
	height: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
}
.no-ad-text {
	color: #fff;
}
.vertical-ads {
	padding: 0 1rem;
	flex-direction: column;
}

.left-ads {
	text-align: right;
}

.vertical-ads div {
	padding:0 1rem;
	margin-bottom: 12rem;
	/*background: rgba(147,200,66,.25);*/
	height: 360px;
	position: -webkit-sticky;
	position: sticky;
	top: 20%;
}



.top-ads, 
.footer-ads {
	justify-content: center;
	text-align: center;
/*	height: 120px;*/
	/*background: rgba(179,43,65,.25);*/
}

/* Listings */
.listing {
	margin-bottom: 1rem;
	border:1px solid #000;
	/*border-bottom:1px solid #000;
	border-right:1px solid #000;*/
}

.listing-surround {
	display: flex;
	align-items: stretch;
	justify-content: left;
	flex-wrap: nowrap;
}

.listing-image {
	flex-basis: 33%;
	flex-shrink: 0;
}
.details-surround {
	flex-basis: 67%;
	flex-shrink: 0;
	max-width: 67%;
}

.listing-image img {
	object-fit: cover;
	height: inherit;
	/*visibility: hidden;*/
}

.listing-image {
	background-position: center;
	background-size: cover;
	max-height: 20rem;
	height: 20rem;
	text-align: center;
	background-color: #000;
	/*margin:-1px 0 -1px 0;*/
}

.row.advert img {
	object-fit: contain;
	margin: 0 auto;
	max-height: 20rem;
	width: auto;
}

.listing-details,
.listing-bullets,
.listing-title {
	padding: 0 1rem;

}

.listing-bullets ul {
	list-style-position: inside;
	list-style-type: none;
	columns: 2;
	line-height: 1.25rem;
}

.listing-bullets ul li :first-child {
	color: var(--red);
	font-weight: bold;
}

div.listing-title {
	width:100%;
}

h2.title {
	color: var(--green);
	display: flex;
}

h2.title span.title-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 75%;
	width: 75%;
	display: inline-block;
}

span.the-price {
	display: inline-block;
	text-align: right;
	width: 25%;
}

span.price {
	font-weight: bold;
	color:var(--green);
	font-size: inherit;
}

a.readmore {
	/*float: right;*/
}

.readmore-on-original {
	/*display: flex;
	align-items: center;*/
	display: block;
	margin-bottom: 12px;
	cursor: pointer;
	height:40px;
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 100px auto;
	padding: 10px 140px 10px 10px;
	background-color: var(--red);
	color: #fff!important;
}

.readmore-on-original span {
	margin-right: .5em;
}

.readmore-on-original img,
li.view_on a img {
	line-height: inherit;
	width: auto;
	vertical-align: bottom;
	max-height: 2rem;
}

.link-to-listing {
	/*color: unset;*/
}

@media( max-width:540px ) {
	.hide-below-540 {
		display: none;
	}

	.listing {
		margin-bottom: 1rem;
		border:1px solid #000;
		/*border-bottom:1px solid #000;
		border-right:1px solid #000;*/
	}
	
	.listing-surround {
		display: flex;
		flex-direction: column;
	}
	
	.listing-image {
		flex-basis: unset;
		flex-shrink: unset;
		height: 16rem;
		max-height: 16rem;
	}
	.details-surround {
		flex-basis: unset;
		flex-shrink: unset;
		max-width: unset;
	}
	
	.listing-image img {
		object-fit: cover;
		/*visibility: hidden;*/
	}
	
	.listing-details,
	.listing-bullets,
	.listing-title {
		padding: 0 1rem;
	}
	
	.listing-bullets ul {
		list-style-position: inside;
		list-style-type: none;
		columns: 1;
		line-height: 1.25rem;
	}
	
	.listing-bullets ul li :first-child {
		color: var(--red);
		font-weight: bold;
	}
	
	div.listing-title {
		width:100%;
	}
	
	h2.title {
		font-size: 1.5em;
	}
	
	a.readmore {
		/*float: right;*/
	}
	
	.link-to-listing {
		color: unset;
	}
}

/* pagination */
.page-numbers {
	border:1px solid var(--grey);
	padding: .5rem;
	line-height:1rem;
}

.page-numbers.next,
.page-numbers.prev,
.page-numbers.dots {
	border:none;
}

/* Filters */
div.filter {
	padding:12px;
	border: 1px solid var(--grey);
	margin: 0 0 1rem 0;
}

#responsive-menu-pro-additional-content div.filter {
	border:1px solid #fff;
	margin:12px 0;
	padding: 12px;
	box-shadow: none;

}

#responsive-menu-pro-additional-content h3,
#responsive-menu-pro-additional-content h4 {
	color:var(--green)!important;
}

#responsive-menu-pro-additional-content li,
#responsive-menu-pro-additional-content a {
	color: #fff!important;
}

#responsive-menu-pro-additional-content a:hover {
	color:var(--green)!important;
}

ul[class$="_filter"] {
	list-style-type: none;
	list-style-position: inside;
	padding: 0;
	margin: 0;
}

li.view-all:hover {
	cursor: pointer;
}

.full_terms_popup {
	display: none;
}

#filter-popup:not(.hidden) .full_terms_popup {
	display: block;
}

#filter-popup {
	display: flex;
	position: fixed;
	top:0;
	left:0;
	height: 100%;
	width: 100%;
	background-color: rgba(255,255,255,.75);
	transition: all .5s;
	align-items: center;
	justify-content: center;
	z-index: 999999999;
}

#filter-popup.hidden {
	display: none;
}

#filter-holder {
	width: 50%;
	height: 50%;
	padding: 2rem;
	position: relative;
}

@media(max-width:768px){
	#filter-holder {
		width: 95%;
	}
}

#the_filters {
	overflow-y: scroll;
    background: var(--green);
	padding: 2rem;
	color: #fff;
	border: 5px solid var(--grey);
	position: relative;
	width: 100%;
	height: 100%;
}

.search-box-holder {
	display: flex;
	align-items: center;
	justify-content: left;
	position: fixed;
	}

.search-box-holder input {
	width:300px;
	margin: 0;
	border: 0;
	font-size: 1.1rem;
	line-height: 2.5rem;
	box-shadow: none;
}

.search-box-holder i {
	font-size: 1.5rem;
	background-color: #fff;
	color: var(--red);
	line-height: 2.5rem;
	padding: 0 10px;
}

.close_search {
	position: absolute;
	right:0;
	top:0;
	font-size: 2rem;
	cursor: pointer;
}

#filter-holder a {
	color: #fff;
}

#filter-holder ul {
	-webkit-column-count: 3;
	-moz-column-count: 3;
	column-count: 3;
	list-style-type: none;
	/*padding-top:4rem;*/
}

/* Sidebar filters */
ul.sb_filter {
	max-height: 12em;
	overflow-y: scroll;
	padding: 1em!important;
	border: 1px solid #fff;
	cursor:grab;
}

.sidebar-input,
ul.sb_filter {
	margin-bottom: 1em!important;
}

.sb_filter::-webkit-scrollbar {
	width: 11px;
  }
  .sb_filter {
	scrollbar-width: thin;
	scrollbar-color: var(--thumbBG) var(--scrollbarBG);
  }
  .sb_filter::-webkit-scrollbar-track {
	background: var(--scrollbarBG);
  }
  .sb_filter::-webkit-scrollbar-thumb {
	background-color: var(--thumbBG) ;
	border-radius: 6px;
	border: 3px solid var(--scrollbarBG);
  }

ul.sb_filter:before {
}

ul.sb_filter:after {
}

/* individual listings */
.listing_carousel_img {
	height: 350px;
	max-height: 350px;
	width: 100%;
	background-size: contain;
	background-position: center top;
	background-repeat: no-repeat;
	background-color: #b32b41;
}

ul.listing_information {
	list-style-position: inside;
}

li.price_element :nth-child(2):before {
	content: '£';
}

li.height_element :nth-child(2):after {
	content: 'hh';
	margin-left:.25em;
}

.listing_description {
	margin-top:2rem;
}

.full-advert-surround {

}

.listing_description, 
.listing_information {
	padding: 2rem;
	background: rgba(119,119,119,.15);
}
.listing_description, 
.listing_information,
.listing_images,
div.filter,
.listing.row {
	-webkit-box-shadow: 10px 10px 6px -6px rgba(119,119,119,0.55); 
	box-shadow: 10px 10px 6px -6px rgba(119,119,119,0.55);
}

li.view_on {
	list-style-type: none;
}

li.view_on a {
	font-weight: bold;
	font-size: 1.2em;
	line-height: 2em;
}



.flickity-prev-next-button {
	width: 100px;
	height: 100%;
	background: transparent;
}

.flickity-prev-next-button:hover {
background: transparent;
}

/* arrow color */
.flickity-prev-next-button .arrow {
fill: white;
}

.flickity-prev-next-button.no-svg {
color: white;
}
	
/* arrow color */
.flickity-prev-next-button:hover .arrow {
	fill: white;
	}

	.flickity-prev-next-button.no-svg:hover {
	color: white;
	}

	/* hide disabled button */
.flickity-prev-next-button:disabled {
display: none;
}

.flickity-page-dots .dot {
width: 12px;
height: 12px;
opacity: 1;
background: transparent;
border: 2px solid white;
}

/* fill-in selected dot */
.flickity-page-dots .dot.is-selected {
background: white;
}


/* taxonomy lists */
ul.tax_list {
	list-style-position: inside;
	list-style-type: none;
	columns: 3;
}

#showfilters {
	display: none;
}

/*blog page */
.blog-banner {
	height:350px;
	position: relative;
	overflow: hidden;
}
.blog-banner img {
	object-fit: cover;
}

.blog-banner h1 {
	position: absolute;
	z-index: 9999999999;
	bottom: 0%;
	left: -50%;
	right: -50%;
	margin: 0 auto;
	width: 100%;
	text-align: center;
	display: inline-block;
	padding: 20px 40px;
	background-color: rgba(255,255,255,.5);
}

@media( min-width: 769px ) {
	#responsive-menu-pro-button {
		visibility: hidden;
	}
}

@media( max-width:1280px ) {
	.content.medium-8 {
		width:50%;
	}
	.left-sidebar.large-2 {
		display: none;	
	}
	.vertical-ads {
		width: 25%;
	}
	#showfilters {
		display: block;
	}
}
@media(max-width:1024px) {
	.content {
		width:75%;
	}	
	.details-surround,
	.listing-image {
		flex-shrink: 1;
	}
	.right-ads {
		display: none;
	}
}

@media(max-width:768px) {

	.content {
		width:100%;
	}
	.left-sidebar.large-2 {
		display: none;
	}
	.vertical-ads.large-2 {
		display: none;
	}
}