/*
 * Design system: fonts, tokens, base elements and shared components.
 *
 * Brand colours are fixed: primary blue #009dc8, deep blue #005892, logo
 * green #29a664, accent orange #fd7e14. The primary blue fills buttons and
 * highlights (hover: deep blue). Small text and links use the deep blue
 * (7.47:1 on white) because white-on-primary is 3.15:1. Orange text uses
 * --hf-orange-700, green text --hf-green-700. Older variable names are kept as aliases at the end of
 * :root so existing page styles keep working.
 */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url("../../fonts/plus-jakarta-sans-latin-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback so the swap to the web font barely shifts layout. */
@font-face {
	font-family: "Plus Jakarta Sans Fallback";
	src: local("Arial");
	size-adjust: 104%;
	ascent-override: 98%;
	descent-override: 21%;
	line-gap-override: 0%;
}

:root {
	/* Brand */
	--hf-blue-50: #eefafd;
	--hf-blue-100: #d8f5fd;
	--hf-blue-200: #a3e3f5;
	--hf-blue-500: #009dc8;
	--hf-blue-600: #005892;
	--hf-blue-700: #004672;
	--hf-blue-900: #002f4c;
	--hf-blue-rgb: 0, 157, 200;
	--hf-orange-50: #fff4ea;
	--hf-orange-500: #fd7e14;
	--hf-orange-600: #e8700c;
	--hf-orange-700: #a64d06;
	--hf-deep-500: #005892;
	--hf-deep-700: #004672;
	--hf-deep-900: #002f4c;
	--hf-green-500: #29a664;
	--hf-green-700: #1b7a48;
	--hf-green-50: #ecf8f1;
	--hf-whatsapp: #25d366;

	/* Neutrals */
	--hf-ink: #0f1f33;
	--hf-text: #334155;
	--hf-muted: #5a6b80;
	--hf-line: #e3e9f1;
	--hf-line-strong: #cbd6e3;
	--hf-surface: #ffffff;
	--hf-surface-alt: #f6f8fb;
	--hf-surface-sunk: #eef2f7;

	/* Semantic roles */
	--color-primary: var(--hf-blue-500);
	--color-primary-hover: var(--hf-blue-600);
	--color-primary-text: var(--hf-blue-600);
	--color-on-primary: #ffffff;
	--color-accent: var(--hf-orange-500);
	--color-accent-hover: var(--hf-orange-600);
	--color-on-accent: var(--hf-ink);
	--color-accent-text: var(--hf-orange-700);
	--color-heading: var(--hf-ink);
	--color-body: var(--hf-text);
	--color-muted: var(--hf-muted);
	--color-link: var(--hf-blue-600);
	--color-success: var(--hf-green-700);
	--color-danger: #b91c1c;
	--color-focus: var(--hf-orange-500);

	/* Typography */
	--font-sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-display: clamp(2.375rem, 1.55rem + 3.6vw, 4.25rem);
	--fs-h1: clamp(2rem, 1.55rem + 2vw, 3.125rem);
	--fs-h2: clamp(1.625rem, 1.35rem + 1.25vw, 2.5rem);
	--fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
	--fs-h4: 1.125rem;
	--fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	--fs-body: 1rem;
	--fs-sm: 0.9375rem;
	--fs-xs: 0.8125rem;
	--fs-eyebrow: 0.8125rem;
	--lh-tight: 1.12;
	--lh-snug: 1.3;
	--lh-body: 1.65;
	--tracking-tight: -0.022em;
	--tracking-eyebrow: 0.14em;

	/* Spacing (4px base) */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 20px;
	--sp-6: 24px;
	--sp-8: 32px;
	--sp-10: 40px;
	--sp-12: 48px;
	--sp-16: 64px;
	--sp-20: 80px;
	--sp-24: 96px;
	--section-y: clamp(64px, 3rem + 4vw, 104px);
	--gutter: clamp(16px, 4vw, 32px);
	--container: 1240px;
	--container-narrow: 820px;
	--grid-gap: clamp(16px, 2vw, 28px);

	/* Shape and depth */
	--radius-xs: 6px;
	--radius-s: 10px;
	--radius-m: 16px;
	--radius-l: 24px;
	--radius-pill: 999px;
	--shadow-1: 0 1px 2px rgba(15, 31, 51, 0.06), 0 1px 3px rgba(15, 31, 51, 0.05);
	--shadow-2: 0 6px 16px -4px rgba(15, 31, 51, 0.1), 0 2px 6px -2px rgba(15, 31, 51, 0.06);
	--shadow-3: 0 18px 40px -12px rgba(15, 31, 51, 0.22), 0 6px 14px -6px rgba(15, 31, 51, 0.1);
	--ring: 0 0 0 3px var(--hf-surface), 0 0 0 5px var(--color-focus);

	/* Motion */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-1: 120ms;
	--dur-2: 200ms;
	--dur-3: 320ms;

	/* Layers */
	--z-sticky: 100;
	--z-header: 900;
	--z-menu: 950;
	--z-overlay: 1000;
	--z-modal: 1100;
	--z-float: 800;

	--header-h: 76px;

	/* Legacy aliases (used by older page styles). */
	--blue: var(--hf-blue-600);
	--primary: var(--hf-blue-700);
	--orange: var(--hf-orange-500);
	--white: #fff;
	--light: var(--hf-surface-alt);
	--dark: var(--hf-ink);
	--gray: var(--hf-muted);
	--gray-dark: var(--hf-text);
	--secondary: var(--hf-muted);
	--indigo: #6610f2;
	--purple: #6f42c1;
	--pink: #e83e8c;
	--red: #dc3545;
	--yellow: #ffc107;
	--green: #28a745;
	--teal: #20c997;
	--cyan: #17a2b8;
	--success: #28a745;
	--info: #17a2b8;
	--warning: #ffc107;
	--danger: #dc3545;
	--hf-primary: var(--hf-blue-600);
	--hf-secondary: var(--hf-orange-500);
	--hf-white: #fff;
	--hf-light-bg: var(--hf-blue-50);
	--hf-light-green: var(--hf-blue-700);
	--hf-dark-green: var(--hf-deep-500);
	--color-teal-700-rgb: 0, 88, 146;
	--focus-outline: 2px solid var(--color-focus);
	--font-family-base: var(--font-sans);
	--font-size-xs: 12px;
	--font-size-sm: 15px;
	--font-size-base: 14px;
	--font-size-md: 16px;
	--font-size-lg: 20px;
	--font-size-xl: 20px;
	--font-size-2xl: 24px;
	--font-size-3xl: 30px;
	--font-size-4xl: 36px;
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--line-height-tight: 1.3;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.6;
	--line-height-loose: 1.8;
	--letter-spacing-tighter: -0.02em;
	--letter-spacing-tight: -0.01em;
	--letter-spacing-normal: 0;
	--letter-spacing-wide: 0.01em;
	--space-0: 0;
	--space-1: 1px;
	--space-2: 2px;
	--space-4: 4px;
	--space-6: 6px;
	--space-8: 8px;
	--space-10: 10px;
	--space-12: 12px;
	--space-14: 14px;
	--space-16: 16px;
	--space-20: 20px;
	--space-24: 24px;
	--space-32: 32px;
	--space-40: 40px;
	--space-48: 48px;
	--radius-sm: var(--radius-xs);
	--radius-base: 8px;
	--radius-md: var(--radius-s);
	--radius-lg: 12px;
	--radius-full: var(--radius-pill);
	--shadow-xs: var(--shadow-1);
	--shadow-sm: var(--shadow-1);
	--shadow-md: var(--shadow-2);
	--shadow-lg: var(--shadow-2);
	--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
	--duration-fast: var(--dur-1);
	--duration-normal: var(--dur-2);
	--ease-standard: var(--ease-out);
	--container-sm: 640px;
	--container-md: 768px;
	--container-lg: 1024px;
	--container-xl: var(--container);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	min-height: 100%;
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-body);
	background: var(--hf-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.hf-scroll-lock {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-heading);
	font-weight: 700;
	line-height: var(--lh-snug);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

/* Default type scale; component classes override these (zero specificity). */
:where(h1) {
	font-size: var(--fs-h1);
	font-weight: 800;
	line-height: var(--lh-tight);
}

:where(h2) {
	font-size: var(--fs-h2);
	font-weight: 800;
	line-height: var(--lh-tight);
}

:where(h3) {
	font-size: var(--fs-h3);
}

:where(h4) {
	font-size: var(--fs-h4);
}

:where(small, figcaption) {
	font-size: var(--fs-xs);
}

p {
	text-wrap: pretty;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

img,
svg,
video {
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	touch-action: manipulation;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

::selection {
	background: var(--hf-blue-100);
	color: var(--hf-ink);
}

/* ---------- Utilities ---------- */

.screen-reader-text,
.hf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hf-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: calc(var(--z-modal) + 1);
	padding: 12px 18px;
	border-radius: var(--radius-s);
	background: var(--hf-ink);
	color: #fff;
	font-weight: 700;
	transform: translateY(-150%);
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-skip-link:focus {
	transform: none;
}

.hf-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.hf-container--narrow {
	max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.hf-section {
	padding-block: var(--section-y);
}

.hf-section--alt {
	background: var(--hf-surface-alt);
}

.hf-section--deep {
	background: var(--hf-deep-500);
	color: rgba(255, 255, 255, 0.86);
}

.hf-section--deep :is(h2, h3, h4) {
	color: #fff;
}

.hf-icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	vertical-align: middle;
}

/* ---------- Section heading ---------- */

.hf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: var(--sp-3);
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--color-accent-text);
}

.hf-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-accent);
}

.hf-section--deep .hf-eyebrow,
.hf-on-dark .hf-eyebrow {
	color: #ffb877;
}

.hf-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4) var(--sp-8);
	margin-bottom: clamp(32px, 4vw, 56px);
}

.hf-section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.hf-section-head--center .hf-eyebrow::after {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-accent);
}

.hf-section-head__text {
	max-width: 720px;
}

.hf-section-title {
	font-size: var(--fs-h2);
	line-height: var(--lh-tight);
	font-weight: 800;
}

.hf-section-lead {
	margin-top: var(--sp-3);
	font-size: var(--fs-lead);
	color: var(--color-muted);
}

.hf-section--deep .hf-section-lead {
	color: rgba(255, 255, 255, 0.78);
}

/* ---------- Buttons ---------- */

.hf-button {
	--btn-bg: var(--color-primary);
	--btn-fg: var(--color-on-primary);
	--btn-bg-hover: var(--color-primary-hover);
	--btn-border: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--btn-border);
	border-radius: var(--radius-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.005em;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--dur-2) var(--ease-out),
		color var(--dur-2) var(--ease-out),
		border-color var(--dur-2) var(--ease-out),
		box-shadow var(--dur-2) var(--ease-out),
		transform var(--dur-1) var(--ease-out);
}

.hf-button:hover {
	background: var(--btn-bg-hover);
	box-shadow: var(--shadow-2);
}

.hf-button:active {
	transform: scale(0.98);
}

.hf-button .hf-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-button:hover .hf-icon--arrow {
	transform: translateX(3px);
}

.hf-button--accent {
	--btn-bg: var(--color-accent);
	--btn-fg: var(--color-on-accent);
	--btn-bg-hover: var(--color-accent-hover);
}

.hf-button--outline {
	--btn-bg: transparent;
	--btn-fg: var(--color-primary-text);
	--btn-bg-hover: var(--hf-blue-50);
	--btn-border: var(--hf-blue-200);
}

.hf-button--outline:hover {
	box-shadow: none;
	border-color: var(--color-primary);
}

.hf-button--light {
	--btn-bg: #fff;
	--btn-fg: var(--hf-ink);
	--btn-bg-hover: var(--hf-blue-50);
}

.hf-button--ghost-light {
	--btn-bg: rgba(255, 255, 255, 0.08);
	--btn-fg: #fff;
	--btn-bg-hover: rgba(255, 255, 255, 0.18);
	--btn-border: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(6px);
}

.hf-button--sm {
	min-height: 40px;
	padding: 8px 18px;
	font-size: var(--fs-xs);
}

.hf-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-link);
	font-weight: 700;
	font-size: var(--fs-sm);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
	transition: text-decoration-color var(--dur-2) var(--ease-out);
}

.hf-text-link:hover {
	text-decoration-color: currentColor;
}

.hf-text-link .hf-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--dur-2) var(--ease-out);
}

.hf-text-link:hover .hf-icon {
	transform: translateX(3px);
}

/* ---------- Badges and chips ---------- */

.hf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--hf-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	box-shadow: var(--shadow-1);
}

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

.hf-badge--accent {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.hf-badge--primary {
	background: var(--color-primary);
	color: #fff;
}

.hf-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--color-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.hf-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hf-meta__item .hf-icon {
	width: 16px;
	height: 16px;
	color: var(--color-primary-text);
}

/* ---------- Trip card (packages) ---------- */

.hf-trip-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--radius-m);
	background: var(--hf-surface);
	box-shadow: var(--shadow-1);
	outline: 1px solid var(--hf-line);
	outline-offset: -1px;
	overflow: hidden;
	transition:
		box-shadow var(--dur-3) var(--ease-out),
		transform var(--dur-3) var(--ease-out);
}

.hf-trip-card:hover {
	box-shadow: var(--shadow-3);
	transform: translateY(-4px);
}

.hf-trip-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--hf-surface-sunk);
}

.hf-trip-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease-out);
}

.hf-trip-card:hover .hf-trip-card__media img {
	transform: scale(1.05);
}

.hf-trip-card__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hf-trip-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--sp-3);
	padding: var(--sp-5) var(--sp-5) var(--sp-6);
}

.hf-trip-card__region {
	color: var(--color-accent-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hf-trip-card__title {
	font-size: var(--fs-h3);
	line-height: var(--lh-snug);
}

.hf-trip-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hf-trip-card__title a:focus-visible {
	outline: none;
}

.hf-trip-card:has(.hf-trip-card__title a:focus-visible) {
	box-shadow: var(--ring);
}

.hf-trip-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--hf-blue-200);
}

.hf-trip-card__placeholder .hf-icon {
	width: 56px;
	height: 56px;
}

.hf-trip-card__quote {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--color-muted);
	font-size: var(--fs-sm);
	line-height: 1.5;
}

.hf-trip-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-3);
	margin-top: auto;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--hf-line);
}

.hf-price {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

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

.hf-price__row {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

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

.hf-price__was {
	color: var(--color-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: line-through;
}

.hf-trip-card__cta {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--hf-blue-50);
	color: var(--color-primary);
	transition:
		background-color var(--dur-2) var(--ease-out),
		color var(--dur-2) var(--ease-out);
}

.hf-trip-card:hover .hf-trip-card__cta {
	background: var(--color-primary);
	color: #fff;
}

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

/* ---------- Breadcrumbs ---------- */

.hf-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	list-style: none;
	font-size: var(--fs-xs);
	font-weight: 600;
}

.hf-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hf-breadcrumbs li + li::before {
	content: "/";
	opacity: 0.5;
}

.hf-breadcrumbs a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
}

.hf-breadcrumbs a:hover {
	text-decoration-color: currentColor;
}

/* ---------- Forms ---------- */

.hf-form-wrapper {
	max-width: var(--container-sm);
	margin: 0 auto;
	width: 100%;
}

.hf-form-group {
	margin-bottom: var(--sp-5);
}

.hf-form-group label {
	display: block;
	margin-bottom: var(--sp-2);
	font-weight: 600;
	color: var(--hf-ink);
	font-size: var(--fs-sm);
}

.hf-subscribe-form input[type="email"],
.hf-theme-form input[type="email"],
.hf-theme-form input[type="text"],
.hf-theme-form input[type="tel"],
.hf-theme-form input[type="number"],
.hf-theme-form input[type="date"],
.hf-theme-form select,
.hf-theme-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--hf-line-strong);
	border-radius: var(--radius-s);
	font-size: 1rem;
	color: var(--hf-ink);
	background-color: #fff;
	transition:
		border-color var(--dur-2) var(--ease-out),
		box-shadow var(--dur-2) var(--ease-out);
	outline: none;
}

.hf-subscribe-form input:focus,
.hf-theme-form input:focus,
.hf-theme-form select:focus,
.hf-theme-form textarea:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(var(--hf-blue-rgb), 0.16);
}

.hf-theme-form ::placeholder {
	color: #7a889a;
}

.hf-alert,
.hf-btn {
	border-radius: var(--radius-s);
}

.hf-btn,
.hf-btn:hover {
	color: #fff;
}

.hf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	background-color: var(--color-primary);
	border: 0;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--dur-2) var(--ease-out);
	text-align: center;
	line-height: 1.5;
}

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

.hf-btn[disabled],
.hf-btn.is-loading {
	opacity: 0.6;
	cursor: progress;
}

.hf-alert {
	padding: 12px 16px;
	margin-bottom: var(--sp-5);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.hf-row {
	display: flex;
	gap: var(--sp-5);
}

.hf-col-6 {
	flex: 1;
}

@media (max-width: 600px) {
	.hf-row {
		flex-direction: column;
		gap: 0;
	}
}

/* Newsletter form: input and button joined on one line. */
form#hf-subscribe-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
	width: 100%;
	padding: 6px;
	border-radius: var(--radius-pill);
	background: #fff;
	box-shadow: var(--shadow-3);
}

form#hf-subscribe-form input[type="email"] {
	flex: 1;
	min-width: 0;
	margin: 0;
	border: 0;
	border-radius: var(--radius-pill);
	box-shadow: none;
	padding-inline: 20px;
}

form#hf-subscribe-form .hf-btn {
	border-radius: var(--radius-pill);
	background-color: var(--color-accent);
	color: var(--color-on-accent);
	white-space: nowrap;
	margin: 0;
	padding-inline: 28px;
}

form#hf-subscribe-form .hf-btn:hover {
	background-color: var(--color-accent-hover);
}

@media (max-width: 420px) {
	form#hf-subscribe-form {
		flex-direction: column;
		border-radius: var(--radius-m);
	}

	form#hf-subscribe-form input[type="email"],
	form#hf-subscribe-form .hf-btn {
		width: 100%;
		border-radius: var(--radius-s);
	}
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
.hf-required {
	color: var(--color-danger);
}

/* ---------- Tables (editor content, wrapped by hf_wrap_tables()) ---------- */

.hf-table-wrap {
	max-width: 100%;
	margin-block: 1.5em;
	overflow-x: auto;
	border: 1px solid var(--hf-line);
	border-radius: var(--radius-m);
	background:
		linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 24px 100% no-repeat local,
		linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 24px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(15, 31, 51, 0.14), transparent) left / 10px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(15, 31, 51, 0.14), transparent) right / 10px 100% no-repeat scroll,
		#fff;
	box-shadow: var(--shadow-1);
	-webkit-overflow-scrolling: touch;
}

.hf-table-wrap:focus-visible {
	outline-offset: 2px;
}

.hf-table-wrap table {
	display: table;
	width: 100%;
	min-width: 520px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	box-shadow: none;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.hf-table-wrap :is(th, td) {
	min-width: 0;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--hf-line);
	color: var(--hf-text);
	text-align: left;
	vertical-align: top;
}

.hf-table-wrap thead :is(th, td),
.hf-table-wrap table:not(:has(thead)) tr:first-child > :is(th, td) {
	position: sticky;
	top: 0;
	background: var(--hf-deep-500);
	border-bottom: 0;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hf-table-wrap thead :is(th, td) *,
.hf-table-wrap table:not(:has(thead)) tr:first-child > :is(th, td) * {
	color: inherit;
}

.hf-table-wrap tbody tr:nth-child(even) > :is(th, td) {
	background: var(--hf-surface-alt);
}

.hf-table-wrap tbody tr:hover > :is(th, td) {
	background: var(--hf-blue-50);
}

.hf-table-wrap :is(tbody, table:not(:has(thead))) tr > :first-child {
	color: var(--hf-ink);
	font-weight: 700;
}

.hf-table-wrap tr:last-child > :is(th, td) {
	border-bottom: 0;
}

/* Editors often wrap cell text in <p>; keep cells compact. */
.hf-table-wrap :is(th, td) > * {
	margin: 0 !important;
	font-weight: inherit;
	color: inherit;
}

.hf-table-wrap :is(th, td) > * + * {
	margin-top: 0.4em !important;
}

/* ---------- Card grid (trip cards on archives, search and related trips) ---------- */

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

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

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