/*
 * Single trekking package. Mobile first; built on the tokens and components in
 * base/global.css (buttons, trip card, eyebrow, section head).
 */

.hf-trek {
	--trek-nav-h: 56px;
	--trek-sticky-top: calc(var(--hf-header-offset, 0px) + var(--trek-nav-h) + 16px);
}

.hf-trek__crumbs {
	padding-block: var(--sp-5) 0;
	color: var(--hf-muted);
}

.hf-trek__crumbs [aria-current] {
	color: var(--hf-ink);
}

/* ---------- Gallery hero ---------- */

.hf-gallery {
	padding-top: var(--sp-4);
}

.hf-gallery > .hf-container {
	position: relative;
}

/* Phones: one large photo and two stacked beside it. Larger screens add two more tiles. */
.hf-gallery__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 8px;
	height: clamp(240px, 68vw, 340px);
	overflow: hidden;
	border-radius: var(--radius-m);
}

.hf-gallery__tile {
	position: relative;
	min-width: 0;
	padding: 0;
	border: 0;
	background: var(--hf-surface-sunk);
	overflow: hidden;
	cursor: zoom-in;
}

.hf-gallery__tile--main {
	grid-row: span 2;
}

/* Only three photos on phones; the others stay in the lightbox. */
.hf-gallery__tile:nth-child(n + 4) {
	display: none;
}

.hf-gallery__grid--1 {
	grid-template-columns: 1fr;
}

.hf-gallery__grid--2 .hf-gallery__tile:nth-child(2) {
	grid-row: span 2;
}

.hf-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease-out);
}

.hf-gallery__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 33, 56, 0);
	transition: background-color var(--dur-3) var(--ease-out);
}

.hf-gallery__tile:hover .hf-gallery__image {
	transform: scale(1.04);
}

.hf-gallery__tile:hover::after {
	background: rgba(0, 33, 56, 0.12);
}

.hf-gallery__tile:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: -3px;
}

.hf-gallery__more {
	display: none;
}

.hf-gallery__all {
	position: absolute;
	left: calc(var(--gutter) + 10px);
	bottom: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.95);
	color: var(--hf-ink);
	font-size: var(--fs-xs);
	font-weight: 700;
	box-shadow: var(--shadow-2);
	transition:
		background-color var(--dur-2) var(--ease-out),
		transform var(--dur-1) var(--ease-out);
}

.hf-gallery__all:hover {
	background: #fff;
	transform: translateY(-1px);
}

.hf-gallery__all .hf-icon {
	width: 18px;
	height: 18px;
	color: var(--hf-blue-500);
}

@media (min-width: 768px) {
	.hf-gallery {
		padding-top: var(--sp-6);
	}

	.hf-gallery__grid {
		grid-template-columns: 2fr 1fr 1fr;
		height: clamp(380px, 40vw, 540px);
		border-radius: var(--radius-l);
	}

	.hf-gallery__tile:nth-child(n + 4) {
		display: block;
	}

	.hf-gallery__grid--1 {
		grid-template-columns: 1fr;
	}

	.hf-gallery__grid--2 {
		grid-template-columns: 2fr 1fr;
	}

	.hf-gallery__grid--3 {
		grid-template-columns: 2fr 1fr;
	}

	.hf-gallery__grid--4 .hf-gallery__tile:nth-child(2) {
		grid-column: span 2;
	}

	.hf-gallery__more {
		position: absolute;
		inset: 0;
		z-index: 1;
		display: grid;
		place-items: center;
		background: rgba(0, 33, 56, 0.55);
		color: #fff;
		font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
		font-weight: 800;
	}

	.hf-gallery__all {
		left: auto;
		right: calc(var(--gutter) + 16px);
		bottom: 16px;
		padding-inline: 16px;
	}
}

/* ---------- Layout: content column + booking sidebar ---------- */

.hf-trek__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: var(--section-y);
}

.hf-trek__main {
	display: contents;
}

@media (min-width: 1024px) {
	.hf-trek__layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		column-gap: clamp(32px, 4vw, 64px);
		align-items: start;
	}

	.hf-trek__layout > *,
	.hf-trek__main > * {
		grid-column: 1;
	}

	.hf-trek__main > .hf-trek__aside {
		grid-column: 2;
		grid-row: 1 / span 40;
		align-self: stretch;
		padding-top: var(--sp-8);
	}
}

/* ---------- Introduction ---------- */

.hf-trek-intro {
	padding-top: var(--sp-8);
}

.hf-trek-intro__region {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: var(--sp-3);
	color: var(--color-accent-text);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hf-trek-intro__region:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hf-trek-intro__region .hf-icon {
	width: 16px;
	height: 16px;
}

.hf-trek-intro__title {
	font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.hf-trek-intro__lead {
	max-width: 72ch;
	margin-top: var(--sp-4);
	color: var(--hf-text);
	font-size: 1.0625rem;
	line-height: 1.8;
	letter-spacing: 0.002em;
}

.hf-trek-intro__reviews {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: var(--sp-5);
	color: var(--hf-ink);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.hf-trek-intro__reviews:hover {
	color: var(--color-primary-text);
}

.hf-trek-intro__reviews > .hf-icon {
	width: 16px;
	height: 16px;
	color: var(--hf-muted);
}

.hf-trek-intro__ta {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #00aa6c;
	color: #fff;
}

.hf-trek-intro__ta .hf-icon {
	width: 18px;
	height: 18px;
}

.hf-trek-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: var(--sp-6);
}

.hf-trek-facts__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 68px;
	padding: 12px 14px 12px 66px;
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background: #fff;
}

.hf-trek-facts__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--hf-blue-50);
	color: var(--hf-blue-600);
}

.hf-trek-facts__icon .hf-icon {
	width: 20px;
	height: 20px;
}

.hf-trek-facts dt {
	color: var(--hf-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hf-trek-facts dd {
	min-width: 0;
	color: var(--hf-ink);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

@media (min-width: 640px) {
	.hf-trek-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Booking card ---------- */

.hf-trek__aside {
	padding-top: var(--sp-6);
}

.hf-book {
	position: sticky;
	top: var(--trek-sticky-top);
	padding: var(--sp-6);
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-l);
	background: #fff;
	box-shadow: var(--shadow-2);
	transition: top var(--dur-3) var(--ease-out);
}

.hf-book__badge {
	display: inline-flex;
	margin-bottom: var(--sp-4);
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: var(--hf-orange-50);
	color: var(--hf-orange-700);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hf-book__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
}

.hf-book__from,
.hf-book__unit {
	color: var(--hf-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.hf-book__from {
	flex-basis: 100%;
}

.hf-book__amount {
	color: var(--hf-ink);
	font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.hf-book__amount--ask {
	font-size: 1.5rem;
}

.hf-book__currency {
	margin-right: 2px;
	font-size: 0.55em;
	vertical-align: 0.5em;
}

.hf-book__was {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	flex-basis: 100%;
	margin-top: 6px;
	font-size: var(--fs-sm);
}

.hf-book__was del {
	color: var(--hf-muted);
}

.hf-book__was span {
	color: var(--color-success);
	font-weight: 700;
}

.hf-book__groups {
	margin-top: var(--sp-5);
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
}

.hf-book__groups summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 14px;
	color: var(--hf-ink);
	font-size: var(--fs-sm);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.hf-book__groups summary::-webkit-details-marker {
	display: none;
}

.hf-book__groups summary .hf-icon {
	width: 18px;
	height: 18px;
	color: var(--hf-blue-600);
}

.hf-book__chev {
	margin-left: auto;
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-book__groups[open] .hf-book__chev {
	transform: rotate(180deg);
}

.hf-book__groups table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.hf-book__groups :is(th, td) {
	padding: 10px 14px;
	border-top: 1px solid var(--hf-line);
	text-align: left;
}

.hf-book__groups th {
	color: var(--hf-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hf-book__groups td:last-child {
	color: var(--hf-ink);
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.hf-book__actions {
	display: grid;
	gap: 10px;
	margin-top: var(--sp-5);
}

.hf-book__actions .hf-button {
	width: 100%;
}

.hf-book__actions .hf-icon {
	width: 18px;
	height: 18px;
}

.hf-book__help {
	display: grid;
	gap: 4px;
	margin-top: var(--sp-5);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--hf-line);
}

.hf-book__help a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	color: var(--hf-ink);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.hf-book__help a:hover {
	color: var(--color-primary-text);
}

.hf-book__help .hf-icon {
	width: 18px;
	height: 18px;
	color: var(--hf-blue-600);
}

/* Inquiry dialog */
.hf-inquiry {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	margin: auto;
	padding: clamp(20px, 4vw, 32px);
	border: 0;
	border-radius: var(--radius-l);
	background: #fff;
	box-shadow: var(--shadow-3);
}

.hf-inquiry::backdrop {
	background: rgba(0, 33, 56, 0.6);
}


.hf-inquiry__title {
	font-size: 1.375rem;
	font-weight: 800;
}


.hf-inquiry .hf-form-wrapper {
	max-width: none;
}

/* ---------- Section navigation ---------- */

.hf-trek-nav {
	position: sticky;
	top: var(--hf-header-offset, 0px);
	z-index: var(--z-sticky);
	margin-top: var(--sp-8);
	border-bottom: 1px solid var(--hf-line);
	background: rgba(255, 255, 255, 0.96);
	transition: top var(--dur-3) var(--ease-out);
}

@supports (backdrop-filter: blur(1px)) {
	.hf-trek-nav {
		background: rgba(255, 255, 255, 0.88);
		backdrop-filter: saturate(160%) blur(12px);
	}
}

.hf-trek-nav__list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.hf-trek-nav__list::-webkit-scrollbar {
	display: none;
}

.hf-trek-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--trek-nav-h);
	padding: 0 14px;
	color: var(--hf-muted);
	font-size: var(--fs-sm);
	font-weight: 700;
	white-space: nowrap;
	transition: color var(--dur-2) var(--ease-out);
}

.hf-trek-nav__link:hover,
.hf-trek-nav__link.is-active {
	color: var(--hf-ink);
}

.hf-trek-nav__link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--hf-blue-500);
	transform: scaleX(0);
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-trek-nav__link.is-active::after {
	transform: scaleX(1);
}

.hf-trek-nav__list > li:first-child .hf-trek-nav__link {
	padding-left: 0;
}

.hf-trek-nav__list > li:first-child .hf-trek-nav__link::after {
	left: 0;
}

/*
 * Phones and tablets: the site header scrolls away with the page and the trip
 * tabs stay pinned at the very top. The header no longer slides in and out, so
 * the tabs never move (before, they followed it up and down while scrolling).
 */
@media (max-width: 1023px) {
	html:has(body.single-package) {
		--hf-header-offset: 0px !important;
	}

	.single-package .hf-header {
		position: relative;
	}

	.single-package .hf-header.is-hidden {
		transform: none;
	}

	.hf-trek-nav {
		top: 0;
		background: #fff;
		backdrop-filter: none;
		transition: none;
	}

	.hf-trek-nav__list {
		scroll-snap-type: x proximity;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}

	.hf-trek-nav__list > li {
		flex: 0 0 auto;
		scroll-snap-align: start;
		scroll-margin-inline: 16px;
	}
}

/* ---------- Sections ---------- */

.hf-trek-section {
	padding-top: clamp(40px, 5vw, 64px);
	scroll-margin-top: calc(var(--hf-header-offset, 0px) + var(--trek-nav-h) + 8px);
}

.hf-trek-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px var(--sp-6);
	margin-bottom: var(--sp-5);
}

.hf-trek-section__head .hf-trek-section__title {
	margin-bottom: 0;
}

.hf-trek-section__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: var(--sp-6);
	color: var(--hf-ink);
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hf-trek-section__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--hf-blue-50);
	color: var(--hf-blue-600);
}

.hf-trek-section__icon .hf-icon {
	width: 22px;
	height: 22px;
}

.hf-trek-note {
	margin-bottom: var(--sp-5);
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius-m);
	background: var(--hf-surface-alt);
}

/* Editor content inside the package page */
.hf-trek-prose {
	max-width: 72ch;
	color: var(--hf-text);
	font-size: 1.0625rem;
	line-height: 1.8;
	letter-spacing: 0.002em;
}

.hf-trek-prose + .hf-trek-prose {
	margin-top: 1.1em;
}

.hf-trek-prose > * + * {
	margin-top: 1em;
}

.hf-trek-prose :is(p, li, td, span, div) {
	text-align: left !important;
}

.hf-trek-prose :is(h2, h3, h4, h5) {
	margin-top: 1.75em;
	margin-bottom: 0.5em;
	color: var(--hf-ink);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.012em;
}

.hf-trek-prose h2 {
	font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.4375rem);
}

.hf-trek-prose h3 {
	font-size: 1.1875rem;
}

.hf-trek-prose :is(h4, h5) {
	font-size: 1.0625rem;
}

.hf-trek-prose p:empty,
.hf-trek-prose blockquote:empty {
	display: none;
}

.hf-trek-prose blockquote {
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--hf-blue-500);
	color: var(--hf-ink);
	font-style: italic;
}

.hf-trek-prose > :first-child {
	margin-top: 0;
}

.hf-trek-prose strong {
	color: var(--hf-ink);
}

.hf-trek-prose a {
	color: var(--color-link);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hf-trek-prose a:hover {
	text-decoration-thickness: 2px;
}

.hf-trek-prose ul,
.hf-trek-prose ol {
	padding-left: 1.3em;
}

.hf-trek-prose ul {
	list-style: none;
	padding-left: 0;
}

.hf-trek-prose ul > li {
	position: relative;
	padding-left: 1.4em;
}

.hf-trek-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0.2em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hf-blue-500);
}

.hf-trek-prose ol {
	list-style: decimal;
}

.hf-trek-prose li + li {
	margin-top: 0.4em;
}

.hf-trek-prose img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-m);
}


/* Highlights and "Why book" panels (title = editor's first heading) */
.hf-trek-panel {
	margin-top: var(--sp-8);
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--hf-blue-100);
	border-left: 4px solid var(--hf-blue-500);
	border-radius: var(--radius-m);
	background: var(--hf-blue-50);
}

.hf-trek-panel + .hf-trek-panel {
	margin-top: var(--sp-5);
}

.hf-trek-panel__body {
	max-width: none;
}

.hf-trek-panel__body > :is(h2, h3):first-child {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--sp-4);
	font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
}

.hf-trek-panel__body > :is(h2, h3):first-child::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background: var(--hf-orange-500);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hf-trek-panel__body ul {
	display: grid;
	gap: 10px;
}

.hf-trek-panel__body ul > li {
	margin: 0;
	padding-left: 30px;
	line-height: 1.6;
}

.hf-trek-panel__body ul > li::before {
	top: 3px;
	left: 0;
	width: 20px;
	height: 20px;
	background: var(--hf-blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hf-trek-panel--why {
	border-color: #cdebd9;
	border-left-color: var(--hf-green-500);
	background: var(--hf-green-50);
}

.hf-trek-panel--why .hf-trek-panel__body > :is(h2, h3):first-child::before {
	background: var(--hf-green-700);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8.2 8 9 4.6-.8 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8.2 8 9 4.6-.8 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.hf-trek-panel--why .hf-trek-panel__body ul > li::before {
	background-color: var(--hf-green-700);
}

@media (min-width: 900px) {
	.hf-trek-panel__body ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 28px;
	}
}

/* ---------- Itinerary timeline ---------- */

.hf-itin__toggle {
	border: 0;
	background: none;
	cursor: pointer;
}

.hf-itin {
	position: relative;
	display: grid;
	gap: 12px;
	list-style: none;
}

.hf-itin::before {
	content: "";
	position: absolute;
	top: 28px;
	bottom: 28px;
	left: 27px;
	width: 2px;
	background: repeating-linear-gradient(to bottom, var(--hf-blue-200) 0 6px, transparent 6px 12px);
}

.hf-itin__day {
	position: relative;
}

.hf-itin__details {
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background: #fff;
	transition:
		border-color var(--dur-2) var(--ease-out),
		box-shadow var(--dur-2) var(--ease-out);
}

.hf-itin__details[open] {
	border-color: var(--hf-blue-200);
	box-shadow: var(--shadow-2);
}

.hf-itin__summary {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 10px 14px 10px 0;
	list-style: none;
	cursor: pointer;
}

.hf-itin__summary::-webkit-details-marker {
	display: none;
}

.hf-itin__summary:focus-visible {
	border-radius: var(--radius-m);
	outline-offset: -2px;
}

.hf-itin__badge {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	align-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	margin-left: -1px;
	border-radius: 50%;
	background: var(--hf-blue-50);
	color: var(--hf-blue-600);
	line-height: 1;
	transition:
		background-color var(--dur-2) var(--ease-out),
		color var(--dur-2) var(--ease-out);
}

.hf-itin__details[open] .hf-itin__badge {
	background: var(--hf-blue-500);
	color: #fff;
}

.hf-itin__badge-label {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hf-itin__badge-num {
	font-size: 1.25rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.hf-itin__heading {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	min-width: 0;
}

.hf-itin__title {
	color: var(--hf-ink);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.hf-itin__alt {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--hf-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.hf-itin__alt .hf-icon {
	width: 14px;
	height: 14px;
}

.hf-itin__chev {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hf-surface-alt);
	color: var(--hf-ink);
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-itin__chev .hf-icon {
	width: 18px;
	height: 18px;
}

.hf-itin__details[open] .hf-itin__chev {
	transform: rotate(180deg);
}

.hf-itin__content {
	padding: 0 var(--sp-5) var(--sp-5) 70px;
}

.hf-itin__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: var(--sp-4);
}

.hf-itin__facts > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 12px;
	border-radius: var(--radius-s);
	background: var(--hf-surface-alt);
}

.hf-itin__facts dt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hf-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.hf-itin__facts dt .hf-icon {
	width: 14px;
	height: 14px;
	color: var(--hf-blue-600);
}

.hf-itin__facts dd {
	color: var(--hf-ink);
	font-size: var(--fs-sm);
	font-weight: 700;
}

@media (max-width: 599px) {
	.hf-itin__content {
		padding-left: var(--sp-5);
	}
}

/* ---------- Fixed departures ---------- */

.hf-dates {
	display: grid;
	gap: 10px;
}

.hf-dates__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background: #fff;
}

.hf-dates__row.is-sold-out {
	background: var(--hf-surface-alt);
	opacity: 0.75;
}

.hf-dates__when {
	display: flex;
	align-items: center;
	gap: 12px;
	grid-column: 1 / -1;
}

.hf-dates__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--hf-blue-50);
	color: var(--hf-blue-600);
}

.hf-dates__icon .hf-icon {
	width: 20px;
	height: 20px;
}

.hf-dates__date {
	display: block;
	color: var(--hf-ink);
	font-weight: 700;
}

.hf-dates__to {
	color: var(--hf-muted);
	font-size: var(--fs-sm);
}

.hf-dates__status {
	justify-self: start;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--hf-green-50);
	color: var(--hf-green-700);
	font-size: 0.75rem;
	font-weight: 700;
}

.hf-dates__status--limited {
	background: var(--hf-orange-50);
	color: var(--hf-orange-700);
}

.hf-dates__status--not-available {
	background: #fdecec;
	color: var(--color-danger);
}

.hf-dates__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
}

.hf-dates__price del {
	color: var(--hf-muted);
	font-size: var(--fs-sm);
}

.hf-dates__price strong {
	color: var(--hf-ink);
	font-size: 1.25rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.hf-dates__price span {
	color: var(--hf-muted);
	font-size: var(--fs-xs);
}

.hf-dates__btn {
	grid-column: 1 / -1;
}

.hf-dates__btn.is-disabled {
	--btn-bg: var(--hf-surface-sunk);
	--btn-fg: var(--hf-muted);
	--btn-bg-hover: var(--hf-surface-sunk);
	cursor: not-allowed;
	box-shadow: none;
}

@media (min-width: 700px) {
	.hf-dates__row {
		grid-template-columns: minmax(0, 1.5fr) auto auto auto;
		gap: var(--sp-5);
	}

	.hf-dates__when,
	.hf-dates__btn {
		grid-column: auto;
	}
}

/* ---------- Includes / excludes ---------- */

.hf-incl {
	display: grid;
	gap: var(--grid-gap);
}

.hf-incl__card {
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background: #fff;
}

.hf-incl__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: var(--sp-4);
	font-size: 1.125rem;
	font-weight: 800;
}

.hf-incl__title .hf-icon {
	width: 24px;
	height: 24px;
}

.hf-incl__card--include .hf-incl__title .hf-icon {
	color: var(--hf-green-700);
}

.hf-incl__card--exclude .hf-incl__title .hf-icon {
	color: var(--color-danger);
}

.hf-incl__list {
	display: grid;
	gap: 10px;
}

.hf-incl__list li {
	position: relative;
	padding-left: 28px;
	color: var(--hf-text);
	line-height: 1.55;
}

.hf-incl__list li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--hf-green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b7a48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.hf-incl__card--exclude .hf-incl__list li::before {
	background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

@media (min-width: 760px) {
	.hf-incl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Route map and video ---------- */

.hf-trek-map {
	display: block;
	overflow: hidden;
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	cursor: zoom-in;
}

.hf-trek-map img {
	display: block;
	width: 100%;
	height: auto;
}

.hf-trek-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: #000;
}

.hf-trek-video img,
.hf-trek-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.hf-trek-video__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border: 0;
	background: rgba(0, 33, 56, 0.25);
	color: #fff;
	cursor: pointer;
	transition: background-color var(--dur-2) var(--ease-out);
}

.hf-trek-video__play:hover {
	background: rgba(0, 33, 56, 0.4);
}

.hf-trek-video__play .hf-icon {
	width: 76px;
	height: 76px;
	padding: 18px;
	border-radius: 50%;
	background: var(--hf-blue-500);
	box-shadow: var(--shadow-3);
}

/* ---------- Accordion (packing list, FAQ) ---------- */

.hf-accordion {
	display: grid;
	gap: 10px;
}

.hf-accordion__item {
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background: #fff;
	transition:
		border-color var(--dur-2) var(--ease-out),
		box-shadow var(--dur-2) var(--ease-out);
}

.hf-accordion__item[open] {
	border-color: var(--hf-blue-200);
	box-shadow: var(--shadow-2);
}

.hf-accordion__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 60px;
	padding: 12px 18px;
	list-style: none;
	cursor: pointer;
}

.hf-accordion__q::-webkit-details-marker {
	display: none;
}

.hf-accordion__q h3 {
	color: var(--hf-ink);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
}

.hf-accordion__q:hover h3 {
	color: var(--color-primary-text);
}

.hf-accordion__q:focus-visible {
	border-radius: var(--radius-m);
	outline-offset: -2px;
}

.hf-accordion__icon {
	position: relative;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--hf-blue-50);
}

.hf-accordion__icon::before,
.hf-accordion__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--hf-blue-600);
	transform: translate(-50%, -50%);
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.hf-accordion__item[open] .hf-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.hf-accordion__a {
	padding: 0 18px 18px;
}

/* ---------- Packing list: icon badges, item counts, tick bullets ---------- */

.hf-pack .hf-accordion__q {
	gap: var(--sp-4);
	min-height: 76px;
	padding-block: 14px;
}

.hf-pack .hf-accordion__q h3 {
	flex: 1;
	min-width: 0;
}

.hf-pack__badge {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border: 1px solid var(--hf-blue-100);
	border-radius: 14px;
	background: linear-gradient(145deg, #fff 0%, var(--hf-blue-50) 100%);
	color: var(--hf-blue-600);
	transition:
		background-color var(--dur-3) var(--ease-out),
		border-color var(--dur-3) var(--ease-out),
		color var(--dur-3) var(--ease-out),
		box-shadow var(--dur-3) var(--ease-out),
		transform var(--dur-3) var(--ease-out);
}

.hf-pack__badge .hf-icon {
	width: 24px;
	height: 24px;
}

.hf-pack .hf-accordion__q:hover .hf-pack__badge {
	border-color: var(--hf-blue-200);
	transform: translateY(-1px);
}

.hf-pack .hf-accordion__item[open] .hf-pack__badge {
	border-color: transparent;
	background: linear-gradient(145deg, var(--hf-blue-500) 0%, var(--hf-blue-600) 100%);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(var(--hf-blue-rgb), 0.7);
}

.hf-pack__count {
	flex-shrink: 0;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: var(--hf-surface-alt);
	color: var(--hf-muted);
	font-size: var(--fs-xs);
	font-weight: 700;
	white-space: nowrap;
}

.hf-pack .hf-accordion__item[open] .hf-pack__count {
	background: var(--hf-blue-50);
	color: var(--hf-blue-700);
}

.hf-pack .hf-accordion__a {
	padding: 4px 20px 22px 84px;
}

.hf-pack .hf-accordion__a ul {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.hf-pack .hf-accordion__a li {
	position: relative;
	padding-left: 32px;
	line-height: 1.55;
}

.hf-pack .hf-accordion__a li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--hf-green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b7a48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 599px) {
	.hf-pack .hf-accordion__q {
		gap: 12px;
		min-height: 68px;
		padding-inline: 14px;
	}

	.hf-pack__badge {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.hf-pack__badge .hf-icon {
		width: 22px;
		height: 22px;
	}

	.hf-pack .hf-accordion__a {
		padding: 2px 16px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hf-pack__badge {
		transition: none;
	}

	.hf-pack .hf-accordion__q:hover .hf-pack__badge {
		transform: none;
	}
}

/* ---------- Reviews ---------- */

.hf-trek-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: var(--sp-5);
}

.hf-trek-platform {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 10px;
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--hf-ink);
	transition: border-color var(--dur-2) var(--ease-out);
}

.hf-trek-platform:hover {
	border-color: var(--hf-blue-200);
}

.hf-trek-platform > .hf-icon {
	width: 16px;
	height: 16px;
	color: var(--hf-muted);
}

.hf-trek-platform strong {
	display: block;
	font-size: var(--fs-sm);
}

.hf-trek-platform small {
	color: var(--hf-muted);
	font-size: 0.75rem;
}

.hf-trek-platform__logo {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
}

.hf-trek-platform--tripadvisor .hf-trek-platform__logo {
	background: #00aa6c;
}

.hf-trek-platform--google .hf-trek-platform__logo {
	background: #4285f4;
}

.hf-trek-platform__logo .hf-icon {
	width: 20px;
	height: 20px;
}

.hf-trek-reviews {
	display: grid;
	gap: var(--grid-gap);
}

.hf-review {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--sp-6);
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background: #fff;
}

.hf-review__quote {
	width: 28px;
	height: 28px;
	margin-bottom: var(--sp-3);
	color: var(--hf-blue-500);
}

.hf-review__text {
	color: var(--hf-text);
	line-height: 1.7;
}

.hf-review__text > * + * {
	margin-top: 0.8em;
}

.hf-review__text.is-clamped {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hf-review__more {
	align-self: flex-start;
	margin-top: var(--sp-2);
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-link);
	font-size: var(--fs-sm);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hf-review__by {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: var(--sp-5);
}

.hf-review__photo {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.hf-review__photo--initial {
	display: grid;
	place-items: center;
	background: var(--hf-blue-50);
	color: var(--hf-blue-600);
	font-weight: 800;
}

.hf-review__name {
	font-size: var(--fs-sm);
	font-weight: 800;
}

@media (min-width: 760px) {
	.hf-trek-reviews {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Related treks ---------- */

.hf-trek-related {
	border-top: 1px solid var(--hf-line);
}

/* ---------- Lightbox ---------- */

.hf-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 18, 31, 0.97);
	color: #fff;
	overflow: hidden;
}

.hf-lightbox[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
}

.hf-lightbox::backdrop {
	background: rgba(0, 18, 31, 0.97);
}

.hf-lightbox__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
}

.hf-lightbox__counter {
	font-size: var(--fs-sm);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hf-lightbox__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background-color var(--dur-2) var(--ease-out);
}

.hf-lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.22);
}

.hf-lightbox__btn .hf-icon {
	width: 24px;
	height: 24px;
}

.hf-lightbox__stage {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 10px;
	min-height: 0;
	padding: 0 16px;
	touch-action: pan-y;
}

.hf-lightbox__image {
	max-width: 100%;
	max-height: calc(100dvh - 200px);
	border-radius: var(--radius-s);
	object-fit: contain;
	user-select: none;
	transition: opacity var(--dur-2) var(--ease-out);
}

.hf-lightbox__image.is-loading {
	opacity: 0.4;
}

.hf-lightbox__caption {
	max-width: 70ch;
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--fs-sm);
	text-align: center;
}

.hf-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.hf-lightbox__nav--prev {
	left: 12px;
}

.hf-lightbox__nav--next {
	right: 12px;
}

.hf-lightbox__thumbs {
	display: flex;
	gap: 8px;
	padding: 12px 16px 16px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.hf-lightbox__thumbs button {
	flex-shrink: 0;
	width: 72px;
	height: 54px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	overflow: hidden;
	opacity: 0.55;
	cursor: pointer;
	transition:
		opacity var(--dur-2) var(--ease-out),
		border-color var(--dur-2) var(--ease-out);
}

.hf-lightbox__thumbs button[aria-current="true"],
.hf-lightbox__thumbs button:hover {
	opacity: 1;
}

.hf-lightbox__thumbs button[aria-current="true"] {
	border-color: var(--hf-blue-500);
}

.hf-lightbox__thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 599px) {
	.hf-lightbox__nav {
		top: auto;
		bottom: 96px;
		transform: none;
	}
}



/* ---------- Itinerary photos: one fills the width, two or more share a row ---------- */

.hf-media-row {
	display: grid;
	gap: 10px;
	margin-block: 1.25em;
}

.hf-media-row--2,
.hf-media-row--3 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hf-media-row > *,
.hf-media-row figure {
	margin: 0;
}

.hf-media-row img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: var(--radius-m);
	object-fit: cover;
}

.hf-media-row--1 img {
	height: auto;
	max-height: 560px;
}

.hf-media-row--2 img,
.hf-media-row--3 img {
	aspect-ratio: 4 / 3;
}

.hf-media-row figcaption {
	margin-top: 6px;
	color: var(--hf-muted);
	font-size: var(--fs-xs);
	text-align: center;
}

@media (min-width: 900px) {
	.hf-media-row--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Group price table in the booking card (compact version of the table design). */
.hf-book__groups table {
	overflow: hidden;
	border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.hf-book__groups thead th {
	background: var(--hf-surface-alt);
}

.hf-book__groups tbody tr:nth-child(even) td {
	background: var(--hf-surface-alt);
}

/* ---------- Inquiry dialog and form ---------- */

.hf-inquiry {
	width: min(600px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	padding: 0;
	overflow: auto;
}

.hf-inquiry__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: clamp(20px, 4vw, 28px) clamp(20px, 4vw, 32px);
	background:
		radial-gradient(80% 140% at 100% 0%, rgba(var(--hf-blue-rgb), 0.6) 0%, rgba(var(--hf-blue-rgb), 0) 70%),
		linear-gradient(135deg, var(--hf-deep-500) 0%, #00406b 100%);
	color: #fff;
}

.hf-inquiry__kicker {
	margin-bottom: 4px;
	color: #ffc58f;
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}

.hf-inquiry .hf-inquiry__title {
	color: #fff;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hf-inquiry__close {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	margin: -4px -8px 0 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background-color var(--dur-2) var(--ease-out);
}

.hf-inquiry__close:hover {
	background: rgba(255, 255, 255, 0.26);
}

.hf-inquiry__close .hf-icon {
	width: 20px;
	height: 20px;
}

.hf-inquiry__body {
	padding: clamp(20px, 4vw, 32px);
}

.hf-inquiry__intro {
	margin-bottom: var(--sp-5);
	color: var(--hf-text);
	font-size: var(--fs-sm);
}

.hf-inquiry__talk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	margin-top: var(--sp-5);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--hf-line);
	color: var(--hf-muted);
	font-size: var(--fs-sm);
}

.hf-inquiry__talk a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	color: var(--hf-ink);
	font-weight: 700;
}

.hf-inquiry__talk a:hover {
	color: var(--color-primary-text);
}

.hf-inquiry__talk .hf-icon {
	width: 18px;
	height: 18px;
	color: var(--hf-blue-600);
}

.hf-iform__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.hf-iform__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hf-iform__field--full,
.hf-iform__submit {
	grid-column: 1 / -1;
}

.hf-iform label {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	color: var(--hf-ink);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.hf-iform__optional {
	color: var(--hf-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.hf-iform__control {
	position: relative;
}

.hf-iform__control > .hf-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 18px;
	height: 18px;
	color: var(--hf-muted);
	transform: translateY(-50%);
	pointer-events: none;
	transition: color var(--dur-2) var(--ease-out);
}

.hf-iform__control:focus-within > .hf-icon {
	color: var(--hf-blue-600);
}

.hf-theme-form.hf-iform__form :is(input, textarea) {
	min-height: 50px;
	border-radius: var(--radius-s);
	background: var(--hf-surface-alt);
	font-size: 1rem;
}

.hf-theme-form.hf-iform__form .hf-iform__control input {
	padding-left: 42px;
}

.hf-theme-form.hf-iform__form :is(input, textarea):focus {
	background: #fff;
}

.hf-theme-form.hf-iform__form textarea {
	min-height: 120px;
	resize: vertical;
}

.hf-iform__btn {
	width: 100%;
	min-height: 52px;
	border-radius: var(--radius-pill);
	background-color: var(--color-primary);
	font-size: 1rem;
}

.hf-iform__btn:hover {
	background-color: var(--color-primary-hover);
}

.hf-iform__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--hf-muted);
	font-size: var(--fs-xs);
	text-align: center;
}

.hf-iform__note .hf-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.hf-iform .hf-alert {
	border-radius: var(--radius-s);
	font-weight: 600;
}

@media (max-width: 479px) {
	.hf-iform__form {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Book link loading state (trek.js) ---------- */

.hf-button.is-loading {
	cursor: progress;
	pointer-events: none;
}

.hf-button.is-loading::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: hf-book-spin 0.7s linear infinite;
}

@keyframes hf-book-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hf-button.is-loading::before {
		animation-duration: 2s;
	}
}
