/* Shared responsive regional project map styles. */
.project-map-section {
	position: relative;
	padding-block: clamp(42px, 5vw, 64px);
	background: var(--tb-cream);
	color: var(--tb-ink);
}
.project-map-section__heading {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
	align-items: end;
	gap: 22px;
	margin-bottom: 16px;
}
.project-map-section__heading h2 {
	max-width: 690px;
	margin: 0;
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: 1.12;
}
.project-map-section__heading .eyebrow { margin: 0 0 16px; }
.project-map-section__intro {
	max-width: 390px;
	margin: 0 0 3px auto;
	color: var(--tb-muted);
	font-size: 15px;
	line-height: 1.75;
}
.project-map-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(285px, .9fr);
	min-width: 0;
	align-items: stretch;
	border: 1px solid #d8d1c2;
	background: #f8f7f3;
	box-shadow: 0 24px 60px rgb(31 35 32 / 9%);
}
.project-map-panel {
	position: relative;
	min-width: 0;
	min-height: 430px;
	background: #d9dedb;
}
.project-map-canvas {
	position: absolute;
	inset: 0;
	min-height: 100%;
	overflow: hidden;
}
.project-map-loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 28px;
	background: linear-gradient(135deg, #e8e4d9, #d4d9d5);
	color: #38403d;
	font-size: 14px;
	text-align: center;
}
.project-map-loading.is-error { color: #464943; }
.project-map-map-controls {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
}
.project-map-control {
	min-height: 44px;
	padding: 0 15px;
	border: 1px solid rgb(45 49 45 / 18%);
	background: #fffdf8;
	color: #2b302d;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 5px 16px rgb(31 35 32 / 12%);
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.project-map-control:hover { transform: translateY(-1px); border-color: #80601d; color: #fff; background: #80601d; }
.project-map-control:focus-visible,
.project-map-item:focus-visible,
.project-map-pin:focus-visible { outline: 3px solid #ba8d31; outline-offset: 3px; }
.project-map-panel .maplibregl-ctrl-attrib { font-size: 10px; }
.project-map-sidebar {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 12px 15px 12px;
	overflow: hidden;
	border-left: 1px solid #e0dccf;
}
.project-map-sidebar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #dfdace;
}
.project-map-sidebar__eyebrow { color: #80601d; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.project-map-sidebar__count { color: #747874; font-size: 11px; font-variant-numeric: tabular-nums; }
.project-map-selected {
	min-width: 0;
	margin-top: 8px;
	padding: 9px 11px 10px;
	border: 1px solid #e2ddcf;
	border-left: 3px solid #a98535;
	background: #efede6;
}
.project-map-selected__eyebrow { color: #80601d; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.project-map-selected__title { margin: 3px 0 2px; color: var(--tb-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.project-map-selected__location { margin: 0; color: var(--tb-muted); font-size: 11px; line-height: 1.5; }
.project-map-selected__rate { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #dcd7ca; }
.project-map-selected__rate > span { color: #70756f; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.project-map-selected__rate strong { color: var(--tb-ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
.project-map-selected__rate small { color: #737874; font-size: 10px; font-weight: 400; }
.project-map-selected__link {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 0 13px;
	border: 1px solid #80601d;
	background: #80601d;
	color: #fffdf8 !important;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.project-map-selected__link:hover { border-color: #1d2522; background: #1d2522; color: #fff !important; }
.project-map-selected__link:focus-visible { outline: 3px solid #ba8d31; outline-offset: 3px; }
.project-map-list {
	display: grid;
	width: 100%;
	min-width: 0;
	max-height: 150px;
	grid-auto-rows: minmax(52px, auto);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}
.project-map-item {
	position: relative;
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-content: center;
	min-height: 52px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 6px 6px 6px 0;
	border: 0;
	border-bottom: 1px solid #e7e3da;
	background: transparent;
	color: var(--tb-ink);
	text-align: left;
	white-space: normal;
	cursor: pointer;
	transition: padding .2s ease, background-color .2s ease, color .2s ease;
}
.project-map-item::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: #a98535;
	content: "";
	transform: scaleY(0);
	transform-origin: center;
	transition: transform .2s ease;
}
.project-map-item:hover,
.project-map-item.is-active { padding-left: 8px; color: var(--tb-ink) !important; background: #efede6; }
.project-map-item.is-active::before { transform: scaleY(1); }
.project-map-item__index { grid-row: span 2; align-self: center; color: #98742b; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.project-map-item__name { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; line-height: 1.35; }
.project-map-item__location { min-width: 0; margin-top: 2px; overflow-wrap: anywhere; color: var(--tb-muted); font-size: 10px; line-height: 1.35; }
.project-map-note {
	margin: 6px 0 0;
	padding-top: 5px;
	color: #686e6a;
	font-size: 9px;
	line-height: 1.4;
}
.project-map-pin {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 2px solid #fffdf8;
	border-radius: 50% 50% 50% 0;
	background: #88651e;
	box-shadow: 0 2px 8px rgb(22 25 22 / 38%);
	cursor: pointer;
	transform: rotate(-45deg);
	transition: width .2s ease, height .2s ease, background-color .2s ease;
}
.project-map-pin::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fffdf8;
	content: "";
	transform: translate(-50%, -50%);
}
.project-map-pin:hover,
.project-map-pin.is-active { width: 30px; height: 30px; background: #1d2522; }
.project-map-popup { display: grid; gap: 5px; min-width: 175px; padding: 2px 1px; color: #232825; }
.project-map-popup strong { font-size: 13px; line-height: 1.35; }
.project-map-popup span { color: #626a65; font-size: 11px; line-height: 1.45; }
.project-map-popup small { color: #80601d; font-size: 10px; }
.project-map-panel .maplibregl-popup-content { padding: 12px 14px; border: 1px solid #dfd8c8; border-radius: 0; box-shadow: 0 12px 35px rgb(22 25 22 / 18%); }
.project-map-panel .maplibregl-popup-close-button { width: 30px; height: 30px; color: #313833; background: transparent; font-size: 18px; }
.project-map-panel .maplibregl-popup-close-button:hover { color: #fff; background: #80601d; }
@media (max-width: 1024px) {
	.project-map-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .95fr); }
	.project-map-panel { min-height: 440px; }
	.project-map-sidebar { padding-inline: 14px; }
	.project-map-list { max-height: 170px; }
	.project-map-item { min-height: 56px; }
	.project-map-selected__rate { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (max-width: 760px) {
	.project-map-section__heading { grid-template-columns: 1fr; gap: 14px; }
	.project-map-section__intro { margin: 0; }
	.project-map-layout { grid-template-columns: 1fr; }
	.project-map-panel { min-height: 350px; }
	.project-map-sidebar { border-top: 1px solid #e0dccf; border-left: 0; }
	.project-map-list { max-height: 145px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.project-map-selected { margin-top: 12px; }
}
@media (max-width: 600px) {
	.project-map-section { padding-block: 50px; }
	.project-map-section .shell { width: min(var(--tb-container), calc(100% - 36px)); }
	.project-map-section__heading { margin-bottom: 18px; }
	.project-map-section__heading h2 { font-size: clamp(27px, 8vw, 34px); }
	.project-map-section__intro { font-size: 13px; }
	.project-map-layout { min-height: 0; }
	.project-map-panel { min-height: 300px; }
	.project-map-sidebar { padding: 13px; }
	.project-map-list { max-height: 132px; grid-template-columns: 1fr; }
	.project-map-selected { padding: 10px 12px; }
	.project-map-item { min-height: 62px; }
	.project-map-control { min-height: 44px; padding-inline: 12px; font-size: 11px; }
	.project-map-map-controls { top: 10px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.project-map-control,
	.project-map-item,
	.project-map-item::before,
	.project-map-pin { transition: none; }
}
