/**
 * LOA Iconic Destinations — UI-07 (desktop carousel) + UI-08 (mobile
 * touch carousel, media block at end). Breakpoint matches the rest of
 * the theme's interim 1024px (Tyler to confirm). Consumes
 * tokens.css exclusively. Scroll/disable-state behavior lives in
 * destinations.js.
 *
 * Content: Byrne 2026-07-29 replaced the doc's 4 Figma placeholder
 * destinations (Switzerland/Maldives/Italy/Japan) with the real
 * launch roster (Dominican Republic/Budapest/California/Arizona) and
 * supplied his own images — see inc/content.php.
 *
 * DEVIATION - card image crop: doc tech note #10 (125% width, -12.5%
 * left offset) IS a genuine, consistently-applied formula — Figma's
 * own reference code uses those exact numbers on all 4 desktop card
 * instances, unlike Specialties where each instance had different
 * one-off insets. Reproduced literally below, paired with
 * object-fit: cover so it still holds for our real (differently-
 * aspected) source images without distortion. Mobile card crop in the
 * Figma file WAS per-instance-tuned (three different height/offset
 * sets across 3 cards) — same one-off-artifact situation as
 * Specialties, so mobile uses plain object-fit: cover instead.
 */

.loa-destinations {
	position: relative;
	background: var(--loa-destinations-bg);
	padding-block: var(--loa-destinations-pad-y);
	padding-inline: var(--loa-destinations-pad-x);
	box-sizing: border-box;
}

.loa-destinations__inner {
	max-width: var(--loa-max-width);
	margin-inline: auto;
	padding-inline: var(--loa-destinations-inner-pad-x);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--loa-destinations-header-gap);
}

.loa-destinations__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.loa-destinations__heading-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.loa-destinations__eyebrow {
	margin: 0;
	font-family: var(--loa-font-body);
	font-size: var(--loa-destinations-eyebrow-size);
	font-weight: 700;
	letter-spacing: var(--loa-destinations-eyebrow-tracking);
	text-transform: uppercase;
	color: var(--loa-gold);
}

.loa-destinations__h2 {
	margin: 0;
	font-family: var(--loa-font-display);
	font-size: var(--loa-destinations-h2-size);
	line-height: 40px;
	font-weight: 500;
	color: #fff;
}

.loa-destinations__arrows {
	display: flex;
	gap: 16px;
}

.loa-destinations__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--loa-destinations-arrow-size);
	height: var(--loa-destinations-arrow-size);
	border-radius: 9999px;
	border: 1px solid var(--loa-destinations-arrow-border);
	background: transparent;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: border-color var(--loa-speed) var(--loa-ease),
	            background var(--loa-speed) var(--loa-ease),
	            opacity var(--loa-speed) var(--loa-ease);
}

.loa-destinations__arrow svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.loa-destinations__arrow:hover,
.loa-destinations__arrow:focus-visible {
	border-color: var(--loa-gold);
	color: var(--loa-gold);
}

.loa-destinations__arrow:focus-visible {
	outline: 2px solid var(--loa-gold);
	outline-offset: 2px;
}

/* Boundary state, toggled by destinations.js as the track scrolls. */
.loa-destinations__arrow:disabled {
	opacity: 0.35;
	cursor: default;
	border-color: var(--loa-destinations-arrow-border);
	color: #fff;
}

.loa-destinations__viewport {
	overflow: hidden;
	width: 100%;
	height: var(--loa-destinations-track-h);
}

.loa-destinations__track {
	display: flex;
	align-items: flex-start;
	gap: var(--loa-destinations-card-gap);
	height: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.loa-destinations__track::-webkit-scrollbar {
	display: none;
}

.loa-destinations__card {
	flex: 0 0 auto;
	width: var(--loa-destinations-card-w);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.loa-destinations__card-img-wrap {
	position: relative;
	width: 100%;
	height: var(--loa-destinations-card-img-h);
	overflow: hidden;
	border-radius: 4px;
}

.loa-destinations__card-img {
	position: absolute;
	top: 0;
	left: -12.5%;
	width: 125%;
	height: 100%;
	object-fit: cover;
}

.loa-destinations__card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.loa-destinations__label {
	margin: 0;
	font-family: var(--loa-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: var(--loa-destinations-label-tracking);
	text-transform: uppercase;
	color: var(--loa-destinations-label-color);
}

.loa-destinations__title {
	margin: 0;
	font-family: var(--loa-font-body);
	font-size: var(--loa-destinations-title-size);
	line-height: 32px;
	font-weight: 500;
	color: #fff;
}

.loa-destinations__descriptor {
	margin: 4px 0 0;
	font-family: var(--loa-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--loa-destinations-descriptor-color);
}

/* ==================================================================
 * UI-08 - Mobile destinations touch carousel. Doc: no descriptor
 * text on mobile cards (confirmed absent from Figma 111:16); arrow
 * buttons retained but smaller (40px); native touch-scroll replaces
 * click-driven scrollBy (destinations.js checks viewport width and
 * skips the JS increment on touch, letting momentum scrolling work
 * naturally — see script comments).
 * ================================================================== */
@media (max-width: 1024px) {
	.loa-destinations {
		background: var(--loa-destinations-m-bg);
		padding-block: var(--loa-destinations-m-pad-y);
		padding-inline: 0;
	}

	.loa-destinations__inner {
		max-width: none;
		padding-inline: 0;
		gap: 24px;
	}

	.loa-destinations__header {
		padding-inline: var(--loa-destinations-m-pad-left);
	}

	.loa-destinations__h2 {
		font-size: var(--loa-destinations-m-h2-size);
	}

	.loa-destinations__arrow {
		width: var(--loa-destinations-m-arrow-size);
		height: var(--loa-destinations-m-arrow-size);
	}

	.loa-destinations__arrow svg {
		width: 16px;
		height: 16px;
	}

	.loa-destinations__viewport {
		height: auto;
		overflow: visible;
	}

	.loa-destinations__track {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-left: var(--loa-destinations-m-pad-left);
		padding-right: var(--loa-destinations-m-pad-left);
		gap: var(--loa-destinations-m-card-gap);
	}

	.loa-destinations__card {
		width: var(--loa-destinations-m-card-w);
		gap: 12px;
	}

	.loa-destinations__card-img-wrap {
		height: var(--loa-destinations-m-card-img-h);
	}

	/* Per-instance Figma crop numbers didn't generalize (see file
	 * header) — plain cover, no oversize/offset needed at this size. */
	.loa-destinations__card-img {
		left: 0;
		width: 100%;
	}

	.loa-destinations__label {
		font-size: var(--loa-destinations-m-label-size);
	}

	.loa-destinations__title {
		font-size: var(--loa-destinations-m-title-size);
		line-height: 1.4;
	}

	/* UI-27 TN 3 (Byrne Owens 2026-10-07): the sub-title now carries the
	 * destination's draw rather than a venue blurb, so it shows on mobile
	 * too. Deliberate departure from the mobile Figma frame, which has no
	 * descriptor; the frame is stale on this point. */
	.loa-destinations__descriptor {
		font-size: var(--loa-destinations-m-descriptor-size);
		line-height: 20px;
	}
}
