/*
Theme Name: Cortijos Rey Fini 2016
Theme URI: https://www.docandtee.com
Author: Doc & Tee Ltd
Author URI: https://www.docandtee.com
Description: Custom theme for 2016.
Version: 1.0
Text Domain: docandtee2016
*/

/* Fonts */

.wp-block-embed.is-type-video  {  
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	float: none;
}
  
.wp-block-embed.is-type-video.wp-embed-aspect-16-9 {
	padding-top: 56.25%;
}
  
.wp-block-embed.is-type-video.wp-embed-aspect-4-3 {
	padding-top: 75%;
}
  
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
}
  
.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	width: 100%;
	height: 100%;
}


body {
	line-height: 1.6;
	font-weight: 400;
	font-family: 'Merriweather', serif;
}

h1 {
	color: #231F20;
}

h2, h3, h4, h5, h6 {
	font-family: 'Oswald', sans-serif;
}

h3 {
	font-size: 1.55em;
}

a {
	color: #58c3d5;
}

p {
    margin: 0 0 15px;
}

.navfont {
	font-size: 0.8888888888888889em;
}
.slidenav > li {
	font-size: 16px;
}

.css-logo {
	color: #000;
	font-size: 2em;
	text-align: center;
	line-height: 1em;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
}
.ishome .css-logo,
.ishome .css-logo a,
.has-hero-slider .css-logo,
.has-hero-slider .css-logo a {
	color: #FFF;
}
.css-logo a {
	color: #000;
	font-weight: 400;
	text-decoration: none;
}
.css-logo a:hover {
	text-decoration: none;
}

.page #main > article > header > .entry-title,
.single #main > article > header > .entry-title {
	font-size: 2em;
	text-transform: uppercase;
	font-family: 'Oswald', sans-serif;
}

/* Header */

#masthead {
	width: 100%;
}
.ishome #masthead,
.has-hero-slider #masthead {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99999;
}
.ishome.admin-bar #masthead,
.has-hero-slider.admin-bar #masthead {
	top: 32px;
}

#header-logo {
	width: 100%;
	padding-top: 30px;
    padding-bottom: 15px;
}

#flags {
	position: relative;
}
#flags > div > :not( :last-child ) {
	margin-right: 10px;
}
#flags img {
	width: 25px;
	height: auto;
	margin-top: -3px;
}
#flags img.active {
	opacity: 0.3;
}

#google_translate_element {
	position: absolute;
	top: 25px;
	z-index: 99999;
}
#google_translate_element .skiptranslate.goog-te-gadget {
	font-size: 0;
}
#google_translate_element .skiptranslate.goog-te-gadget > span {
	display: none;
}

.entry-header {
	margin-bottom: 45px;
}

.post-thumbnail {
	width: 100%;
	height: 500px;
	margin-bottom: 45px;
	background-size: cover;
	background-position: center center;
}

.wpgmp_map_container {
	margin-bottom: 45px;
}

/* Menu */

.nav > li > a:hover,
.nav > li > a:focus {
	background-color: transparent;
	text-decoration: underline;
}

.nav .open > a,
.nav .open > a:focus,
.nav .open > a:hover {
	background-color: transparent;
	text-decoration: underline;
}

.ishome #masthead a,
.has-hero-slider #masthead a {
	color: #FFF;
}

.navfont.aligncenter .navbar-nav {
    float: none;
}

.navfont.aligncenter .navbar-nav>li {
    float: none;
	display: inline-block;
}

.nav li.dropdown {
	-o-transition: background-color 0.3s ease;
	-moz-transition: background-color 0.3s ease;
	-webkit-transition: background-color 0.3s ease;
	transition: background-color 0.3s ease;
}
.nav li.dropdown.open {
	background-color: rgba( 255,255,255, 0.8 );
}
.nav li.dropdown > a {
	-o-transition: color 0.3s ease;
	-moz-transition: color 0.3s ease;
	-webkit-transition: color 0.3s ease;
	transition: color 0.3s ease;
}
.nav li.dropdown.open > a {
	color: #231F20 !important;
}
.nav .dropdown-menu {
	border: none;
	background-color: rgba( 255,255,255, 0.8 );
}
.nav .dropdown-menu a {
	color: #231F20 !important;
}

/* Mobile Menu */

#mobile-nav {
	text-align: right;
	padding: 6px 10px 0 10px;
	background-color: #000;
}

.dtmenu {
	font-size: 15px;
}
.dtmenu,
.dtmenu a {
	color: #FFF;
}
.dtmenu .scrtxt {
	display: none;
}
.dtmenu .mc-wrap {
	position: relative;
	color: #FFF;
	font-size: 2em;
	z-index: 99999999999999999;
}
.dtmenu.menu-open .mc-wrap {
	color: #FFF;
}
.dtmenu .menu-wrap {
	position: fixed;
	display: none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba( 0, 0, 0, 0.9 );
	overflow: auto;
	z-index: 999999;
}
.dtmenu .menu-wrap > div {
	position: relative;
	display: table;
	width: 100%;
	height: 100%;
}
.dtmenu .menu-wrap > div > div {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	padding: 0 10%;
}

.dtmenu .mttl {
	padding-bottom: 20px;
	margin: 0;
	border-bottom: 1px solid #FFF;
	font-weight: 700;
}

.dtmenu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
.dtmenu li {
	margin: 0;
	padding: 5px 0;
}
.dtmenu li:hover {
	background-color: rgba( 0, 0, 0, 0.8 );
}
.dtmenu .toplvl > li {
	padding: 20px 0;
	border-bottom: 1px solid #FFF;
}
.dtmenu .toplvl > li > a {
	font-size: 1.3em;
}

/* Home Page */

#hero-slider {
	position: relative;
}
#slider-menu {
	position: absolute;
	top: 75%;
	left: 0;
	width: 100%;
}

.slidenav {
	margin: 0;
	padding: 0;
	font-size: 0;
	list-style-type: none;
}
.slidenav > li {
	display: inline-block;
	padding: 1em 0;
	background-color: rgba( 255,255,255, 0.4 );
}
.slidenav > li > a {
	padding: 1em 2.5em;
}
.slidenav > li:hover {
	background-color: rgba( 255,255,255, 0.75 );
}
.slidenav > li:first-of-type {
	border-radius: 10px 0 0 10px;
}
.slidenav > li:last-of-type {
	border-radius: 0 10px 10px 0;
}
.slidenav a {
	color: #231F20;
}
@media ( max-width: 768px ) {
	.slidenav > li > a {
		padding: 0.6em;
	}
	#slider-menu {
		top: 82%;
	}
}

.homebox-title {
	margin-top: 0;
	margin-bottom: 45px;
}

.hbox {
	position: relative;
	margin-bottom: 40px;
}
.hbox .wrapit {
	position: relative;
}
.isotope .box.hbox {
	padding-bottom: 0;
	margin-top: 15px;
	margin-bottom: 15px;
}
.hbox .imgbox {
	width: 100%;
	overflow: hidden;
}
.hbox .post-img {
	width: 100%;
	height: auto;
	-o-transition: transform 0.3s ease;
	-ms-transition: transform 0.3s ease;
	-moz-transition: transform 0.3s ease;
	-webkit-transition: transform 0.3s ease;
	transition: transform 0.3s ease;
}
.hbox:hover .post-img {
	transform: scale( 1.1 );
}
.hbox .infos {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #FFF;
}
.hbox .infos .callable {
	display: table;
	width: 100%;
	height: 100%;
	background-color: rgba( 0,0,0, 0.2 );
}
.hbox .infos .callable > div {
	display: table-cell;
	text-align: center;
	padding: 1em;
	vertical-align: middle;
}
.hbox .infos a {
	color: #FFF;
	text-decoration: none;
	text-transform: uppercase;
}
.hbox .infos h3 {
	margin: 0;
}
.hbox .box-after {
	text-align: center;
	padding-top: 20px;
}

.container-bg {
	background-position: center center;
	background-size: cover;
}
.container-bg.ht {
	color: #FFF;
}
.container-bg > div {
	padding: 80px 0;
}
.container-bg.ht > div {
	background-color: rgba( 0,0,0, 0.3 );
}

#guestlink {
	margin: 30px auto 0 auto;
}
#guestlink,
#guestlink a {
	color: #FFF;
	text-transform:uppercase;
}

/* Single Accomodation */

.cbox {
	position: relative;
	margin-bottom: 40px;
}
.cbox .imgbox {
	width: 100%;
	overflow: hidden;
}
.cbox .post-img {
	width: 100%;
	height: auto;
}
.cbox .infos h4 {
	margin: 0;
	padding: 1em;
	text-align: center;
	background-color: #F1F1F2;
}

/* Gallery page. */

.page-id-10 .entry-content figure,
.page-id-819 .entry-content figure,
.page-id-847 .entry-content figure,
.page-id-976 .entry-content figure,
.page-id-1005 .entry-content figure,
.page-id-1152 .entry-content figure,
.page-id-1219 .entry-content figure,
.page-template-child-nav .entry-content figure {
	float: left;
	width: 33.33333333333333% !important;
}
@media ( max-width: 768px ) {
	.page-id-10 .entry-content figure,
	.page-id-819 .entry-content figure,
	.page-id-847 .entry-content figure,
	.page-id-976 .entry-content figure,
	.page-id-1005 .entry-content figure,
	.page-id-1152 .entry-content figure,
	.page-id-1219 .entry-content figure,
	.page-template-child-nav .entry-content figure {
		width: 50% !important;
	}
}

/* All Pages */

.greybg {
	color: #231F20;
	padding: 60px 0;
	text-align: center;
	background-color: #F1F1F2;
}
.greybg h1:first-of-type {
	text-align: center;
	margin: 0 auto 60px auto;
	text-transform: uppercase;
}
.greybg .entry-content > p:last-of-type {
	margin-bottom: 0;
}

.page .entry-title,
.single .entry-title {
	text-align: center;
}

.entry-footer {
	margin-bottom: 60px;
}

/* Footer */

#colophon {
	font-size: 0.8em;
	text-align: center;
	padding: 30px 0;
	background-color: #58c3d5;
    color: #fff;
}


#footer-menu ul {
	margin: 1em 0;
	padding: 0;
	list-style-type: none;
}
#footer-menu li {
	display: inline-block;
}
#footer-menu li a {
	color: #fff;
}
#footer-menu .dash {
	margin: 0 0.5em;
}
#footer-menu ul > li:last-of-type .dash {
	display: none;
}

/* Alignments */

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.alignright {
	text-align: right;
}
	
.aligncenter {
	text-align: center;
}

.table-wrap {
	display: table;
	height: 100%;
	width: 100%;
}

.cell-wrap {
	display: table-cell;
	vertical-align: middle;
}

/* Tables */

table {
	margin: 30px 0;
}
table.aligncenter {
	margin: 0 auto;
}
tr, th {
	padding: 0.2em;
}
table > tbody > tr > td:first-of-type {
	width: 25%;
}
table#prices tr > td:not( :first-of-type ) {
	padding: 0.3em 1em;
}
table#prices tr > td:first-of-type {
	padding: 0.3em 1em 0.3em 1em;
	text-align: left;
}

/* Images */

img {
	height: auto;
    max-width: 100%;
}
.nojs img.lazy {
	display: none;
}

/*figure.aligncenter {
	margin-right: auto;
	margin-left: auto;
}
figure.alignleft {
	float: left;
}*/

figure,
.entry-content p > .size-post-thumbnail {
	width: auto !important;
	margin: 0;
	padding: 1.5em;
}
figcaption {
	padding-top: 0.8em;
	text-align: center;
	font-size: 0.8em;
}
.figleft {
	max-width: 50%;
	float: left;
	padding-left: 0 !important;
}
.figright {
	max-width: 50%;
	float: right;
	padding-right: 0 !important;
}

/* Google Maps */

#map-container {
	margin-bottom: 20px;
}

#map-archive {
	height: 500px;
	margin-top: 20px;
}
#map-archive img {
	max-width: none;
}

#mapping {
	position: relative;
	width: 100%;
	height: 100%;
	margin: auto;
	
}
#mapping #map-archive {
	position: relative;
	z-index: 100;
}
#mapping .loading {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba( 0,0,0, 0.4 );
	z-index: 200;
	display: none;
}
#mapping .loading .loadimg {
	position: absolute;
	width: 32px;
	height: 32px;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
}

@media ( max-width: 768px ) {
	
	#mapping {
		width: 80%;
	}
	
	#map-archive {
		height: 350px;
	}
	
}

/* Admin bar */

body.admin-bar {
	padding-top: 32px;
}

/* Isotope filters. */

#filter-area {
	margin-left: -2px;
	margin-right: -2px;
}
#filter-area .filter-col {
	padding-left: 2px;
	padding-right: 2px;
}

#post-filters {
	width: 100%;
	margin-bottom: 30px;
}

#filter-dropdowns {
	position: relative;
	width: 100%;
}

#filter-dropdowns > legend {
	position: relative;
	width: 100%;
	background-color: #E25A2C;
	border: none;
	padding: 8px 52px 8px 15px;
	color: #FFF;
	border-radius: 5px 5px 5px 5px;
	cursor: pointer;
	margin: 0;
}
#filter-dropdowns.expanded > legend {
	border-radius: 5px 5px 0 0;
}

#filter-dropdowns > legend:after {
	position: absolute;
	width: 22px;
	height: 21px;
	top: 12px;
	right: 15px;
	content: '';
	background: transparent url( 'images/plus-white.png' ) no-repeat center center;
}
#filter-dropdowns.expanded > legend:after {
	background-image: url( 'images/minus-white.png' );
}

#filters-inner {
	padding: 0 10px;
	border-left: 1px solid #E25A2C;
	border-right: 1px solid #E25A2C;
	border-bottom: 1px solid #E25A2C;
}

#filter-dropdowns .filter {
	padding-top: 20px;
	padding-bottom: 20px;
}

#filter-dropdowns .filter .filter-label,
#filter-dropdowns .filter .filter-dropdown {
	width: 100%;
}

#filter-controls {
	padding-bottom: 20px;
}

#filter-controls #filter-submit {
	display: none;
}

#filtered-posts #loading-wrapper {
	position: relative;
}
#filtered-posts #the-isotope {
	position: relative;
	z-index: 100;
}
#filtered-posts #filtered-loading {
	position: absolute;
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba( 0,0,0, 0.4 ) url( 'images/loading.gif' ) no-repeat center center;
	z-index: 900;
}

/* Isotope grid & map. */

#listgrid.partner {
	padding-top: 8px;
	text-align: center;
}
@media ( max-width: 768px ) {
	#post-filters {
		margin-bottom: 20px;
	}
	#listgrid.partner {
		padding-top: 0;
		margin-bottom: 20px;
	}
}
#listgrid.standalone {
	margin-bottom: 20px;
	text-align: right;
}
#listgrid .scr {
	display: none;
}
#listgrid .glyphbutton {
	color: #E25A2C;
	font-size: 1.6em;
}
#listgrid .glyphbutton:not( :last-of-type ) {
	margin-right: 10px;
}

.isotope {
	margin-right: -15px;
	margin-left: -15px;
}
.isotope .box {
	padding-right: 15px;
	padding-left: 15px;
	padding-bottom: 30px;
}
.isotope .box a {
	text-decoration: none;
}

.isotope.grid-view .box {
	width: 33.33333333333333%;
	word-wrap: break-word;
}
.isotope.grid-view .box h4 {
	color: #FFF;
}
.isotope.grid-view .box .excerpt {
	display: none;
}
.isotope.grid-view .box .box-inner {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
}
.isotope.grid-view .box .box-thumb {
	width: 100%;
	height: auto;
	-o-transition: transform 0.3s ease;
	-ms-transition: transform 0.3s ease;
	-moz-transition: transform 0.3s ease;
	-webkit-transition: transform 0.3s ease;
	transition: transform 0.3s ease;
}
.isotope.grid-view .box .box-wrap-1 {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
.isotope.grid-view .box .box-wrap-2 {
	display: table;
	width: 100%;
	height: 100%;
}
.isotope.grid-view .box .box-wrap-3 {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	padding: 10px 5%;
	background-color: rgba( 0,0,0, 0.3 );
	-o-transition: background-color 0.3s ease;
	-ms-transition: background-color 0.3s ease;
	-moz-transition: background-color 0.3s ease;
	-webkit-transition: background-color 0.3s ease;
	transition: background-color 0.3s ease;
}

.isotope.grid-view .box:hover .box-thumb {
	transform: scale( 1.1 );
}
.isotope.grid-view .box:hover .box-wrap-3 {
	background-color: rgba( 0,0,0, 0.1 );
}

.isotope.list-view .box {
	width: 100% !important;
	padding-bottom: 20px;
}
.isotope.list-view .box a:hover,
.isotope.list-view .box a:focus,
.isotope.list-view .box a:active {
	text-decoration: none;
}
.isotope.list-view .box h4 {
	margin-top: 0;
}
.isotope.list-view .box .excerpt a {
	font-weight: 400;
	color: #000;
}
.isotope.list-view .box .box-wrap-1 {
	position: relative;
	float: right;
	width: 80%;
	padding-left: 3%;
}

@media ( min-width: 550px ) {
	.isotope.list-view .box .boximg {
		position: relative;
		float: left;
		width: 20%;
		height: 0;
		overflow: hidden;
		padding-bottom: 12%;
	}
	.isotope.list-view .box .box-thumb {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		margin: auto;
	}
}
@media ( min-width: 550px ) and ( max-width: 1024px ) {
	.isotope.list-view .box .boximg {
		width: 30%;
	}
	.isotope.list-view .box .box-wrap-1 {
		width: 70%;
	}
	.isotope.list-view .box .boximg {
		padding-bottom: 16%;
	}
}
@media ( min-width: 550px ) and ( max-width: 992px ) {
	.isotope.list-view .box .boximg {
		padding-bottom: 21%;
	}
}
@media ( max-width: 550px ) {
	.isotope.list-view .box .boximg {
		width: 100%;
		float: none;
		clear: both;
	}
	.isotope.list-view .box .box-wrap-1 {
		width: 100%;
		float: none;
		clear: both;
		margin-top: 20px;
		margin-bottom: 20px;
		text-align: center;
	}
}


/* Isotope gallery. */

.isotope-gallery {
	margin-top: 40px;
	margin-right: -8px;
	margin-left: -8px;
}
.isotope-gallery .gallery-box {
	padding: 8px;
	width: 33.33333333333333%;
}
.isotope-gallery .imgbox img {
	width: 100%;
}

/* Big gallery images. */

.big-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	height: 100vh;
	background: #464646 url( 'images/ajax-loader.gif' ) no-repeat center center;
}
.big-image > img {
	position: absolute;
	display: block;
	height: auto;
	margin: auto;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.big-image .closeit {
	position: absolute;
	top: 5px;
	right: 5px;
	z-index: 9999;
}

.admin-bar .big-image .closeit {
	top: 37px;
}
.big-image .slide {
	position: absolute;
	top: 50%;
	z-index: 9999;
}
.big-image .closeit span,
.big-image .slide span {
	font-size: 20px;
	line-height: 20px;
	display: block;
	top: 0;
	padding: 5px 3px;
	cursor: pointer;
	color: #FFF;
}
.big-image .closeit span {
	color: #FFF;
}
.big-image .slide span {
	margin-top: -15px;
}
.big-image .slide.left {
	left: 0;
}
.big-image .slide.right {
	right: 0;
}

/* Gust book page. */

#comments .comment-body {
	padding: 1em 0;
}

#respond {
	padding: 1% 4%;
	border-radius: 10px;
	background-color: #f4f4f4;
	margin: 2em 0;
}

#respond .comment-format {
	padding-bottom: 1em;
}
#respond .form-submit {
	padding-top: 1em;
}
@media ( min-width: 680px ) {
	#respond .comment-format label {
		width: 15%;
		text-align: right;
		padding: 0 1em;
	}
	#respond .comment-format input,
	#respond .comment-format textarea {
		width: 85%;
	}
	#respond .form-submit {
		text-align: right;
	}
}
@media ( max-width: 680px ) {
	#respond .comment-format label {
		width: 100%;
		text-align: center;
		padding: 0 1em 0.5em 0;
		display: block;
	}
	#respond .comment-format input,
	#respond .comment-format textarea {
		width: 100%;
		display: block;
	}
	#respond .form-submit {
		text-align: center;
	}
}

/* Bootstrap mods. */

.row.pad {
	padding-top: 60px;
	padding-bottom: 40px;
}

/* Custom Bootstrap Container Width Override */

@media (min-width: 768px) {
  .container {
    width: 750px !important;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px !important;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px !important;
  }
}

@media (min-width: 1500px) {
  .container {
    width: 1400px !important;
  }
}


@media (max-width: 992px) {
	
	.alignright {
		text-align: center;
	}
}
