/* Uber Property plugin front-end styles */

/* layouts */
.up-main-head, 
.entry-header-more-properties, 
.archive .up-entry-header {
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.05 );
}

.up-entry-title, .entry-title-related {
	margin-bottom: 0.5em;
}

.up-title-sale-rent, .up-title-sale-rent-related {
	margin-bottom: 0.5em;
	margin-top: 0;
	padding-top: 0;
}

.up-post-thumbnail {
	margin: 0 0 1em 0;
}

.more-properties-item .up-post-thumbnail {
	margin-bottom: 1em !important;
}

.up-post-thumbnail > a {
	line-height: 0;
	display: block;
}

.up-post-thumbnail img, .up-post-thumbnail a img, 
.widget .up-post-thumbnail img, .widget .up-post-thumbnail a img {
	box-shadow: none;
}

.up-gmap-link-wrap * {
	vertical-align: middle;
}

.up-gmap-link-wrap span.fa {
	font-size: 1.4em;
	margin-right: 0.35em;
}

.uber-property-layout_2 .up-gallery-wrapper .up-photo-gallery, 
.uber-property-layout_3 .up-gallery-wrapper .up-photo-gallery, 
.uber-property-layout_4 .up-gallery-wrapper .up-photo-gallery {
	margin-bottom: 0.5em;
}
.uber-property-layout_2 .up-gallery-wrapper .grid, 
.uber-property-layout_3 .up-gallery-wrapper .grid, 
.uber-property-layout_4 .up-gallery-wrapper .grid {
	margin-left: -0.5em;
}
.uber-property-layout_2 .up-gallery-wrapper .grid .grid__col, 
.uber-property-layout_3 .up-gallery-wrapper .grid .grid__col, 
.uber-property-layout_4 .up-gallery-wrapper .grid .grid__col {
	padding-left: 0.5em;
}

.uber-property-layout_2 .up-featured-image, 
.uber-property-layout_3 .up-featured-image, 
.uber-property-layout_4 .up-featured-image, 
.archive.uber-properties-layout_3 .up-featured-image {
	margin-bottom: 1em;
}

.more-properties-wrap {
	padding: 4em 0;
}

.uber-property-layout_2 .up-gallery-wrapper, 
.uber-property-layout_3 .up-gallery-wrapper, 
.uber-property-layout_4 .up-gallery-wrapper {
	margin-bottom: 2em;
}

.uber-property-layout_2 .up-featured-image {
	margin-bottom: 1em;
}

.more-properties-title {
	margin-bottom: 1em;
}

.archive .up-page-header .page-title, 
.archive .up-page-header .taxonomy-description {
	margin-bottom: 2em;
}

.archive article.up-post-wrap:not(:last-child) {
	margin-bottom: 4em;
}

.archive .up-content-wrap {
	position: relative;
	z-index: 22;
}

.up-invert {
	color: #FFF;
}

.archive .up-invert .up-entry-header {
	border-bottom: 1px solid rgba( 255, 255, 255, 0.3 );
}

/* prev-next nav */
/* NOTE: you might want to uncomment this one if your theme doesn't have a support for PREV and NEXT post navigation */
/*
.post-navigation .nav-links {
	overflow: hidden;
	padding: 1em 0;
	margin: 1em 0;
}

.post-navigation .nav-links div {
	border: none;
}

.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 45%;
	position: relative;
	margin-right: 4%;
}

.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 45%;
	position: relative;
	margin-left: 4%;
}

.post-navigation .nav-previous a, 
.post-navigation .nav-next a {
	display: block;
	line-height: 1.4;
	font-size: 0.875em;
	color: inherit;
	padding: 0;
}
*/

/* gridder jQuery plugin */
.up-gallery-gridder-wrapper {
	margin-bottom: 2em;
}

ul.uber-gridder {
	margin: 0 0 0 -1em;
	padding: 0;
	list-style: none;
}

ul.uber-gridder li.gridder-list {
	line-height: 0;
	width: 25%;
	padding-left: 1em;
	padding-bottom: 1em;
	margin: 0;
	cursor: pointer;
}

ul.uber-gridder li.gridder-list figure {
	margin: 0;
	line-height: 0;
}

ul.uber-gridder li.gridder-list:hover img {
	opacity: 0.7;
}

ul.uber-gridder div.gridder-show {
	position: relative;
	padding-left: 20px;
	margin: 0;
}

ul.uber-gridder div.gridder-expanded-content {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-name: fadeIn;
}

@keyframes fadeIn {
	0% {
    	opacity: 0;
	}
	100% {
    	opacity: 1;
	}
}

ul.uber-gridder div.gridder-padding {
	padding-bottom: 1em;
}

ul.uber-gridder div.gridder-navigation {
	position: absolute;
	bottom: 1em;
	right: 0;
	z-index: 1;
}

ul.uber-gridder div.gridder-navigation a {
	background: rgba( 0, 0, 0, 0.5 );
	color: #FFF;
	display: inline-block;
	text-align: center;
}

ul.uber-gridder div.gridder-navigation a:hover {
	background: rgba( 0, 0, 0, 0.7 );
}

ul.uber-gridder div.gridder-navigation a.disabled {
	color: rgba( 255, 255, 255, 0.7 );
}

ul.uber-gridder div.gridder-navigation a span {
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	font-size: 2em;
}

.up-photo-gridder a {
	display: block;
}

.up-photo-gridder, .up-photo-gridder a {
	line-height: 0;
}

/* amenities */
.up-amenities-wrapper {
	position: relative;
	overflow: hidden;
}

.up-panel-title {
	margin-bottom: 0.5em;
}

.up-amenities td {
	text-align: left;
}

.up-amenities-key i {
	margin-right: 0.8em;
}

.up-amenities-value {
	padding-left:  1em;
	text-align: right;
}

ul.up-amenities {
	margin: 0;
	padding: 0;
}

ul.up-amenities li {
    display: table;
	width: 100%;
}

ul.up-amenities li > span {
    display: table-cell;
	vertical-align: top;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.05 );
	padding: 0.8em 0;
}

ul.up-amenities li span.up-amenities-value {
    padding-left: 1em;
	padding-right: 0.25em;
	white-space: nowrap;
}

.up-feature-inline span {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.up-feature-inline .up-feature-name {
	margin-right: 0.5em;
}

.up-feature-inline .up-feature-name:after {
	content: ':';
}

.up-feature-inline .up-feature-val {
	margin-right: 0.25em;
}

.up-feature-inline .up-feature-val:after {
	content: '/';
	margin-left: 0.5em;
}

.up-feature-inline:last-child .up-feature-val:after {
	content: '';
	margin-left: 0;
}

.up-more-properties-amenities {
	margin-bottom: 1em;
}

.archive .up-entry-content {
	margin-top: 1em;
}

/* tags */
.up-tags { 
	overflow: hidden; 
}
.up-tags a { 
	padding: 5px 10px;
	margin-right: 5px;
	margin-bottom: 5px;
	display: inline-block;
}
.up-tags a:link, 
.up-tags a:visited { 
	border: none;
	background-color: rgba( 0, 0, 0, 0.05 ); 
}
.up-tags a:hover { 
	background-color: rgba( 0, 0, 0, 0.03 );
}

.up-post-wrap .moretag {
	white-space: nowrap;
}

/* remodal */
.up-remodal {
	max-width: 90%;
}

.up-map-msg {
	position: absolute;
	display: block;
	width: 100%;
	height: 2em;
	text-align: center;
	line-height: 2em;
	top: 50%;
	margin-top: -1em;
}

/* googlemap */
#up-map {
	height: 500px;
	width: auto;
	z-index: 299;
}

#up-map .gm-style-iw {
	text-align: left;
    width: 300px !important;
}

.up-gmap-link-wrap {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
	word-wrap: normal;
}

/* Swiper - custom styles  */

.up-slider-wrap {
	height: 700px;
	margin-bottom: 2em;
}

@media (max-width: 980px) and (min-width: 767px) {
	.up-slider-wrap {
		height: 600px;
	}
}

@media (max-width: 767px) {
	.up-slider-wrap {
		height: 400px;
	}
}

@media (max-width: 480px) {
	.up-slider-wrap {
		height: 300px;
	}
}

.up-slider-wrap .swiper-container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0.5em;
}

.swiper-slide {
	background-size: cover;
	background-position: center;
}

.gallery-top {
	height: 80%;
	width: 100%;
}

.gallery-thumbs {
	height: 20%;
	box-sizing: border-box;
	margin: 10px 0 0;
	background: rgba( 0, 0, 0, 0.01 );
}

.gallery-thumbs .swiper-slide {
	width: 25%;
	height: 100%;
	opacity: 0.7;
	cursor: pointer;
}

.gallery-thumbs .swiper-slide-active {
	opacity: 1;
}

.swiper-container span.bp-swiper-navi {
	transition: 0.2s ease-in-out all;
	position: absolute;
	background: rgba( 0, 0, 0, 0.5 );
	color: #FFF;
	text-align: center;
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	font-size: 2em;
	cursor: pointer;
	z-index: 22; /* catch 22 - ha! */
	opacity: 0;
}

.swiper-container span.up-swiper-next {
	right: 2em;
	top: 0;
}

.swiper-container span.up-swiper-prev {
	left: 2em;
	top: 0;
}

.swiper-container.gallery-top span.up-swiper-next, 
.swiper-container.gallery-top span.up-swiper-prev {
	top: 50%;
	margin-top: -0.75em;
}

.swiper-container:hover span.up-swiper-prev {
	left: 0;
	opacity: 1;
}

.swiper-container:hover span.up-swiper-next {
	right: 0;
	opacity: 1;
}

.swiper-container:hover span.up-swiper-prev {
	left: 0;
	opacity: 1;
}

.swiper-container span.bp-swiper-navi:hover {
	background: rgba( 0, 0, 0, 0.7 );
}

.swiper-container span.swiper-button-disabled {
	color: rgba( 255, 255, 255, 0.7 );
	background: rgba( 0, 0, 0, 0.7 );
	cursor: default;
}

.swiper-pagination {
	position: relative;
}

.swiper-pagination .swiper-pagination-bullet {
	width: 15px;
	height: 15px;
	margin: 0 5px;
	background: rgba( 0, 0, 0, 0.4 );
}

.swiper-pagination .swiper-pagination-bullet:hover, 
.swiper-pagination .swiper-pagination-bullet:focus, 
.swiper-pagination .swiper-pagination-bullet-active {
	background: salmon;
}

/* up carousel widget exception ! */
.up-carousel-wrap a, .up-carousel-wrap a:link, .up-carousel-wrap a:visited, 
.up-carousel-wrap a:hover, .up-carousel-wrap a:focus {
	box-shadow: none;
}

.swiper-container.up-carousel-widget-sc span.up-swiper-next, 
.swiper-container.up-carousel-widget-sc span.up-swiper-prev {
	right: -2em;
	left: unset;
	top: 0;
	margin-top: 0;
}
.swiper-container.up-carousel-widget-sc:hover span.up-swiper-prev {
	right: 1.6em;
	opacity: 1;
} 
.swiper-container.up-carousel-widget-sc:hover span.up-swiper-next {
	right: 0;
	opacity: 1;
}

/* search */
.up-search-form-title {
	font-size: 1.4em;
}

.up-search-form-wrap .up-search-form {
	margin-bottom: 2em;
	padding: 1em 2em;
	background: rgba( 0, 0, 0, 0.05 );
}

.up-search-form-wrap .up-search-label:not(.up-label-no-styles) {
	padding: 10px 10px 0 0;
	display: inline-block;
}

.up-search-form {
	overflow: hidden;
}

.up-search-inline {
	position: relative;
}

.up-search-inline input.up-search-field[type="search"] {
	padding-right: 200px;
}

.up-search-inline input.up-submitter {
	float: none;
	position: absolute;
	right: 0;
	top: 0;
	max-width: 200px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	height: 49px;
}

.up-search-help {
	font-size: 0.875em;
	font-style: italic;
	margin: 0.5em 0;
	opacity: 0.7;
}

.widget_up_search .up-search-form {
	margin: 0;
	padding: 0;
	background: transparent;
}

.widget_up_search .up-search-inline input.up-search-field[type="search"] {
	padding-right: 120px;
}

.widget_up_search .up-search-label:not(.up-label-no-styles) {
	padding: 10px 5px 0 0;
	display: inline-block;
}

/* misc */
.archive .up-page-header .up-no-bottom {
	margin-bottom: 0.5em;
}
.archive .up-page-header .up-extra-bottom {
	margin-bottom: 4em;
}

#up-primary figure {
	margin: 0;
}

/* media queries */
@media screen and (max-width: 980px) {
	
	.more-properties-wrap .more-properties-item:not(:last-child) {
		margin-bottom: 4em;	
	}
	
	.up-entry-content .up-sidebar {
		margin-top: 4em;
	}
	
	.up-search-inline input.up-search-field[type="search"] {
		padding-right: inherit;
	}
	
}
