/* ═══════════════════════════════════════════════════════════════
   JOBINT Lab — FUI Job Intelligence Map
   Dual-surface: white lab frame + dark instrument viewport
   Award-caliber FUI: Territory Studio / GMUNK / Oblivion tier
   ═══════════════════════════════════════════════════════════════ */

/* ── LAYOUT ── */
.jobint-body {
	background: #0a0f1a;
	overflow: hidden;
}

.jobint-nav {
	background: rgba(10, 15, 26, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.jobint-nav .nav-logo {
	color: var(--blue-primary);
	text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.lab-nav-title {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: #ffffff;
	text-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.lab-nav-tag {
	font-weight: 400;
	color: var(--gray-400);
	margin-left: var(--space-1);
}

.lab-nav-cta {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	color: var(--blue-primary);
	text-decoration: none;
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: 6px;
	padding: var(--space-2) var(--space-3);
	transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.lab-nav-cta:hover {
	background: rgba(59, 130, 246, 0.1);
	border-color: var(--blue-primary);
}

.jobint-main {
	position: relative;
	height: calc(100vh - 57px);
	height: calc(100dvh - 57px);
}

.jobint-footer {
	display: none;
}

/* ── SR ONLY ── */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ── MAP VIEWPORT ── */
.jobint-viewport {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Atmospheric grid overlay */
.jobint-viewport::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(59, 130, 246, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(59, 130, 246, 0.025) 1px, transparent 1px);
	background-size: 60px 60px;
	pointer-events: none;
	z-index: 3;
}

/* Ambient breathing glow */
.jobint-viewport::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse 60% 50% at 50% 40%,
		rgba(59, 130, 246, 0.04) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 2;
	animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 1;
	}
}

.map-container {
	width: 100%;
	height: 100%;
}

/* ── LOADING STATE ── */
.map-loading {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-6);
	background: #0a0f1a;
	transition: opacity 0.6s ease;
}

.map-loading.hidden {
	display: none;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 1.5px solid rgba(59, 130, 246, 0.15);
	border-top-color: rgba(59, 130, 246, 0.7);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loading-text {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: rgba(148, 163, 184, 0.5);
}

.loading-bar {
	width: 160px;
	height: 1px;
	background: rgba(59, 130, 246, 0.1);
	border-radius: 1px;
	overflow: hidden;
}

.loading-bar::after {
	content: "";
	display: block;
	height: 100%;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
	animation: loading-sweep 1.4s ease-in-out infinite;
}

@keyframes loading-sweep {
	0% {
		transform: translateX(-200%);
	}
	100% {
		transform: translateX(500%);
	}
}

/* ── SEARCH BAR (glassmorphic, floating) ── */
.search-bar {
	position: absolute;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	width: min(520px, calc(100% - var(--space-8)));
}

.search-bar-inner {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	background: linear-gradient(135deg, rgba(10, 15, 26, 0.88) 0%, rgba(15, 23, 42, 0.85) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(59, 130, 246, 0.15);
	border-radius: 8px;
	padding: var(--space-2) var(--space-4);
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 0 rgba(59, 130, 246, 0);
	transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.search-bar-inner:has(.search-input:focus) {
	border-color: rgba(59, 130, 246, 0.4);
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(59, 130, 246, 0.06);
}

.search-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	font-family: var(--font-sans);
	font-size: var(--text-base);
	color: #ffffff;
	padding: var(--space-2) 0;
}

.search-input::placeholder {
	color: var(--gray-500);
}

.clear-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: 6px;
	background: transparent;
	color: var(--gray-400);
	cursor: pointer;
	transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.clear-btn:hover {
	color: var(--red-alert);
	border-color: var(--red-alert);
}

.clear-btn[hidden] {
	display: none;
}

.locate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 6px;
	background: transparent;
	color: var(--gray-400);
	cursor: pointer;
	transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow
		var(--duration-fast) ease;
}

.locate-btn:hover {
	color: var(--blue-primary);
	border-color: var(--blue-primary);
	box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.locate-btn:hover svg {
	filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5));
}

.locate-btn:active {
	transform: scale(0.95);
}

.locate-btn.locating {
	color: var(--blue-primary);
	border-color: var(--blue-primary);
	animation: pulse-border 1s ease infinite;
}

@keyframes pulse-border {
	0%,
	100% {
		border-color: var(--blue-primary);
	}
	50% {
		border-color: rgba(59, 130, 246, 0.3);
	}
}

/* ── RESULTS PANEL (left side) ── */
.results-panel {
	position: absolute;
	top: 80px;
	left: var(--space-4);
	width: 340px;
	max-height: calc(100% - 100px);
	z-index: 10;
	display: flex;
	flex-direction: column;
	background: rgba(10, 15, 26, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(59, 130, 246, 0.12);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

.results-loading,
.results-empty,
.results-error {
	padding: var(--space-6) var(--space-4);
	text-align: center;
}

.results-hint,
.results-scanning,
.results-empty-title,
.results-error-title {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	color: rgba(148, 163, 184, 0.5);
}

.results-empty-hint {
	font-size: var(--text-xs);
	color: rgba(148, 163, 184, 0.35);
	margin-top: var(--space-2);
}

.results-spinner {
	width: 24px;
	height: 24px;
	margin: 0 auto var(--space-3);
}

.results-count {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: rgba(148, 163, 184, 0.5);
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.results-items {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-height: calc(100vh - 240px);
	overscroll-behavior: contain;
}

.results-error-link {
	display: inline-block;
	margin-top: var(--space-3);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--blue-primary);
	text-decoration: none;
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: 4px;
	padding: var(--space-2) var(--space-3);
	transition: background var(--duration-fast) ease;
}

.results-error-link:hover {
	background: rgba(59, 130, 246, 0.1);
}

/* Job card in results list */
.result-card {
	display: block;
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid rgba(59, 130, 246, 0.06);
	cursor: pointer;
	transition: background var(--duration-fast) ease;
}

.result-card:hover {
	background: rgba(59, 130, 246, 0.08);
}

.result-card.active {
	background: rgba(59, 130, 246, 0.12);
	border-left: 2px solid var(--blue-primary);
	padding-left: calc(var(--space-4) - 2px);
}

.result-card-title {
	font-size: var(--text-sm);
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 2px;
	line-height: 1.3;
}

.result-card-company {
	font-size: var(--text-xs);
	color: rgba(148, 163, 184, 0.7);
	margin-bottom: 4px;
}

.result-card-meta {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.result-card-location {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: var(--tracking-wide);
	color: rgba(148, 163, 184, 0.5);
}

.result-card-salary {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--blue-indicator);
}

.result-card-badge {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	padding: 1px 6px;
	border-radius: 3px;
}

.badge-remote {
	color: var(--teal-vital);
	background: rgba(20, 184, 166, 0.12);
}

.badge-source {
	color: rgba(148, 163, 184, 0.4);
	background: rgba(148, 163, 184, 0.06);
}

/* Search bar: centered when results panel hidden, offset when visible */
.search-bar {
	left: 50%;
	transform: translateX(-50%);
	width: min(520px, calc(100% - var(--space-8)));
	transition: left var(--duration-normal) var(--ease-out-expo), transform var(--duration-normal)
		var(--ease-out-expo), width var(--duration-normal) var(--ease-out-expo);
}

.search-bar.shifted {
	left: calc(340px + var(--space-4) + var(--space-4));
	transform: none;
	width: min(480px, calc(100% - 340px - var(--space-4) * 3));
}

/* Ensure MapLibre markers render above FUI overlays */
.maplibregl-marker {
	z-index: 6 !important;
}

/* ── FUI: SCANLINE ── */
@keyframes scan {
	0% {
		top: -2px;
		opacity: 0;
	}
	5% {
		opacity: 0.5;
	}
	90% {
		opacity: 0.5;
	}
	100% {
		top: 100%;
		opacity: 0;
	}
}

.scanline {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	top: -2px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(59, 130, 246, 0.2) 15%,
		rgba(59, 130, 246, 0.5) 50%,
		rgba(59, 130, 246, 0.2) 85%,
		transparent 100%
	);
	box-shadow: 0 0 16px rgba(59, 130, 246, 0.3), 0 0 48px rgba(59, 130, 246, 0.1), 0 1px 0
		rgba(59, 130, 246, 0.1);
	pointer-events: none;
	z-index: 5;
	opacity: 0;
}

.scanline.active {
	animation: scan 2s var(--ease-out-quart) forwards;
}

/* Ambient slow scan (runs continuously) */
.scanline-ambient {
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	top: -1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(59, 130, 246, 0.08) 30%,
		rgba(59, 130, 246, 0.12) 50%,
		rgba(59, 130, 246, 0.08) 70%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 5;
	animation: scan-slow 6s linear infinite;
}

@keyframes scan-slow {
	0% {
		top: -1px;
	}
	100% {
		top: 100%;
	}
}

/* ── FUI: VIGNETTE (follows cursor) ── */
.vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 4;
	background: radial-gradient(
		ellipse 65% 55% at var(--mouse-x, 50%) var(--mouse-y, 50%),
		transparent 40%,
		rgba(10, 15, 26, 0.55) 100%
	);
	transition: background-position 0.15s ease;
}

/* ── FUI: COORDINATE READOUT ── */
.coord-readout {
	position: absolute;
	bottom: var(--space-4);
	left: var(--space-4);
	z-index: 10;
	font-family: var(--font-mono);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--tracking-widest);
	color: rgba(148, 163, 184, 0.65);
	display: flex;
	align-items: center;
	gap: var(--space-4);
	background: rgba(10, 15, 26, 0.6);
	border: 1px solid rgba(59, 130, 246, 0.12);
	border-radius: 4px;
	padding: var(--space-2) var(--space-3);
	box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.coord-readout::before {
	content: "";
	display: inline-block;
	width: 2px;
	height: 12px;
	background: rgba(59, 130, 246, 0.5);
	border-radius: 1px;
	animation: blink 1.2s steps(2) infinite;
}

@keyframes blink {
	0%,
	49% {
		opacity: 1;
	}
	50%,
	100% {
		opacity: 0;
	}
}

/* ── FUI: LEGEND (HUD panel) ── */
.map-legend {
	position: absolute;
	bottom: calc(var(--space-6) + 6rem);
	right: var(--space-4);
	z-index: 10;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	color: rgba(148, 163, 184, 0.6);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	background: rgba(10, 15, 26, 0.7);
	border: 1px solid rgba(59, 130, 246, 0.12);
	border-radius: 6px;
	padding: var(--space-3) var(--space-4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.legend-title {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-widest);
	color: rgba(148, 163, 184, 0.4);
	margin-bottom: var(--space-1);
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.legend-title::before {
	content: "";
	width: 4px;
	height: 4px;
	background: rgba(59, 130, 246, 0.5);
	border-radius: 50%;
	animation: breathe 3s ease-in-out infinite;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: 2px 0;
	cursor: pointer;
	transition: color var(--duration-fast) ease;
}

.legend-item:hover {
	color: rgba(226, 232, 240, 0.9);
}

.legend-item:hover .legend-dot {
	transform: scale(1.4);
	filter: brightness(1.3);
}

.legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transition: transform var(--duration-fast) var(--ease-out-expo), filter var(--duration-fast) ease;
}

.legend-dot-tech {
	background: var(--blue-primary);
	box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.legend-dot-health {
	background: var(--teal-vital);
	box-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
}

.legend-dot-trades {
	background: #22d3ee;
	box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.legend-dot-finance {
	background: #8b5cf6;
	box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* ── DETAIL PANEL ── */
.detail-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 360px;
	max-width: 100%;
	height: 100%;
	z-index: 20;
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.97) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-left: 1px solid rgba(59, 130, 246, 0.1);
	box-shadow: -4px 0 32px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(255, 255, 255, 0.4);
	padding: 120px var(--space-6) var(--space-8);
	transform: translateX(100%);
	transition: transform 0.4s var(--ease-out-expo);
	overflow-y: auto;
}

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

.detail-panel.open {
	transform: translateX(0);
}

/* Staggered content reveal */
.detail-panel.open .overline {
	animation: fade-slide-up 0.4s var(--ease-out-expo) 0.1s both;
}

.detail-panel.open .detail-title {
	animation: fade-slide-up 0.4s var(--ease-out-expo) 0.18s both;
}

.detail-panel.open .detail-meta {
	animation: fade-slide-up 0.4s var(--ease-out-expo) 0.26s both;
}

.detail-panel.open .detail-salary {
	animation: fade-slide-up 0.4s var(--ease-out-expo) 0.34s both;
}

.detail-panel.open .detail-cta {
	animation: fade-slide-up 0.4s var(--ease-out-expo) 0.42s both;
}

.detail-panel.open .detail-source {
	animation: fade-slide-up 0.4s var(--ease-out-expo) 0.48s both;
}

@keyframes fade-slide-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.detail-close {
	position: absolute;
	top: 80px;
	right: var(--space-4);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--gray-200);
	border-radius: 6px;
	font-size: var(--text-lg);
	color: var(--gray-500);
	cursor: pointer;
	transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease, background
		var(--duration-fast) ease;
}

.detail-close-text {
	display: none;
}

.detail-close-icon {
	display: inline;
}

.detail-close:hover {
	color: var(--blue-primary);
	border-color: rgba(59, 130, 246, 0.3);
	background: rgba(59, 130, 246, 0.05);
}

.detail-panel .overline {
	font-size: 10px;
	letter-spacing: 0.06em;
	margin-bottom: var(--space-4);
	opacity: 0.8;
}

.detail-title {
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: var(--tracking-tight);
	color: var(--gray-900);
	margin-bottom: var(--space-4);
	line-height: 1.3;
}

.detail-meta {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid rgba(59, 130, 246, 0.08);
	margin-bottom: var(--space-5);
}

.detail-company,
.detail-location {
	font-size: var(--text-sm);
	color: var(--gray-700);
	line-height: 1.4;
}

.detail-salary {
	font-family: var(--font-mono);
	font-size: var(--text-lg);
	font-weight: 300;
	letter-spacing: var(--tracking-tight);
	color: var(--blue-midnight);
	margin-bottom: var(--space-6);
}

.detail-cta {
	display: block;
	text-align: center;
	text-decoration: none;
	margin-bottom: var(--space-3);
	transition: box-shadow var(--duration-fast) ease, transform var(--duration-fast)
		var(--ease-out-expo);
}

.detail-cta:hover {
	box-shadow: 0 8px 24px rgba(29, 78, 216, 0.25);
}

.detail-cta:active {
	transform: translateY(0) scale(0.98);
}

.detail-source {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	color: var(--gray-400);
	text-align: center;
}

/* ── MAPLIBRE OVERRIDES ── */
.maplibregl-ctrl-bottom-left {
	opacity: 0.25;
	transition: opacity var(--duration-fast) ease;
}

.maplibregl-ctrl-bottom-left:hover {
	opacity: 0.7;
}

/* Zoom controls: bottom-right, above attribution, clear of detail panel */
.maplibregl-ctrl-bottom-right {
	bottom: 40px;
	right: 12px;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
	background: rgba(10, 15, 26, 0.85);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 6px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button {
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	color: var(--gray-300, #cbd5e1);
	cursor: pointer;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button:hover {
	color: var(--blue-primary, #3b82f6);
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button + button {
	border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.maplibregl-popup-content {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	background: rgba(10, 15, 26, 0.94);
	color: #ffffff;
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 6px;
	padding: var(--space-2) var(--space-3);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.maplibregl-popup-tip {
	border-top-color: rgba(10, 15, 26, 0.94);
}

/* ── CLUSTER MARKERS ── */
.cluster-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	color: #ffffff;
	border: 2px solid rgba(59, 130, 246, 0.6);
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.15);
	cursor: pointer;
	transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast)
		ease;
}

.cluster-marker:hover {
	transform: scale(1.15);
	box-shadow: 0 0 28px rgba(59, 130, 246, 0.6), 0 0 56px rgba(59, 130, 246, 0.25);
}

/* ── JOB PINS ── */
@keyframes pin-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
	}
	100% {
		box-shadow: 0 0 0 14px rgba(59, 130, 246, 0);
	}
}

@keyframes pin-spawn {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	60% {
		opacity: 1;
	}
	100% {
		transform: scale(1);
	}
}

.job-pin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	cursor: pointer;
	animation: pin-spawn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	transition: transform var(--duration-fast) var(--ease-out-expo), background var(--duration-fast)
		ease;
	box-shadow: 0 0 8px currentColor, 0 0 16px rgba(59, 130, 246, 0.3);
}

.job-pin:hover {
	transform: scale(1.4);
	animation: pin-pulse 0.8s var(--ease-out-expo);
}

.job-pin-tech {
	background: var(--blue-primary);
	animation-delay: 0.05s;
}

.job-pin-health {
	background: var(--teal-vital);
	border-color: rgba(20, 184, 166, 0.6);
	animation-delay: 0.1s;
}

.job-pin-trades {
	background: #22d3ee;
	border-color: rgba(34, 211, 238, 0.6);
	animation-delay: 0.15s;
}

.job-pin-finance {
	background: #8b5cf6;
	border-color: rgba(139, 92, 246, 0.6);
	animation-delay: 0.2s;
}

.job-pin.dimmed {
	opacity: 0.15;
	transition: opacity var(--duration-fast) ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
	.results-panel {
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 40vh;
		border-radius: 8px 8px 0 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.results-items {
		max-height: none;
		overflow-y: visible;
	}

	.search-bar,
	.search-bar.shifted {
		left: 16px !important;
		width: calc(100% - 32px) !important;
		transform: none !important;
		transition: none !important;
	}

	.locate-btn {
		width: 44px;
		height: 44px;
	}

	.job-pin {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 640px) {
	.detail-panel {
		width: 100%;
		height: auto;
		max-height: 70vh;
		top: auto;
		bottom: 0;
		border-radius: 12px 12px 0 0;
		padding: 0 var(--space-4) var(--space-6);
		transform: translateY(100%);
		box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
	}

	.detail-panel.open {
		transform: translateY(0);
	}

	.detail-close {
		position: relative;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: 48px;
		border-radius: 0;
		border: none;
		border-bottom: 1px solid var(--gray-200);
		background: transparent;
		font-family: var(--font-mono);
		font-size: 0.75rem;
		font-weight: 500;
		letter-spacing: 0.05em;
		color: var(--blue-primary);
		margin-bottom: var(--space-4);
	}

	.detail-close:hover {
		background: var(--blue-glow);
	}

	.detail-close-icon {
		display: none;
	}

	.detail-close-text {
		display: inline;
	}

	.detail-panel .overline {
		margin-bottom: var(--space-2);
	}

	.map-legend,
	.coord-readout {
		display: none;
	}

	.lab-nav-back {
		display: none;
	}

	.search-input {
		font-size: 16px;
	}
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
	.scanline,
	.scanline-ambient {
		display: none;
	}

	.jobint-viewport::after {
		animation: none;
	}

	.job-pin {
		animation: none;
	}

	.job-pin:hover {
		animation: none;
	}

	.detail-panel {
		transition: none;
	}

	.detail-panel.open .overline,
	.detail-panel.open .detail-title,
	.detail-panel.open .detail-meta,
	.detail-panel.open .detail-salary,
	.detail-panel.open .detail-cta,
	.detail-panel.open .detail-source {
		animation: none;
	}

	.legend-title::before {
		animation: none;
	}

	.coord-readout::before {
		animation: none;
	}

	.loading-spinner {
		animation: none;
		border-color: rgba(59, 130, 246, 0.4);
	}
}
