:root {
	--profile-ink: #10362a;
	--profile-ink-soft: #35564b;
	--profile-green: #20794b;
	--profile-green-bright: #39a66c;
	--profile-teal: #2b8982;
	--profile-gold: #d8a83b;
	--profile-coral: #d86d55;
	--profile-mist: #eef5f0;
	--profile-paper: #fbfcfa;
	--profile-line: rgba(20, 83, 55, 0.15);
}

html {
	scroll-behavior: smooth;
}

body.page-profil_desa,
body.village-profile-page {
	background: var(--profile-paper);
	color: var(--profile-ink);
}

body.page-profil_desa .site-header.village-header,
body.village-profile-page .site-header.village-header {
	background: transparent;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	transition: opacity 260ms ease, transform 260ms ease;
}

body.page-profil_desa.admin-bar .site-header.village-header,
body.village-profile-page.admin-bar .site-header.village-header {
	top: 32px;
}

body.page-profil_desa.village-profile-header-hidden .site-header.village-header,
body.village-profile-page.village-profile-header-hidden .site-header.village-header {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-120%);
}

@media (max-width: 782px) {
	body.page-profil_desa.admin-bar .site-header.village-header,
	body.village-profile-page.admin-bar .site-header.village-header {
		top: 46px;
	}
}

.village-profile,
.village-profile * {
	box-sizing: border-box;
}

.village-profile {
	background: var(--profile-paper);
	color: var(--profile-ink);
	font-family: "Segoe UI", Arial, sans-serif;
	overflow: clip;
}

.village-profile img {
	display: block;
	max-width: 100%;
}

.village-profile h1,
.village-profile h2,
.village-profile h3,
.village-profile p,
.village-profile figure,
.village-profile blockquote,
.village-profile dl,
.village-profile dd,
.village-profile ol {
	letter-spacing: 0;
	margin: 0;
}

.village-profile h1,
.village-profile h2,
.village-profile h3 {
	color: var(--profile-ink);
	font-weight: 800;
	line-height: 1.12;
}

.village-profile p {
	color: var(--profile-ink-soft);
	font-size: 17px;
	line-height: 1.75;
}

.village-profile__inner {
	margin: 0 auto;
	max-width: 1360px;
	padding-inline: 40px;
	width: 100%;
}

.village-profile__hero {
	align-items: center;
	display: flex;
	isolation: isolate;
	min-height: 100svh;
	overflow: hidden;
	position: relative;
}

.village-profile__hero > img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: 50% 50%;
	position: absolute;
	transform: scale(1.015);
	width: 100%;
	z-index: -3;
}

.village-profile__hero-shade {
	background:
		linear-gradient(90deg, rgba(5, 31, 23, 0.89) 0%, rgba(7, 39, 29, 0.72) 45%, rgba(7, 27, 22, 0.22) 76%, rgba(7, 27, 22, 0.08) 100%),
		linear-gradient(0deg, rgba(7, 31, 23, 0.28), rgba(7, 31, 23, 0.06) 60%);
	inset: 0;
	position: absolute;
	z-index: -2;
}

.village-profile__hero-content {
	margin: 0 auto;
	max-width: 1360px;
	padding: 148px 40px 92px;
	width: 100%;
}

.village-profile__eyebrow {
	align-items: center;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	color: #ffffff !important;
	display: inline-flex;
	font-size: 14px !important;
	font-weight: 700;
	gap: 9px;
	line-height: 1 !important;
	margin-bottom: 22px !important;
	padding: 11px 15px;
}

.village-profile__eyebrow::before {
	background: var(--profile-gold);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(216, 168, 59, 0.18);
	content: "";
	height: 8px;
	width: 8px;
}

.village-profile__hero h1 {
	color: #ffffff;
	font-size: clamp(48px, 6.1vw, 82px);
	max-width: 780px;
	text-shadow: 0 5px 28px rgba(0, 0, 0, 0.3);
}

.village-profile__hero h1 span {
	display: block;
	font-size: 0.64em;
}

.village-profile__hero-content > p:not(.village-profile__eyebrow) {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(17px, 1.5vw, 21px);
	margin-top: 20px;
	max-width: 650px;
}

.village-profile__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.village-profile__button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 7px;
	display: inline-flex;
	font-size: 15px;
	font-weight: 750;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.village-profile__button::after,
.village-profile__text-link::after,
.village-profile__next a::after {
	content: "\2192";
	font-size: 19px;
	margin-left: 10px;
}

.village-profile__button:hover,
.village-profile__button:focus-visible {
	transform: translateY(-2px);
}

.village-profile__button--solid {
	background: var(--profile-green);
	box-shadow: 0 12px 30px rgba(21, 94, 56, 0.28);
	color: #ffffff;
}

.village-profile__button--solid:hover,
.village-profile__button--solid:focus-visible {
	background: #17643c;
	color: #ffffff;
}

.village-profile__button--glass {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.62);
	color: #ffffff;
}

.village-profile__button--glass:hover,
.village-profile__button--glass:focus-visible {
	background: rgba(255, 255, 255, 0.24);
	color: #ffffff;
}

.village-profile__section-nav {
	-webkit-backdrop-filter: blur(20px) saturate(1.18);
	backdrop-filter: blur(18px) saturate(1.18);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(229, 241, 234, 0.66));
	border: 1px solid rgba(190, 214, 198, 0.82);
	border-radius: 999px;
	box-shadow: 0 18px 44px rgba(17, 60, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
	margin: -38px auto 0;
	max-width: min(980px, calc(100% - 40px));
	position: sticky;
	top: 10px;
	z-index: 48;
}

.village-profile__section-nav > div {
	display: flex;
	gap: 4px;
	justify-content: center;
	margin: 0 auto;
	max-width: 980px;
	overflow-x: auto;
	padding: 5px;
	scrollbar-width: none;
	width: 100%;
}

.village-profile__section-nav > div::-webkit-scrollbar {
	display: none;
}

.village-profile__section-nav a {
	border: 0;
	border-radius: 999px;
	color: var(--profile-ink-soft);
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 750;
	min-height: 44px;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
	white-space: nowrap;
}

.village-profile__section-nav a:hover,
.village-profile__section-nav a:focus-visible {
	background: rgba(255, 255, 255, 0.78);
	color: var(--profile-green);
	outline: none;
	transform: translateY(-1px);
}

.village-profile__section-nav a.is-active {
	background: linear-gradient(135deg, var(--profile-green), #34a164);
	box-shadow: 0 10px 20px rgba(31, 112, 70, 0.22);
	color: #ffffff;
	transform: translateY(-1px);
}

.village-profile__section {
	scroll-margin-top: 120px;
}

.village-profile__section[hidden] {
	display: none;
}

.village-profile__history {
	background:
		linear-gradient(90deg, transparent 0 49.9%, rgba(32, 121, 75, 0.025) 50% 100%),
		var(--profile-paper);
	padding: 108px 0 116px;
}

.village-profile__history-layout {
	display: grid;
	gap: clamp(56px, 8vw, 116px);
	grid-template-columns: minmax(270px, 0.72fr) minmax(520px, 1.28fr);
}

.village-profile__section-intro {
	align-self: start;
	position: sticky;
	top: 120px;
}

.village-profile__kicker,
.village-profile__label {
	color: var(--profile-green) !important;
	font-size: 13px !important;
	font-weight: 800;
	line-height: 1.3 !important;
	text-transform: uppercase;
}

.village-profile__kicker {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 13px !important;
}

.village-profile__kicker::before {
	background: var(--profile-gold);
	content: "";
	height: 3px;
	width: 32px;
}

.village-profile__section-intro h2,
.village-profile__section-heading h2 {
	font-size: clamp(34px, 4vw, 52px);
	margin-bottom: 22px;
}

.village-profile__section-intro > p:not(.village-profile__kicker),
.village-profile__section-heading > p:not(.village-profile__kicker) {
	max-width: 720px;
}

.village-profile__history-summary {
	align-items: center;
	border-top: 1px solid var(--profile-line);
	display: flex;
	gap: 18px;
	margin-top: 32px;
	padding-top: 22px;
}

.village-profile__history-summary strong {
	color: var(--profile-green);
	font-size: 34px;
	line-height: 1;
}

.village-profile__history-summary span {
	color: var(--profile-ink-soft);
	font-size: 14px;
	font-weight: 700;
	max-width: 130px;
}

.village-profile__timeline {
	list-style: none;
	padding: 0;
	position: relative;
}

.village-profile__timeline::before {
	background: linear-gradient(var(--profile-green), var(--profile-teal), var(--profile-gold));
	content: "";
	left: 114px;
	position: absolute;
	top: 25px;
	bottom: 25px;
	width: 2px;
}

.village-profile__timeline li {
	display: grid;
	gap: 34px;
	grid-template-columns: 96px minmax(0, 1fr);
	padding-bottom: 18px;
	position: relative;
}

.village-profile__timeline li::after {
	background: var(--profile-paper);
	border: 3px solid var(--profile-green);
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(32, 121, 75, 0.1);
	content: "";
	height: 14px;
	left: 108px;
	position: absolute;
	top: 24px;
	width: 14px;
}

.village-profile__timeline time {
	color: var(--profile-green);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	padding-top: 23px;
	text-align: right;
}

.village-profile__timeline li > div {
	background: #ffffff;
	border: 1px solid var(--profile-line);
	border-left: 4px solid transparent;
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(18, 67, 45, 0.07);
	padding: 24px 26px;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.village-profile__timeline li > div:hover {
	border-left-color: var(--profile-gold);
	box-shadow: 0 18px 38px rgba(18, 67, 45, 0.12);
	transform: translateX(4px);
}

.village-profile__timeline h3 {
	font-size: 19px;
	margin-bottom: 7px;
}

.village-profile__timeline p {
	font-size: 15px;
	line-height: 1.65;
}

.village-profile__identity {
	background: #ffffff;
	border-block: 1px solid var(--profile-line);
	padding: 106px 0 118px;
}

.village-profile__section-heading {
	margin-bottom: 50px;
}

.village-profile__identity-layout {
	display: grid;
	gap: clamp(48px, 7vw, 96px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#logo-desa .village-profile__identity-layout {
	grid-template-columns: 1fr;
}

.village-profile__logo-story {
	align-self: start;
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
}

#logo-desa .village-profile__logo-story {
	align-items: center;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 242, 0.72));
	border: 1px solid var(--profile-line);
	border-radius: 12px;
	box-shadow: 0 22px 54px rgba(15, 70, 44, 0.1);
	padding: clamp(24px, 4vw, 44px);
}

.village-profile__logo-story figure {
	align-items: center;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 244, 238, 0.92)),
		var(--profile-mist);
	border: 1px solid var(--profile-line);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 350px;
	padding: 28px;
}

.village-profile__logo-story figure img {
	filter: drop-shadow(0 16px 18px rgba(12, 60, 39, 0.16));
	max-height: 250px;
	object-fit: contain;
}

.village-profile__logo-story figcaption {
	color: var(--profile-ink-soft);
	font-size: 12px;
	font-weight: 700;
	margin-top: 16px;
	text-align: center;
}

.village-profile__logo-story > div {
	align-self: center;
}

.village-profile__logo-story h3,
.village-profile__direction h3,
.village-profile__map-toolbar h3,
.village-profile__boundary-note h3 {
	font-size: 25px;
	margin: 8px 0 16px;
}

.village-profile__logo-story > div > p:not(.village-profile__label) {
	font-size: 15px;
	line-height: 1.72;
	margin-top: 14px;
}

.village-profile__direction > section {
	padding-top: 34px;
}

.village-profile__direction--standalone {
	align-items: start;
	display: grid;
	gap: clamp(30px, 5vw, 64px);
	grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

.village-profile__direction--standalone > section {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 243, 0.72)),
		#ffffff;
	border: 1px solid var(--profile-line);
	border-radius: 18px;
	box-shadow: 0 18px 42px rgba(15, 70, 44, 0.08);
	padding: 30px 34px;
}

.village-profile__vision-card {
	background:
		radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 27%),
		linear-gradient(135deg, #14583a, #23915a 58%, #1c756d);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 22px;
	box-shadow: 0 24px 56px rgba(18, 92, 56, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
	min-height: 410px;
	overflow: hidden;
	padding: clamp(28px, 4vw, 42px);
	position: relative;
}

.village-profile__vision-card::before {
	background: linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.26) 42%, transparent 64%);
	content: "";
	inset: -45% -70%;
	position: absolute;
	transform: translateX(-38%) rotate(8deg);
}

.profile-motion-ready .village-profile__vision-card::before {
	animation: village-profile-gloss 7s ease-in-out infinite;
}

.village-profile__vision-copy {
	position: relative;
	z-index: 2;
}

.village-profile__vision-copy span {
	color: #d9f1e2;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.village-profile__vision-copy p {
	color: #ffffff;
	font-size: clamp(25px, 3.1vw, 41px);
	font-weight: 800;
	line-height: 1.22;
	margin-top: 18px;
	max-width: 720px;
}

.village-profile__vision-orbit {
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.village-profile__vision-orbit span {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	position: absolute;
}

.village-profile__vision-orbit span:nth-child(1) {
	height: 180px;
	right: -52px;
	top: -42px;
	width: 180px;
}

.village-profile__vision-orbit span:nth-child(2) {
	bottom: 62px;
	height: 108px;
	right: 60px;
	width: 108px;
}

.village-profile__vision-orbit span:nth-child(3) {
	background: rgba(255, 255, 255, 0.12);
	bottom: -34px;
	height: 92px;
	left: 34px;
	width: 92px;
}

.profile-motion-ready .village-profile__vision-orbit span:nth-child(1) {
	animation: village-profile-float 8s ease-in-out infinite;
}

.profile-motion-ready .village-profile__vision-orbit span:nth-child(2) {
	animation: village-profile-float 7s ease-in-out 800ms infinite reverse;
}

.village-profile__vision-values {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
	position: relative;
	z-index: 2;
}

.village-profile__vision-values li {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.13);
	border: 1px solid rgba(255, 255, 255, 0.23);
	border-radius: 999px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	padding: 10px 14px;
}

.village-profile__missions {
	counter-reset: mission;
	list-style: none;
	padding: 0;
}

.village-profile__missions li {
	align-items: flex-start;
	border-top: 1px solid var(--profile-line);
	color: var(--profile-ink-soft);
	counter-increment: mission;
	display: grid;
	font-size: 15px;
	gap: 15px;
	grid-template-columns: 34px 1fr;
	line-height: 1.6;
	padding: 15px 0;
}

.village-profile__missions li::before {
	align-items: center;
	background: var(--profile-mist);
	border: 1px solid var(--profile-line);
	border-radius: 50%;
	color: var(--profile-green);
	content: counter(mission, decimal-leading-zero);
	display: flex;
	font-size: 11px;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.village-profile__geography {
	background:
		linear-gradient(180deg, #f2f7f3, #fbfcfa 48%),
		var(--profile-mist);
	padding: 108px 0 116px;
}

.village-profile__geography-head {
	align-items: end;
	display: grid;
	gap: 60px;
	grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
	margin-bottom: 50px;
}

.village-profile__geography-head .village-profile__section-heading {
	margin-bottom: 0;
}

.village-profile__facts {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.village-profile__facts > div {
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid var(--profile-line);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(19, 74, 47, 0.07);
	min-height: 142px;
	padding: 22px 18px;
	position: relative;
}

.village-profile__facts > div::before {
	background: var(--fact-color, var(--profile-green));
	content: "";
	height: 4px;
	left: 18px;
	position: absolute;
	right: 18px;
	top: 0;
}

.village-profile__facts > div:nth-child(2) {
	--fact-color: var(--profile-teal);
}

.village-profile__facts > div:nth-child(3) {
	--fact-color: var(--profile-gold);
}

.village-profile__facts > div:nth-child(4) {
	--fact-color: var(--profile-coral);
}

.village-profile__facts dt {
	color: var(--profile-ink-soft);
	font-size: 12px;
	font-weight: 750;
	margin-bottom: 13px;
}

.village-profile__facts dd {
	color: var(--profile-ink);
	font-size: clamp(26px, 2.5vw, 38px);
	font-weight: 850;
	line-height: 1;
}

.village-profile__facts small {
	display: block;
	font-size: 11px;
	font-weight: 750;
	margin-top: 10px;
}

.village-profile__map-tool {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 240, 0.72)),
		#ffffff;
	border: 1px solid var(--profile-line);
	border-radius: 20px;
	box-shadow: 0 22px 54px rgba(15, 70, 44, 0.12);
	overflow: hidden;
}

.village-profile__map-layout {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.village-profile__map-toolbar {
	align-items: center;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 241, 0.84));
	border-bottom: 1px solid var(--profile-line);
	display: flex;
	gap: 28px;
	justify-content: space-between;
	padding: 22px 26px;
}

.village-profile__map-toolbar h3 {
	font-size: 23px;
	margin-bottom: 0;
}

.village-profile__map-type {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	background: rgba(228, 239, 233, 0.88);
	border: 1px solid rgba(17, 75, 47, 0.12);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
	display: flex;
	gap: 4px;
	padding: 5px;
}

.village-profile__map-type button {
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--profile-ink-soft);
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	min-height: 38px;
	padding: 0 14px;
	transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.village-profile__map-type button:hover,
.village-profile__map-type button:focus-visible,
.village-profile__map-type button.is-active {
	background: linear-gradient(145deg, #ffffff, #eef8f2);
	box-shadow: 0 8px 18px rgba(17, 75, 47, 0.12), inset 0 1px 0 #ffffff;
	color: var(--profile-green);
	transform: translateY(-1px);
}

.village-profile__map-tabs {
	background: var(--profile-mist);
	border: 1px solid var(--profile-line);
	border-radius: 7px;
	display: flex;
	padding: 4px;
}

.village-profile__map-tabs button {
	background: transparent;
	border: 0;
	border-radius: 5px;
	color: var(--profile-ink-soft);
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 750;
	min-height: 40px;
	padding: 0 16px;
}

.village-profile__map-tabs button.is-active {
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(19, 73, 47, 0.09);
	color: var(--profile-green);
}

.village-profile__map-panel {
	min-height: 640px;
	position: relative;
}

.village-profile__map-panel[hidden] {
	display: none;
}

.village-profile__map {
	background:
		linear-gradient(rgba(32, 121, 75, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(32, 121, 75, 0.045) 1px, transparent 1px),
		#edf4ef;
	background-size: 32px 32px;
	height: 640px;
	width: 100%;
}

.village-profile__map-dusun {
	background: #ffffff;
	border: 1px solid var(--profile-line);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(15, 70, 44, 0.08);
	padding: 28px;
}

.village-profile__map-dusun h3 {
	font-size: 24px;
	margin: 8px 0 18px;
}

.village-profile__map-overlay {
	align-items: center;
	bottom: 22px;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	left: 22px;
	pointer-events: none;
	position: absolute;
	right: 22px;
	z-index: 500;
}

.village-profile__legend {
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 7px;
	box-shadow: 0 10px 25px rgba(11, 53, 34, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding: 12px 14px;
	pointer-events: auto;
}

.village-profile__legend span {
	align-items: center;
	color: var(--profile-ink);
	display: flex;
	font-size: 12px;
	font-weight: 700;
	gap: 8px;
}

.village-profile__legend i {
	display: block;
	flex: 0 0 auto;
	height: 13px;
	width: 20px;
}

.village-profile__legend-area {
	background: rgba(44, 151, 91, 0.28);
	border: 2px solid var(--profile-green);
}

.village-profile__legend-line {
	border-top: 3px dashed var(--profile-coral);
}

.village-profile__legend-marker {
	background: #ffffff;
	border: 3px solid var(--profile-gold);
	border-radius: 50%;
}

.village-map-marker {
	align-items: center;
	background: linear-gradient(145deg, #ffffff, #ebf8f1);
	border: 2px solid #176c43;
	border-radius: 50%;
	box-shadow: 0 8px 18px rgba(5, 42, 26, 0.24);
	color: #176c43;
	display: flex;
	font-size: 9px;
	font-weight: 900;
	justify-content: center;
	text-align: center;
}

.village-map-marker span {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	line-height: 1;
	width: 100%;
}

.village-map-district-label {
	color: #0d3325;
	filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.8));
	line-height: 1.1;
	text-align: center;
	width: 116px !important;
}

.village-map-district-label strong {
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(23, 108, 67, 0.22);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(16, 54, 42, 0.1);
	display: block;
	font-size: 12px;
	font-weight: 900;
	padding: 5px 8px;
}

.village-map-district-label span {
	color: #176c43;
	display: block;
	font-size: 10px;
	font-weight: 800;
	margin-top: 3px;
}

.village-map-district-tooltip,
.village-map-facility-tooltip,
.village-map-line-tooltip {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(24, 97, 60, 0.18);
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(11, 53, 34, 0.16);
	color: var(--profile-ink);
	padding: 0;
}

.village-map-tooltip {
	display: grid;
	gap: 9px;
	min-width: 210px;
	padding: 12px;
}

.village-map-tooltip strong,
.village-map-popup strong {
	color: var(--profile-ink);
	font-size: 15px;
}

.village-map-tooltip span,
.village-map-popup span {
	color: var(--profile-green);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.village-map-tooltip dl {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
}

.village-map-tooltip dl div {
	background: rgba(235, 247, 240, 0.9);
	border-radius: 10px;
	padding: 8px;
}

.village-map-tooltip dt,
.village-map-tooltip dd {
	margin: 0;
}

.village-map-tooltip dt {
	color: var(--profile-ink-soft);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.village-map-tooltip dd {
	color: var(--profile-ink);
	font-size: 18px;
	font-weight: 900;
}

.village-map-tooltip em {
	color: var(--profile-ink-soft);
	font-size: 11px;
	font-style: normal;
	line-height: 1.45;
}

.village-map-popup {
	display: grid;
	gap: 10px;
	min-width: 260px;
	padding: 8px 6px;
}

.village-map-popup p {
	color: var(--profile-ink-soft);
	font-size: 12px;
	line-height: 1.4;
}

.village-map-popup dl {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(74px, 1fr));
	margin: 2px 0 0;
}

.village-map-popup dl div {
	align-content: center;
	background: linear-gradient(145deg, #edf8f1, #ffffff);
	border: 1px solid rgba(23, 108, 67, 0.13);
	border-radius: 14px;
	display: grid;
	min-height: 86px;
	padding: 10px 8px;
	text-align: center;
}

.village-map-popup dt,
.village-map-popup dd {
	margin: 0;
}

.village-map-popup dt {
	color: var(--profile-ink-soft);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	white-space: nowrap;
}

.village-map-popup dd {
	color: var(--profile-ink);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.05;
	margin-top: 6px;
	white-space: nowrap;
}

.village-map-popup dd small {
	display: block;
	font-size: 14px;
	line-height: 1.2;
	margin-top: 3px;
	text-transform: lowercase;
}

.leaflet-container .leaflet-control-zoom a {
	color: var(--profile-ink);
	font-weight: 900;
	text-decoration: none;
}

.village-profile__map-overlay button,
.village-profile__expand-map {
	background: var(--profile-ink);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 7px;
	box-shadow: 0 10px 26px rgba(7, 44, 29, 0.2);
	color: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 750;
	min-height: 44px;
	padding: 0 17px;
	pointer-events: auto;
}

.village-profile__map-status {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--profile-line);
	border-radius: 6px;
	color: var(--profile-ink) !important;
	font-size: 13px !important;
	left: 50%;
	line-height: 1.3 !important;
	padding: 10px 14px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 510;
}

.village-profile__map-status.is-hidden {
	display: none;
}

.village-profile__potential-map {
	align-items: center;
	background: #f1eee6;
	display: flex;
	height: 520px;
	justify-content: center;
	padding: 20px;
}

.village-profile__potential-map img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.village-profile__potential-map figcaption {
	background: rgba(12, 47, 35, 0.86);
	bottom: 18px;
	color: #ffffff;
	font-size: 12px;
	left: 18px;
	padding: 9px 12px;
	position: absolute;
}

.village-profile__expand-map {
	bottom: 18px;
	position: absolute;
	right: 18px;
}

.village-profile .leaflet-container {
	font-family: inherit;
}

.village-profile .leaflet-control-zoom a {
	color: var(--profile-ink);
}

.village-profile .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.82);
	font-size: 10px;
}

.village-profile .leaflet-tooltip {
	border: 0;
	border-radius: 5px;
	box-shadow: 0 8px 24px rgba(7, 48, 29, 0.17);
	color: var(--profile-ink);
	font-family: inherit;
	font-size: 12px;
	font-weight: 750;
	padding: 7px 9px;
}

.village-profile .leaflet-tooltip.village-map-district-tooltip,
.village-profile .leaflet-tooltip.village-map-facility-tooltip,
.village-profile .leaflet-tooltip.village-map-line-tooltip {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(24, 97, 60, 0.18);
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(11, 53, 34, 0.16);
	padding: 0;
}

.village-profile .leaflet-tooltip.village-map-facility-tooltip,
.village-profile .leaflet-tooltip.village-map-line-tooltip {
	font-size: 12px;
	padding: 8px 10px;
}

.village-profile__boundaries {
	background: #ffffff;
	border-top: 1px solid var(--profile-line);
	padding: 106px 0 116px;
}

.village-profile__boundaries-layout {
	align-items: start;
	display: grid;
	gap: clamp(42px, 6vw, 84px);
	grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 0.9fr) minmax(300px, 1fr);
}

.village-profile__boundaries .village-profile__section-intro {
	position: static;
}

.village-profile__text-link {
	align-items: center;
	color: var(--profile-green);
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	margin-top: 28px;
	text-decoration: none;
}

.village-profile__dusun-list ol {
	list-style: none;
	margin-top: 16px;
	padding: 0;
}

.village-profile__dusun-list li {
	align-items: center;
	border-bottom: 1px solid var(--profile-line);
	color: var(--profile-ink);
	display: grid;
	font-size: 16px;
	font-weight: 750;
	gap: 4px 14px;
	grid-template-columns: 30px 1fr;
	min-height: 74px;
	padding: 10px 0;
}

.village-profile__dusun-list li span {
	align-items: center;
	background: var(--dusun-color, var(--profile-green));
	border-radius: 50%;
	color: #ffffff;
	display: flex;
	font-size: 10px;
	height: 30px;
	justify-content: center;
	grid-row: 1 / 3;
	width: 30px;
}

.village-profile__dusun-list li strong {
	color: var(--profile-ink);
	font-size: 17px;
	line-height: 1.25;
}

.village-profile__dusun-list li small {
	color: var(--profile-ink-soft);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.village-profile__dusun-list li:nth-child(2) span {
	--dusun-color: var(--profile-teal);
}

.village-profile__dusun-list li:nth-child(3) span {
	--dusun-color: var(--profile-gold);
}

.village-profile__dusun-list li:nth-child(4) span {
	--dusun-color: var(--profile-coral);
}

.village-profile__dusun-list li:nth-child(5) span {
	--dusun-color: #657ba3;
}

.village-profile__boundary-note {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 42%),
		var(--profile-ink);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(10, 50, 33, 0.18);
	padding: 32px;
}

.village-profile__boundary-note .village-profile__label {
	color: #8bd3a7 !important;
}

.village-profile__boundary-note h3,
.village-profile__boundary-note p {
	color: #ffffff;
}

.village-profile__boundary-note > p:not(.village-profile__label) {
	color: rgba(255, 255, 255, 0.76);
	font-size: 14px;
	line-height: 1.7;
}

.village-profile__boundary-note > div {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	display: grid;
	gap: 8px 14px;
	grid-template-columns: auto 1fr auto 1fr;
	margin-top: 24px;
	padding-top: 22px;
}

.village-profile__boundary-note strong {
	color: var(--profile-gold);
	font-size: 28px;
	line-height: 1;
}

.village-profile__boundary-note span {
	align-self: center;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 700;
}

.village-profile__next {
	background:
		linear-gradient(110deg, #17643d, #227c4b 52%, #267d72);
	color: #ffffff;
	padding: 54px 0;
}

.village-profile__next .village-profile__inner {
	align-items: center;
	display: flex;
	gap: 36px;
	justify-content: space-between;
}

.village-profile__next .village-profile__kicker {
	color: #c6ebd4 !important;
}

.village-profile__next h2 {
	color: #ffffff;
	font-size: clamp(27px, 3vw, 40px);
	max-width: 760px;
}

.village-profile__next nav {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
}

.village-profile__next a {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 7px;
	color: var(--profile-ink);
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	min-height: 48px;
	padding: 0 17px;
	text-decoration: none;
}

.village-profile__next a + a {
	background: transparent;
	color: #ffffff;
}

.village-profile__map-dialog {
	background: #f5f2e9;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 30px 90px rgba(4, 27, 19, 0.38);
	max-height: 92vh;
	max-width: min(1080px, 94vw);
	padding: 18px;
}

.village-profile__map-dialog::backdrop {
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	background: rgba(3, 24, 17, 0.76);
}

.village-profile__map-dialog img {
	max-height: calc(92vh - 36px);
	object-fit: contain;
	width: 100%;
}

.village-profile__map-dialog button {
	align-items: center;
	background: var(--profile-ink);
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 42px;
	justify-content: center;
	position: absolute;
	right: 26px;
	top: 26px;
	width: 42px;
	z-index: 2;
}

.profile-motion-ready [data-profile-section] .village-profile__section-heading,
.profile-motion-ready [data-profile-section] .village-profile__section-intro,
.profile-motion-ready [data-profile-section] .village-profile__timeline,
.profile-motion-ready [data-profile-section] .village-profile__identity-layout,
.profile-motion-ready [data-profile-section] .village-profile__direction,
.profile-motion-ready [data-profile-section] .village-profile__facts,
.profile-motion-ready [data-profile-section] .village-profile__map-tool,
.profile-motion-ready [data-profile-section] .village-profile__dusun-list,
.profile-motion-ready [data-profile-section] .village-profile__boundary-note {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 650ms ease, transform 650ms ease;
}

.profile-motion-ready [data-profile-section].is-visible .village-profile__section-heading,
.profile-motion-ready [data-profile-section].is-visible .village-profile__section-intro,
.profile-motion-ready [data-profile-section].is-visible .village-profile__timeline,
.profile-motion-ready [data-profile-section].is-visible .village-profile__identity-layout,
.profile-motion-ready [data-profile-section].is-visible .village-profile__direction,
.profile-motion-ready [data-profile-section].is-visible .village-profile__facts,
.profile-motion-ready [data-profile-section].is-visible .village-profile__map-tool,
.profile-motion-ready [data-profile-section].is-visible .village-profile__dusun-list,
.profile-motion-ready [data-profile-section].is-visible .village-profile__boundary-note {
	opacity: 1;
	transform: none;
}

.profile-motion-ready [data-profile-section].is-visible .village-profile__map-tool,
.profile-motion-ready [data-profile-section].is-visible .village-profile__boundary-note {
	transition-delay: 100ms;
}

@keyframes village-profile-gloss {
	0%,
	28% {
		transform: translateX(-38%) rotate(8deg);
	}

	55%,
	100% {
		transform: translateX(78%) rotate(8deg);
	}
}

@keyframes village-profile-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	50% {
		transform: translate3d(0, 18px, 0);
	}
}

@media (max-width: 1180px) {
	.village-profile__inner,
	.village-profile__hero-content {
		padding-inline: 28px;
	}

	.village-profile__history-layout {
		gap: 52px;
		grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
	}

	.village-profile__identity-layout {
		grid-template-columns: 1fr;
	}

	.village-profile__direction--standalone,
	.village-profile__map-layout {
		grid-template-columns: 1fr;
	}

	.village-profile__logo-story {
		grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
	}

	.village-profile__geography-head {
		align-items: start;
		grid-template-columns: 1fr;
	}

	.village-profile__facts {
		max-width: 760px;
	}

	.village-profile__boundaries-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.village-profile__boundary-note {
		grid-column: 1 / -1;
	}

	.village-profile__next .village-profile__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 820px) {
	.village-profile__hero {
		min-height: 530px;
	}

	.village-profile__hero-shade {
		background: linear-gradient(90deg, rgba(5, 31, 23, 0.87), rgba(5, 31, 23, 0.48));
	}

	.village-profile__section-nav {
		overflow-x: auto;
	}

	.village-profile__section-nav > div {
		justify-content: flex-start;
		min-width: max-content;
	}

	.village-profile__history,
	.village-profile__identity,
	.village-profile__geography,
	.village-profile__boundaries {
		padding-block: 82px;
	}

	.village-profile__history-layout {
		grid-template-columns: 1fr;
	}

	.village-profile__section-intro {
		position: static;
	}

	.village-profile__timeline::before {
		left: 9px;
	}

	.village-profile__timeline li {
		gap: 14px;
		grid-template-columns: 1fr;
		padding-left: 36px;
	}

	.village-profile__timeline li::after {
		left: 3px;
		top: 8px;
	}

	.village-profile__timeline time {
		padding-top: 5px;
		text-align: left;
	}

	.village-profile__timeline li > div:hover {
		transform: none;
	}

	.village-profile__logo-story {
		grid-template-columns: 1fr;
	}

	.village-profile__logo-story figure {
		min-height: 310px;
	}

	.village-profile__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.village-profile__map-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.village-profile__map-tabs {
		width: 100%;
	}

	.village-profile__map-type {
		width: 100%;
	}

	.village-profile__map-type button {
		flex: 1;
	}

	.village-profile__map-tabs button {
		flex: 1;
	}

	.village-profile__boundaries-layout {
		grid-template-columns: 1fr;
	}

	.village-profile__boundary-note {
		grid-column: auto;
	}
}

@media (max-width: 560px) {
	.village-profile__inner,
	.village-profile__hero-content {
		padding-inline: 20px;
	}

	.village-profile__hero {
		min-height: 520px;
	}

	.village-profile__hero > img {
		object-position: 58% 50%;
	}

	.village-profile__hero-content {
		padding-block: 48px 58px;
	}

	.village-profile__hero h1 {
		font-size: clamp(43px, 14vw, 62px);
	}

	.village-profile__hero-actions {
		display: grid;
		grid-template-columns: 1fr;
		max-width: 290px;
	}

	.village-profile__section-intro h2,
	.village-profile__section-heading h2 {
		font-size: 34px;
	}

	.village-profile p {
		font-size: 16px;
	}

	.village-profile__timeline li > div {
		padding: 20px;
	}

	.village-profile__vision-card {
		min-height: 360px;
		padding: 28px 24px 30px;
	}

	.village-profile__facts > div {
		min-height: 126px;
		padding: 19px 15px;
	}

	.village-profile__map-toolbar {
		padding: 20px;
	}

	.village-profile__map-panel,
	.village-profile__map,
	.village-profile__potential-map {
		height: 460px;
		min-height: 460px;
	}

	.village-profile__map-overlay {
		align-items: stretch;
		bottom: 12px;
		flex-direction: column;
		left: 12px;
		right: 12px;
	}

	.village-profile__legend {
		justify-content: center;
	}

	.village-profile__map-overlay button {
		align-self: flex-end;
	}

	.village-profile__potential-map {
		padding: 10px;
	}

	.village-profile__potential-map figcaption {
		display: none;
	}

	.village-profile__boundary-note {
		padding: 26px 22px;
	}

	.village-profile__boundary-note > div {
		grid-template-columns: auto 1fr;
	}

	.village-profile__next nav {
		display: grid;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.profile-motion-ready [data-profile-section] .village-profile__section-heading,
	.profile-motion-ready [data-profile-section] .village-profile__section-intro,
	.profile-motion-ready [data-profile-section] .village-profile__timeline,
	.profile-motion-ready [data-profile-section] .village-profile__identity-layout,
	.profile-motion-ready [data-profile-section] .village-profile__direction,
	.profile-motion-ready [data-profile-section] .village-profile__facts,
	.profile-motion-ready [data-profile-section] .village-profile__map-tool,
	.profile-motion-ready [data-profile-section] .village-profile__dusun-list,
	.profile-motion-ready [data-profile-section] .village-profile__boundary-note {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 760px) {
	.village-profile {
		overflow-x: hidden;
	}

	.village-profile__map-layout {
		gap: 16px;
		grid-template-columns: minmax(0, 1fr);
	}

	.village-profile__map-tool {
		border-radius: 16px;
	}

	.village-profile__map-toolbar {
		gap: 14px;
		padding: 16px;
	}

	.village-profile__map-toolbar h3 {
		font-size: 22px;
		line-height: 1.2;
	}

	.village-profile__map-type {
		overflow-x: auto;
		width: 100%;
	}

	.village-profile__map-type button {
		flex: 1 0 auto;
		min-height: 36px;
		padding-inline: 11px;
	}

	.village-profile__map-panel,
	.village-profile__map,
	.village-profile__potential-map {
		height: 430px;
		min-height: 430px;
	}

	.village-profile__map-overlay {
		bottom: 10px;
		gap: 10px;
		left: 10px;
		right: 10px;
	}

	.village-profile__legend {
		gap: 10px 12px;
		justify-content: flex-start;
		padding: 10px 12px;
	}

	.village-profile__legend span {
		font-size: 11px;
	}

	.village-profile__map-overlay button {
		align-self: flex-end;
		min-height: 40px;
		padding-inline: 14px;
	}

	.leaflet-popup-content {
		margin: 12px 14px;
		max-width: min(82vw, 312px);
	}

	.village-map-popup {
		gap: 9px;
		min-width: min(74vw, 268px);
	}

	.village-map-popup strong {
		font-size: 18px;
		line-height: 1.15;
	}

	.village-map-popup dl {
		gap: 8px;
		grid-template-columns: repeat(3, minmax(68px, 1fr));
	}

	.village-map-popup dl div {
		border-radius: 12px;
		min-height: 78px;
		padding: 9px 6px;
	}

	.village-map-popup dt {
		font-size: 9px;
		line-height: 1.15;
	}

	.village-map-popup dd {
		font-size: 21px;
		line-height: 1.05;
		margin-top: 5px;
	}

	.village-profile__map-dusun {
		border-radius: 16px;
		padding: 22px;
	}
}

@media (max-width: 420px) {
	.village-profile__map-panel,
	.village-profile__map,
	.village-profile__potential-map {
		height: 400px;
		min-height: 400px;
	}

	.village-profile__legend {
		display: grid;
		grid-template-columns: 1fr;
	}
}
