.jfnm-page {
	margin: 0 auto;
	padding: 40px 0 60px;
}

.jfnm-hero {
	text-align: center;
	margin-bottom: 28px;
}

.jfnm-hero__title {
	font-size: 3rem;
	font-weight: 700;
	display: block;
	line-height: 100%;
	margin: 0 0 8px;
}

.jfnm-hero__subtitle {
	color: #6b7280;
	font-size: 1rem;
	margin: 0 auto 22px;
}

.jfnm-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.jfnm-locate-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jfnm-locate-btn:hover:not(:disabled) {
	background: #1d4ed8;
}

.jfnm-locate-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.jfnm-locate-btn__icon {
	display: block;
	flex-shrink: 0;
}

.jfnm-radius {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #374151;
}

.jfnm-radius select {
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	font-size: 0.9rem;
}

.jfnm-or {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 18px 0;
	color: #9ca3af;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.jfnm-or::before,
.jfnm-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e5e7eb;
	max-width: 120px;
}

.jfnm-or span {
	padding: 0 14px;
}

.jfnm-postcode {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.jfnm-postcode__field {
	position: relative;
}

.jfnm-postcode input {
	width: 240px;
	max-width: 60vw;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	font-size: 0.95rem;
}

.jfnm-suburb-suggestions {
	position: absolute;
	top: calc( 100% + 6px );
	left: 0;
	right: 0;
	/* Leaflet's own panes/controls use z-index up to ~700 - this has to
	   clear that or the placeholder/result map draws over the dropdown. */
	z-index: 1000;
	margin: 0 !important;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.1 );
	text-align: left;
	max-height: 260px;
	overflow-y: auto;
}

.jfnm-suburb-suggestions__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
}

.jfnm-suburb-suggestions__item:hover {
	background: #f3f4f6;
}

.jfnm-suburb-suggestions__name {
	color: #111827;
	font-weight: 500;
}

.jfnm-suburb-suggestions__state {
	color: #6b7280;
	font-size: 0.8rem;
	white-space: nowrap;
}

.jfnm-postcode__submit {
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid #2563eb;
	background: #fff;
	color: #2563eb;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.jfnm-postcode__submit:hover {
	background: #2563eb;
	color: #fff;
}

.jfnm-postcode-error {
	text-align: center;
	color: #dc2626;
	font-size: 0.85rem;
	margin-top: 10px;
}

.jfnm-status {
	text-align: center;
	min-height: 1.5em;
	color: #6b7280;
	margin-bottom: 20px;
}

.jfnm-status--empty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: fit-content;
	margin: 0 auto 20px;
	padding: 12px 18px;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-weight: 500;
}

.jfnm-status--empty svg {
	flex-shrink: 0;
	color: #ea580c;
}

.jfnm-body {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
}

.jfnm-map-col {
	height: auto;
}

.jfnm-body[hidden] {
	display: none;
}

@media ( max-width: 820px ) {
	.jfnm-body {
		grid-template-columns: 1fr;
	}
}

.jfnm-map {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.leaflet-top {
	transform: none;
	position: auto;
}

.jfnm-list-col {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
}

.jfnm-results-count {
	font-weight: 600;
	margin-bottom: 12px;
	color: #374151;
}

.jfnm-hub-cta {
	display: block;
	margin-bottom: 14px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.jfnm-hub-cta:hover {
	background: #dbeafe;
}

.jfnm-job-list {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	padding-right: 6px;
	max-height: 440px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
}

.jfnm-job-list::-webkit-scrollbar {
	width: 6px;
}

.jfnm-job-list::-webkit-scrollbar-track {
	background: transparent;
}

.jfnm-job-list::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 999px;
}

.jfnm-job-list::-webkit-scrollbar-thumb:hover {
	background: #9ca3af;
}

.jfnm-job-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jfnm-job-card:hover {
	border-color: #2563eb;
	box-shadow: 0 2px 8px rgba( 37, 99, 235, 0.12 );
}

.jfnm-job-card__link {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
}

.jfnm-job-card__distance {
	font-size: 0.78rem;
	font-weight: 700;
	color: #e07a3f;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.jfnm-job-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.jfnm-job-card__meta,
.jfnm-job-card__location {
	font-size: 0.85rem;
	color: #6b7280;
}

/*
 * Skeleton loading state - shown from the moment a search starts (locating,
 * geocoding a postcode/suburb, or the results fetch itself) until real
 * results or an error/empty status replaces it. Mirrors the real
 * .jfnm-body grid and .jfnm-job-card dimensions exactly so there's no
 * layout jump when real content swaps in. Plain text status messages
 * ("Locating...", "Searching...") still show above this at the same time -
 * this is the "something is happening in the results area itself" signal,
 * not a replacement for that status line.
 */
.jfnm-skeleton {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
}

.jfnm-skeleton[hidden] {
	display: none;
}

@media ( max-width: 820px ) {
	.jfnm-skeleton {
		grid-template-columns: 1fr;
	}
}

.jfnm-skeleton__map {
	width: 100%;
	height: 100%;
	min-height: 260px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.jfnm-skeleton__col--list {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
}

.jfnm-skeleton__card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.jfnm-skeleton__card:last-child {
	margin-bottom: 0;
}

.jfnm-skeleton__line {
	border-radius: 4px;
	height: 10px;
}

.jfnm-skeleton__line--count {
	width: 40%;
	height: 14px;
	margin-bottom: 14px;
}

.jfnm-skeleton__line--distance {
	width: 30%;
	height: 8px;
}

.jfnm-skeleton__line--title {
	width: 70%;
	height: 14px;
}

.jfnm-skeleton__line--meta {
	width: 50%;
}

.jfnm-skeleton__map,
.jfnm-skeleton__line {
	background: linear-gradient( 90deg, #eceef1 25%, #f6f7f8 37%, #eceef1 63% );
	background-size: 400% 100%;
	animation: jfnm-shimmer 1.4s ease infinite;
}

@keyframes jfnm-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@media ( prefers-reduced-motion: reduce ) {
	.jfnm-skeleton__map,
	.jfnm-skeleton__line {
		animation: none;
		background: #eceef1;
	}
}

.jfnm-placeholder {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
}

.jfnm-placeholder[hidden] {
	display: none;
}

@media ( max-width: 820px ) {
	.jfnm-placeholder {
		grid-template-columns: 1fr;
	}
}

.jfnm-placeholder__col--map {
	height: 480px;
}

.jfnm-placeholder__col--map .jfnm-map {
	height: 100%;
}

.jfnm-placeholder__col--list {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 12px;
	min-height: 480px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	color: #9ca3af;
}

.jfnm-placeholder__col--list p {
	margin: 0;
	font-size: 0.95rem;
	max-width: 220px;
}

.jfnm-fallback {
	text-align: center;
	margin-top: 20px;
}

/* Upgraded from a plain 20px underlined text link to a real bordered
   button - same "obvious, not a subtlety only a power user would notice"
   standard applied to the Postcode Hub's own escape button
   (.jfh-searchbox__clear-location) and Search Jobs' scope badge
   (.jffj-scope-badge) - user feedback, 2026-08-27, extended to every
   location-scoped entry point on the site, not just those two. */
.jfnm-fallback__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 12px 26px;
	border: 1.5px solid #2563eb;
	border-radius: 999px;
	color: #2563eb;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.jfnm-fallback__link:hover {
	background: #2563eb;
	color: #fff;
}

.jfnm-how {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 1px solid #e5e7eb;
}

.jfnm-how__title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 20px;
}

.jfnm-how__steps {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
	margin-bottom: 20px;
}

@media ( max-width: 820px ) {
	.jfnm-how__steps {
		grid-template-columns: 1fr;
	}
}

.jfnm-how__step {
	background: #f9fafb;
	border-radius: 10px;
	padding: 18px 20px;
}

.jfnm-how__step b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 0.85rem;
	margin-bottom: 10px;
}

.jfnm-how__step p {
	margin: 0;
	font-size: 0.9rem;
	color: #374151;
	line-height: 1.5;
}

.jfnm-how__note {
	font-size: 0.85rem;
	color: #6b7280;
	line-height: 1.5;
}
