.yuink-heritage-map {
	--hm-ink: #17231f;
	--hm-muted: #69766f;
	--hm-line: #dfe6e1;
	--hm-paper: #f4f0e7;
	--hm-green: #196b4f;
	box-sizing: border-box;
	width: auto !important;
	max-width: none !important;
	margin: 30px 0 56px !important;
	color: var(--hm-ink);
	font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

.yuink-world-heritage-map-page .entry-header,
.yuink-world-heritage-map-page .entry-footer,
.yuink-world-heritage-map-page .wp-block-post-title {
	display: none !important;
}

.yuink-heritage-map *,
.yuink-heritage-map *::before,
.yuink-heritage-map *::after {
	box-sizing: border-box;
}

.yuink-heritage-map button,
.yuink-heritage-map input {
	font: inherit;
}

.yuink-heritage-hero {
	display: flex;
	width: calc(100% - 48px);
	max-width: 1480px;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin: 0 auto 26px;
	padding: 0 6px;
}

.yuink-heritage-eyebrow {
	margin: 0 0 8px;
	color: #a44b37;
	font-family: Inter, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .19em;
}

.yuink-heritage-hero h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 50px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: .04em;
}

.yuink-heritage-hero > div:first-child > p:last-child {
	max-width: 700px;
	margin: 12px 0 0;
	color: var(--hm-muted);
	font-size: 15px;
	line-height: 1.8;
}

.yuink-heritage-counter {
	display: grid;
	min-width: 170px;
	grid-template-columns: auto 1fr;
	align-items: end;
	padding: 15px 18px;
	border: 1px solid rgba(61, 79, 68, .15);
	background: rgba(255, 255, 255, .7);
	box-shadow: 0 12px 35px rgba(46, 59, 51, .07);
}

.yuink-heritage-counter strong {
	grid-row: span 2;
	margin-right: 9px;
	color: #a44b37;
	font-family: Georgia, serif;
	font-size: 42px;
	line-height: .95;
}

.yuink-heritage-counter span {
	font-size: 13px;
	font-weight: 700;
}

.yuink-heritage-counter small {
	margin-top: 4px;
	color: var(--hm-muted);
	font-family: Inter, system-ui, sans-serif;
	font-size: 11px;
}

.yuink-heritage-layout {
	display: grid;
	width: calc(100% - 48px);
	max-width: 1480px;
	grid-template-columns: minmax(0, 1fr) 300px;
	min-height: 790px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid rgba(56, 75, 62, .16);
	background: #fff;
	box-shadow: 0 28px 80px rgba(43, 56, 48, .11);
}

.yuink-heritage-map-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border-right: 1px solid var(--hm-line);
	background:
		linear-gradient(rgba(88, 104, 91, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(88, 104, 91, .04) 1px, transparent 1px),
		#f8f7f2;
	background-size: 30px 30px;
}

.yuink-heritage-toolbar {
	display: flex;
	min-height: 62px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--hm-line);
	background: rgba(255, 255, 255, .78);
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
}

.yuink-heritage-layer-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.yuink-heritage-layer-tabs button,
.yuink-heritage-filter-row button {
	padding: 7px 11px;
	border: 1px solid #d9e0db;
	border-radius: 999px;
	color: #617068;
	background: #fff;
	font-size: 12px;
	cursor: pointer;
}

.yuink-heritage-layer-tabs button.is-active,
.yuink-heritage-filter-row button.is-active {
	border-color: #245f4d;
	color: #fff;
	background: #245f4d;
}

.yuink-heritage-layer-tabs button:disabled {
	opacity: .42;
	cursor: help;
}

.yuink-heritage-zoom {
	display: flex;
	flex: 0 0 auto;
	overflow: hidden;
	border: 1px solid #d8dfda;
	border-radius: 8px;
	background: #fff;
}

.yuink-heritage-zoom button {
	display: grid;
	width: 34px;
	height: 32px;
	place-items: center;
	border: 0;
	border-right: 1px solid #e2e7e3;
	color: #44534b;
	background: transparent;
	cursor: pointer;
}

.yuink-heritage-zoom button:last-child {
	border-right: 0;
}

.yuink-heritage-stage {
	position: relative;
	display: grid;
	min-height: 660px;
	flex: 1;
	place-items: center;
	overflow: hidden;
	touch-action: none;
}

.yuink-heritage-stage svg {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 720px;
	cursor: grab;
	user-select: none;
}

.yuink-heritage-stage svg.is-dragging {
	cursor: grabbing;
}

.yuink-heritage-province {
	fill: #e8e7df;
	stroke: #fff;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.05;
	vector-effect: non-scaling-stroke;
	transition: fill 160ms ease;
}

.yuink-heritage-province:hover {
	fill: #deddd4;
}

.yuink-heritage-county {
	fill: none;
	stroke: rgba(89, 105, 95, .38);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: .36;
	vector-effect: non-scaling-stroke;
}

.yuink-heritage-marker {
	outline: none;
	cursor: pointer;
}

.yuink-heritage-marker-visual {
	transform-box: fill-box;
	transform-origin: center;
}

.yuink-heritage-extension-point {
	stroke: #fff;
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.yuink-heritage-marker-halo {
	fill: rgba(255, 255, 255, .82);
	stroke: #7b8798;
	stroke-width: 2.2;
	vector-effect: non-scaling-stroke;
}

.yuink-heritage-marker.is-visited .yuink-heritage-marker-halo {
	fill: rgba(20, 160, 111, .13);
	stroke: #14a06f;
	stroke-width: 3.2;
}

.yuink-heritage-marker-pin {
	stroke: #fff;
	stroke-width: 1.4;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 3px 4px rgba(30, 42, 35, .24));
	transition: filter 140ms ease, opacity 140ms ease;
}

.yuink-heritage-marker.is-unvisited .yuink-heritage-marker-pin {
	opacity: .74;
}

.yuink-heritage-marker:hover .yuink-heritage-marker-pin,
.yuink-heritage-marker:focus .yuink-heritage-marker-pin {
	opacity: 1;
	filter: drop-shadow(0 4px 7px rgba(25, 42, 31, .42)) brightness(1.08);
}

.yuink-heritage-marker-dot {
	fill: #fff;
	pointer-events: none;
}

.yuink-heritage-tooltip {
	position: absolute;
	z-index: 6;
	width: 280px;
	padding: 14px 16px;
	transform: translate(-500px, -500px);
	border: 1px solid rgba(255, 255, 255, .12);
	opacity: 0;
	color: #fff;
	background: rgba(24, 35, 30, .95);
	box-shadow: 0 18px 45px rgba(20, 32, 26, .26);
	pointer-events: none;
	transition: opacity 120ms ease;
}

.yuink-heritage-tooltip.is-visible {
	opacity: 1;
}

.yuink-heritage-tooltip-kicker,
.yuink-heritage-tooltip small {
	display: block;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
}

.yuink-heritage-tooltip-kicker {
	margin-bottom: 4px;
	color: #d8b78c;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
}

.yuink-heritage-tooltip strong {
	display: block;
	font-size: 17px;
	line-height: 1.45;
}

.yuink-heritage-tooltip small {
	margin-top: 3px;
	color: #becac3;
	font-size: 11px;
}

.yuink-heritage-tooltip p {
	margin: 9px 0 0;
	color: #e4e9e6;
	font-size: 12px;
	line-height: 1.65;
}

.yuink-heritage-loading {
	position: absolute;
	z-index: 4;
	padding: 10px 14px;
	border: 1px solid #dbe1dc;
	color: #647168;
	background: rgba(255, 255, 255, .9);
	font-size: 13px;
}

.yuink-heritage-loading.is-error {
	color: #9f3e32;
}

.yuink-heritage-legend {
	display: flex;
	min-height: 58px;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 12px 20px;
	border-top: 1px solid var(--hm-line);
	color: #647168;
	background: rgba(255, 255, 255, .82);
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 11px;
}

.yuink-heritage-legend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.yuink-heritage-legend i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--legend);
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px #aab4ae;
}

.yuink-heritage-legend .is-status {
	margin-left: auto;
}

.yuink-heritage-legend .is-status i {
	background: #fff;
	box-shadow: 0 0 0 3px rgba(20, 160, 111, .14), 0 0 0 5px #14a06f;
}

.yuink-heritage-sidebar {
	display: flex;
	min-width: 0;
	max-height: 850px;
	flex-direction: column;
	background: #fff;
}

.yuink-heritage-filters {
	padding: 18px;
	border-bottom: 1px solid var(--hm-line);
	background: #fbfcfa;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
}

.yuink-heritage-search {
	display: block;
}

.yuink-heritage-search input {
	width: 100%;
	height: 42px;
	padding: 0 13px;
	border: 1px solid #d7dfda;
	border-radius: 6px;
	outline: none;
	color: var(--hm-ink);
	background: #fff;
	font-size: 13px;
}

.yuink-heritage-search input:focus {
	border-color: #37715e;
	box-shadow: 0 0 0 3px rgba(36, 95, 77, .1);
}

.yuink-heritage-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.yuink-heritage-list {
	flex: 1;
	overflow: auto;
	overscroll-behavior: contain;
	scrollbar-color: #ccd5cf transparent;
	scrollbar-width: thin;
}

.yuink-heritage-list-item {
	display: grid;
	width: 100%;
	grid-template-columns: 12px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	padding: 14px 17px;
	border: 0;
	border-bottom: 1px solid #eef1ee;
	text-align: left;
	color: var(--hm-ink);
	background: #fff;
	cursor: pointer;
	transition: background 130ms ease, padding-left 130ms ease;
}

.yuink-heritage-list-item:hover,
.yuink-heritage-list-item:focus {
	padding-left: 21px;
	outline: none;
	background: #f7f8f5;
}

.yuink-heritage-list-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--site-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-color) 16%, transparent);
}

.yuink-heritage-list-item strong,
.yuink-heritage-list-item small {
	display: block;
}

.yuink-heritage-list-item strong {
	font-size: 14px;
	line-height: 1.45;
}

.yuink-heritage-list-item small {
	margin-top: 4px;
	color: #7a867f;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 10px;
	line-height: 1.4;
}

.yuink-heritage-list-item em {
	padding: 3px 6px;
	border: 1px solid #dbe1dd;
	border-radius: 4px;
	color: #7a867f;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 9px;
	font-style: normal;
	white-space: nowrap;
}

.yuink-heritage-list-item em.is-visited {
	border-color: #b7decf;
	color: #147a58;
	background: #eef9f4;
}

.yuink-heritage-empty {
	padding: 35px 20px;
	color: var(--hm-muted);
	text-align: center;
	font-size: 13px;
}

.yuink-heritage-drawer {
	position: fixed;
	z-index: 99999;
	top: 0;
	right: 0;
	width: min(520px, 100%);
	height: 100vh;
	overflow-y: auto;
	transform: translateX(104%);
	color: var(--hm-ink);
	background: #faf9f5;
	box-shadow: -25px 0 70px rgba(24, 36, 29, .22);
	transition: transform 250ms ease;
}

.yuink-heritage-drawer.is-open {
	transform: translateX(0);
}

.yuink-heritage-drawer-close {
	position: fixed;
	z-index: 2;
	top: 16px;
	right: 18px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	color: #fff;
	background: rgba(19, 29, 24, .58);
	font-family: Inter, system-ui, sans-serif;
	font-size: 23px;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.yuink-heritage-detail-head {
	padding: 54px 34px 30px;
	color: #fff;
	background:
		linear-gradient(135deg, rgba(24, 59, 47, .96), rgba(24, 36, 30, .96)),
		#1c3f34;
}

.yuink-heritage-detail-head > span {
	display: inline-block;
	padding: 5px 9px;
	border-left: 3px solid var(--site-color);
	color: #dce7e2;
	background: rgba(255, 255, 255, .08);
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 10px;
	letter-spacing: .07em;
}

.yuink-heritage-detail-head h3 {
	margin: 16px 0 10px;
	color: #fff;
	font-size: clamp(27px, 5vw, 40px);
	line-height: 1.22;
	letter-spacing: .04em;
}

.yuink-heritage-detail-head p {
	margin: 0;
	color: #bfcfc7;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 11px;
}

.yuink-heritage-gallery {
	display: grid;
	grid-auto-columns: 72%;
	grid-auto-flow: column;
	gap: 4px;
	overflow-x: auto;
	background: #243b32;
	scroll-snap-type: x mandatory;
}

.yuink-heritage-gallery img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	scroll-snap-align: start;
}

.yuink-heritage-detail-copy {
	padding: 28px 34px 8px;
	font-size: 15px;
	line-height: 1.95;
}

.yuink-heritage-detail-copy p {
	margin: 0 0 1.2em;
}

.yuink-heritage-visit-badge {
	margin: 12px 34px 25px;
	padding: 13px 15px;
	border-left: 3px solid #8c9790;
	color: #69756e;
	background: #eeeee9;
	font-size: 13px;
}

.yuink-heritage-visit-badge.is-visited {
	border-left-color: #14a06f;
	color: #17684e;
	background: #e9f6f0;
}

.yuink-heritage-related {
	padding: 0 34px 24px;
}

.yuink-heritage-related h4 {
	margin: 0 0 10px;
	font-size: 17px;
}

.yuink-heritage-related ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yuink-heritage-related li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	border-top: 1px solid #dde3de;
}

.yuink-heritage-related a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 13px 0;
	color: #274d3e;
	text-decoration: none;
}

.yuink-heritage-related a strong {
	font-size: 13px;
}

.yuink-heritage-related a span {
	color: #8a948e;
	font-family: Inter, system-ui, sans-serif;
	font-size: 10px;
	white-space: nowrap;
}

.yuink-heritage-related li > button,
.yuink-heritage-related-results button {
	padding: 5px 8px;
	border: 1px solid #d8aaa4;
	border-radius: 4px;
	color: #9e3f34;
	background: #fff;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 10px;
	cursor: pointer;
}

.yuink-heritage-related-manager {
	margin: 0 34px 26px;
	padding: 16px;
	border: 1px solid #dce3de;
	background: #f3f5f1;
}

.yuink-heritage-related-manager h4 {
	margin: 0 0 10px;
	font-size: 15px;
}

.yuink-heritage-related-manager > div:first-of-type {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 7px;
}

.yuink-heritage-related-manager input {
	min-width: 0;
	padding: 8px 9px;
	border: 1px solid #cfd8d2;
	background: #fff;
	font-family: Inter, "PingFang SC", system-ui, sans-serif;
	font-size: 12px;
}

.yuink-heritage-related-manager [data-action="search-related"] {
	padding: 7px 12px;
	border: 0;
	color: #fff;
	background: #245f4d;
	cursor: pointer;
}

.yuink-heritage-related-results {
	margin-top: 10px;
}

.yuink-heritage-related-results > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #dce3de;
}

.yuink-heritage-related-results strong,
.yuink-heritage-related-results small {
	display: block;
}

.yuink-heritage-related-results strong {
	font-size: 12px;
}

.yuink-heritage-related-results small {
	margin-top: 2px;
	color: #87918b;
	font-family: Inter, system-ui, sans-serif;
	font-size: 9px;
}

.yuink-heritage-no-post {
	margin: 0 34px 24px;
	padding: 15px;
	color: #737e77;
	background: #efefea;
	font-size: 12px;
	line-height: 1.65;
}

.yuink-heritage-detail-links {
	display: flex;
	gap: 10px;
	padding: 0 34px 45px;
}

.yuink-heritage-detail-links a {
	padding: 9px 13px;
	border: 1px solid #bcc9c2;
	color: #245f4d;
	text-decoration: none;
	font-size: 12px;
}

.yuink-heritage-backdrop {
	position: fixed;
	z-index: 99998;
	inset: 0;
	display: none;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(14, 23, 18, .34);
	backdrop-filter: blur(2px);
	cursor: default;
}

body.yuink-heritage-drawer-open .yuink-heritage-backdrop {
	display: block;
}

@media (max-width: 1080px) {
	.yuink-heritage-layout {
		grid-template-columns: 1fr;
	}
	.yuink-heritage-map-card {
		border-right: 0;
		border-bottom: 1px solid var(--hm-line);
	}
	.yuink-heritage-sidebar {
		max-height: 520px;
	}
	.yuink-heritage-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.yuink-heritage-map {
		margin-top: 18px !important;
	}
	.yuink-heritage-hero,
	.yuink-heritage-layout {
		width: calc(100% - 24px);
	}
	.yuink-heritage-hero {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}
	.yuink-heritage-counter {
		align-self: flex-start;
	}
	.yuink-heritage-toolbar {
		align-items: flex-start;
	}
	.yuink-heritage-layer-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
	}
	.yuink-heritage-layer-tabs button {
		white-space: nowrap;
	}
	.yuink-heritage-stage {
		min-height: 460px;
	}
	.yuink-heritage-legend {
		gap: 13px;
	}
	.yuink-heritage-legend .is-status {
		width: 100%;
		margin-left: 0;
	}
	.yuink-heritage-list {
		display: block;
	}
	.yuink-heritage-gallery img {
		height: 210px;
	}
	.yuink-heritage-detail-head,
	.yuink-heritage-detail-copy {
		padding-right: 22px;
		padding-left: 22px;
	}
	.yuink-heritage-visit-badge,
	.yuink-heritage-no-post {
		margin-right: 22px;
		margin-left: 22px;
	}
	.yuink-heritage-related,
	.yuink-heritage-related-manager,
	.yuink-heritage-detail-links {
		padding-right: 22px;
		padding-left: 22px;
	}
	.yuink-heritage-related-manager {
		margin-right: 22px;
		margin-left: 22px;
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yuink-heritage-map *,
	.yuink-heritage-map *::before,
	.yuink-heritage-map *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
