/* Amenities Tabs Slider for Elementor */

.ams {
	--ams-left: 41.667%;
	--ams-pl: 14vw;
	--ams-pr: 30px;
	--ams-ax: 18px;
	--ams-ay: 18px;
	--ams-ty: 46px;
	--ams-tx: 0px;
	box-sizing: border-box;
	width: 100%;
	background-color: #e5b85a;
	color: #1c1c1c;
}

.ams *,
.ams *::before,
.ams *::after {
	box-sizing: border-box;
}

.ams-row {
	display: flex;
	align-items: stretch;
}

/* ---------- Left column ---------- */
.ams-side {
	flex: 0 0 var(--ams-left);
	max-width: var(--ams-left);
	min-width: 0;
}

.ams .ams-heading {
	margin: 0;
	padding: 36px var(--ams-pr) 30px var(--ams-pl);
	font-size: clamp(24px, 1.75vw, 34px);
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: inherit;
}

.ams-item {
	transition: background-color 0.3s ease;
}

.ams-item.is-active {
	background-color: rgba(255, 255, 255, 0.25);
}

.ams-item-head {
	margin: 0;
}

.ams .ams-item-btn {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 12px var(--ams-pr) 13px var(--ams-pl);
	cursor: pointer;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
}

.ams .ams-item-btn:focus-visible {
	outline: 2px solid #00695c;
	outline-offset: -4px;
}

.ams-item-caption {
	display: block;
	min-width: 0;
}

.ams-item-title {
	display: block;
	font-size: clamp(18px, 1.35vw, 26px);
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ams-item-sub {
	display: block;
	margin-top: 6px;
	font-size: clamp(14px, 0.9vw, 17px);
	line-height: 1.3;
	letter-spacing: 0.03em;
}

.ams-chevron {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 4px;
	color: #1c1c1c;
	transition: transform 0.3s ease;
}

.ams-item.is-active .ams-chevron {
	transform: rotate(180deg);
}

/* accordion body: smooth open / close */
.ams-item-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.ams-item.is-active .ams-item-body {
	grid-template-rows: 1fr;
}

.ams-item-body-inner {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility 0s linear 0.35s;
}

.ams-item.is-active .ams-item-body-inner {
	visibility: visible;
	transition-delay: 0s;
}

.ams .ams-list {
	margin: 0;
	padding: 6px var(--ams-pr) 14px calc(var(--ams-pl) + 29px);
	list-style: disc;
	font-size: clamp(14px, 0.9vw, 17px);
	line-height: 1.45;
	letter-spacing: 0.03em;
}

.ams .ams-list li {
	margin: 0;
	padding: 0;
}

/* ---------- Right column: slider stage ---------- */
.ams-stage {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
}

.ams-panel {
	display: none;
	flex: 1 1 auto;
	min-width: 0;
}

.ams-panel.is-active {
	display: block;
	animation: ams-fade 0.5s ease;
}

.ams-empty {
	padding: 40px 20px;
	text-align: center;
	background: rgba(0, 0, 0, 0.06);
	font-size: 14px;
}

@keyframes ams-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ---------- Slider ---------- */
.ams-slider {
	position: relative;
	width: 100%;
}

.ams-viewport {
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
}

.ams-viewport.is-dragging {
	cursor: grabbing;
}

.ams-track {
	display: flex;
	will-change: transform;
}

.ams-reverse .ams-track {
	flex-direction: row-reverse;
}

.ams-slide {
	position: relative;
	flex: 0 0 100%;
	max-width: 100%;
	overflow: hidden;
}

.ams-slide img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

/* ---------- Slide title label ---------- */
.ams-title {
	position: absolute;
	z-index: 2;
	max-width: calc(100% - 16px);
	padding: 16px 46px;
	background-color: #006b5b;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.ams-title-top-right    { top: var(--ams-ty);    right: var(--ams-tx); }
.ams-title-top-left     { top: var(--ams-ty);    left: var(--ams-tx); }
.ams-title-bottom-right { bottom: var(--ams-ty); right: var(--ams-tx); }
.ams-title-bottom-left  { bottom: var(--ams-ty); left: var(--ams-tx); }

/* ---------- Arrows ---------- */
.ams-nav {
	position: absolute;
	z-index: 3;
	display: flex;
	gap: 8px;
}

.ams .ams-arrow {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #e8b93b;
	color: #1c1c1c;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.ams .ams-arrow svg {
	display: block;
	width: 22px;
	height: 22px;
}

.ams .ams-arrow:hover:not([disabled]) {
	background-color: #006b5b;
	color: #fff;
}

.ams .ams-arrow:focus-visible,
.ams .ams-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ams .ams-arrow[disabled] {
	opacity: 0.4;
	cursor: default;
}

.ams-arrows-middle .ams-nav {
	inset: 0;
	pointer-events: none;
}

.ams-arrows-middle .ams-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
}

.ams-arrows-middle .ams-prev { left: var(--ams-ax); }
.ams-arrows-middle .ams-next { right: var(--ams-ax); }

.ams-arrows-bottom-right .ams-nav  { bottom: var(--ams-ay); right: var(--ams-ax); }
.ams-arrows-bottom-left .ams-nav   { bottom: var(--ams-ay); left: var(--ams-ax); }
.ams-arrows-bottom-center .ams-nav { bottom: var(--ams-ay); left: 50%; transform: translateX(-50%); }
.ams-arrows-top-right .ams-nav     { top: var(--ams-ay);    right: var(--ams-ax); }
.ams-arrows-top-left .ams-nav      { top: var(--ams-ay);    left: var(--ams-ax); }

/* Left -> Right direction: mirror the buttons */
.ams-reverse .ams-arrow svg {
	transform: scaleX(-1);
}

.ams-reverse .ams-nav {
	flex-direction: row-reverse;
}

.ams-reverse.ams-arrows-middle .ams-prev { left: auto; right: var(--ams-ax); }
.ams-reverse.ams-arrows-middle .ams-next { right: auto; left: var(--ams-ax); }

/* ---------- Dots (overlay, bottom center) ---------- */
.ams-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
}

.ams .ams-dot {
	all: unset;
	position: relative;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ams .ams-dot::after {
	content: "";
	position: absolute;
	inset: -8px;
}

.ams .ams-dot.is-active {
	background-color: #fff;
	transform: scale(1.25);
}

/* ---------- Tablet & mobile: single column, slider sits inside the open tab ---------- */
@media (max-width: 991px) {
	.ams {
		--ams-pl: 20px;
		--ams-pr: 20px;
		--ams-ty: 12px;
		--ams-ax: 8px;
	}

	.ams-row {
		display: block;
	}

	.ams-side {
		max-width: 100%;
	}

	/* panels are moved into their tab by JS; the empty desktop stage is hidden */
	.ams-stage {
		display: none;
	}

	.ams .ams-list {
		padding-left: calc(var(--ams-pl) + 22px);
	}

	.ams-slot {
		padding: 4px 0 0;
	}

	.ams-slot:empty {
		display: none;
	}

	.ams-title {
		padding: 9px 16px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ams-track,
	.ams-item-body,
	.ams-panel.is-active {
		transition: none !important;
		animation: none !important;
	}
}
