/*
 * Layout + UI components that WPBakery used to provide.
 * Values match the old vc_* rendering so the design is unchanged.
 */

/* ---------- Grid ---------- */

.bn-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.bn-col {
	box-sizing: border-box;
	width: 100%;
	min-height: 1px;
	padding: 0 15px;
	position: relative;
}

.bn-col-3 { width: 25%; }
.bn-col-4 { width: 33.3333%; }
.bn-col-6 { width: 50%; }
.bn-col-8 { width: 66.6667%; }
.bn-col-9 { width: 75%; }

/* Images never overflow their column (WPBakery's single-image element used to enforce this) */
.bn-col img,
.tour-text img,
.home-about-text img {
	max-width: 100%;
	height: auto;
}

/* Text blocks: no trailing margin on the last element (as WPBakery's text columns had) */
.tour-text > :last-child,
.tour-tab-intro > :last-child,
.bn-toggle-content > :last-child,
.home-about-text > :last-child,
.about-text > :last-child,
.team-bio > :last-child,
.contact-intro > :last-child,
#intro > :last-child {
	margin-bottom: 0;
}

/* ---------- Section headings (cursive kicker + heading) ---------- */

.section-kicker,
.section-heading {
	text-align: center;
}

.cursive-heading {
	font-family: "Satisfy", cursive;
	font-weight: 400;
	font-style: normal;
}

/* ---------- Button ---------- */

.bn-btn {
	display: inline-block;
	background-color: #567e20;
	color: #fff !important;
	font-size: 15px;
	line-height: normal;
	padding: 14px 20px;
	margin-top: 35px;
	text-align: center;
	text-decoration: none;
	transition: all .2s ease-in-out;
}

.bn-btn:hover,
.bn-btn:focus {
	background-color: #3d5c2e;
}

/* ---------- Tabs ---------- */

.bn-tabs-list {
	list-style: none !important;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid #557d20;
}

.bn-tabs-list li,
.bn-tabs-list li:before {
	list-style: none !important;
	background: none;
	content: '';
}

.bn-tab {
	display: inline-block;
	margin: 0 30px 0 0;
	padding: 0;
	font-size: 15px;
}

.bn-tab a {
	display: block;
	padding: 14px 20px;
	background-color: transparent;
	color: #666;
	font-size: 15px;
	font-weight: 300;
	line-height: 15px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.bn-tab a:hover {
	color: #212121;
}

.bn-tab.is-active a {
	background-color: #557d20;
	color: #fff;
	font-weight: 600;
}

.bn-panel {
	display: none;
}

.bn-panel.is-active {
	display: block;
}

/* Panel heading is the mobile accordion control; hidden on desktop */
.bn-panel-heading {
	display: none;
	margin: 0 0 15px !important;
	border: 2px solid #666;
}

.bn-panel.is-active .bn-panel-heading {
	border-color: #3d5c2e;
}

.bn-panel-heading button {
	display: block;
	width: 100%;
	background: transparent !important;
	border: 0;
	color: #666;
	font-size: 15px;
	font-weight: 300;
	line-height: 15px;
	padding: 14px 20px;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.bn-panel.is-active .bn-panel-heading button {
	background: #3d5c2e !important;
	color: #fff;
	font-weight: 600;
}

.bn-panel-body {
	padding: 50px 0 14px;
}

/* ---------- Toggle / accordion (itinerary days) ---------- */

.bn-toggle {
	display: block;
	margin: 0 0 22px;
}

.bn-toggle-title {
	position: relative;
	display: block;
	margin: 0;
	padding: 0 0 0 24px;
	cursor: pointer;
	user-select: none;
}

.bn-toggle-title h4 {
	display: inline;
	color: #3d5c2e;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	text-transform: uppercase;
	margin: 0;
}

/* "+" that becomes "−" when open */
.bn-toggle-icon {
	position: absolute;
	left: 5px;
	top: 50%;
	width: 10px;
	height: 3px;
	margin-top: 1px; /* centred on the title text, which sits a little below the box centre */
	background: #3d5c2e;
}

.bn-toggle-icon::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 3px;
	height: 10px;
	margin: -5px 0 0 -1.5px;
	background: #3d5c2e;
	transition: transform .2s;
}

.bn-toggle.is-open .bn-toggle-icon::before {
	transform: scaleY(0);
}

.bn-toggle-content {
	display: none;
	margin: 1em 0 22px;
	padding: 0 130px 0 24px; /* text lines up with the title, not the icon */
	overflow: hidden;
}

.bn-toggle.is-open .bn-toggle-content {
	display: block;
}

/* ---------- Image carousel (Swiper) ---------- */

.tour-gallery {
	width: 100%;
	overflow: hidden;
}

.tour-gallery .swiper-slide {
	height: auto;
	overflow: hidden;
}

.tour-gallery .swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 4;
	object-fit: cover;
}

.tour-gallery .swiper-pagination {
	bottom: 5px;
}

.tour-gallery .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 1px !important;
	border: 1px solid #e973258c;
	background: #e973258c;
	opacity: 1;
	border-radius: 10px;
}

.tour-gallery .swiper-pagination-bullet-active {
	border-color: #e97325;
	background: #e97325;
}

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

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

	.tour-gallery .swiper-slide {
		height: 450px;
	}

}

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

	.bn-tab {
		margin: 0;
	}

}

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

	.bn-row {
		margin: 0;
	}

	.bn-col {
		padding: 0;
	}

	.bn-col-3, .bn-col-4, .bn-col-6, .bn-col-8, .bn-col-9 {
		width: 100%;
	}

	/* Tabs become an accordion */
	.bn-tabs-list {
		display: none;
	}

	.bn-panel {
		display: block;
	}

	.bn-panel-heading {
		display: block;
	}

	.bn-panel-body {
		display: none;
		padding: 15px 0 30px;
	}

	.bn-panel.is-active .bn-panel-body {
		display: block;
	}

	.bn-toggle-content {
		padding-right: 30px;
	}

}

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

	.bn-tab {
		font-size: 13px;
	}

}
