/**
 * Afrosafaris Core — forms, floating controls and the consent banner.
 *
 * Design tokens live in the theme (assets/css/main.css). The fallbacks in each
 * var() keep this file usable if the plugin is ever run under another theme.
 */

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

.afs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.75rem;
	border: 2px solid transparent;
	border-radius: var(--afs-radius, 6px);
	font-family: var(--afs-font-heading, system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.afs-btn:hover,
.afs-btn:focus-visible {
	transform: translateY(-1px);
}

.afs-btn--primary {
	background: var(--afs-primary, #b84800);
	border-color: var(--afs-primary, #b84800);
	color: #fff;
}

.afs-btn--primary:hover,
.afs-btn--primary:focus-visible {
	background: var(--afs-rust, #8a2d00);
	border-color: var(--afs-rust, #8a2d00);
	color: #fff;
}

.afs-btn--amber {
	background: var(--afs-amber, #f0a040);
	border-color: var(--afs-amber, #f0a040);
	color: var(--afs-brown, #532300);
}

.afs-btn--amber:hover,
.afs-btn--amber:focus-visible {
	background: #e8942c;
	border-color: #e8942c;
}

.afs-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--afs-primary, #b84800);
}

.afs-btn--ghost:hover,
.afs-btn--ghost:focus-visible {
	background: var(--afs-primary, #b84800);
	border-color: var(--afs-primary, #b84800);
	color: #fff;
}

.afs-btn--block {
	width: 100%;
}

.afs-btn--sm {
	padding: 0.6rem 1.15rem;
	font-size: 0.85rem;
}

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

.afs-form {
	background: var(--afs-white, #fff);
	border: 1px solid var(--afs-border, #eedcb8);
	border-radius: var(--afs-radius-lg, 10px);
	padding: clamp(1.25rem, 4vw, 2.25rem);
}

.afs-form__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 3vw, 1.6rem);
}

.afs-form__intro,
.afs-form__hint {
	margin: 0 0 1.5rem;
	color: var(--afs-text-muted, #764a28);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* The reply promise, sitting just above a submit button. */
.afs-form__note {
	margin: 0 0 0.85rem;
	color: var(--afs-text-muted, #764a28);
	font-size: 0.9rem;
	line-height: 1.5;
}

.afs-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 0 1.25rem;
}

.afs-field {
	margin: 0 0 1.15rem;
}

.afs-field--full {
	grid-column: 1 / -1;
}

.afs-field--narrow {
	max-width: 9rem;
}

.afs-field label,
.afs-steps legend {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--afs-brown, #532300);
	font-family: var(--afs-font-heading, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
}

.afs-field__req {
	color: var(--afs-primary, #b84800);
}

.afs-form input[type="text"],
.afs-form input[type="email"],
.afs-form input[type="tel"],
.afs-form input[type="date"],
.afs-form input[type="number"],
.afs-form select,
.afs-form textarea,
.afs-newsletter input[type="email"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	background: var(--afs-white, #fff);
	border: 1px solid var(--afs-border-strong, #dcc08a);
	border-radius: var(--afs-radius, 6px);
	color: var(--afs-brown, #532300);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.afs-form input:focus,
.afs-form select:focus,
.afs-form textarea:focus,
.afs-newsletter input:focus {
	border-color: var(--afs-primary, #b84800);
	box-shadow: 0 0 0 3px rgba(184, 72, 0, 0.18);
	outline: none;
}

.afs-form textarea {
	resize: vertical;
	min-height: 7rem;
}

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.afs-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.afs-form__smallprint {
	margin: 0.9rem 0 0;
	color: var(--afs-text-muted, #764a28);
	font-size: 0.82rem;
	text-align: center;
}

/* Consent checkbox */

.afs-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0.25rem 0 1.4rem;
	color: var(--afs-text-muted, #764a28);
	font-size: 0.86rem;
	line-height: 1.5;
	cursor: pointer;
}

.afs-consent input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.1rem;
	accent-color: var(--afs-primary, #b84800);
}

.afs-consent--compact {
	margin-bottom: 0;
	font-size: 0.78rem;
}

/* Checkbox / choice grids */

.afs-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 0.6rem;
	margin-bottom: 1.25rem;
}

.afs-choice {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.8rem 1rem;
	background: var(--afs-cream, #fbecbe);
	border: 1px solid var(--afs-border, #eedcb8);
	border-radius: var(--afs-radius, 6px);
	font-size: 0.92rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.afs-choice:hover {
	border-color: var(--afs-primary, #b84800);
}

.afs-choice input {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--afs-primary, #b84800);
}

.afs-choice:has(input:checked) {
	background: #fff;
	border-color: var(--afs-primary, #b84800);
	box-shadow: inset 0 0 0 1px var(--afs-primary, #b84800);
}

/* ------------------------------------------------------------------
 * Multi-step form
 * --------------------------------------------------------------- */

.afs-steps__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
	counter-reset: afs-step;
}

.afs-steps__nav li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.8rem 0.4rem 0.5rem;
	background: var(--afs-cream, #fbecbe);
	border-radius: 999px;
	color: var(--afs-text-muted, #764a28);
	font-family: var(--afs-font-heading, system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 600;
	counter-increment: afs-step;
}

.afs-steps__nav li::before {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.45rem;
	height: 1.45rem;
	background: #fff;
	border-radius: 50%;
	content: counter(afs-step);
	font-size: 0.72rem;
}

.afs-steps__nav li.is-active {
	background: var(--afs-primary, #b84800);
	color: #fff;
}

.afs-steps__nav li.is-done {
	background: var(--afs-amber, #f0a040);
	color: var(--afs-brown, #532300);
}

.afs-steps__step {
	margin: 0;
	padding: 0;
	border: 0;
}

/* The enhanced class is added by core.js, so without JavaScript every step
   stays visible and the form still submits in one go. */
.afs-steps--enhanced .afs-steps__step {
	display: none;
}

.afs-steps--enhanced .afs-steps__step.is-active {
	display: block;
}

.afs-steps legend {
	margin-bottom: 0.75rem;
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	font-weight: 700;
}

.afs-steps__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--afs-border, #eedcb8);
}

/* The hidden attribute has to win against the buttons' display value. */
[hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------
 * Notices
 * --------------------------------------------------------------- */

.afs-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid;
	border-radius: var(--afs-radius, 6px);
	font-size: 0.93rem;
	line-height: 1.6;
}

.afs-notice p {
	margin: 0;
}

.afs-notice ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.afs-notice--success {
	background: #eef7ec;
	border-color: #3f8c4a;
	color: #255c2d;
}

.afs-notice--error {
	background: #fdeeea;
	border-color: #c0431f;
	color: #8d2c11;
}

/* ------------------------------------------------------------------
 * Newsletter
 * --------------------------------------------------------------- */

.afs-newsletter__label {
	display: block;
	margin-bottom: 0.7rem;
	/* Set explicitly: themes (Astra among them) colour bare <label> elements,
	   which otherwise overrides the inherited colour. The theme re-points this
	   to cream where the form sits on the dark footer. */
	color: var(--afs-brown, #532300);
	font-size: 0.9rem;
	line-height: 1.5;
}

.afs-newsletter__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}

.afs-newsletter__row input[type="email"] {
	flex: 1 1 12rem;
}

/* ------------------------------------------------------------------
 * Floating controls
 * --------------------------------------------------------------- */

/* The three floating controls share one scale, so adding or resizing one
   cannot leave the others overlapping. --afs-dock-shift is set by script to
   the consent banner's height while it is open, which lifts the whole stack
   clear of it instead of letting the banner cover the buttons. */
:root {
	--afs-dock-gap: clamp(0.85rem, 3vw, 1.5rem);
	/* Deliberately px, not rem: the theme scales the root font-size down on
	   small screens, which shrank the step while the buttons stayed the same
	   height and left a 6px gap on mobile against 14px on desktop. The
	   buttons are a fixed size in px, so the step should be too. */
	--afs-dock-step: 70px;
	--afs-dock-shift: 0px;
}

.afs-whatsapp {
	position: fixed;
	right: var(--afs-dock-gap);
	bottom: calc(var(--afs-dock-gap) + var(--afs-dock-shift));
	z-index: 900;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.1rem;
	background: #25d366;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	color: #fff;
	font-family: var(--afs-font-heading, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.afs-whatsapp:hover,
.afs-whatsapp:focus-visible {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
	color: #fff;
	transform: translateY(-2px);
}

/* Astra ships its own scroll-to-top button, which lands in the same corner as
   ours and ends up stacked underneath the WhatsApp button — two back-to-top
   controls, one of them invisible but still clickable at the edges. We provide
   .afs-to-top, so Astra's goes. */
#ast-scroll-top {
	display: none !important;
}

.afs-to-top {
	position: fixed;
	right: var(--afs-dock-gap);
	/* Third in the stack now that email sits between it and WhatsApp. */
	bottom: calc(var(--afs-dock-gap) + (var(--afs-dock-step) * 2) + var(--afs-dock-shift));
	z-index: 899;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.9rem;
	height: 2.9rem;
	padding: 0;
	background: var(--afs-brown, #532300);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.afs-to-top:hover,
.afs-to-top:focus-visible {
	background: var(--afs-primary, #b84800);
	transform: translateY(-2px);
}

/* ------------------------------------------------------------------
 * Floating email button and its panel
 * --------------------------------------------------------------- */

.afs-maildock {
	position: fixed;
	right: var(--afs-dock-gap);
	bottom: calc(var(--afs-dock-gap) + var(--afs-dock-step) + var(--afs-dock-shift));
	z-index: 901;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
}

/* Deliberately the same geometry as .afs-whatsapp: same padding, radius,
   shadow and type, so the pair reads as one control rather than two widgets
   that happen to be near each other. */
.afs-maildock__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.1rem;
	background: var(--afs-primary, #b84800);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	color: #fff;
	cursor: pointer;
	font-family: var(--afs-font-heading, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.afs-maildock__toggle:hover,
.afs-maildock__toggle:focus-visible {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
	color: #fff;
	transform: translateY(-2px);
}

.afs-maildock__panel {
	width: min(17.5rem, calc(100vw - (var(--afs-dock-gap) * 2)));
	padding: 1.1rem 1.15rem 1rem;
	background: #fff;
	border-radius: 0.9rem;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
	color: var(--afs-brown, #532300);
	font-size: 0.9rem;
	text-align: left;
}

.afs-maildock__panel[hidden] {
	display: none;
}

.afs-maildock__close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--afs-brown, #532300);
	cursor: pointer;
}

.afs-maildock__close:hover,
.afs-maildock__close:focus-visible {
	background: rgba(83, 35, 0, 0.1);
}

.afs-maildock__panel {
	position: relative;
}

.afs-maildock__line {
	margin: 0 1.6rem 0.85rem 0;
	line-height: 1.5;
}

.afs-maildock__line a {
	color: var(--afs-primary, #b84800);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.afs-maildock__copy {
	width: 100%;
	padding: 0.6rem 0.9rem;
	background: var(--afs-primary, #b84800);
	border: 0;
	border-radius: 0.55rem;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
}

.afs-maildock__copy:hover,
.afs-maildock__copy:focus-visible {
	background: var(--afs-brown, #532300);
}

.afs-maildock__copy.is-copied {
	background: #1d7a3c;
}

.afs-maildock__link {
	display: inline-block;
	margin-top: 0.8rem;
	color: var(--afs-brown, #532300);
	font-size: 0.85rem;
	text-decoration: underline;
}

.afs-maildock__link:hover,
.afs-maildock__link:focus-visible {
	color: var(--afs-primary, #b84800);
}

.afs-maildock__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
	.afs-whatsapp,
	.afs-maildock__toggle,
	.afs-to-top {
		transition: none;
	}
}

@media (max-width: 600px) {
	.afs-whatsapp__label,
	.afs-maildock__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.afs-whatsapp,
	.afs-maildock__toggle {
		padding: 0.95rem;
	}
}

/* ------------------------------------------------------------------
 * Consent banner
 * --------------------------------------------------------------- */

.afs-consent-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 950;
	background: var(--afs-brown, #532300);
	color: #fdf6ec;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.afs-consent-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--afs-container, 1200px);
	margin: 0 auto;
	padding: 1rem clamp(1rem, 4vw, 2rem);
}

.afs-consent-banner__text {
	flex: 1 1 22rem;
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.6;
}

.afs-consent-banner__text a {
	color: var(--afs-amber, #f0a040);
}

.afs-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.afs-consent-banner .afs-btn--ghost {
	color: #fdf6ec;
}

/* ------------------------------------------------------------------
 * Accordion (itinerary, FAQ)
 * --------------------------------------------------------------- */

.afs-accordion {
	border: 1px solid var(--afs-border, #eedcb8);
	border-radius: var(--afs-radius-lg, 10px);
	overflow: hidden;
}

.afs-accordion__item + .afs-accordion__item {
	border-top: 1px solid var(--afs-border, #eedcb8);
}

.afs-accordion__trigger {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1.1rem 1.25rem;
	background: var(--afs-white, #fff);
	border: 0;
	color: var(--afs-brown, #532300);
	font-family: var(--afs-font-heading, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.afs-accordion__trigger:hover {
	background: var(--afs-cream, #fbecbe);
}

.afs-accordion__day {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.4rem;
	padding: 0.3rem 0.6rem;
	background: var(--afs-primary, #b84800);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.afs-accordion__trigger-text {
	flex: 1 1 auto;
}

.afs-accordion__icon {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.afs-accordion__trigger[aria-expanded="true"] .afs-accordion__icon {
	transform: rotate(180deg);
}

.afs-accordion__panel {
	padding: 0 1.25rem 1.35rem;
	background: var(--afs-white, #fff);
	font-size: 0.95rem;
	line-height: 1.7;
}

.afs-accordion__panel > :first-child {
	margin-top: 0;
}

.afs-accordion__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--afs-border-strong, #dcc08a);
	color: var(--afs-text-muted, #764a28);
	font-size: 0.85rem;
}

.afs-accordion__meta strong {
	color: var(--afs-brown, #532300);
}

@media (prefers-reduced-motion: reduce) {
	.afs-btn,
	.afs-whatsapp,
	.afs-to-top,
	.afs-accordion__icon {
		transition: none;
	}

	.afs-btn:hover,
	.afs-whatsapp:hover,
	.afs-to-top:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * Language switcher and the browser-language suggestion
 * --------------------------------------------------------------- */

.afs-lang {
	position: relative;
}

.afs-lang__toggle {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	padding: 0.45rem 0.7rem;
	color: inherit;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	font: inherit;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
}

.afs-lang__toggle:hover,
.afs-lang__toggle:focus-visible {
	border-color: currentColor;
}

.afs-lang__caret {
	width: 0;
	height: 0;
	border-top: 4px solid currentColor;
	border-right: 3.5px solid transparent;
	border-left: 3.5px solid transparent;
}

.afs-lang__list {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	z-index: 60;
	display: none;
	min-width: 11rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--afs-border, #e6d9c8);
	border-radius: var(--afs-radius, 10px);
	box-shadow: 0 14px 34px rgba(59, 30, 8, 0.18);
}

.afs-lang.is-open .afs-lang__list {
	display: block;
}

.afs-lang__list a {
	display: block;
	padding: 0.5rem 0.65rem;
	color: var(--afs-text, #3b1e08);
	border-radius: 7px;
	text-decoration: none;
	font-size: 0.9rem;
}

.afs-lang__list a:hover,
.afs-lang__list a:focus-visible {
	background: var(--afs-cream, #fbecbe);
}

.afs-lang__list a[aria-current="true"] {
	font-weight: 700;
}

/* Inside the mobile menu the panel is light, and the list should simply sit
   open rather than hang off the edge of a narrow screen. */
.afs-lang--mobile {
	display: none;
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--afs-border, #e6d9c8);
}

.afs-lang--mobile .afs-lang__toggle {
	border-color: var(--afs-border, #e6d9c8);
	color: var(--afs-text, #3b1e08);
}

@media (max-width: 1024px) {
	.afs-lang--header {
		display: none;
	}

	.afs-lang--mobile {
		display: block;
	}

	.afs-lang--mobile .afs-lang__list {
		position: static;
		box-shadow: none;
		border: 0;
		padding: 0.25rem 0 0;
	}
}

body.afs-nav-compact .afs-lang--mobile .afs-lang__list {
	position: static;
	box-shadow: none;
	border: 0;
	padding: 0.25rem 0 0;
}

/* Each switcher entry names its language in that language's own script, so
   one list can hold Latin, Cyrillic, Han, Hangul and kana at once. Poppins
   covers the Latin; the Cyrillic needs saying explicitly, because on a CJK
   page it would otherwise be drawn by the CJK face at full width. See the
   note on --afs-cyrillic in the theme's main.css. */
.afs-lang__list a[lang|="ru"],
.afs-langsheet__list a[lang|="ru"] {
	font-family: var(--afs-cyrillic, sans-serif);
}

/* ------------------------------------------------------------------
 * The header globe and its language sheet (phones and tablets)
 *
 * The switcher used to be reachable on a phone only from the bottom of the
 * mobile menu. This is the same list, one tap from the header of every page.
 * The globe replaces nothing: afs-lang--mobile still sits at the foot of the
 * menu for anyone who opens the menu first.
 * --------------------------------------------------------------- */

.afs-langbar {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	height: 2.75rem;
	padding: 0 0.55rem;
	background: var(--afs-cream, #fbecbe);
	border: 1px solid var(--afs-border-strong, #e0cdb0);
	border-radius: var(--afs-radius, 10px);
	color: var(--afs-brown, #3b1e08);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}

.afs-langbar__code {
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
	.afs-langbar {
		display: inline-flex;
	}
}

/* The header's own CTA and switcher, trimmed a little where the horizontal
   menu has to share the bar with them. Worth about 30px, which is the
   difference between French keeping its menu at 1440px and losing it to the
   hamburger. Everywhere else on the site the button keeps its full size. */
@media (min-width: 1025px) {
	.afs-header__actions .afs-btn {
		padding-inline: 0.95rem;
		font-size: 0.82rem;
	}

	.afs-lang--header .afs-lang__toggle {
		padding-inline: 0.55rem;
		font-size: 0.82rem;
	}
}

/* Compact mode can be reached ABOVE 1024px too, when the menu does not fit
   the width in this language — see the fit check in the theme's main.css and
   in core.js. The globe then replaces the full-width switcher there as well,
   and the sheet it opens has to come out of the min-width hiding below. */
body.afs-nav-compact .afs-langbar {
	display: inline-flex;
}

body.afs-nav-compact .afs-lang--header {
	display: none;
}

body.afs-nav-compact .afs-lang--mobile {
	display: block;
}

/* The sheet itself. It is printed in the footer, so it is a child of body and
   owes its stacking to nothing.

   It goes ABOVE the consent banner's 950, which is the opposite of the rule
   the suggestion notice follows below, and deliberately. That notice is
   something the site puts in front of the visitor, so the banner has the
   right to cover it. This is a modal the visitor has just asked for, at the
   same bottom edge of the same screen: at 950 the banner hid four of its
   seven rows on a first visit — for precisely the arrivals most likely to be
   reaching for it. Tapping the scrim closes the sheet and hands the banner
   straight back. */
.afs-langsheet {
	position: fixed;
	inset: 0;
	z-index: 960;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

@media (min-width: 1025px) {
	/* Nothing can open it above this width, but a stray :target or a print
	   stylesheet should not be able to reveal it either. */
	.afs-langsheet {
		display: none;
	}
}

/* Unless the header went compact at this width because the menu would not
   fit, in which case the globe is on screen and must have something to open. */
@media (min-width: 1025px) {
	body.afs-nav-compact .afs-langsheet {
		display: flex;
	}

	body.afs-nav-compact .afs-langsheet[hidden] {
		display: none;
	}
}

.afs-langsheet[hidden] {
	display: none;
}

.afs-langsheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(32, 16, 4, 0.55);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.afs-langsheet.is-open .afs-langsheet__scrim {
	opacity: 1;
}

.afs-langsheet__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	/* Never taller than the screen. Whatever will not fit scrolls inside the
	   list below, so the sheet itself never pushes the page about. */
	max-height: min(76vh, 34rem);
	padding: 0.8rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 40px rgba(59, 30, 8, 0.28);
	transform: translateY(14px);
	opacity: 0;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.afs-langsheet.is-open .afs-langsheet__panel {
	transform: none;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.afs-langsheet__scrim,
	.afs-langsheet__panel {
		transition: none;
	}
}

.afs-langsheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--afs-border, #e6d9c8);
}

.afs-langsheet__title {
	margin: 0;
	color: var(--afs-brown, #3b1e08);
	font-family: var(--afs-font-heading, inherit);
	font-size: 0.95rem;
	font-weight: 700;
}

.afs-langsheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: -0.3rem -0.25rem -0.3rem 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 999px;
	color: var(--afs-brown, #3b1e08);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.afs-langsheet__close:hover,
.afs-langsheet__close:focus-visible {
	background: var(--afs-cream, #fbecbe);
}

/* Two columns wherever two will fit, which is every phone from 320px up, so
   all fourteen languages are on screen at once without scrolling. Below that
   the grid falls to one column and the list scrolls inside itself. */
.afs-langsheet__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: 0.15rem 0.4rem;
	margin: 0;
	padding: 0.45rem 0 0;
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.afs-langsheet__list li {
	list-style: none;
}

.afs-langsheet__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	/* 44px: the smallest target a thumb should be asked to hit. */
	min-height: 2.75rem;
	padding: 0.45rem 0.55rem;
	color: var(--afs-text, #3b1e08);
	border-radius: 9px;
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1.2;
}

.afs-langsheet__list a:hover,
.afs-langsheet__list a:focus-visible {
	background: var(--afs-cream, #fbecbe);
}

.afs-langsheet__list a[aria-current="true"] {
	background: var(--afs-cream, #fbecbe);
	font-weight: 700;
}

.afs-langsheet__code {
	flex: 0 0 auto;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	opacity: 0.55;
}

/* While the sheet is open the page behind it must not scroll, and the corner
   buttons must not float over it — the same treatment the mobile menu gets. */
body.afs-langsheet-open {
	overflow: hidden;
}

body.afs-langsheet-open .afs-langhint,
body.afs-langsheet-open .afs-whatsapp,
body.afs-langsheet-open .afs-maildock,
body.afs-langsheet-open .afs-to-top {
	display: none;
}

/* The consent banner is not hidden, only dimmed behind the scrim with
   everything else: it is still there, still answerable, the instant the sheet
   closes. Hiding it outright would make it flicker in and out every time
   somebody opened the switcher. */

/* The suggestion. A notice, never a redirect.
 *
 * It sits in the bottom LEFT corner. WhatsApp, email and back-to-top own the
 * bottom right, and this used to be dropped on top of them at z-index 70,
 * which put it underneath all three — the notice was being covered by the
 * buttons rather than sitting beside them.
 *
 * It uses the same --afs-dock-gap as those buttons, so the spacing from the
 * edge matches on both sides at every width, and the same --afs-dock-shift,
 * which script sets to the consent banner's height while the banner is open.
 * That lifts the notice clear of the banner instead of letting the two
 * overlap. The z-index stays below the banner's 950, so if script ever fails
 * to set the shift the banner covers the notice rather than the reverse. */
.afs-langhint {
	position: fixed;
	left: var(--afs-dock-gap);
	bottom: calc(var(--afs-dock-gap) + var(--afs-dock-shift));
	z-index: 898;
	max-width: min(22rem, calc(100vw - (var(--afs-dock-gap) * 2)));
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid var(--afs-border, #e6d9c8);
	border-radius: var(--afs-radius-lg, 14px);
	box-shadow: 0 18px 40px rgba(59, 30, 8, 0.22);
}

.afs-langhint[hidden] {
	display: none;
}

/* The open mobile menu is a full-screen overlay carrying the whole navigation,
   its own language switcher and the contact details. Every floating control
   measured as sitting on top of it — the notice covered the menu's own
   switcher row. They all go away while the menu is open and come back when it
   closes; the theme already sets body.afs-nav-open for exactly this. */
body.afs-nav-open .afs-langhint,
body.afs-nav-open .afs-whatsapp,
body.afs-nav-open .afs-maildock,
body.afs-nav-open .afs-to-top {
	display: none;
}

.afs-langhint__go {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.afs-langhint__globe {
	flex: none;
}

/* The compact labels exist only for the phone layout below. */
.afs-langhint__go-short,
.afs-langhint__stay-short {
	display: none;
}

.afs-langhint__text {
	margin: 0 0 0.75rem;
	color: var(--afs-text, #3b1e08);
	font-size: 0.92rem;
	line-height: 1.5;
}

.afs-langhint__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

/* On a phone the full card is too much furniture: it covered the page while
   the reader was trying to read it, which is a poor way to offer a
   translation. It collapses to a globe, the target language's two-letter
   code and a dismiss cross — about 7rem wide, in the bottom left, clear of
   the WhatsApp and email buttons in the opposite corner.
 *
 * The long labels only go visually hidden, never away: the link carries an
 * aria-label naming the language, and the dismiss button carries "Stay in
 * <language>", so nothing is lost to a screen reader. */
@media (max-width: 600px) {
	.afs-langhint {
		max-width: calc(100vw - (var(--afs-dock-gap) * 2) - 4.5rem);
		padding: 0.35rem;
		border-radius: 999px;
	}

	.afs-langhint__text {
		display: none;
	}

	.afs-langhint__actions {
		flex-wrap: nowrap;
		gap: 0.25rem;
	}

	.afs-langhint__go-full,
	.afs-langhint__stay-full {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		white-space: nowrap;
		border: 0;
		clip-path: inset(50%);
	}

	.afs-langhint__go-short,
	.afs-langhint__stay-short {
		display: inline;
	}

	/* A thumb needs a target whatever the label says. */
	.afs-langhint__go,
	.afs-langhint__stay {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0 0.7rem;
		border-radius: 999px;
	}

	.afs-langhint__stay-short {
		font-size: 1.25rem;
		line-height: 1;
	}
}

/* ------------------------------------------------------------------
 * Review badges
 *
 * One row, three placements. Wraps rather than scrolls, centres on a phone,
 * and every item is given a minimum tap target so a row of small platform
 * logos is still usable with a thumb.
 * --------------------------------------------------------------- */

.afs-badges {
	margin: 0;
}

.afs-badges__heading {
	margin: 0 0 0.75rem;
	color: var(--afs-text-muted, #764a28);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.afs-badges__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.1rem;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afs-badges__item {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.afs-badges__item img {
	display: block;
	width: auto;
	max-width: 160px;
	height: auto;
	max-height: 56px;
}

/* A platform widget sizes itself; stop a wide one bursting the column. */
.afs-badges__embed {
	max-width: 100%;
	overflow: hidden;
}

/*
 * A platform widget brings its own white card, which lands hard on the brown
 * footer with square corners. Rounding it to the same radius the rest of the
 * footer uses is the whole fix — the widget's own colours are left alone,
 * because they are the platform's branding and not ours to restyle.
 */
.afs-badges--footer .afs-badges__embed {
	border-radius: 8px;
}

.afs-badges__embed > :first-child {
	max-width: 100%;
}

/* The fallback when a link was given with no image. */
.afs-badges__text {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	padding: 0.55rem 0.9rem;
	color: var(--afs-text, #3b1e08);
	background: #fff;
	border: 1px solid var(--afs-border, #e6d9c8);
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.afs-badges__text:hover,
.afs-badges__text:focus-visible {
	border-color: var(--afs-primary, #b84800);
}

.afs-badges__star {
	color: var(--afs-accent, #e07300);
}

/* On the brown footer the light-on-dark versions are needed. */
.afs-badges--footer .afs-badges__heading {
	color: #e7d3bd;
}

.afs-badges--footer .afs-badges__text {
	color: var(--afs-cream, #fbecbe);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.28);
}

.afs-badges--footer .afs-badges__text:hover,
.afs-badges--footer .afs-badges__text:focus-visible {
	border-color: var(--afs-cream, #fbecbe);
}

.afs-badges--home .afs-badges__list,
.afs-badges--home .afs-badges__heading {
	justify-content: center;
	text-align: center;
}

.afs-badges--home {
	margin-top: 2rem;
}

.afs-badges--tour {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--afs-border, #e6d9c8);
}

@media (max-width: 600px) {
	.afs-badges__list {
		justify-content: center;
		gap: 0.7rem 0.8rem;
	}

	.afs-badges__heading {
		text-align: center;
	}

	/*
	 * Centring suits the home and in-content rows, which sit in centred
	 * blocks. The footer column is left-aligned on a phone — logo, blurb,
	 * social icons — so a centred badge under them reads as a mistake.
	 */
	.afs-badges--footer .afs-badges__list {
		justify-content: flex-start;
	}

	.afs-badges--footer .afs-badges__heading {
		text-align: left;
	}

	.afs-badges__item img {
		max-width: 132px;
		max-height: 48px;
	}
}

/* ---------------------------------------------------------------------------
   Trustindex review widget

   Scoped entirely to .afs-reviews-embed, which wraps the widget on both the
   homepage and the Reviews page. Nothing here fights the widget's layout —
   the carousel, the columns and the controls are left to it. What is set is
   the typeface, the card and the colours, so the reviews read as part of the
   site rather than as a panel pasted into it.

   The font rule is not cosmetic. The plugin ships its OWN Poppins, served as
   "Trustindex Poppins" — a second copy of a typeface this site already
   self-hosts, 16 KB over two files. Its "disable-font" option is meant to
   prevent that, but the option lives in the widget's own settings row and is
   rewritten whenever the owner re-runs the setup wizard, so it cannot be
   relied on. Inheriting the family here means their @font-face is never
   referenced, so the browser never downloads it.
   --------------------------------------------------------------------- */

.afs-reviews-embed {
	margin: 0 auto;
	max-width: 72rem;
	color: var(--afs-text, #3b1e08);
}

/* Our Poppins, not their copy of it. */
.afs-reviews-embed .ti-widget,
.afs-reviews-embed .ti-widget * {
	font-family: var(--afs-font-body, 'Poppins', sans-serif) !important;
}

/*
 * The widget's own rules are specific — ".ti-widget.ti-trip
 * .ti-widget-container .ti-name" — and its stylesheet loads after this one,
 * at the widget. Matching that specificity is what makes these apply; a
 * shorter selector here simply loses, which is how the first pass at this
 * silently did nothing.
 */

/*
 * The card, matching the tour and journal cards elsewhere on the site.
 *
 * This is the one place !important is right rather than lazy: Trustindex
 * sets the card background with !important itself, so no amount of
 * specificity wins. Two earlier attempts here — a longer selector, then a
 * doubled class — both matched, both lost, and both looked like they had
 * worked until the computed colour was actually read back.
 */
.afs-reviews-embed .ti-widget.ti-trip .ti-review-item > .ti-inner {
	background: #fff !important;
	border: 1px solid var(--afs-border, #eedcb8) !important;
	border-radius: 14px !important;
}

.afs-reviews-embed .ti-widget.ti-trip .ti-widget-container .ti-name {
	color: var(--afs-text, #3b1e08);
}

.afs-reviews-embed .ti-widget.ti-trip .ti-widget-container .ti-date {
	color: var(--afs-text-muted, #764a28);
}

/* Review prose reads better ranged left than centred. The name, date and
   star row above it stay as the widget places them. */
.afs-reviews-embed .ti-widget.ti-trip .ti-review-text-container {
	text-align: left;
}

/* "Read more", and the carousel arrows, in the brand rust. */
.afs-reviews-embed .ti-widget.ti-trip .ti-read-more,
.afs-reviews-embed .ti-widget a {
	color: var(--afs-primary, #b84800);
}

.afs-reviews-embed .ti-next::before,
.afs-reviews-embed .ti-prev::before {
	border-color: var(--afs-primary, #b84800);
}

/* The widget sizes itself; stop a wide carousel bursting the container and
   dragging a horizontal scrollbar onto the page at phone widths. */
.afs-reviews-embed > *,
.afs-reviews-embed .ti-widget {
	max-width: 100%;
}
