/**
 * Aerotravelo Flights — front-end styles.
 * Brand tokens: navy #0a1f44 · gold #c9a227 · page bg #f6f8fc ·
 * footer headings #7fb0ff · footer body #a9c6ff.
 */

/* ---------------- Sleek one-row search strip (v1.0.5) ---------------- */

#afb-search-card.afb-search-strip {
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	border: 0;
	max-width: 1040px;
	margin: 0 auto;
}

#afb-search-card .afb-strip-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
	margin-bottom: 14px;
}

#afb-search-card .afb-trip-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 0;
}

#afb-search-card .afb-trip-tab {
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

#afb-search-card .afb-trip-tab.afb-active {
	background: #c9a227;
	border-color: #c9a227;
	color: #0a1f44;
}

#afb-search-card .afb-cabin-pick {
	display: flex;
	align-items: center;
	gap: 10px;
}

#afb-search-card .afb-cabin-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#afb-search-card .afb-cabin-tab {
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

#afb-search-card .afb-cabin-tab.afb-active {
	background: #c9a227;
	border-color: #c9a227;
	color: #0a1f44;
}

#afb-search-card .afb-search-form { width: 100%; }

#afb-search-card .afb-stripbar {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border-radius: 999px;
	border: 1px solid rgba(10, 31, 68, 0.08);
	box-shadow: 0 18px 50px rgba(4, 12, 32, 0.35);
	padding: 6px;
}

#afb-search-card .afb-stripbar .afb-seg {
	flex: 1 1 0;
	min-width: 0;
	padding: 9px 18px;
	border-right: 1px solid #e6ebf3;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#afb-search-card .afb-stripbar .afb-seg--sm { flex: 0.6 1 0; }

#afb-search-card .afb-stripbar .afb-seg:nth-last-child(2) { border-right: 0; }

#afb-search-card .afb-stripbar .afb-seg label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8a97ab;
	margin-bottom: 2px;
	white-space: nowrap;
}

#afb-search-card .afb-stripbar .afb-seg input,
#afb-search-card .afb-stripbar .afb-seg select {
	width: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 2px 0;
	font-size: 14px;
	font-weight: 600;
	color: #0a1f44;
	box-sizing: border-box;
}

#afb-search-card .afb-stripbar .afb-seg input:focus,
#afb-search-card .afb-stripbar .afb-seg select:focus {
	outline: none;
	border: 0;
	box-shadow: none;
}

#afb-search-card .afb-strip-btn {
	flex: 0 0 auto;
	align-self: center;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #c9a227, #e3c25c);
	color: #0a1f44;
	font-weight: 700;
	font-size: 15px;
	padding: 15px 32px;
	margin: 2px;
	cursor: pointer;
	white-space: nowrap;
}

#afb-search-card .afb-strip-btn:hover { transform: translateY(-1px); }

#afb-search-card .afb-search-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.78);
	text-align: center;
}

@media (max-width: 900px) {
	#afb-search-card .afb-stripbar {
		flex-direction: column;
		border-radius: 20px;
		padding: 8px;
	}
	#afb-search-card .afb-stripbar .afb-seg {
		border-right: 0;
		border-bottom: 1px solid #e6ebf3;
		padding: 10px 16px;
	}
	#afb-search-card .afb-stripbar .afb-seg:nth-last-child(2) { border-bottom: 0; }
	#afb-search-card .afb-strip-btn { width: 100%; margin: 8px 0 2px; }
}

.afb-btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}

.afb-btn--primary {
	background: #c9a227;
	color: #0a1f44;
}

.afb-btn--primary:hover { background: #d5ae3e; }

.afb-btn--pill { border-radius: 999px; }

.afb-btn--large { padding: 15px 34px; font-size: 17px; }

.afb-btn--ghost {
	background: transparent;
	border: 1px solid #d8e1ec;
	color: #0a1f44;
}

.afb-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.afb-notice {
	background: #f2f6ff;
	border: 1px solid #b8c9e4;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 16px 0;
	color: #0a1f44;
	font-size: 14px;
}

.afb-notice--error { background: #fdecec; border-color: #f0a3a3; color: #8c1d1d; }
.afb-notice--warn { background: #fff8e1; border-color: #e6bd45; color: #7a5b00; }
.afb-notice--info { background: #eef4ff; border-color: #b8c9e4; }

.afb-results-head h2 { color: #0a1f44; margin: 0 0 4px; }
.afb-results-sub { color: #53657d; margin: 0 0 4px; }
.afb-results-disclosure { font-size: 12px; color: #53657d; margin: 0 0 12px; }

.afb-results-controls {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 12px;
	padding: 12px 16px;
}

.afb-results-controls label {
	font-size: 13px;
	color: #53657d;
	display: flex;
	align-items: center;
	gap: 8px;
}

.afb-results-controls select {
	border: 1px solid #d8e1ec;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	color: #0a1f44;
}

.afb-offer-list { display: flex; flex-direction: column; gap: 14px; }

.afb-offer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 14px;
	padding: 18px 22px;
	flex-wrap: wrap;
}

.afb-offer__main { flex: 1 1 420px; }

.afb-offer__airline strong { color: #0a1f44; font-size: 16px; }
.afb-offer__airline span { color: #53657d; font-size: 13px; margin-left: 8px; }

.afb-offer__times {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 12px 0;
}

.afb-offer__leg strong { font-size: 20px; color: #0a1f44; display: block; }
.afb-offer__leg span { font-size: 12px; color: #53657d; }

.afb-offer__path { flex: 1; text-align: center; min-width: 120px; }

.afb-offer__duration { font-size: 12px; color: #53657d; display: block; }
.afb-offer__line { display: block; height: 2px; background: #c9a227; margin: 6px 0; border-radius: 2px; }
.afb-offer__stops { font-size: 12px; color: #53657d; }

.afb-offer__perks { display: flex; gap: 8px; flex-wrap: wrap; }

.afb-tag {
	background: #eef6f1;
	color: #16734a;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	padding: 4px 12px;
}

.afb-offer__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	min-width: 180px;
}

.afb-offer__price { font-size: 24px; color: #0a1f44; }
.afb-offer__travellers { font-size: 12px; color: #53657d; }

.afb-deals {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.afb-deal {
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 14px;
	padding: 20px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.afb-deal:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(10, 31, 68, 0.12);
}

.afb-deal__city { font-size: 20px; font-weight: 800; color: #0a1f44; }
.afb-deal__route { font-size: 13px; color: #53657d; }
.afb-deal__from { font-size: 12px; color: #53657d; margin-top: 8px; }
.afb-deal__price { font-size: 22px; font-weight: 800; color: #c9a227; }

.afb-checkout h2, .afb-checkout h3, .afb-account h2 { color: #0a1f44; }

.afb-summary {
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 20px;
}

.afb-summary h3 { margin-top: 0; color: #0a1f44; }
.afb-summary p { color: #53657d; margin: 4px 0; }

.afb-totals { width: 100%; border-collapse: collapse; margin-top: 12px; }
.afb-totals th { text-align: left; font-weight: 600; color: #53657d; padding: 8px 0; font-size: 14px; }
.afb-totals td { text-align: right; color: #0a1f44; padding: 8px 0; font-size: 14px; }
.afb-totals__grand th, .afb-totals__grand td { font-size: 18px; font-weight: 800; color: #0a1f44; border-top: 2px solid #c9a227; }

.afb-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.afb-card-element {
	border: 1px solid #d8e1ec;
	border-radius: 10px;
	padding: 14px;
	background: #ffffff;
	margin-bottom: 16px;
}

.afb-confirmation {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.afb-confirmation__badge {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #eef6f1;
	color: #16734a;
	font-size: 36px;
	line-height: 72px;
	margin: 0 auto 16px;
}

.afb-confirmation .afb-totals { text-align: left; margin: 20px 0; }

.afb-booking {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.afb-booking__info { display: flex; flex-direction: column; gap: 2px; }
.afb-booking__info strong { color: #0a1f44; }
.afb-booking__info span { font-size: 13px; color: #53657d; }

.afb-status {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: capitalize;
	border-radius: 999px;
	padding: 3px 12px;
	width: fit-content;
}

.afb-status--confirmed { background: #eef6f1; color: #16734a; }
.afb-status--cancelled { background: #fdecec; color: #8c1d1d; }
.afb-status--pending { background: #fff8e1; color: #7a5b00; }

.afb-booking__total { display: flex; align-items: center; gap: 12px; }
.afb-booking__total strong { font-size: 18px; color: #0a1f44; }

@media (max-width: 760px) {
	.afb-search-grid { grid-template-columns: 1fr; }
	.afb-deals { grid-template-columns: 1fr; }
	.afb-form-grid { grid-template-columns: 1fr; }
	.afb-offer__side { align-items: flex-start; }
}
