/* CultiWise — Partner Map component. All rules scoped under .cw-pm, prefix cw-. */

.cw-pm {
	--cw-pm-ink: #1E2E2F;
	--cw-pm-ink-deep: #14201F;
	--cw-pm-muted: #556261;
	--cw-pm-muted-2: #3E4B4A;
	--cw-pm-line: #DFE3E3;
	--cw-pm-line-soft: #EAEDEC;
	--cw-pm-surface: #F5F6F6;
	--cw-pm-lime: #E2FB64;
	--cw-pm-lime-soft: #F7FCE0;
	--cw-pm-olive: #7F9A1E;
	--cw-pm-focus: #976BE8;
	--cw-pm-pad: 120px;
	--cw-pm-font: 'Gilroy', 'Montserrat', system-ui, -apple-system, sans-serif;

	font-family: var(--cw-pm-font);
	color: var(--cw-pm-ink);
	background: #fff;
}

.cw-pm *,
.cw-pm *::before,
.cw-pm *::after { box-sizing: border-box; }

.cw-pm h1, .cw-pm h2, .cw-pm h3, .cw-pm p { margin: 0; }
.cw-pm button { font: inherit; cursor: pointer; }
.cw-pm .cw-pm__link { color: var(--cw-pm-olive); font-weight: 700; text-decoration: none; }
.cw-pm .cw-pm__link:hover { text-decoration: underline; }

.cw-pm__container { padding: 0 var(--cw-pm-pad); }

/* ---------- Hero ---------- */

.cw-pm__hero {
	background: var(--cw-pm-surface);
	padding: 64px var(--cw-pm-pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	flex-wrap: wrap;
}
.cw-pm__hero-text { display: flex; flex-direction: column; gap: 12px; }
.cw-pm__eyebrow {
	align-self: flex-start;
	background: var(--cw-pm-lime);
	color: var(--cw-pm-ink);
	font-size: 15px;
	line-height: 22px;
	padding: 4px 16px;
	border-radius: 4px;
}
.cw-pm__title {
	font-size: 56px;
	line-height: 64px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--cw-pm-ink);
	text-wrap: balance;
}
.cw-pm__stats { display: flex; gap: 24px; }
.cw-pm__stat {
	width: 160px;
	padding: 20px;
	border-radius: 8px;
	background: var(--cw-pm-lime);
	box-shadow: inset 0 0 0 1px #C3E530;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.cw-pm__stat-num { font-size: 40px; line-height: 52px; font-weight: 900; }
.cw-pm__stat-label { font-size: 16px; line-height: 24px; color: var(--cw-pm-muted); }

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

.cw-pm__map-section { position: relative; }
.cw-pm__map { width: 100%; height: 520px; background: var(--cw-pm-surface); z-index: 0; }

.cw-pm__map-note,
.cw-pm__legend {
	position: absolute;
	top: 16px;
	z-index: 900;
	background: rgba(255, 255, 255, .92);
	border-radius: 999px;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(20, 32, 31, .12);
}
.cw-pm__map-note {
	left: var(--cw-pm-pad);
	color: var(--cw-pm-muted-2);
	font-size: 12px;
	font-weight: 700;
	padding: 7px 15px;
}
.cw-pm__legend {
	right: var(--cw-pm-pad);
	padding: 7px 16px;
	display: flex;
	align-items: center;
	gap: 18px;
}
.cw-pm__legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.cw-pm__dot { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.cw-pm__dot--partner { background: var(--cw-pm-lime); border: 1.5px solid var(--cw-pm-ink-deep); }
.cw-pm__dot--contractor { background: var(--cw-pm-ink-deep); }

.cw-pm__bar {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 900;
	padding: 20px var(--cw-pm-pad);
	background: rgba(255, 255, 255, .55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid rgba(255, 255, 255, .55);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cw-pm__search { position: relative; width: 380px; max-width: 100%; }
.cw-pm__search-icon { position: absolute; left: 18px; top: 14px; pointer-events: none; }
.cw-pm input[type="text"].cw-pm__search-input {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	height: 44px;
	padding: 0 22px 0 46px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--cw-pm-ink);
	box-shadow: 0 4px 14px rgba(20, 32, 31, .16);
}
.cw-pm input[type="text"].cw-pm__search-input:focus { outline: none; box-shadow: 0 0 0 3px var(--cw-pm-focus); }

.cw-pm__toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 8px 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--cw-pm-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(20, 32, 31, .2);
}
.cw-pm__toggle:hover { background: var(--cw-pm-ink-deep); }
.cw-pm__toggle-icon {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	display: flex; align-items: center; justify-content: center;
}

/* ---------- Partner list ---------- */

.cw-pm__list-section { position: relative; overflow: hidden; background: #fff; padding: 32px 0 64px; }

.cw-pm__filters { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cw-pm__filter-group { display: flex; gap: 6px; background: var(--cw-pm-surface); border-radius: 999px; padding: 5px; }
.cw-pm__filter {
	font-size: 13px;
	font-weight: 800;
	padding: 0 20px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cw-pm-ink);
}
.cw-pm__filter.is-active { background: var(--cw-pm-ink); color: #fff; }
.cw-pm__result-label { font-size: 13px; font-weight: 700; color: var(--cw-pm-muted); }

.cw-pm__list { column-count: 2; column-gap: 14px; margin-top: 20px; }
.cw-pm__country {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	display: inline-block;
	width: 100%;
	vertical-align: top;
	margin: 0 0 14px;
	border: 1px solid var(--cw-pm-line);
	border-radius: 12px;
	background: #fff;
}
.cw-pm .d-none { display: none !important; }
.cw-pm__country-head {
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.cw-pm__country-head:hover { background: #F9FAFA; }
.cw-pm__flag { flex: none; width: 30px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 3px rgba(20, 32, 31, .2); }
.cw-pm__country-meta { flex: 1; min-width: 0; }
.cw-pm__country-name { display: block; font-size: 15px; font-weight: 800; }
.cw-pm__country-lang { display: block; font-size: 12px; color: var(--cw-pm-muted); margin-top: 2px; }
.cw-pm__country-count { flex: none; font-size: 12px; font-weight: 700; color: var(--cw-pm-muted); }
.cw-pm__chevron {
	flex: none;
	width: 30px; height: 30px;
	border-radius: 50%;
	border: 1.5px solid var(--cw-pm-line);
	display: flex; align-items: center; justify-content: center;
	background: #fff;
	color: var(--cw-pm-ink);
}
.cw-pm__country-head[aria-expanded="true"] .cw-pm__chevron { background: var(--cw-pm-ink); color: var(--cw-pm-lime); }

.cw-pm__country-body { display: flex; flex-direction: column; padding: 0 16px 14px; }
.cw-pm__location { border-top: 1px solid var(--cw-pm-line-soft); padding: 11px 0 12px; }
.cw-pm__location-name {
	text-align: left;
	background: transparent;
	border: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 19px;
	color: var(--cw-pm-ink);
}
.cw-pm__location-name:hover { color: var(--cw-pm-olive); }
.cw-pm__location-address { font-size: 12px; color: var(--cw-pm-muted); margin-top: 2px; line-height: 16px; }
.cw-pm__contact {
	font-size: 12.5px;
	line-height: 18px;
	color: var(--cw-pm-muted-2);
	margin-top: 5px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
}
.cw-pm__contact-name { font-weight: 700; }

.cw-pm__empty {
	margin-top: 20px;
	border: 1px solid var(--cw-pm-line);
	border-radius: 12px;
	padding: 26px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.cw-pm__empty-title { font-size: 19px; font-weight: 800; }
.cw-pm__empty-text { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--cw-pm-muted); }
.cw-pm__btn-outline {
	height: 46px;
	padding: 0 28px;
	border-radius: 999px;
	border: 1.5px solid var(--cw-pm-ink);
	background: transparent;
	color: var(--cw-pm-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.cw-pm__btn-outline:hover { background: var(--cw-pm-surface); }

/* Decorative grid, bottom-right of the list section */
.cw-pm__grid-deco { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; pointer-events: none; }
.cw-pm__grid-row { display: flex; }
.cw-pm__grid-row i { display: block; width: 32px; height: 32px; border: 1px solid #E4E7E7; }
.cw-pm__grid-row i.is-lime { background: var(--cw-pm-lime); border: 0; }
.cw-pm__grid-row i.is-wide { width: 64px; }
.cw-pm__grid-row i.is-gap { width: 8px; border: 0; }
.cw-pm__grid-row i.is-gap-wide { width: 40px; border: 0; }
.cw-pm__grid-row--a { margin-left: 96px; }
.cw-pm__grid-row--c { margin-left: 64px; }

/* ---------- Why local ---------- */

.cw-pm__why { background: var(--cw-pm-lime-soft); padding: 80px var(--cw-pm-pad) 64px; }
.cw-pm__why-title {
	text-align: center;
	font-size: 36px;
	line-height: 44px;
	font-weight: 900;
	letter-spacing: -0.4px;
	text-transform: uppercase;
}
.cw-pm__why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.cw-pm__benefit { display: flex; align-items: flex-start; gap: 16px; }
.cw-pm__benefit-icon {
	flex: none;
	width: 48px; height: 48px;
	border-radius: 10px;
	background: var(--cw-pm-lime);
	color: var(--cw-pm-ink);
	display: flex; align-items: center; justify-content: center;
}
.cw-pm__benefit-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.cw-pm__benefit-text { margin-top: 6px; font-size: 14px; line-height: 21px; color: var(--cw-pm-muted-2); }

/* ---------- CTA ---------- */

.cw-pm__cta { background: var(--cw-pm-lime-soft); padding: 64px var(--cw-pm-pad) 80px; }
.cw-pm__cta-box {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: var(--cw-pm-lime);
	padding: 40px 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	flex-wrap: wrap;
}
.cw-pm__cta-dots {
	position: absolute;
	left: 210px; right: 0; top: 0; bottom: 0;
	background-size: auto 640px;
	background-position: 0 -230px;
	background-repeat: repeat-x;
	pointer-events: none;
}
.cw-pm__cta-text { position: relative; width: 500px; max-width: 100%; }
.cw-pm__cta-title { font-size: 32px; line-height: 40px; font-weight: 900; letter-spacing: -0.3px; text-transform: uppercase; }
.cw-pm__cta-sub { margin-top: 16px; font-size: 15px; line-height: 22px; color: var(--cw-pm-muted-2); }
.cw-pm__btn-white {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 34px;
	border-radius: 999px;
	background: #fff;
	color: var(--cw-pm-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}
.cw-pm__btn-white:hover { background: var(--cw-pm-surface); color: var(--cw-pm-ink); }

/* ---------- Leaflet overrides ---------- */

.cw-pm .cw-pin { background: none; border: none; }
.cw-pm .leaflet-popup-content-wrapper { border-radius: 12px; }
.cw-pm .leaflet-popup-content { font-family: var(--cw-pm-font); }
.cw-pm .leaflet-top.leaflet-left { top: 60px; }
.cw-pm .leaflet-control-attribution { font-size: 9px; padding: 1px 5px; background: rgba(255, 255, 255, .6); color: #6B7877; }
.cw-pm .leaflet-control-attribution a { color: #6B7877; }
.cw-pm .cw-pm__mapy-logo { display: block; line-height: 0; }
.cw-pm .cw-pm__mapy-logo img { display: block; width: 100px; height: auto; }

/* ---------- Tablet ---------- */

@media (max-width: 1200px) {
	.cw-pm { --cw-pm-pad: 48px; }
	.cw-pm__title { font-size: 44px; line-height: 52px; }
	.cw-pm__map { height: 460px; }
	.cw-pm__why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
	.cw-pm__cta-dots { left: 160px; }
}

@media (max-width: 900px) {
	.cw-pm__hero { gap: 32px; }
	.cw-pm__list { column-count: 1; }
	.cw-pm__grid-deco { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
	.cw-pm { --cw-pm-pad: 20px; }
	.cw-pm__hero { padding: 40px var(--cw-pm-pad); }
	.cw-pm__title { font-size: 32px; line-height: 38px; }
	.cw-pm__stats { width: 100%; gap: 12px; }
	.cw-pm__stat { width: auto; flex: 1; padding: 16px; gap: 12px; }
	.cw-pm__stat-num { font-size: 32px; line-height: 40px; }
	.cw-pm__stat-label { font-size: 14px; line-height: 20px; }

	.cw-pm__map { height: 380px; }
	.cw-pm__map-note { display: none; }
	.cw-pm__legend { right: var(--cw-pm-pad); left: var(--cw-pm-pad); justify-content: center; gap: 12px; }
	.cw-pm__legend-item { font-size: 11px; }
	.cw-pm__bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--cw-pm-pad); }
	.cw-pm__search { width: 100%; }
	.cw-pm__toggle { justify-content: space-between; padding: 0 8px 0 20px; }

	.cw-pm__country-count { display: none; }
	.cw-pm__why { padding: 56px var(--cw-pm-pad) 48px; }
	.cw-pm__why-title { font-size: 26px; line-height: 32px; }
	.cw-pm__why-grid { grid-template-columns: minmax(0, 1fr); }
	.cw-pm__cta { padding: 40px var(--cw-pm-pad) 56px; }
	.cw-pm__cta-box { padding: 28px 24px; gap: 24px; }
	.cw-pm__cta-dots { display: none; }
	.cw-pm__cta-title { font-size: 24px; line-height: 30px; }
	.cw-pm__btn-white { width: 100%; }
	.cw-pm__empty { padding: 20px; }
	.cw-pm__btn-outline { width: 100%; }
}
