/**
 * HG Jobs — overview map styles
 */

.hg-jobs-map-wrap {
	margin: 30px 0;
	position: relative;
}

.hg-jobs-map {
	width: 100%;
	height: var(--hg-map-height, 500px);
	background: #e8e8e8;
	border-radius: 6px;
	overflow: hidden;
}

/* Toggle buttons */
.hg-jobs-map-controls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.hg-jobs-map-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	padding: 8px 14px;
	font: inherit;
	cursor: pointer;
	color: #666;
	transition: background .15s, color .15s, border-color .15s;
}

.hg-jobs-map-btn.is-active {
	background: #1f2a37;
	border-color: #1f2a37;
	color: #fff;
}

.hg-jobs-map-btn:hover {
	border-color: #888;
}

.hg-jobs-map-btn__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

.hg-jobs-map-btn__dot--jobs {
	background: #d0021b;
}

.hg-jobs-map-btn__dot--workers {
	background: #2563eb;
}

.hg-jobs-map-btn__count {
	background: rgba( 0, 0, 0, .08 );
	color: inherit;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	min-width: 18px;
	text-align: center;
}

.hg-jobs-map-btn.is-active .hg-jobs-map-btn__count {
	background: rgba( 255, 255, 255, .18 );
}

.hg-jobs-map-error {
	display: inline-flex;
	align-items: center;
	color: #d63638;
	font-size: 18px;
	cursor: help;
}

/* Worker marker */
.hg-jobs-map-icon--worker {
	background: transparent;
	border: 0;
}

.hg-jobs-map-worker-pin {
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2563eb;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, .35 );
	margin: 2px;
}

.hg-jobs-map-icon--job {
	background: transparent;
	border: 0;
	filter: drop-shadow( 0 2px 4px rgba( 0, 0, 0, .25 ) );
}

/* Popups */
.hg-jobs-map-popup {
	min-width: 240px;
	max-width: 320px;
}

.hg-jobs-map-popup__thumb {
	width: 100%;
	height: 130px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: -10px -12px 10px -12px;
	width: calc( 100% + 24px );
}

.hg-jobs-map-popup__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.hg-jobs-map-popup__role {
	margin: 0 0 8px;
	color: #666;
	font-size: 13px;
	font-style: italic;
}

.hg-jobs-map-popup p {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.4;
}

.hg-jobs-map-popup a {
	color: #2563eb;
	text-decoration: none;
}

.hg-jobs-map-popup a:hover {
	text-decoration: underline;
}

.hg-jobs-map-popup__progress {
	margin-top: 8px;
}

.hg-jobs-map-popup__progress-top {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	margin-bottom: 4px;
	color: #d0021b;
	font-weight: 600;
}

.hg-jobs-map-popup__progress-bar {
	width: 100%;
	height: 8px;
	background: #d8d8d8;
	overflow: hidden;
	border-radius: 2px;
}

.hg-jobs-map-popup__progress-bar > span {
	display: block;
	height: 100%;
	background: #d0021b;
}

/* Tweak Leaflet's popup chrome to feel less default */
.leaflet-popup-content {
	margin: 12px;
	font-family: inherit;
}

.leaflet-popup-content-wrapper {
	border-radius: 6px;
}

/* Inline password unlock form */
.hg-jobs-map-unlock {
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	padding: 16px 18px;
	margin: 0 0 12px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .06 );
}

.hg-jobs-map-unlock__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
}

.hg-jobs-map-unlock__hint {
	margin: 0 0 10px;
	color: #666;
	font-size: 13px;
}

.hg-jobs-map-unlock__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.hg-jobs-map-unlock__row input[type="password"] {
	flex: 1 1 200px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	font: inherit;
}

.hg-jobs-map-unlock__submit,
.hg-jobs-map-unlock__cancel {
	padding: 8px 14px;
	border-radius: 4px;
	border: 1px solid transparent;
	font: inherit;
	cursor: pointer;
}

.hg-jobs-map-unlock__submit {
	background: #1f2a37;
	color: #fff;
	border-color: #1f2a37;
}

.hg-jobs-map-unlock__submit:disabled {
	opacity: .6;
	cursor: default;
}

.hg-jobs-map-unlock__cancel {
	background: #fff;
	color: #555;
	border-color: #d0d0d0;
}

.hg-jobs-map-unlock__cancel:hover {
	border-color: #888;
}

.hg-jobs-map-unlock__error {
	margin: 10px 0 0;
	padding: 8px 10px;
	background: #fff4f4;
	border-left: 3px solid #d63638;
	color: #8a1c1f;
	font-size: 13px;
}

/* Worker marker — circular badge with a recoloured person silhouette (v1.8.0) */
.hg-jobs-map-icon--worker{background:transparent;border:0;}
.hg-worker-badge{
	display:flex;align-items:center;justify-content:center;
	width:34px;height:34px;border-radius:50%;
	background:#fff;border:2px solid #d0021b;
	box-shadow:0 1px 4px rgba(0,0,0,.35);
	box-sizing:border-box;
}
.hg-worker-badge svg{display:block;}
