/* Jobs search page — half-map layout + mobile */

.sr-jobs-hero {
	padding: 24px 0 8px;
}

.sr-jobs-hero__title {
	font-size: 2rem;
	margin-bottom: 12px;
}

.sr-jobs-hero__intro {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #4b5563;
	max-width: 52rem;
}

.sr-jobs-app.half-map-wrap {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	min-height: 70vh;
	margin-top: 16px;
}

.sr-jobs-map-panel {
	flex: 0 0 45%;
	max-width: 45%;
	position: relative;
	background: #e5e7eb;
	order: 2;
}

.sr-jobs-map-inner,
.sr-jobs-map-canvas {
	width: 100%;
	height: 100%;
	min-height: 520px;
}

.sr-jobs-list-panel {
	flex: 1 1 55%;
	max-width: 55%;
	min-width: 0;
	padding: 16px 20px 40px;
	overflow-y: auto;
	max-height: calc(100vh - 120px);
	order: 1;
}

.sr-jobs-map-toggle,
.sr-jobs-filters-toggle {
	display: none;
	margin-bottom: 8px;
}

.sr-jobs-filters-bar {
	margin-bottom: 16px;
}

.sr-jobs-filters-drawer {
	display: block;
}

.sr-jobs-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.sr-jobs-field {
	flex: 1 1 160px;
	min-width: 140px;
}

.sr-jobs-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #374151;
}

.sr-jobs-field input[type="text"],
.sr-jobs-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}

.sr-jobs-search-submit {
	white-space: nowrap;
}

.sr-jobs-count {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 12px;
}

/* ---------- Job card grid ---------- */
#sr-jobs-cards-wrap {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

#half-map-listing-area.sr-results-mode-jobs .card-deck {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
}

#half-map-listing-area.sr-results-mode-jobs .card-deck::before,
#half-map-listing-area.sr-results-mode-jobs .card-deck::after {
	display: none;
}

/* ---------- Job card ---------- */
.sr-job-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sr-job-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.sr-job-card.is-highlighted {
	border-color: #004274;
	box-shadow: 0 0 0 2px rgba(0, 66, 116, 0.2);
}

/* ---------- Header: logo + company + posted ---------- */
.sr-job-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 0;
}

.sr-job-card__logo-wrap {
	flex-shrink: 0;
}

.sr-job-card__logo {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid #e5e7eb;
}

.sr-job-card__logo--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: linear-gradient(135deg, #004274, #00639e);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.sr-job-card__header-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sr-job-card__company-name {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sr-job-card__posted {
	font-size: 12px;
	color: #9ca3af;
}

/* ---------- Body ---------- */
.sr-job-card__body {
	flex: 1;
	padding: 10px 16px 0;
}

.sr-job-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #111827;
	text-decoration: none;
	margin-bottom: 6px;
}

.sr-job-card__title:hover {
	color: #004274;
}

.sr-job-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}

.sr-job-card__location::before {
	content: "\f3c5";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 11px;
	margin-right: 4px;
	color: #9ca3af;
}

.sr-job-card__distance::before {
	content: "\b7";
	margin-right: 2px;
}

/* ---------- Badges: employment type + compensation ---------- */
.sr-job-card__details {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.sr-job-card__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.sr-job-card__type {
	background: #eff6ff;
	color: #1e40af;
}

.sr-job-card__comp {
	background: #f0fdf4;
	color: #166534;
}

/* ---------- Tags ---------- */
.sr-job-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 4px;
}

.sr-job-card__tag {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	padding: 2px 9px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 500;
	color: #4b5563;
}

/* ---------- Footer: CTA ---------- */
.sr-job-card__footer {
	padding: 10px 16px 14px;
	margin-top: auto;
}

.sr-job-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #004274;
	text-decoration: none;
	transition: color 0.15s;
}

.sr-job-card__cta:hover {
	color: #00639e;
	text-decoration: underline;
}

/* ---------- Empty / pagination ---------- */
.sr-jobs-empty {
	color: #6b7280;
	padding: 24px 0;
	grid-column: 1 / -1;
}

.sr-jobs-pagination {
	margin-top: 20px;
	grid-column: 1 / -1;
}

.search-no-results-found {
	grid-column: 1 / -1;
}

@media (max-width: 991px) {
	.sr-jobs-app.half-map-wrap {
		flex-direction: column;
	}

	.sr-jobs-map-panel {
		flex: none;
		max-width: none;
		width: 100%;
		order: 2;
		display: none;
		min-height: 0;
	}

	.sr-jobs-map-panel.is-open {
		display: block;
	}

	.sr-jobs-map-inner,
	.sr-jobs-map-canvas {
		min-height: 280px;
	}

	.sr-jobs-list-panel {
		order: 1;
		flex: none;
		max-width: none;
		width: 100%;
		max-height: none;
		padding: 12px 12px 32px;
	}

	.sr-jobs-map-toggle {
		display: inline-block;
		width: 100%;
		padding: 10px;
		border-radius: 8px;
		border: 1px solid #d1d5db;
		background: #fff;
		font-weight: 600;
		cursor: pointer;
	}

	.sr-jobs-filters-toggle {
		display: inline-block;
		width: 100%;
		padding: 10px;
		margin-bottom: 12px;
		border-radius: 8px;
		border: 1px solid #d1d5db;
		background: #f9fafb;
		font-weight: 600;
		cursor: pointer;
	}

	.sr-jobs-filters-drawer {
		display: none;
		margin-bottom: 12px;
	}

	.sr-jobs-filters-drawer.is-open {
		display: block;
	}

	.sr-jobs-search-form {
		flex-direction: column;
		align-items: stretch;
	}

	#half-map-listing-area.sr-results-mode-jobs .card-deck {
		gap: 16px;
	}
}

@media (max-width: 767px) {
	#sr-jobs-cards-wrap,
	#half-map-listing-area.sr-results-mode-jobs .card-deck {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	#sr-jobs-cards-wrap,
	#half-map-listing-area.sr-results-mode-jobs .card-deck {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Rentals/Jobs mode tabs: override Houzez's white-on-dark .nav-pills --- */
/* Houzez main.css sets .nav-pills .nav-link { color: #fff } for dark banners.
   Our mode tabs sit on light backgrounds, so we need explicit dark-on-light. */

.sr-search-mode-tabs.nav-pills .nav-link {
	color: #374151;
	background: transparent;
	border-radius: 8px;
	padding: 8px 18px;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.15s, color 0.15s;
}

.sr-search-mode-tabs.nav-pills .nav-link:hover {
	background: rgba(0, 66, 116, 0.06);
}

.sr-search-mode-tabs.nav-pills .nav-link.active {
	background: #004274 !important;
	color: #fff !important;
	box-shadow: 0 1px 4px rgba(0, 66, 116, 0.18);
}

/* Banner overlay variant: on dark backgrounds (splash / parallax), invert */
.top-banner-wrap .sr-search-mode-tabs.nav-pills .nav-link {
	color: rgba(255, 255, 255, 0.85);
}

.top-banner-wrap .sr-search-mode-tabs.nav-pills .nav-link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.top-banner-wrap .sr-search-mode-tabs.nav-pills .nav-link.active {
	background: #fff !important;
	color: #004274 !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Compact spacing for the pills row */
.sr-search-mode-tabs.nav-pills {
	gap: 4px;
	padding: 4px;
	background: #f3f4f6;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	display: inline-flex;
	margin-bottom: 12px;
}

.top-banner-wrap .sr-search-mode-tabs.nav-pills {
	background: rgba(0, 0, 0, 0.2);
	border-color: rgba(255, 255, 255, 0.15);
}

/* --- Half-map search: Rentals/Jobs mode (search-results + taxonomy) --- */
#half-map-listing-area .sr-label-jobs {
	display: none;
}

#half-map-listing-area.sr-results-mode-jobs .sr-label-rentals {
	display: none;
}

#half-map-listing-area.sr-results-mode-jobs .sr-label-jobs {
	display: inline;
}

#half-map-listing-area.sr-results-mode-jobs .page-title-wrap .listing-sort-by,
#half-map-listing-area.sr-results-mode-jobs .page-title-wrap .listing-switch-view,
#half-map-listing-area.sr-results-mode-jobs .sr-avg-price,
#half-map-listing-area.sr-results-mode-jobs .sr-type-breakdown,
#half-map-listing-area.sr-results-mode-jobs .expanded-search-notice,
#half-map-listing-area.sr-results-mode-jobs .houzez-save-search-btn,
#half-map-listing-area.sr-results-mode-jobs .save-search-btn-wrap,
#half-map-listing-area.sr-results-mode-jobs .save-search-form-wrap,
#half-map-listing-area.sr-results-mode-jobs .sr-alert-banner {
	display: none !important;
}

/* Search heading: swap Rentals/Jobs heading text */
.sr-heading-jobs {
	display: none;
}

#half-map-listing-area.sr-results-mode-jobs .sr-heading-rentals {
	display: none !important;
}

#half-map-listing-area.sr-results-mode-jobs .sr-heading-jobs {
	display: block !important;
}

.sr-search-mode-tabs.sr-halfmap-mode-tabs,
.sr-taxonomy-mode-switch-wrap {
	margin-bottom: 12px;
}

.sr-taxonomy-mode-switch-wrap {
	padding: 0 4px;
}

.sr-taxonomy-mode-switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 6px;
	background: #f3f4f6;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.sr-tax-mode-btn {
	border: none;
	background: transparent;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.sr-tax-mode-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

.sr-tax-mode-btn.is-active {
	background: #fff;
	color: #004274;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sr-tax-mode-count {
	font-weight: 600;
	color: #6b7280;
}

#half-map-listing-area .listing-view .sr-job-card {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.sr-taxonomy-mode-switch {
		width: 100%;
		justify-content: stretch;
	}

	.sr-tax-mode-btn {
		flex: 1;
		text-align: center;
	}
}
