/* Mother Group projects and partners (Construction & Builders, Financial, Business hubs). Palette: brief §7.7. */
.mmgp, .mmgp-partners {
	--mmgp-sand: #f4ede1;
	--mmgp-khaki: #c8b08a;
	--mmgp-wood: #6b4a2f;
	--mmgp-green: #1f5b34;
	--mmgp-spring: #8bc34a;
	--mmgp-sun: #f2b705;
	--mmgp-soil: #2b2118;
	margin: 2.2em 0;
	color: var(--mmgp-soil);
}
.mmgp *, .mmgp-partners * { box-sizing: border-box; }
.mmgp-head h2, .mmgp-partners h2 { margin: 0 0 .3em; color: var(--mmgp-green); font-weight: 800; }
.mmgp-head p, .mmgp-partners > p { margin: 0 0 1em; max-width: 70ch; color: #4a3d30; }

.mmgp-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.mmgp .mmgp-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--mmgp-khaki); background: #fff; color: var(--mmgp-soil);
	font: 600 13px/1.2 inherit; letter-spacing: 0; text-transform: none; box-shadow: none;
}
.mmgp .mmgp-chip span { font-weight: 500; opacity: .65; }
.mmgp .mmgp-chip--type::before { content: ""; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--mmgp-c); }
.mmgp .mmgp-chip:hover, .mmgp .mmgp-chip:focus-visible { border-color: var(--mmgp-green); outline: none; }
.mmgp .mmgp-chip.is-on { background: var(--mmgp-green); border-color: var(--mmgp-green); color: var(--mmgp-sand); }

.mmgp-map {
	height: 440px; margin: 12px 0 6px; border-radius: 14px; overflow: hidden;
	background: var(--mmgp-sand); border: 1px solid var(--mmgp-khaki);
}
.mmgp-map.is-off { display: none; }
.mmgp-pin {
	width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	background: var(--mmgp-c, #f2b705); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); cursor: pointer;
}
.mmgp .maplibregl-popup-content { padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mmgp .maplibregl-popup-content a { color: var(--mmgp-green); font-weight: 700; text-decoration: none; }
.mmgp-count { margin: 4px 0 10px; font-size: 13px; color: #6b5d4f; }

.mmgp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mmgp-card {
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: 14px; background: #fff; border: 1px solid #e6dccb; box-shadow: 0 2px 8px rgba(43, 33, 24, .06);
	scroll-margin-top: 140px;
}
.mmgp-card.is-hidden { display: none; }
.mmgp-card.is-flash { box-shadow: 0 0 0 3px var(--mmgp-sun); }
.mmgp-media { position: relative; aspect-ratio: 16 / 10; background: var(--mmgp-sand); }
.mmgp-media .mmgp-img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.mmgp-type {
	position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
	background: var(--mmgp-c); color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.mmgp-credit {
	position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 2px 6px; border-top-left-radius: 6px;
	background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mmgp-credit a, .mmgp-credit a:visited { color: #fff; text-decoration: none; }
.mmgp-credit a:hover, .mmgp-credit a:focus-visible { text-decoration: underline; }
.mmgp-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.mmgp-place { margin: 0; font-size: 12px; font-weight: 600; color: var(--mmgp-wood); text-transform: uppercase; letter-spacing: .03em; }
.mmgp .mmgp-title { margin: 0; font-size: 17px; line-height: 1.3; color: var(--mmgp-soil); }
.mmgp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.mmgp-meta span { padding: 2px 8px; border-radius: 6px; background: var(--mmgp-sand); font-size: 12px; font-weight: 600; color: var(--mmgp-green); }
.mmgp-price { margin: 0; font-size: 13px; color: #4a3d30; }
.mmgp-price strong { color: var(--mmgp-green); font-size: 15px; white-space: nowrap; }
.mmgp-sum { margin: 0; font-size: 13px; line-height: 1.45; color: #5a4c3e; }
.mmgp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.mmgp .mmgp-btn, .mmgp .mmgp-btn:visited {
	display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	background: var(--mmgp-sun); color: var(--mmgp-soil); font-weight: 700; font-size: 13px;
}
.mmgp .mmgp-btn--alt { background: var(--mmgp-sand); }
.mmgp .mmgp-btn:hover, .mmgp .mmgp-btn:focus-visible { background: var(--mmgp-green); color: var(--mmgp-sand); }
.mmgp-credits { margin: 14px 0 0; font-size: 11px; color: #7a6c5d; }
.mmgp-credits a { color: inherit; }

.mmgp-partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mmgp-partners .mmgp-partner {
	display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
	background: #fff; border: 1px solid #e6dccb; color: var(--mmgp-soil);
}
.mmgp-partners .mmgp-partner strong { color: var(--mmgp-green); }
.mmgp-partners .mmgp-partner span { font-size: 13px; color: #5a4c3e; }
.mmgp-partners .mmgp-partner em { font-style: normal; font-size: 12px; color: var(--mmgp-wood); }
.mmgp-partners .mmgp-partner:hover, .mmgp-partners .mmgp-partner:focus-visible { border-color: var(--mmgp-sun); box-shadow: 0 0 0 2px var(--mmgp-sun); }

@media (max-width: 600px) {
	.mmgp-map { height: 320px; }
	.mmgp-grid { grid-template-columns: 1fr; }
}
