/* =================================================================
   Emerald Places Tabs — pill tabs + split media / copy
   ================================================================= */

.elementor-widget-emerald_places_tabs,
.elementor-widget-emerald_places_tabs > .elementor-widget-container {
	width: 100% !important;
	max-width: 100%;
}

.emerald-places {
	--emerald-places-aspect: 16 / 9;
	--emerald-places-media-radius: 24px;
	--emerald-places-accent: var(--emerald-secondary-color, #1d5f51);
	--emerald-places-ink: var(--emerald-heading-color, #1f2d2a);
	--emerald-places-muted: var(--emerald-muted-color, #6b7a75);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

/* —— Tabs (FAQ-style pills) —— */
.emerald-places__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 36px;
	padding: 0;
}

.emerald-places__tab {
	margin: 0;
	padding: 10px 22px;
	border: 1px solid rgba(31, 45, 42, 0.12);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(31, 45, 42, 0.06);
	color: var(--emerald-places-muted);
	font-family: var(--emerald-heading-font-family, 'Manrope', sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.emerald-places__tab.is-active {
	border-color: transparent;
	background: var(--emerald-places-accent);
	box-shadow: none;
	color: #ffffff;
}

.emerald-places__tab:focus-visible {
	outline: 2px solid var(--emerald-places-accent);
	outline-offset: 2px;
}

/* —— Panels —— */
.emerald-places__panels {
	width: 100%;
}

.emerald-places__panel {
	display: none;
	width: 100%;
}

.emerald-places__panel.is-active {
	display: block;
	width: 100%;
}

.emerald-places__panel[hidden] {
	display: none !important;
}

.emerald-places__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px 64px;
	width: 100%;
	max-width: 100%;
}

.emerald-places__media {
	position: relative;
	width: 100%;
	min-width: 0;
	height: auto;
	aspect-ratio: var(--emerald-places-aspect);
	overflow: hidden;
	border-radius: var(--emerald-places-media-radius);
	background: #e8eeeb;
}

.emerald-places__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #d7e2dd, #eef3f0);
}

.emerald-places__swiper,
.emerald-places__swiper .swiper-wrapper,
.emerald-places__swiper .swiper-slide {
	height: 100%;
}

.emerald-places__swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Split-slider style glass pager */
.emerald-places__pager {
	position: absolute !important;
	left: 50% !important;
	right: auto !important;
	bottom: 22px !important;
	top: auto !important;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	padding: 8px 14px;
	border: 0.61px solid #ffffff54;
	border-radius: 999px;
	background: rgba(31, 45, 42, 0.42);
	box-shadow: 0 4.92px 19.67px 0 #1f2d2a14;
	-webkit-backdrop-filter: blur(5.29px);
	backdrop-filter: blur(5.29px);
	transform: translateX(-50%);
}

.emerald-places__pager .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0 !important;
	opacity: 1;
	background: rgba(255, 255, 255, 0.45);
	transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.emerald-places__pager .swiper-pagination-bullet-active {
	width: 9px;
	height: 9px;
	background: #ffffff;
}

.emerald-places__copy {
	min-width: 0;
}

.emerald-places__title {
	margin: 0 0 16px;
	color: var(--emerald-places-ink);
	font-family: var(--emerald-heading-font-family, 'Manrope', sans-serif);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 700;
	line-height: 1.2;
}

.emerald-places__text {
	margin: 0;
	color: var(--emerald-places-muted);
	font-family: var(--emerald-body-font-family, 'Source Sans 3', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

.emerald-places__text p {
	margin: 0 0 1em;
}

.emerald-places__text p:last-child {
	margin-bottom: 0;
}

.emerald-places__text ul {
	margin: 1em 0 0;
	padding: 0 0 0 1.1em;
	list-style: disc;
}

.emerald-places__text li {
	margin: 0 0 0.55em;
}

.emerald-places__text li:last-child {
	margin-bottom: 0;
}

.emerald-places__actions {
	margin-top: 28px;
}

.emerald-places__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 28px;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(31, 45, 42, 0.1);
	color: var(--emerald-places-ink) !important;
	font-family: var(--emerald-heading-font-family, 'Manrope', sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.emerald-places__btn:hover {
	filter: brightness(0.98);
	transform: translateY(-1px);
	color: var(--emerald-places-ink) !important;
	text-decoration: none;
}

/* —— Mobile: tabs → slider → content —— */
@media (max-width: 900px) {
	.emerald-places__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		margin-bottom: 24px;
		padding: 4px 4px 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		scroll-behavior: smooth;
	}

	.emerald-places__tabs::-webkit-scrollbar {
		display: none;
	}

	.emerald-places__tab {
		flex: 0 0 auto;
		padding: 10px 18px;
		font-size: 14px;
	}

	.emerald-places__layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
		width: 100%;
	}

	.emerald-places__media {
		order: 1;
		width: 100%;
		height: auto;
		aspect-ratio: var(--emerald-places-aspect);
	}

	.emerald-places__copy {
		order: 2;
		width: 100%;
	}

	.emerald-places__title {
		font-size: 26px;
	}

	.emerald-places__btn {
		width: 100%;
	}
}
