/*
 * Page templates: Home, About, Contact, Destination, Travel type.
 * Ported from the WPBakery-era rules in nature.css.
 */

/* ---------- Home: hero tiles ---------- */

.home-hero {
	overflow: hidden;
}

.home-hero .swiper-wrapper {
	display: flex;
}

.hero-tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 25%;
	flex: 0 0 25%;
	height: calc(75vh - 100px);
	background-size: 101%;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-tile:first-child {
	background-position: top;
}

.hero-tile h2 {
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	margin: 0 0 50px;
	padding: 0 10px;
}

.hero-tile h2.cursive-heading {
	color: #fff;
	margin-bottom: -10px;
}

.home-hero .swiper-pagination {
	display: none;
}

/* ---------- Home: tagline / about / destinations ---------- */

#home-tagline h1 {
	font-size: 40px !important;
	color: #fff;
	line-height: 50px !important;
	padding: 10px 15px;
	text-align: center;
}

#home-about {
	padding-bottom: 0 !important;
}

#home-about .home-about-text h3 {
	text-transform: none;
	font-weight: 500;
	text-align: center;
}

.destination-tiles {
	margin: 0 -2.5px;
}

.destination-tiles .destination-tile {
	padding: 2.5px;
}

.destination-tile a {
	display: block;
	text-decoration: none;
}

.destination-tile img {
	display: block;
	width: 100%;
	height: auto;
}

.destination-tile .grid-title {
	display: block;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.6px;
	line-height: 25px;
}

/* ---------- Services (Home + About) ---------- */

/* Full viewport height with the content vertically centred (as the old full-height row was) */
#services {
	background: #f8f8f8 url(../images/bg-camera-starfish.jpg) no-repeat 0 0;
	background-size: 100%;
	padding: 150px 0 60px;
	margin-top: -50px;
	min-height: 100vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#services .section-kicker {
	margin-top: -25px;
}

/* !important + explicit auto sides: .padded-row's "margin: auto !important" would otherwise
   let flexbox absorb free space into these margins */
#services .service-row {
	margin: 50px auto 0 !important;
}

#services .service-row:first-of-type {
	margin-top: 20px !important;
}

#services .service {
	padding: 0 45px;
}

#services img {
	width: 100px;
	height: auto;
	margin: 0 auto 20px !important;
	display: block;
}

#services h3 {
	text-align: center;
	font-weight: 700;
}

#services p {
	font-size: 15px;
	line-height: 23px;
	text-align: center;
	margin-bottom: 0;
}

body.page-template-page-about #services {
	margin-top: 0 !important;
}

/* ---------- Testimonials ---------- */

#home-testimonials {
	background-size: 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

#home-testimonials h2 {
	color: #fff !important;
}

#home-testimonials .testimony-carousel {
	margin: 50px auto 0 !important;
	overflow: hidden;
}

#home-testimonials .swiper-slide {
	height: auto;
}

#home-testimonials .testimony-row {
	background: #fff;
	border-radius: 15px;
	padding: 25px;
	margin: 0 20px;
	height: 100%;
	box-sizing: border-box;
}

#home-testimonials .testimony-row p {
	font-size: 14px;
	line-height: 24px;
	text-align: center;
}

#home-testimonials .testimony-row p:last-child {
	margin-bottom: 0;
}

#home-testimonials .testimony-name {
	color: #3d5c2e;
	font-size: 13px;
	text-transform: uppercase;
}

#home-testimonials .swiper-pagination {
	position: static;
	margin-top: 15px;
	padding: 5px 0;
}

#home-testimonials .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	margin: 5px 7px !important;
	background: rgba(233, 116, 36, 0.66);
	opacity: 1;
}

#home-testimonials .swiper-pagination-bullet-active {
	background: #d15238;
}

/* ---------- About (About page + Destination pages) ---------- */

/* Same column gutter as the tour Overview / Highlights columns */
#destination-about .bn-col {
	padding: 0 45px;
}

#destination-about .about-image img {
	margin-bottom: 40px !important;
}

#team {
	padding-bottom: 100px;
}

#team .team-row {
	align-items: flex-start;
}

#team .team-bio,
#team .team-row .bn-col-3 {
	padding: 15px;
}

#team .team-photo {
	float: left;
	width: 268px;
	height: auto;
	margin: 0 22.5px 0 0;
}

.partners {
	background: #d15238;
	padding: 35px 15px;
}

.partners h4, .partners p, .partners a {
	color: #fff;
}

.partners h4 {
	font-size: 20px;
	margin-bottom: 15px !important;
}

/* ---------- Contact ---------- */

.contact-intro {
	text-align: center;
}

/* ---------- Destination / Travel type ---------- */

#page-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(60vh - 127px) !important;
	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
}

#page-hero h1 {
	color: #fff;
	text-align: center;
}

#intro {
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

#intro p {
	font-size: 25px;
	text-align: center;
	line-height: 35px;
}

#destination-tours {
	background: #f8f8f8 url(../images/bg-camera-starfish.jpg) no-repeat 0 0;
	background-size: 100%;
	padding: 150px 0 20px;
}

body.page-template-page-travel-type #destination-tours {
	background-image: url(../images/bg-bag-camera.jpg);
}

.tour-tab-intro strong {
	color: #212121;
}

.tour-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 30px;
	margin-top: 40px;
}

.tour-card {
	height: 450px;
	margin-bottom: 30px;
	overflow: hidden;
}

.tour-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e6e6e6;
}

.tour-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tour-card-body {
	padding: 20px 0 0;
}

.tour-card h3 {
	color: #3d5c2e;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 28px;
	margin-bottom: 5px !important;
}

.tour-card h3 a {
	color: inherit;
	text-decoration: none;
}

.tour-card p {
	margin: 0 0 15px;
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 1550px) {

	.hero-tile {
		height: calc(100vh - 110px);
	}

	.hero-tile h2 {
		font-size: 22px;
	}

	#home-tagline h1 {
		font-size: 30px !important;
		line-height: 35px !important;
	}

}

@media only screen and (max-width: 1200px) {

	.hero-tile {
		height: 450px;
		background-position: top !important;
	}

	#home-testimonials {
		background-attachment: inherit;
	}

}

@media only screen and (max-width: 950px) {

	.tour-grid {
		grid-template-columns: repeat(2, 1fr);
	}

}

@media only screen and (max-width: 768px) {

	/* Hero becomes a one-tile carousel (no dots, as before) */
	.hero-tile {
		width: 100%;
		flex: 0 0 100%;
		height: auto;
		padding: 100px 0;
		justify-content: center;
		background-size: cover;
		background-position: center !important;
	}

	.hero-tile h2 {
		font-size: 35px;
		font-weight: 600 !important;
		line-height: 50px;
		padding: 0 15px;
		margin-bottom: 0;
	}

	.hero-tile h2.cursive-heading {
		margin-bottom: 0 !important;
	}

	#home-tagline h1 {
		font-size: 25px !important;
		line-height: 35px !important;
		font-weight: 600;
		padding: 10px 5%;
	}

	.destination-tile {
		margin-bottom: 15px !important;
	}

	#services {
		padding: 50px 0;
		min-height: 0;
	}

	#services h2 {
		margin-bottom: 0 !important;
	}

	#services .service-row {
		margin-top: 0 !important;
	}

	#services .service {
		margin-top: 100px;
		padding: 0;
	}

	#destination-about .bn-col {
		padding: 0;
	}

	#destination-about .about-image img {
		margin-top: 35px !important;
	}

	#page-hero {
		min-height: 0 !important;
	}

	#page-hero h1 {
		font-size: 40px;
		padding: 10px 10px 15px;
	}

	#destination-tours {
		padding: 50px 0;
	}

	.tour-grid {
		grid-template-columns: 1fr;
	}

	.tour-card {
		height: auto;
	}

	#team .team-photo {
		float: none;
		margin: 0 0 20px;
	}

}

@media only screen and (min-width: 320px) and (max-width: 750px) and (orientation: landscape) {

	.hero-tile {
		width: 25%;
		flex: 0 0 25%;
		height: calc(100vh - 60px);
		padding: 0 10px;
		justify-content: flex-end;
	}

	.hero-tile h2 {
		font-size: 19px;
		line-height: 19px;
	}

	.hero-tile h2.cursive-heading {
		margin-bottom: 10px !important;
	}

	#services, #destination-tours {
		padding: 100px 0 !important;
	}

	#services .service {
		width: 33.333%;
	}

	#services p {
		font-size: 12px;
	}

	#home-testimonials .testimony-row {
		width: 85%;
		margin: 0 auto !important;
	}

	.tour-grid {
		grid-template-columns: repeat(2, 1fr);
	}

}
