/**
 * Mobile Dealers + Recruit shells — full layout after CSS recovery gap.
 *
 * @package Flatsome_Child
 */

/* ══════════════════════════════════════════════
   Dealers listing (.fc-mdealers)
   ══════════════════════════════════════════════ */
.fc-mdealers {
	background: var(--mh-shell, #f2f5f3);
	color: var(--mh-ink, #1a2420);
	font-family: var(--fc-font-body, "Google Sans", system-ui, sans-serif);
	min-height: 100dvh;
	padding-bottom: calc(var(--mh-tab-h, 3.85rem) + env(safe-area-inset-bottom, 0px) + 4rem);
	-webkit-font-smoothing: antialiased;
}
.fc-mdealers-main { padding: 0 0 0.5rem; }

.fc-mdealers-hero { position: relative; margin: 0 0 0.1rem; }
.fc-mdealers-hero-media {
	position: relative;
	aspect-ratio: 2.35 / 1;
	max-height: 9.5rem;
	overflow: hidden;
	background: linear-gradient(135deg, #e8f3eb 0%, #d8ebe0 48%, #cfe6d6 100%);
}
.fc-mdealers-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fc-mdealers-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 20, 16, 0.06) 35%, rgba(10, 20, 16, 0.42) 100%);
	pointer-events: none;
}
.fc-mdealers-hero-copy {
	position: relative;
	z-index: 2;
	margin: 0 var(--mh-pad, 1rem);
	padding: 1rem 0 0.25rem;
}
.fc-mdealers-hero-copy.has-media {
	margin-top: -1.65rem;
	padding: 0.95rem 1rem 1rem;
	background: #fff;
	border: 1px solid #dfe7e2;
	border-radius: 1rem;
	box-shadow: 0 10px 28px rgba(16, 26, 21, 0.08);
}
.fc-mdealers-count {
	font-weight: 800;
	color: var(--mh-brand, #14c131);
}
.fc-mdealers-sep { margin: 0 0.25rem; opacity: 0.45; }

/* Province chips */
.fc-mdealers-tools { padding: 0.55rem var(--mh-pad, 1rem) 0.1rem; }
.fc-mdealers-chips-wrap { position: relative; }
.fc-mdealers-chips {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: 0.1rem 0 0.45rem;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.fc-mdealers-chips::-webkit-scrollbar { display: none; }
.fc-mdealers-chip {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-height: 2.05rem;
	margin: 0;
	padding: 0.35rem 0.8rem;
	border: 1px solid #dfe7e2;
	border-radius: 999px;
	background: #fff;
	color: var(--mh-ink, #1a2420);
	font-size: 0.78rem;
	font-weight: 750;
	cursor: pointer;
	white-space: nowrap;
}
.fc-mdealers-chip.is-active {
	background: var(--mh-brand, #14c131);
	border-color: var(--mh-brand, #14c131);
	color: #fff;
}
.fc-mdealers-chip-txt { line-height: 1.2; }
.fc-mdealers-chip-count {
	font-size: 0.68rem;
	font-weight: 700;
	opacity: 0.8;
}
.fc-mdealers-chips-fade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 1.35rem;
	width: 2rem;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--mh-shell, #f2f5f3) 90%);
	opacity: 0;
}
.fc-mdealers-chips-wrap.is-scrollable:not(.is-at-end) .fc-mdealers-chips-fade { opacity: 1; }
.fc-mdealers-chips-nudge {
	position: absolute;
	right: 0.15rem;
	top: 0.4rem;
	display: none;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: rgba(20, 193, 49, 0.12);
	color: var(--mh-brand, #14c131);
	pointer-events: none;
}
.fc-mdealers-chips-wrap.is-scrollable:not(.is-at-end) .fc-mdealers-chips-nudge { display: grid; }
.fc-mdealers-chips-guide {
	display: none;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.1rem;
}
.fc-mdealers-chips-wrap.is-scrollable .fc-mdealers-chips-guide { display: flex; }
.fc-mdealers-chips-guide-track {
	flex: 1;
	height: 3px;
	border-radius: 99px;
	background: #dfe7e2;
	overflow: hidden;
}
.fc-mdealers-chips-guide-thumb {
	display: block;
	height: 100%;
	width: 35%;
	border-radius: 99px;
	background: var(--mh-brand, #14c131);
}
.fc-mdealers-chips-guide-label {
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--mh-muted, #5c6b63);
}

/* Map */
.fc-mdealers-map-wrap {
	padding: 0.55rem var(--mh-pad, 1rem) 0.35rem;
}
.fc-mdealers-map-wrap iframe,
#fc-mdealers-map {
	display: block;
	width: 100%;
	height: 12.5rem;
	border: 0;
	border-radius: 1rem;
	background: #e8eee9;
	box-shadow: 0 8px 20px rgba(16, 26, 21, 0.06);
	border: 1px solid #e4ebe6;
}
.fc-mdealers-map-empty {
	display: grid;
	place-items: center;
	min-height: 10rem;
	padding: 1rem;
	border-radius: 1rem;
	border: 1.5px dashed #c9d4cd;
	background: #f8fbf9;
	color: var(--mh-muted, #5c6b63);
	font-size: 0.86rem;
	text-align: center;
}

/* List */
.fc-mdealers-list-section {
	padding: 0.75rem var(--mh-pad, 1rem) 0.25rem;
}
.fc-mdealers-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}
.fc-mdealers-sec-head .fc-mhome-sec-title {
	margin: 0;
	font-size: 1.05rem;
	color: var(--mh-brand, #14c131) !important;
}
.fc-mdealers-list-count {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--mh-muted, #5c6b63);
	white-space: nowrap;
}
.fc-mdealers-list {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.fc-mdealer-card {
	background: #fff;
	border: 1px solid #e4ebe6;
	border-radius: 0.95rem;
	padding: 0.85rem 0.9rem;
	box-shadow: 0 8px 18px rgba(16, 26, 21, 0.05);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fc-mdealer-card.is-active {
	border-color: rgba(20, 193, 49, 0.45);
	box-shadow: 0 10px 24px rgba(20, 193, 49, 0.12);
}
.fc-mdealer-card[hidden],
.fc-mdealer-card.is-hidden {
	display: none !important;
}
.fc-mdealer-card-top {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	margin-bottom: 0.55rem;
}
.fc-mdealer-card-ico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(20, 193, 49, 0.1);
	color: var(--mh-brand, #14c131);
}
.fc-mdealer-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}
.fc-mdealer-card-prov {
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mh-brand, #14c131);
}
.fc-mdealer-card-title {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--mh-ink, #1a2420);
}
.fc-mdealer-card-addr {
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--mh-muted, #5c6b63);
}
.fc-mdealer-card-meta {
	list-style: none;
	margin: 0 0 0.65rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.fc-mdealer-card-meta li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	color: var(--mh-muted, #5c6b63);
}
.fc-mdealer-card-meta a {
	color: var(--mh-brand-dark, #0a8f22) !important;
	text-decoration: none !important;
	font-weight: 700;
}
.fc-mdealer-meta-ico {
	display: inline-flex;
	color: var(--mh-brand, #14c131);
	line-height: 0;
}
.fc-mdealer-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
}
.fc-mdealer-card-actions .fc-mhome-btn,
.fc-mdealer-act {
	width: 100%;
	min-height: 2.35rem;
	margin: 0 !important;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
}
.fc-mdealers-empty {
	margin: 0;
	padding: 1.15rem 1rem;
	text-align: center;
	background: #fff;
	border: 1px solid #e4ebe6;
	border-radius: 0.9rem;
	color: var(--mh-muted, #5c6b63);
	font-size: 0.88rem;
}
.fc-mdealers-help {
	padding: 0.9rem var(--mh-pad, 1rem) 0.25rem;
}
.fc-mdealers-help-card {
	background: linear-gradient(145deg, #ffffff 0%, #f3faf5 52%, #e8f6ec 100%);
	border: 1px solid #dfe7e2;
	border-radius: 1rem;
	padding: 1.1rem 1rem 1.15rem;
	color: #1a2420;
	box-shadow: 0 12px 28px rgba(16, 26, 21, 0.07);
}
.fc-mdealers-help-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0a8f22;
}
.fc-mdealers-help-text {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #5c6b63;
}
.fc-mdealers-help-actions {
	display: grid;
	grid-template-columns: 1.25fr 0.9fr;
	gap: 0.45rem;
}
.fc-mdealers-help-actions .fc-mhome-btn {
	width: 100%;
	min-height: 2.5rem;
	margin-top: 0 !important;
	border-radius: 999px;
	font-size: 0.8rem;
}
.fc-mdealers-help-actions .fc-mhome-btn--soft {
	background: #fff;
	border: 1.5px solid rgba(20, 193, 49, 0.38);
	color: #0a8f22 !important;
}

/* Sticky CTA dealers: shared base in home-mobile.css (.fc-mdealers-sticky-cta) */

/* ══════════════════════════════════════════════
   Recruit (.fc-mrecruit)
   ══════════════════════════════════════════════ */
.fc-mrecruit {
	background: var(--mh-shell, #f2f5f3);
	color: var(--mh-ink, #1a2420);
	font-family: var(--fc-font-body, "Google Sans", system-ui, sans-serif);
	min-height: 100dvh;
	padding-bottom: calc(var(--mh-tab-h, 3.85rem) + env(safe-area-inset-bottom, 0px) + 4rem);
	-webkit-font-smoothing: antialiased;
}
.fc-mrecruit-main { padding: 0 0 0.5rem; }

.fc-mrecruit-hero { position: relative; }
.fc-mrecruit-hero-media {
	position: relative;
	aspect-ratio: 2.35 / 1;
	max-height: 9.5rem;
	overflow: hidden;
	background: linear-gradient(135deg, #e8f3eb 0%, #d8ebe0 48%, #cfe6d6 100%);
}
.fc-mrecruit-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fc-mrecruit-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 20, 16, 0.06) 35%, rgba(10, 20, 16, 0.42) 100%);
	pointer-events: none;
}
.fc-mrecruit-hero-copy {
	position: relative;
	z-index: 2;
	margin: 0 var(--mh-pad, 1rem);
	padding: 1rem 0 0.25rem;
}
.fc-mrecruit-hero-copy.has-media {
	margin-top: -1.65rem;
	padding: 0.95rem 1rem 1rem;
	background: #fff;
	border: 1px solid #dfe7e2;
	border-radius: 1rem;
	box-shadow: 0 10px 28px rgba(16, 26, 21, 0.08);
}
.fc-mrecruit-count {
	font-weight: 800;
	color: var(--mh-brand, #14c131);
}
.fc-mrecruit-count.is-open { color: var(--mh-brand, #14c131); }
.fc-mrecruit-sep { margin: 0 0.25rem; opacity: 0.45; }

.fc-mrecruit-tools { padding: 0.55rem var(--mh-pad, 1rem) 0.15rem; }
.fc-mrecruit-chips {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	padding: 0.1rem 0 0.35rem;
	scrollbar-width: none;
}
.fc-mrecruit-chips::-webkit-scrollbar { display: none; }
.fc-mrecruit-chip {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	flex: 0 0 auto;
	min-height: 2.05rem;
	margin: 0;
	padding: 0.35rem 0.8rem;
	border: 1px solid #dfe7e2;
	border-radius: 999px;
	background: #fff;
	color: var(--mh-ink, #1a2420);
	font-size: 0.78rem;
	font-weight: 750;
	cursor: pointer;
	white-space: nowrap;
}
.fc-mrecruit-chip.is-active {
	background: var(--mh-brand, #14c131);
	border-color: var(--mh-brand, #14c131);
	color: #fff;
}
.fc-mrecruit-chip-txt { line-height: 1.2; }
.fc-mrecruit-chip-count {
	font-size: 0.68rem;
	font-weight: 700;
	opacity: 0.85;
}

.fc-mrecruit-section {
	padding: 0.8rem var(--mh-pad, 1rem) 0.2rem;
}
.fc-mrecruit-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}
.fc-mrecruit-sec-head .fc-mhome-sec-title {
	margin: 0;
	font-size: 1.05rem;
	color: var(--mh-brand, #14c131) !important;
}
.fc-mrecruit-list-count {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--mh-muted, #5c6b63);
	white-space: nowrap;
}
.fc-mrecruit-jobs {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

/* Job cards — match recruit/mobile/app.php markup (.fc-mrecruit-job*) */
.fc-mrecruit-job {
	background: #fff;
	border: 1px solid #e4ebe6;
	border-radius: 0.95rem;
	padding: 0.9rem 0.95rem;
	box-shadow: 0 8px 18px rgba(16, 26, 21, 0.05);
}
.fc-mrecruit-job.is-expired { opacity: 0.78; }
.fc-mrecruit-job[hidden],
.fc-mrecruit-job.is-hidden { display: none !important; }
.fc-mrecruit-job-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}
.fc-mrecruit-job-place {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mh-brand, #14c131);
}
.fc-mrecruit-job-place.is-muted {
	color: var(--mh-muted, #5c6b63);
	font-weight: 700;
}
.fc-mrecruit-job-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.fc-mrecruit-job-badge.is-open {
	background: rgba(20, 193, 49, 0.12);
	color: var(--mh-brand-dark, #0a8f22);
}
.fc-mrecruit-job-badge.is-expired {
	background: #edf0ee;
	color: #6a7870;
}
.fc-mrecruit-job-title {
	margin: 0 0 0.55rem;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--mh-ink, #1a2420);
}
.fc-mrecruit-job-meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
	color: var(--mh-muted, #5c6b63);
}
.fc-mrecruit-job-meta li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.fc-mrecruit-job-meta strong {
	color: var(--mh-ink, #1a2420);
	font-weight: 750;
}
.fc-mrecruit-meta-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--mh-brand, #14c131);
	line-height: 0;
	flex: 0 0 auto;
}
.fc-mrecruit-meta-ico svg {
	width: 0.9rem;
	height: 0.9rem;
}
.fc-mrecruit-job-actions {
	display: grid;
	grid-template-columns: 1.2fr 0.9fr;
	gap: 0.4rem;
}
.fc-mrecruit-job-actions .fc-mhome-btn {
	width: 100%;
	min-height: 2.4rem;
	border-radius: 999px;
	font-size: 0.8rem;
	margin-top: 0 !important;
}
.fc-mrecruit-job-actions .fc-mhome-btn.is-disabled,
.fc-mrecruit-job-actions .is-disabled {
	opacity: 0.55;
	pointer-events: none;
	cursor: default;
}
.fc-mrecruit-empty-filter {
	margin: 0;
	padding: 1rem;
	text-align: center;
	background: #f8fbf9;
	border: 1px dashed #c9d4cd;
	border-radius: 0.85rem;
	color: var(--mh-muted, #5c6b63);
	font-size: 0.86rem;
}

/* Legacy class aliases (older partials / desktop fragments) */
.fc-mrecruit-card {
	background: #fff;
	border: 1px solid #e4ebe6;
	border-radius: 0.95rem;
	padding: 0.9rem 0.95rem;
	box-shadow: 0 8px 18px rgba(16, 26, 21, 0.05);
}
.fc-mrecruit-card.is-closed { opacity: 0.72; }
.fc-mrecruit-card[hidden],
.fc-mrecruit-card.is-hidden { display: none !important; }
.fc-mrecruit-card-title {
	margin: 0 0 0.45rem;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--mh-ink, #1a2420);
}
.fc-mrecruit-card-title a {
	color: inherit !important;
	text-decoration: none !important;
}
.fc-mrecruit-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.7rem;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
	color: var(--mh-muted, #5c6b63);
}
.fc-mrecruit-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}
.fc-mrecruit-meta strong {
	color: var(--mh-ink, #1a2420);
	font-weight: 750;
}
.fc-mrecruit-card .fc-mhome-btn {
	width: 100%;
	min-height: 2.4rem;
	border-radius: 999px;
	font-size: 0.8rem;
	margin-top: 0 !important;
}
.fc-mrecruit-prose {
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--mh-muted, #5c6b63);
}
.fc-mrecruit-prose p { margin: 0 0 0.55rem; }
.fc-mrecruit-empty {
	margin: 0;
	padding: 1.15rem 1rem;
	text-align: center;
	background: #fff;
	border: 1px solid #e4ebe6;
	border-radius: 0.9rem;
	color: var(--mh-muted, #5c6b63);
}
.fc-mrecruit-empty .fc-mhome-btn {
	margin-top: 0.75rem;
	width: 100%;
	max-width: 16rem;
}

.fc-mrecruit-help {
	padding: 0.9rem var(--mh-pad, 1rem) 0.25rem;
}
.fc-mrecruit-help-card {
	background: linear-gradient(145deg, #ffffff 0%, #f3faf5 52%, #e8f6ec 100%);
	border: 1px solid #dfe7e2;
	border-radius: 1rem;
	padding: 1.1rem 1rem 1.15rem;
	color: #1a2420;
	box-shadow: 0 12px 28px rgba(16, 26, 21, 0.07);
}
.fc-mrecruit-help-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0a8f22;
}
.fc-mrecruit-help-text {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #5c6b63;
}
.fc-mrecruit-help-actions {
	display: grid;
	grid-template-columns: 1.25fr 0.9fr;
	gap: 0.45rem;
}
.fc-mrecruit-help-actions .fc-mhome-btn {
	width: 100%;
	min-height: 2.5rem;
	margin-top: 0 !important;
	border-radius: 999px;
	font-size: 0.8rem;
}
.fc-mrecruit-help-actions .fc-mhome-btn--soft {
	background: #fff;
	border: 1.5px solid rgba(20, 193, 49, 0.38);
	color: #0a8f22 !important;
}

@media (max-width: 849px) {
	body.fc-has-mdealers #wrapper,
	body.fc-has-mrecruit #wrapper {
		background: var(--mh-shell, #f2f5f3) !important;
	}
}

@media (max-width: 360px) {
	.fc-mdealers-help-actions,
	.fc-mrecruit-help-actions,
	.fc-mdealer-card-actions,
	.fc-mrecruit-job-actions {
		grid-template-columns: 1fr;
	}
}
