:root {
	--amadeus-primary: #5191fa;
	--amadeus-secondary: #333333;
	--amadeus-border: #e3e7ee;
	--amadeus-bg: #ffffff;
	--amadeus-muted: #7a8294;
	--amadeus-radius: 10px;
	--amadeus-field-bg: #f7f9fc;
	--amadeus-shadow: 0 6px 24px rgba(20, 40, 80, 0.08);
}

.amadeus-wrap {
	font-family: inherit;
	color: var(--amadeus-secondary);
	box-sizing: border-box;
}

.amadeus-wrap *,
.amadeus-wrap *::before,
.amadeus-wrap *::after {
	box-sizing: border-box;
}

.amadeus-card {
	background: var(--amadeus-bg);
	border: 1px solid var(--amadeus-border);
	border-radius: var(--amadeus-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--amadeus-shadow);
}

.amadeus-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--amadeus-secondary);
}

.amadeus-subtitle {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
}

/* Trip type */
.amadeus-trip-type {
	display: flex;
	gap: 20px;
	margin-bottom: 16px;
}

.amadeus-trip-type label {
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Fields */
.amadeus-search-form .form-group,
.amadeus-booking-form .form-group,
.amadeus-search-form .amadeus-field,
.amadeus-booking-form .amadeus-field {
	margin-bottom: 16px;
	position: relative;
}

.amadeus-search-form label,
.amadeus-booking-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--amadeus-secondary);
}

.amadeus-search-form input,
.amadeus-search-form select,
.amadeus-booking-form input,
.amadeus-booking-form select,
.amadeus-search-form textarea,
.amadeus-booking-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--amadeus-border);
	border-radius: 8px;
	background: var(--amadeus-field-bg);
	font-size: 14px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.amadeus-search-form input:focus,
.amadeus-search-form select:focus,
.amadeus-booking-form input:focus,
.amadeus-booking-form select:focus {
	outline: none;
	border-color: var(--amadeus-primary);
	box-shadow: 0 0 0 3px rgba(81, 145, 250, 0.15);
	background: #fff;
}

.amadeus-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

/* Buttons */
.amadeus-btn,
.amadeus-search-form button,
.amadeus-booking-form button {
	display: inline-block;
	background: var(--amadeus-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.15s, transform 0.05s;
}

.amadeus-btn:hover,
.amadeus-search-form button:hover,
.amadeus-booking-form button:hover {
	filter: brightness(0.94);
	color: #fff;
}

.amadeus-btn:active {
	transform: translateY(1px);
}

.amadeus-btn-secondary {
	background: var(--amadeus-secondary);
}

/* Results */
.amadeus-results {
	margin-top: 8px;
}

.amadeus-offer {
	border: 1px solid var(--amadeus-border);
	border-radius: var(--amadeus-radius);
	padding: 18px 20px;
	margin-bottom: 16px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
	background: #fff;
	transition: box-shadow 0.15s, transform 0.1s;
}

.amadeus-offer:hover {
	box-shadow: var(--amadeus-shadow);
	transform: translateY(-1px);
}

.amadeus-offer-meta {
	color: var(--amadeus-muted);
	font-size: 13px;
	line-height: 1.6;
}

.amadeus-price {
	font-size: 24px;
	font-weight: 800;
	color: var(--amadeus-primary);
	white-space: nowrap;
}

.amadeus-alert {
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.amadeus-alert-error {
	background: #fdecea;
	color: #b42318;
	border: 1px solid #f5c2c0;
}

.amadeus-alert-success {
	background: #ecfdf3;
	color: #027a48;
	border: 1px solid #abefc6;
}

.amadeus-loading {
	opacity: 0.55;
	pointer-events: none;
}

/* Shimmer loader */
@keyframes amadeus-shimmer {
	0% {
		background-position: -468px 0;
	}
	100% {
		background-position: 468px 0;
	}
}

.amadeus-shimmer-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(2px);
}

.amadeus-shimmer-overlay__panel {
	width: min(420px, calc(100vw - 32px));
	padding: 28px 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
	text-align: center;
}

.amadeus-shimmer-overlay__spinner {
	position: relative;
	width: 100%;
	height: 6px;
	margin: 0 auto 18px;
	border-radius: 999px;
	overflow: hidden;
	background: #eef2f7;
}

.amadeus-shimmer-overlay__spinner::after {
	content: "";
	position: absolute;
	top: 0;
	left: -40%;
	height: 100%;
	width: 40%;
	border-radius: 999px;
	background: var(--amadeus-primary, #5191fa);
	animation: amadeus-shimmer-progress 1.2s ease-in-out infinite;
}

@keyframes amadeus-shimmer-progress {
	0% { left: -40%; }
	100% { left: 100%; }
}

.amadeus-shimmer-overlay__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.amadeus-shimmer-overlay__text {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.amadeus-shimmer-line {
	display: block;
	height: 12px;
	margin-bottom: 10px;
	border-radius: 6px;
	background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 40%, #eef2f7 80%);
	background-size: 468px 100%;
	animation: amadeus-shimmer 1.2s ease-in-out infinite;
}

.amadeus-shimmer-line--lg {
	width: 72%;
	height: 16px;
}

.amadeus-shimmer-line--md {
	width: 55%;
}

.amadeus-shimmer-line--sm {
	width: 38%;
	margin-bottom: 0;
}

.amadeus-flygo-offer--shimmer {
	padding: 20px;
	margin-bottom: 16px;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	background: #fff;
	pointer-events: none;
}

.amadeus-flygo-shimmer-body {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) 160px;
	gap: 20px;
	align-items: center;
}

.amadeus-flygo-shimmer-airline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.amadeus-flygo-shimmer-logo {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 10px;
	background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 40%, #eef2f7 80%);
	background-size: 468px 100%;
	animation: amadeus-shimmer 1.2s ease-in-out infinite;
}

.amadeus-flygo-shimmer-route,
.amadeus-flygo-shimmer-pricing {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.amadeus-flygo-shimmer-pricing {
	align-items: flex-end;
}

.amadeus-flygo-shimmer-btn {
	width: 120px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 40%, #eef2f7 80%);
	background-size: 468px 100%;
	animation: amadeus-shimmer 1.2s ease-in-out infinite;
}

.amadeus-flygo-shimmer-sidebar {
	pointer-events: none;
}

.amadeus-flygo-shimmer-head {
	margin-bottom: 18px;
}

.amadeus-flygo-shimmer-filter-group {
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eef2f7;
}

.amadeus-flygo-shimmer-filter-group:last-child {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.amadeus-flygo-shimmer-price-track {
	height: 4px;
	border-radius: 999px;
	margin: 14px 0 10px;
	background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 40%, #eef2f7 80%);
	background-size: 468px 100%;
	animation: amadeus-shimmer 1.2s ease-in-out infinite;
}

.amadeus-flygo-loading {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.amadeus-flygo-loading p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.amadeus-flygo-loading-bar {
	position: relative;
	display: block;
	height: 4px;
	width: 100%;
	border-radius: 999px;
	overflow: hidden;
	background: #eef2f7;
}

.amadeus-flygo-loading-bar::after {
	content: "";
	position: absolute;
	top: 0;
	left: -40%;
	height: 100%;
	width: 40%;
	border-radius: 999px;
	background: var(--amadeus-primary, #5191fa);
	animation: amadeus-shimmer-progress 1.2s ease-in-out infinite;
}

@media (max-width: 640px) {
	.amadeus-flygo-shimmer-body {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.amadeus-flygo-shimmer-pricing {
		align-items: flex-start;
	}
}

.is-pending-search .amadeus-flygo-results-count {
	opacity: 0.5;
}

.is-pending-search .amadeus-flygo-insights {
	opacity: 0.45;
	pointer-events: none;
}

/* Autocomplete */
.amadeus-autocomplete {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.amadeus-autocomplete-mount {
	position: relative;
}

.amadeus-autocomplete-list[hidden] {
	display: none !important;
}

.amadeus-autocomplete-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--amadeus-border);
	border-radius: 0 0 10px 10px;
	z-index: 40;
	max-height: 280px;
	overflow-y: auto;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	padding: 6px;
}

.amadeus-autocomplete-mount > .amadeus-autocomplete-list {
	top: calc(100% + 6px);
	border-radius: 12px;
	border: 1px solid var(--amadeus-border);
}

.amadeus-autocomplete-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 8px;
	line-height: 1.35;
}

.amadeus-autocomplete-item + .amadeus-autocomplete-item {
	margin-top: 2px;
}

.amadeus-autocomplete-item:hover,
.amadeus-autocomplete-item.is-active {
	background: #f0f6ff;
}

.amadeus-ac-code {
	flex: 0 0 44px;
	font-size: 15px;
	font-weight: 800;
	color: var(--amadeus-primary);
	letter-spacing: 0.02em;
}

.amadeus-ac-body {
	flex: 1 1 auto;
	min-width: 0;
}

.amadeus-ac-name {
	display: block;
	font-weight: 600;
	color: var(--amadeus-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amadeus-ac-meta {
	display: block;
	font-size: 12px;
	color: var(--amadeus-muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amadeus-autocomplete-list.is-loading {
	pointer-events: none;
}

.amadeus-autocomplete-status {
	padding: 8px 12px 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--amadeus-muted);
}

.amadeus-autocomplete-empty {
	padding: 14px 12px;
	font-size: 13px;
	color: var(--amadeus-muted);
	text-align: center;
}

.amadeus-autocomplete-empty--error {
	color: #b42318;
}

.amadeus-autocomplete-item--shimmer {
	pointer-events: none;
	cursor: default;
}

.amadeus-autocomplete-item--shimmer .amadeus-ac-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.amadeus-shimmer-line--code {
	flex: 0 0 44px;
	height: 18px;
	margin-bottom: 0;
}

.amadeus-autocomplete-item--shimmer .amadeus-shimmer-line--lg {
	width: 78%;
	margin-bottom: 0;
}

.amadeus-autocomplete-item--shimmer .amadeus-shimmer-line--sm {
	width: 52%;
	margin-bottom: 0;
}

/* Brand header */
.amadeus-brand-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.amadeus-brand-header img {
	max-height: 42px;
}

/* ============================================================
   STYLE VARIANTS
   ============================================================ */

/* Modern: inline horizontal search bar */
.amadeus-style-modern .amadeus-card {
	border-radius: 50px;
	padding: 14px 18px;
}

.amadeus-style-modern .amadeus-title {
	display: none;
}

.amadeus-style-modern .amadeus-search-form .amadeus-grid {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	align-items: end;
	gap: 10px;
}

.amadeus-style-modern .amadeus-search-form input,
.amadeus-style-modern .amadeus-search-form select {
	background: #fff;
	border-radius: 30px;
}

.amadeus-style-modern .amadeus-submit {
	border-radius: 30px;
	width: 100%;
	margin-top: 6px;
}

.amadeus-style-modern .amadeus-trip-type {
	padding-left: 8px;
}

/* Compact: tighter spacing, smaller fields */
.amadeus-style-compact .amadeus-card {
	padding: 16px;
}

.amadeus-style-compact .amadeus-search-form input,
.amadeus-style-compact .amadeus-search-form select {
	padding: 8px 10px;
	font-size: 13px;
}

.amadeus-style-compact .amadeus-grid {
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.amadeus-style-compact .amadeus-btn {
	padding: 9px 18px;
	font-size: 13px;
}

/* Minimal: borderless, flat */
.amadeus-style-minimal .amadeus-card {
	border: 0;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

.amadeus-style-minimal .amadeus-search-form input,
.amadeus-style-minimal .amadeus-search-form select {
	background: #fff;
	border-width: 2px;
}

.amadeus-style-minimal .amadeus-offer {
	border-left: 4px solid var(--amadeus-primary);
}

/* Activities */
.amadeus-activities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.amadeus-activity-card {
	border: 1px solid var(--amadeus-border);
	border-radius: var(--amadeus-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s, transform 0.1s;
}

.amadeus-activity-card:hover {
	box-shadow: var(--amadeus-shadow);
	transform: translateY(-2px);
}

.amadeus-activity-img {
	height: 150px;
	background-size: cover;
	background-position: center;
}

.amadeus-activity-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.amadeus-activity-body h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.amadeus-activity-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.amadeus-activity-foot .amadeus-price {
	font-size: 18px;
}

.amadeus-activity-foot .amadeus-btn {
	padding: 8px 16px;
	font-size: 13px;
}

@media (max-width: 768px) {
	.amadeus-offer {
		flex-direction: column;
		align-items: flex-start;
	}

	.amadeus-grid {
		grid-template-columns: 1fr 1fr;
	}

	.amadeus-style-modern .amadeus-card {
		border-radius: var(--amadeus-radius);
	}
}

@media (max-width: 480px) {
	.amadeus-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Unified tabbed multi-module search widget
   ========================================================================== */

.amadeus-unified {
	width: 100%;
}

.amadeus-unified--align-left {
	text-align: left;
}

.amadeus-unified--align-center {
	text-align: center;
}

.amadeus-unified--align-right {
	text-align: right;
}

.amadeus-unified-hero {
	border-radius: 20px;
	background-size: cover;
	background-position: center;
}

.amadeus-unified--hero .amadeus-unified-hero {
	padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px);
}

.amadeus-unified-head {
	margin-bottom: 22px;
}

.amadeus-unified-title {
	margin: 0 0 8px;
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 800;
	line-height: 1.15;
	color: #0f172a;
}

.amadeus-unified--hero .amadeus-unified-title,
.amadeus-unified--hero .amadeus-unified-subtitle {
	color: #fff;
}

.amadeus-unified-subtitle {
	margin: 0;
	font-size: clamp(14px, 2vw, 18px);
	opacity: 0.9;
	color: #475569;
}

.amadeus-unified-card {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	text-align: left;
	background: transparent;
}

.amadeus-unified-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px;
	margin: 0 0 -1px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
}

.amadeus-unified--align-center .amadeus-unified-tabs {
	margin-left: auto;
	margin-right: auto;
}

.amadeus-unified-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: #475569;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.amadeus-unified-tab:hover {
	color: #0f172a;
	background: rgba(15, 23, 42, 0.04);
}

.amadeus-unified-tab.is-active {
	background: var(--amadeus-primary, #5191fa);
	color: #fff;
}

.amadeus-unified-tab-icon {
	display: inline-flex;
}

.amadeus-unified-panels {
	background: #fff;
	border-radius: 0 18px 18px 18px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
	padding: 18px;
}

.amadeus-unified-panel[hidden] {
	display: none;
}

.amadeus-unified-panel .amadeus-wrap {
	margin: 0;
	max-width: 100%;
}

.amadeus-unified-panel .amadeus-card,
.amadeus-unified-panel .amadeus-hotels-search-card,
.amadeus-unified-panel .amadeus-transfers-card,
.amadeus-unified-panel .amadeus-flygo-shell {
	box-shadow: none;
}

@media (max-width: 600px) {
	.amadeus-unified-tabs {
		display: flex;
		width: 100%;
		border-radius: 14px 14px 0 0;
	}

	.amadeus-unified-tab {
		flex: 1 1 auto;
		justify-content: center;
		padding: 10px 12px;
		font-size: 14px;
	}

	.amadeus-unified-tab-label {
		display: none;
	}

	.amadeus-unified-panels {
		padding: 12px;
	}
}

.amadeus-required {
	color: #e02424;
	font-weight: 700;
}

/* Inline field validation (shared across all Amadeus modules). */
.amadeus-field-invalid,
.amadeus-field-invalid input,
.amadeus-field-invalid select,
.amadeus-field-invalid textarea {
	border-color: #e02424 !important;
	box-shadow: 0 0 0 1px rgba(224, 36, 36, 0.35) !important;
}

input.amadeus-field-invalid,
select.amadeus-field-invalid,
textarea.amadeus-field-invalid {
	background-color: rgba(224, 36, 36, 0.04);
}

.amadeus-field-error {
	display: block;
	margin-top: 6px;
	color: #e02424;
	font-size: 12.5px;
	line-height: 1.4;
}

.amadeus-form-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid rgba(224, 36, 36, 0.35);
	border-radius: var(--amadeus-radius);
	background: rgba(224, 36, 36, 0.06);
	color: #b91c1c;
	font-size: 13.5px;
	line-height: 1.45;
}

.amadeus-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%) translateY(20px);
	z-index: 100000;
	max-width: min(92vw, 420px);
	padding: 13px 18px;
	border-radius: 12px;
	background: #1f2937;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.amadeus-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Keep horizontal search bars intact: float the error below the field. */
.amadeus-flygo-bar .amadeus-flygo-field,
.amadeus-hotels-bar .amadeus-hotels-field {
	position: relative;
}

.amadeus-flygo-bar .amadeus-flygo-field .amadeus-field-error,
.amadeus-hotels-bar .amadeus-hotels-field .amadeus-field-error {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 2px;
	white-space: nowrap;
}
