/* =============================================================================
   ITS Network Core — Header Live Search (command box)
   ============================================================================= */

.its-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 10vh 16px 16px;
	background: rgba(10, 20, 40, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}
.its-search-overlay.its-search-open {
	opacity: 1;
	visibility: visible;
}

.its-search-panel {
	width: 100%;
	max-width: 640px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	transform: translateY(-8px) scale(0.98);
	transition: transform 0.18s ease;
}
.its-search-overlay.its-search-open .its-search-panel {
	transform: translateY(0) scale(1);
}

.its-search-input-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #e5e7eb;
}

.its-search-icon {
	flex: 0 0 auto;
	color: #6b7280;
}

.its-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--font-work-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.4;
	color: #111827;
}
.its-search-input::placeholder {
	color: #9ca3af;
}

.its-search-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: #f3f4f6;
	color: #4b5563;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.its-search-close:hover {
	background: #e5e7eb;
	color: #111827;
}

.its-search-results {
	max-height: 60vh;
	overflow-y: auto;
	padding: 8px 0;
}

.its-search-status {
	padding: 28px 20px;
	text-align: center;
	color: #9ca3af;
	font-family: var(--font-work-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
}

.its-search-group + .its-search-group {
	border-top: 1px solid #f3f4f6;
	margin-top: 6px;
	padding-top: 6px;
}

.its-search-group-title {
	padding: 10px 20px 6px;
	font-family: var(--font-work-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0C64C2;
}

.its-search-row {
	display: block;
	padding: 10px 20px;
	text-decoration: none;
	color: #111827;
	cursor: pointer;
}
.its-search-row:hover,
.its-search-row.its-search-active {
	background: #eff6ff;
}
.its-search-row-title {
	display: block;
	font-family: var(--font-work-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #111827;
}
.its-search-row:hover .its-search-row-title,
.its-search-row.its-search-active .its-search-row-title {
	color: #0C64C2;
}
.its-search-row-snippet {
	display: block;
	margin-top: 2px;
	font-family: var(--font-work-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.its-search-see-all {
	display: block;
	padding: 12px 20px;
	font-family: var(--font-work-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0C64C2;
	text-decoration: none;
	border-top: 1px solid #f3f4f6;
}
.its-search-see-all:hover {
	background: #eff6ff;
}

/* Prevent body scroll while the search overlay is open */
body.its-search-locked {
	overflow: hidden;
}

/* Full-screen takeover on small screens */
@media (max-width: 480px) {
	.its-search-overlay {
		padding: 0;
		align-items: stretch;
	}
	.its-search-panel {
		max-width: none;
		border-radius: 0;
		box-shadow: none;
	}
	.its-search-results {
		max-height: calc(100vh - 66px);
	}
}