/* ==========================================================================
   MK-dent Partner map (template-partner-map.php)
   Ported from design/MK-dent Servicepartner Map.html
   ========================================================================== */

.mkd-pm {
	--pm-ink: #17181a;
	--pm-navy: #1e2230;
	--pm-gold: #b59a63;
	--pm-gold-dk: #a8905f;
	--pm-gold-lt: #cfb98a;
	--pm-line: #e6e3dc;
	--pm-muted: #6b6f76;
	--pm-paper: #f6f5f2;
	--pm-text: #3d4047;
	--pm-nav-h: 62px;
	--pm-titlebar-h: 52px;
	--pm-filters-h: 82px;

	color: var(--pm-ink);
	background: #fff;
	margin: 0 !important;
	padding: 0 !important;
	-webkit-font-smoothing: antialiased;
}

/* no title bar → clear the fixed #Top_bar */
.mkd-pm.mkd-pm--offset {
	margin-top: var(--pm-nav-h) !important;
	--pm-titlebar-h: 0px;
}

.mkd-pm .content_wrapper,
.mkd-pm .sections_group {
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
}

.mkd-pm a {
	color: var(--pm-ink);
	text-decoration: none;
	transition: color .15s;
}

.mkd-pm a:hover {
	color: var(--pm-gold-dk);
}

.mkd-pm button {
	font-family: inherit;
	cursor: pointer;
}

.mkd-pm h2,
.mkd-pm h3 {
	margin: 0;
	color: var(--pm-ink);
}

/* Title-bar subtitle (injected into #ac-localnav by partner-map.js) --------- */

#ac-localnav .ac-ln-content .mkd-pm-crumb {
	position: absolute;
	right: 22px;
	top: 0;
	height: 52px;
	line-height: 52px;
	max-width: 55%;
	font-size: 13px;
	font-weight: 400;
	color: #6b6f76;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Filters ------------------------------------------------------------------ */

.mkd-pm__filters {
	display: flex;
	align-items: flex-end;
	gap: 22px;
	padding: 18px 32px;
	border-bottom: 1px solid var(--pm-line);
	background: #fff;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.mkd-pm__fgroup {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.mkd-pm__fgroup label,
.mkd-pm__label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pm-ink);
	line-height: 1.2;
	margin: 0;
}

.mkd-pm__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mkd-pm .mkd-pm__chip {
	border: 1px solid var(--pm-line);
	background: var(--pm-paper);
	color: var(--pm-ink);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 8px 11px;
	border-radius: 2px;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all .15s;
	box-shadow: none;
	margin: 0;
}

.mkd-pm .mkd-pm__chip:hover {
	border-color: var(--pm-gold);
}

.mkd-pm .mkd-pm__chip.on {
	background: var(--pm-navy);
	border-color: var(--pm-navy);
	color: #fff;
}

.mkd-pm .mkd-pm__select {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	padding: 8px 32px 8px 10px;
	margin: 0;
	border: 1px solid var(--pm-line);
	border-radius: 2px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317181a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
	-webkit-appearance: none;
	appearance: none;
	color: var(--pm-ink);
	min-width: 104px;
	height: auto;
	box-shadow: none;
}

.mkd-pm .mkd-pm__select:disabled {
	color: #9b9ea3;
	background-color: var(--pm-paper);
	cursor: not-allowed;
}

.mkd-pm__sep {
	width: 1px;
	align-self: stretch;
	background: var(--pm-line);
}

.mkd-pm__factions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 6px;
	white-space: nowrap;
}

.mkd-pm .mkd-pm__reset {
	background: none;
	border: 0;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--pm-ink);
	padding: 0;
	margin: 0;
	box-shadow: none;
	line-height: 1.3;
}

.mkd-pm .mkd-pm__reset:hover {
	color: var(--pm-gold-dk);
	background: none;
}

.mkd-pm__count {
	font-size: 13px;
	color: var(--pm-muted);
	font-weight: 600;
}

.mkd-pm__count b {
	color: var(--pm-ink);
}

/* Locator ------------------------------------------------------------------ */

.mkd-pm__locator {
	display: grid;
	grid-template-columns: 400px 1fr;
	grid-template-rows: minmax(0, 1fr);
	height: calc(100vh - var(--pm-nav-h) - var(--pm-titlebar-h) - var(--pm-filters-h));
	min-height: 620px;
}

.mkd-pm__panel {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--pm-line);
	background: #fff;
	min-width: 0;
	min-height: 0;
}

.mkd-pm__panel-head {
	padding: 22px 22px 16px;
	border-bottom: 1px solid var(--pm-line);
}

.mkd-pm__panel-head h2 {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.2;
}

.mkd-pm__search {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--pm-line);
	border-radius: 2px;
	padding: 0 12px;
	height: 44px;
	color: var(--pm-ink);
	background: #fff;
}

.mkd-pm__search:focus-within {
	border-color: var(--pm-gold);
}

.mkd-pm__search.is-busy svg {
	opacity: .4;
}

.mkd-pm .mkd-pm__search input {
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 14.5px;
	flex: 1;
	min-width: 0;
	color: var(--pm-ink);
	background: transparent;
	padding: 0;
	margin: 0;
	height: 100%;
	box-shadow: none;
}

.mkd-pm .mkd-pm__search input::placeholder {
	color: #9b9ea3;
}

.mkd-pm .mkd-pm__search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.mkd-pm .mkd-pm__geo {
	margin: 10px 0 0;
	background: none;
	border: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pm-ink);
	display: flex;
	align-items: center;
	gap: 7px;
	box-shadow: none;
	line-height: 1.3;
}

.mkd-pm .mkd-pm__geo:hover,
.mkd-pm .mkd-pm__geo.active {
	color: var(--pm-gold-dk);
	background: none;
}

.mkd-pm__list {
	overflow: auto;
	flex: 1;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: #d6d3cc transparent;
}

.mkd-pm__item {
	padding: 20px 22px;
	border-bottom: 1px solid var(--pm-line);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	transition: background .15s;
}

.mkd-pm__item:hover,
.mkd-pm__item.sel {
	background: var(--pm-paper);
}

.mkd-pm__item.sel::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--pm-gold);
}

.mkd-pm__kind {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pm-gold-dk);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.mkd-pm__kind .mkd-pm__dist {
	color: var(--pm-muted);
	letter-spacing: .04em;
}

.mkd-pm__item h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.mkd-pm__addr {
	font-size: 14px;
	line-height: 1.5;
	color: var(--pm-text);
}

.mkd-pm__note {
	font-size: 13px;
	line-height: 1.5;
	color: var(--pm-muted);
}

.mkd-pm__tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.mkd-pm__tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--pm-muted);
	border: 1px solid var(--pm-line);
	padding: 3px 7px;
	border-radius: 2px;
	line-height: 1.3;
}

.mkd-pm__more {
	margin-top: 8px;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mkd-pm__more a {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--pm-ink);
}

.mkd-pm__more a:hover {
	color: var(--pm-gold-dk);
}


.mkd-pm__empty {
	padding: 40px 22px;
	color: var(--pm-muted);
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.mkd-pm__empty button {
	margin-top: 12px;
}

/* Map ---------------------------------------------------------------------- */

.mkd-pm__map {
	background: #e9e7e2;
	position: relative;
	z-index: 0;
	min-height: 0;
	height: 100%;
}

.mkd-pm--gray .leaflet-tile-pane {
	filter: grayscale(1) brightness(1.04) contrast(.92);
}

.mkd-pm .leaflet-control-zoom {
	border: 0 !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .12) !important;
	border-radius: 2px !important;
	overflow: hidden;
	margin-top: 20px;
	margin-right: 20px;
}

.mkd-pm .leaflet-control-zoom a {
	width: 40px !important;
	height: 40px !important;
	line-height: 40px !important;
	font-size: 20px !important;
	color: var(--pm-ink) !important;
	background: #fff;
	border-bottom: 1px solid var(--pm-line) !important;
	font-weight: 400;
	border-radius: 0 !important;
}

.mkd-pm .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, .8) !important;
}

.mkd-pm .leaflet-container {
	font-family: inherit;
}

/* Pins */
.mkd-pm-pin {
	position: relative;
	width: 38px;
	height: 48px;
}

.mkd-pm-pin svg {
	position: absolute;
	inset: 0;
	width: 38px;
	height: 48px;
	z-index: 1;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .28));
	transition: transform .15s;
	transform-origin: 50% 100%;
}

.mkd-pm-pin .mkd-pm-pin__logo {
	position: absolute;
	left: 9px;
	top: 7px;
	width: 20px;
	height: 20px;
	z-index: 2;
	background: #cfb98a;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	mask-repeat: no-repeat;
}

.mkd-pm-pin.own .mkd-pm-pin__logo {
	background: #1e2230;
}

.mkd-pm-pin .mkd-pm-pin__label {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 52px;
	transform: translateX(-50%);
	background: #1e2230;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 7px;
	white-space: nowrap;
	border-radius: 2px;
}

.mkd-pm-pin .mkd-pm-pin__label::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #1e2230;
	border-bottom: 0;
}

/* Grouped pin: same pin with a count badge */
.mkd-pm-pin .mkd-pm-pin__count {
	position: absolute;
	z-index: 3;
	top: -7px;
	right: -9px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 10px;
	background: #b59a63;
	border: 2px solid #fff;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.mkd-pm-pin--group {
	cursor: pointer;
}

.mkd-pm-pin--group:hover svg {
	transform: scale(1.08);
}

.mkd-pm .leaflet-marker-icon.sel {
	z-index: 1000 !important;
}

.mkd-pm .leaflet-marker-icon.sel .mkd-pm-pin svg {
	transform: scale(1.12);
}

.mkd-pm-user {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #1e2230;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #1e2230, 0 0 0 10px rgba(30, 34, 48, .12);
}

/* Popup */
.mkd-pm .leaflet-popup-content-wrapper {
	border-radius: 2px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
	padding: 6px 0;
}

.mkd-pm .leaflet-popup-content {
	margin: 18px 22px 20px;
	font-size: 13.5px;
	line-height: 1.55;
	min-width: 220px;
	color: var(--pm-ink);
}

.mkd-pm .leaflet-popup-content .mkd-pm__kind {
	font-size: 10.5px;
	margin-bottom: 4px;
}

.mkd-pm .leaflet-popup-content b {
	display: block;
	font-size: 15px;
	margin: 0 0 6px;
}

.mkd-pm .leaflet-popup-content a {
	color: var(--pm-ink);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	display: inline-block;
	margin-top: 12px;
}

.mkd-pm .leaflet-popup-tip {
	box-shadow: none;
}

.mkd-pm .leaflet-popup-close-button {
	color: var(--pm-muted) !important;
	font-size: 18px !important;
	padding: 6px 8px 0 0 !important;
}

/* Help section ------------------------------------------------------------- */

.mkd-pm__help {
	background: var(--pm-paper);
	text-align: center;
	padding: 80px 40px;
}

.mkd-pm__eyebrow {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pm-gold-dk);
}

.mkd-pm__help h2 {
	margin: 10px 0 10px;
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.15;
}

.mkd-pm__help p {
	margin: 0 0 28px;
	font-size: 16px;
	color: var(--pm-text);
}

.mkd-pm .mkd-pm__btn {
	display: inline-block;
	background: var(--pm-gold);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 30px;
	border-radius: 2px;
	line-height: 1.3;
}

.mkd-pm .mkd-pm__btn:hover {
	background: var(--pm-gold-dk);
	color: #fff;
}

/* Optional builder content below ------------------------------------------- */

.mkd-pm__content {
	padding-top: 40px;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1100px) {
	.mkd-pm__locator {
		grid-template-columns: 340px 1fr;
	}
}

@media (max-width: 900px) {
	.mkd-pm__filters {
		padding: 16px 20px;
		gap: 20px;
	}

	.mkd-pm__sep {
		display: none;
	}

	.mkd-pm__factions {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
	}

	.mkd-pm__locator {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		height: auto;
		min-height: 0;
	}

	.mkd-pm__map {
		height: 56vh;
		min-height: 360px;
		order: 1;
	}

	.mkd-pm__panel {
		order: 2;
		max-height: 60vh;
		border-right: 0;
		border-top: 1px solid var(--pm-line);
	}

	.mkd-pm__help {
		padding: 56px 20px;
	}

	.mkd-pm__help h2 {
		font-size: 30px;
	}

	.mkd-pm-crumb {
		display: none;
	}
}
