/* ogace-ota-search.css — Trip.com-style unified search widget
 * Self-contained, no framework dependency, matches the modern-highlight
 * accent tokens used elsewhere in oga-app.
 */
.ogace-ota-search {
	--ota-accent: #0a7d2c;
	--ota-bg: #ffffff;
	--ota-border: #e2e5ea;
	max-width: 960px;
	margin: 0 auto;
	background: var(--ota-bg);
	border: 1px solid var(--ota-border);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
	overflow: hidden;
}

.ogace-ota-search__tabs {
	display: flex;
	background: #f6f7f9;
	border-bottom: 1px solid var(--ota-border);
}

.ogace-ota-search__tab {
	flex: 1;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 15px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #667085;
}

.ogace-ota-search__tab.is-active {
	color: var(--ota-accent);
	background: var(--ota-bg);
	box-shadow: inset 0 -2px 0 var(--ota-accent);
}

.ogace-ota-search__panel {
	display: none;
	flex-wrap: wrap;
	gap: 12px;
	padding: 20px;
	align-items: end;
}

.ogace-ota-search__panel.is-active {
	display: flex;
}

.ogace-ota-search__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 160px;
}

.ogace-ota-search__field--narrow {
	flex: 0 1 100px;
}

.ogace-ota-search__field label {
	font-size: 12px;
	font-weight: 600;
	color: #667085;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ogace-ota-search__field input {
	padding: 10px 12px;
	border: 1px solid var(--ota-border);
	border-radius: 8px;
	font-size: 14px;
}

.ogace-ota-search__submit {
	flex: 0 0 auto;
	padding: 12px 22px;
	background: var(--ota-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	height: 42px;
	align-self: flex-end;
}

.ogace-ota-search__submit:hover {
	filter: brightness(1.08);
}

.ogace-ota-search__results {
	padding: 0 20px 20px;
}

.ogace-ota-search__loading,
.ogace-ota-search__empty,
.ogace-ota-search__error {
	color: #667085;
	font-size: 14px;
	padding: 12px 0;
}

.ogace-ota-search__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.ogace-ota-card {
	border: 1px solid var(--ota-border);
	border-radius: 12px;
	padding: 14px;
	background: #fff;
}

.ogace-ota-card h4 {
	margin: 0 0 4px;
	font-size: 15px;
}

.ogace-ota-card__meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: #667085;
}

.ogace-ota-card__price {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 16px;
	color: #101828;
}

.ogace-ota-card__price span {
	font-weight: 400;
	font-size: 12px;
	color: #667085;
}

.ogace-ota-card__book {
	width: 100%;
	padding: 9px 0;
	background: var(--ota-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

.ogace-ota-card__book:disabled {
	opacity: 0.7;
	cursor: default;
}

@media (max-width: 640px) {
	.ogace-ota-search__panel {
		flex-direction: column;
		align-items: stretch;
	}
	.ogace-ota-search__submit {
		align-self: stretch;
	}
}
