/**
 * Luxeline CHBS Airport Transfers Companion 2.1.1
 * Isolated booking-form additions for form 10007.
 */

.chbs-booking-form-id-10007.lux-chbs-airport-companion,
.chbs-booking-form-id-10007.lux-chbs-airport-companion * {
	box-sizing: border-box;
}

.chbs-booking-form-id-10007.lux-chbs-airport-companion {
	--lux-airport-wine: var(--lux-chbs-plum, #6b2944);
	--lux-airport-wine-bright: var(--lux-chbs-plum-light, #a1435a);
	--lux-airport-wine-dark: var(--lux-chbs-plum-dark, #3b222d);
	--lux-airport-gold: var(--lux-chbs-champagne, #e1c582);
	--lux-airport-ivory: var(--lux-chbs-ivory, #fbf8f3);
	--lux-airport-line: var(--lux-chbs-line, #ded2c5);
	--lux-airport-ink: var(--lux-chbs-ink, #241f21);
	--lux-airport-muted: var(--lux-chbs-muted, #756d6e);
	--lux-airport-danger: #9f263f;
	--lux-airport-sans: var(--lux-chbs-sans, "Manrope", "Montserrat", Arial, sans-serif);
}

/* Independent third tab, injected after CHBS initializes its native tabs. */
.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li {
	width: 100% !important;
	min-width: 0 !important;
}

.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li > a,
.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li > .ui-tabs-anchor {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	text-align: center !important;
}

.chbs-booking-form-id-10007 .lux-chbs-airport-tab[hidden],
.chbs-booking-form-id-10007 .chbs-tab > ul > li[data-id="3"][hidden] {
	display: none !important;
}

/* Airport-mode-only one-tap/click repair. Distance and Hourly stay native. */
.chbs-booking-form-id-10007.lux-chbs-airport-mode-active
	#panel-1 .lux-chbs-airport-address-focus-zone {
	cursor: text;
	touch-action: manipulation;
	isolation: isolate;
}

.chbs-booking-form-id-10007.lux-chbs-airport-mode-active
	#panel-1 .lux-chbs-airport-address-focus-zone > label,
.chbs-booking-form-id-10007.lux-chbs-airport-mode-active
	#panel-1 .lux-chbs-airport-address-focus-zone::before,
.chbs-booking-form-id-10007.lux-chbs-airport-mode-active
	#panel-1 .lux-chbs-airport-address-focus-zone::after {
	cursor: text;
}

.chbs-booking-form-id-10007.lux-chbs-airport-mode-active
	#panel-1 .lux-chbs-airport-address-focus-zone > input[type="text"] {
	position: relative !important;
	z-index: 30 !important;
	display: block !important;
	min-height: 30px !important;
	pointer-events: auto !important;
	touch-action: manipulation;
}

/* Browse Airports exists only in companion Airport Transfers mode. */
.chbs-booking-form-id-10007 .lux-chbs-airport-control {
	position: relative;
	z-index: 5;
	display: flex;
	justify-content: flex-start;
	width: 100%;
	margin: 8px 0 0;
	padding: 0;
	font-family: var(--lux-airport-sans);
}

.chbs-booking-form-id-10007:not(.lux-chbs-airport-mode-active) .lux-chbs-airport-control,
.chbs-booking-form-id-10007 .lux-chbs-airport-control[hidden] {
	display: none !important;
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger,
.lux-chbs-airport-panel .lux-chbs-airport-close,
.lux-chbs-airport-panel .lux-chbs-airport-option {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	outline: 0;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	gap: 8px;
	margin: 0;
	padding: 7px 12px;
	color: var(--lux-airport-wine) !important;
	border: 1px solid rgba(107, 41, 68, 0.25);
	border-radius: 999px;
	background: rgba(107, 41, 68, 0.055) !important;
	box-shadow: none;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	cursor: pointer;
	touch-action: manipulation;
	transition: color 180ms ease, border-color 180ms ease,
		background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger-icon {
	position: relative;
	display: inline-block;
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	transform: rotate(-28deg);
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger-icon::before,
.chbs-booking-form-id-10007 .lux-chbs-airport-trigger-icon::after {
	position: absolute;
	content: "";
	background: currentColor;
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger-icon::before {
	top: 5px;
	left: 0;
	width: 13px;
	height: 2px;
	border-radius: 99px;
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger-icon::after {
	top: 2px;
	right: 1px;
	width: 6px;
	height: 8px;
	clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%);
}

@media (hover: hover) and (pointer: fine) {
	.chbs-booking-form-id-10007 .lux-chbs-airport-trigger:hover {
		color: #fff !important;
		border-color: var(--lux-airport-wine);
		background: var(--lux-airport-wine) !important;
		box-shadow: 0 8px 18px rgba(59, 34, 45, 0.16);
		transform: translateY(-1px);
	}
}

.chbs-booking-form-id-10007 .lux-chbs-airport-trigger:focus-visible,
.lux-chbs-airport-panel .lux-chbs-airport-close:focus-visible,
.lux-chbs-airport-panel .lux-chbs-airport-option:focus-visible,
.lux-chbs-airport-panel .lux-chbs-airport-search:focus-visible {
	outline: 2px solid #a1435a !important;
	outline-offset: 2px;
}

/* Body-level portal: no CHBS field/button can overlap the picker. */
.lux-chbs-airport-panel[data-lux-chbs-portal-owner] {
	box-sizing: border-box;
	display: block;
	margin: 0;
	padding: 14px;
	overflow: hidden;
	color: #241f21;
	border: 1px solid rgba(107, 41, 68, 0.2);
	border-radius: 15px;
	background: rgba(251, 248, 243, 0.995);
	box-shadow: 0 24px 70px rgba(22, 13, 18, 0.32),
		0 4px 14px rgba(22, 13, 18, 0.14);
	backdrop-filter: blur(18px) saturate(115%);
	-webkit-backdrop-filter: blur(18px) saturate(115%);
	font-family: "Manrope", "Montserrat", Arial, sans-serif;
	opacity: 0;
	transform: translateY(5px);
	transition: opacity 150ms ease, transform 150ms ease;
}

.lux-chbs-airport-panel[data-lux-chbs-portal-owner][hidden] {
	display: none !important;
}

.lux-chbs-airport-panel[data-lux-chbs-portal-owner].is-open {
	opacity: 1;
	transform: translateY(0);
}

.lux-chbs-airport-panel .lux-chbs-airport-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 10px;
	padding: 0 0 10px;
	border-bottom: 1px solid rgba(107, 41, 68, 0.14);
}

.lux-chbs-airport-panel .lux-chbs-airport-panel-header strong {
	color: #241f21;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.lux-chbs-airport-panel .lux-chbs-airport-close {
	display: grid;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	place-items: center;
	color: #756d6e !important;
	border-radius: 50%;
	background: transparent !important;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.lux-chbs-airport-panel .lux-chbs-airport-close:hover {
	color: #fff !important;
	background: #6b2944 !important;
}

.lux-chbs-airport-panel .lux-chbs-airport-search {
	display: block !important;
	width: 100% !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	color: #241f21 !important;
	border: 1px solid #ded2c5 !important;
	border-radius: 9px !important;
	outline: 0 !important;
	background: #fffdf9 !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	pointer-events: auto !important;
	touch-action: manipulation;
}

.lux-chbs-airport-panel .lux-chbs-airport-search:focus {
	border-color: #6b2944 !important;
	box-shadow: 0 0 0 3px rgba(107, 41, 68, 0.1) !important;
}

.lux-chbs-airport-panel .lux-chbs-airport-status {
	min-height: 18px;
	margin: 7px 2px 4px;
	color: #756d6e;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.025em;
}

.lux-chbs-airport-panel .lux-chbs-airport-list {
	display: grid;
	gap: 5px;
	max-height: min(316px, calc(100dvh - 185px));
	margin: 0;
	padding: 0 2px 1px 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(107, 41, 68, 0.32) transparent;
}

.lux-chbs-airport-panel .lux-chbs-airport-list::-webkit-scrollbar {
	width: 5px;
}

.lux-chbs-airport-panel .lux-chbs-airport-list::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(107, 41, 68, 0.32);
}

.lux-chbs-airport-panel .lux-chbs-airport-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 9px 11px;
	color: #241f21 !important;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent !important;
	box-shadow: none;
	text-align: left;
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color 150ms ease, background-color 150ms ease,
		transform 150ms ease;
}

.lux-chbs-airport-panel .lux-chbs-airport-option:hover,
.lux-chbs-airport-panel .lux-chbs-airport-option:focus-visible {
	border-color: rgba(107, 41, 68, 0.18);
	background: rgba(107, 41, 68, 0.07) !important;
	transform: translateX(2px);
}

.lux-chbs-airport-panel .lux-chbs-airport-option-title {
	color: #241f21;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.lux-chbs-airport-panel .lux-chbs-airport-option-meta {
	overflow: hidden;
	color: #756d6e;
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lux-chbs-airport-panel .lux-chbs-airport-empty {
	margin: 0;
	padding: 14px 10px;
	color: #756d6e;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

/* Native flight fields are moved, never duplicated. */
.chbs-booking-form-id-10007 .lux-chbs-flight-group {
	position: relative;
	display: grid;
	grid-template-rows: 0fr;
	gap: 0;
	width: 100%;
	max-height: 0;
	margin: 0;
	padding: 0 10px;
	overflow: hidden;
	opacity: 0;
	border: 0 solid rgba(107, 41, 68, 0.16);
	border-radius: 12px;
	background: linear-gradient(135deg,
		rgba(107, 41, 68, 0.045),
		rgba(225, 197, 130, 0.07));
	transition: max-height 240ms ease, opacity 190ms ease,
		margin 240ms ease, padding 240ms ease, border-width 240ms ease;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-group.is-visible {
	grid-template-rows: 1fr;
	max-height: 420px;
	gap: 7px;
	margin: -1px 0 var(--lux-chbs-field-gap, 9px);
	padding: 10px;
	opacity: 1;
	border-width: 1px;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-group-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 2px;
	color: var(--lux-airport-wine);
	font-family: var(--lux-airport-sans);
	font-size: 10px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-group-heading::before {
	width: 18px;
	height: 1px;
	content: "";
	background: linear-gradient(90deg,
		var(--lux-airport-gold),
		var(--lux-airport-wine-bright));
}

.chbs-booking-form-id-10007 .lux-chbs-flight-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	min-height: 0;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-slot[hidden] {
	display: none !important;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-slot,
.chbs-booking-form-id-10007 .lux-chbs-flight-slot > .chbs-form-field,
.chbs-booking-form-id-10007 .lux-chbs-flight-field {
	min-width: 0;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-slot > .chbs-form-field,
.chbs-booking-form-id-10007 .lux-chbs-flight-field {
	position: relative;
	width: 100% !important;
	min-height: 58px;
	margin: 0 !important;
	padding: 8px 12px !important;
	border: 1px solid var(--lux-airport-line) !important;
	border-radius: 10px !important;
	background: #fffdf9 !important;
	box-shadow: none !important;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-field > label {
	display: block !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: #5f5759 !important;
	font-family: var(--lux-airport-sans) !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0.075em !important;
	text-transform: uppercase !important;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-field input[type="text"] {
	display: block !important;
	width: 100% !important;
	min-height: 25px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--lux-airport-ink) !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--lux-airport-sans) !important;
	font-size: 15px !important;
	font-weight: 550 !important;
	line-height: 1.35 !important;
	text-transform: uppercase;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-field:focus-within {
	border-color: var(--lux-airport-wine) !important;
	box-shadow: 0 0 0 3px rgba(107, 41, 68, 0.1) !important;
}

.chbs-booking-form-id-10007 .lux-chbs-flight-field.has-lux-chbs-error {
	border-color: var(--lux-airport-danger) !important;
	box-shadow: 0 0 0 3px rgba(159, 38, 63, 0.1) !important;
}

.chbs-booking-form-id-10007 .lux-chbs-field-error {
	display: block;
	margin: 6px 0 0;
	color: var(--lux-airport-danger);
	font-family: var(--lux-airport-sans);
	font-size: 10px;
	font-weight: 650;
	line-height: 1.4;
}

.chbs-booking-form-id-10007 .lux-chbs-companion-notice {
	display: none;
	width: 100%;
	margin: 8px 0;
	padding: 10px 12px;
	color: #7d1f33;
	border: 1px solid rgba(159, 38, 63, 0.25);
	border-radius: 9px;
	background: rgba(159, 38, 63, 0.07);
	font-family: var(--lux-airport-sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.chbs-booking-form-id-10007 .lux-chbs-companion-notice.is-visible {
	display: block;
}

.chbs-booking-form-id-10007 .lux-chbs-empty-native-row,
.chbs-booking-form-id-10007 .lux-chbs-empty-native-panel,
.chbs-booking-form-id-10007 .lux-chbs-empty-native-heading {
	display: none !important;
}

@media (max-width: 767px) {
	.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li > a,
	.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li > .ui-tabs-anchor {
		padding-inline: 4px !important;
		font-size: 10px !important;
		letter-spacing: 0.015em !important;
		white-space: nowrap !important;
	}

	.chbs-booking-form-id-10007.lux-chbs-airport-mode-active
		#panel-1 .lux-chbs-airport-address-focus-zone {
		min-height: 74px !important;
	}

	.chbs-booking-form-id-10007 .lux-chbs-airport-trigger {
		min-height: 36px;
		padding: 7px 12px;
		font-size: 10.5px;
	}

	.lux-chbs-airport-panel[data-lux-chbs-portal-owner] {
		border-radius: 15px;
		padding: 13px;
		box-shadow: 0 18px 58px rgba(16, 9, 13, 0.38);
	}

	.lux-chbs-airport-panel .lux-chbs-airport-list {
		max-height: calc(100% - 116px);
	}

	.lux-chbs-airport-panel .lux-chbs-airport-option {
		min-height: 58px;
		padding: 10px;
	}

	.chbs-booking-form-id-10007 .lux-chbs-flight-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 389px) {
	.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li > a,
	.chbs-booking-form-id-10007 .chbs-tab > ul.lux-chbs-has-airport-tab > li > .ui-tabs-anchor {
		font-size: 9.2px !important;
	}

	.lux-chbs-airport-panel .lux-chbs-airport-panel-header strong {
		font-size: 12px;
	}

	.lux-chbs-airport-panel .lux-chbs-airport-search {
		font-size: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chbs-booking-form-id-10007 .lux-chbs-flight-group,
	.chbs-booking-form-id-10007 .lux-chbs-airport-trigger,
	.lux-chbs-airport-panel[data-lux-chbs-portal-owner],
	.lux-chbs-airport-panel .lux-chbs-airport-option {
		transition: none !important;
	}
}
