/**
 * Home page - "Signature destinations" luxury carousel (see home-destinations.js).
 * A calm, native horizontal gallery: the page scroll is never taken over.
 * Desktop: ~3 cards + a glimpse of the next, mouse drag / trackpad. All devices: an animated hand
 * shows the swipe once, when the carousel comes into view.
 * Tablet / phone: swipe with snap. Elementor editor: same layout, nothing added.
 *
 *  .ath-hs          the grid container (outer)
 *  .ath-hs__view    its .e-con-inner - the scrolling track
 *  .ath-hs__card    each destination card (<a> container)
 */
.ath-hs {
	--hs-ink: #100e0e;
	--hs-muted: #6b655e;
	--hs-gold: #c9a876;
	--hs-gold-deep: var(--ath-gold, #b08d57);
	--hs-display: var(--ath-serif, "Montserrat Alternates", sans-serif);
	--hs-body: var(--ath-sans, "Montserrat", sans-serif);
	--hs-ease: cubic-bezier(.2, .7, .1, 1);
	--hs-gutter: max(20px, calc((100% - 1320px) / 2));
	--hs-gap: 22px;
	--padding-top: 0px !important; --padding-bottom: 0px !important; --padding-left: 0px !important; --padding-right: 0px !important;
	--content-width: 100% !important;
	position: relative;
	display: block !important;
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 10px 0 30px !important;
}

/* -------------------------------------------------------------------- track */
.ath-hs .ath-hs__view {
	position: relative !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: var(--hs-gap) !important;
	grid-template-columns: none !important;
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 6px var(--hs-gutter) 10px !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--hs-gutter);
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
}
.ath-hs .ath-hs__view::-webkit-scrollbar { display: none; }
.ath-hs .ath-hs__view.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ath-hs .ath-hs__view.is-dragging .ath-hs__card { pointer-events: none; }

/* -------------------------------------------------------------------- cards */
.ath-hs .ath-hs__card {
	--min-height: 0px !important;
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	justify-content: flex-end !important;
	align-items: stretch !important;
	flex: 0 0 auto !important;
	width: clamp(240px, 27vw, 400px) !important;
	max-width: none !important;
	height: clamp(320px, 32vw, 430px) !important;
	min-height: 0 !important;
	grid-column: auto !important;
	margin: 0 !important;
	padding: 0 28px 30px !important;
	gap: 0 !important;
	border-radius: 4px;
	overflow: hidden;
	isolation: isolate;
	background-size: cover !important;
	background-position: center !important;
	text-decoration: none !important;
	scroll-snap-align: start;
	box-shadow: 0 18px 40px -24px rgba(16, 14, 14, .45);
	transition: transform .7s var(--hs-ease), box-shadow .7s var(--hs-ease);
	-webkit-user-drag: none;
}
.ath-hs .ath-hs__card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(16, 14, 14, .55); }
.ath-hs .ath-hs__card::before {
	/* Replaces Elementor's heavy black overlay with a soft one (also on cards without an overlay). */
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	z-index: 1 !important;
	pointer-events: none;
	opacity: 1 !important;
	background-image: linear-gradient(180deg, rgba(16, 14, 14, .12) 0%, rgba(16, 14, 14, 0) 32%, rgba(16, 14, 14, .86) 100%) !important;
	transition: opacity .7s;
}
.ath-hs .ath-hs__card > .elementor-widget { position: relative; z-index: 2; margin: 0 !important; width: 100%; }
.ath-hs .ath-hs__card .elementor-heading-title { margin: 0 !important; text-align: left !important; }
.ath-hs .ath-hs__card > .elementor-widget:first-of-type .elementor-heading-title {
	font-family: var(--hs-display) !important;
	font-weight: 300 !important;
	font-size: clamp(26px, 2.3vw, 36px) !important;
	line-height: 1.1 !important;
	letter-spacing: -.01em !important;
	color: #fff !important;
	text-transform: none !important;
}
.ath-hs .ath-hs__card > .elementor-widget:nth-of-type(2) { margin-top: 12px !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .22); }
.ath-hs .ath-hs__card > .elementor-widget:nth-of-type(2) .elementor-heading-title {
	font: 400 11px/1.6 var(--hs-body) !important;
	letter-spacing: .18em !important;
	text-transform: uppercase !important;
	color: rgba(255, 255, 255, .8) !important;
}
.ath-hs .ath-hs__arrow { display: inline; position: relative; left: 0; color: var(--hs-gold); font-weight: 300; transition: left .6s var(--hs-ease); }
.ath-hs .ath-hs__card:hover .ath-hs__arrow { left: 6px; }
.ath-hs .ath-hs__num {
	position: absolute;
	top: 24px;
	left: 28px;
	z-index: 2;
	font: 400 12px var(--hs-display);
	letter-spacing: .14em;
	color: var(--hs-gold);
}

/* --------------- all devices: animated hand showing the swipe / drag (added by script) */
.ath-hs__swipe {
	position: absolute;
	top: 42%;
	left: 50%;
	z-index: 6;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(16, 14, 14, .38);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
}
.ath-hs__swipe svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.ath-hs__swipe::before {
	/* Little trail behind the finger. */
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--hs-gold, #c9a876), rgba(201, 168, 118, 0));
	transform: translateY(-1px);
}
.ath-hs__swipe.is-playing { animation: ath-hs-swipe 1.7s var(--hs-ease, cubic-bezier(.2, .7, .1, 1)) 2 both; }
.ath-hs__swipe.is-playing::before { animation: ath-hs-trail 1.7s var(--hs-ease, cubic-bezier(.2, .7, .1, 1)) 2 both; }
.ath-hs__swipe.is-done { animation: none; opacity: 0; transition: opacity .3s; }
@keyframes ath-hs-swipe {
	0%   { opacity: 0; transform: translateX(46px); }
	18%  { opacity: 1; transform: translateX(46px); }
	70%  { opacity: 1; transform: translateX(-46px); }
	100% { opacity: 0; transform: translateX(-46px); }
}
@keyframes ath-hs-trail {
	0%, 18% { width: 0; }
	70%     { width: 70px; }
	100%    { width: 0; }
}
.ath-hs__swipe { display: flex; }
.ath-hs.is-static .ath-hs__swipe { display: none; }
@media (min-width: 768px) {
	.ath-hs__swipe { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
	.ath-hs__swipe svg { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.ath-hs__swipe.is-playing { animation: none; opacity: 1; }
	.ath-hs__swipe.is-playing::before { animation: none; }
}

/* ------------------------------------------------------------ tablet / phone */
@media (max-width: 1024px) {
	.ath-hs { --hs-gap: 14px; }
	.ath-hs .ath-hs__view { cursor: auto; }
	.ath-hs .ath-hs__card { width: clamp(230px, 44vw, 360px) !important; height: clamp(320px, 58vw, 440px) !important; }
}
@media (max-width: 767px) {
	.ath-hs .ath-hs__card { width: 76vw !important; height: min(108vw, 440px) !important; padding: 0 22px 24px !important; }
	.ath-hs .ath-hs__num { left: 22px; top: 20px; }
}
@media (hover: none) {
	.ath-hs .ath-hs__card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ath-hs .ath-hs__view { scroll-behavior: auto; }
	.ath-hs .ath-hs__card, .ath-hs .ath-hs__arrow { transition: none !important; }
}
