/* Partner Map – page layout only. Desktop ≥ 1360 px, tablet 680–1359 px, mobile < 680 px (as in the design). */

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

/* Hero */
.cw-pm__hero { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 64px var(--cw-pm-pad); background: var(--cw-surface); }
.cw-pm__hero-text { display: flex; flex-direction: column; gap: 12px; }
.cw-pm__eyebrow { align-self: flex-start; padding: 4px 16px; border-radius: var(--cw-radius-xs); background: var(--cw-lime); font-size: 15px; line-height: 22px; }
.cw-pm__title { font-size: 56px; line-height: 64px; font-weight: 900; text-transform: uppercase; }
.cw-pm__stats { display: flex; gap: 24px; }

/* Map */
.cw-pm__map-section { position: relative; }
.cw-pm__map { width: 100%; height: 520px; background: var(--cw-surface); z-index: 0; }
.cw-pm__legend {
	position: absolute; top: 16px; right: var(--cw-pm-pad); z-index: 900;
	display: flex; align-items: center; gap: 18px;
	padding: 7px 16px; border-radius: var(--cw-radius-pill);
	background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(20, 32, 31, .12); pointer-events: none;
}
.cw-pm__legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.cw-pm__bar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 900;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 20px var(--cw-pm-pad);
	background: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.cw-pm__bar .cw-search { width: 380px; max-width: 100%; }
.cw-pm .leaflet-top.leaflet-left { top: 60px; }
.cw-pm .leaflet-popup-content-wrapper { border-radius: var(--cw-radius-md); }
.cw-pm .leaflet-popup-content { font-family: var(--cw-font); }
.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-pin { background: none; border: none; }
.cw-pm__mapy-logo { display: block; line-height: 0; }
.cw-pm__mapy-logo img { display: block; width: 100px; height: auto; }

/* List */
.cw-pm__list-section { position: relative; overflow: hidden; padding: 32px 0 64px; background: var(--cw-white); }
.cw-pm__filters { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cw-pm__result-label { font-size: 13px; font-weight: 700; color: var(--cw-muted); }
.cw-pm__list { column-count: 2; column-gap: 14px; margin-top: 20px; }
.cw-pm__country {
	display: inline-block; width: 100%; vertical-align: top; margin: 0 0 14px;
	break-inside: avoid; -webkit-column-break-inside: avoid;
	border: 1px solid var(--cw-line); border-radius: var(--cw-radius-md); background: var(--cw-white);
}
.cw-pm__country-head {
	display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
	border: 0; border-radius: var(--cw-radius-md); background: transparent; text-align: left; color: var(--cw-ink);
}
.cw-pm__country-head:hover { background: var(--cw-surface-hover); }
.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-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; }
.cw-pm__country-count { flex: none; font-size: 12px; font-weight: 700; color: var(--cw-muted); }
.cw-pm__chevron {
	flex: none; width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--cw-line); background: var(--cw-white); color: var(--cw-ink);
}
.cw-pm__country-head[aria-expanded="true"] .cw-pm__chevron { background: var(--cw-ink); color: var(--cw-lime); }
.cw-pm__country-body { display: flex; flex-direction: column; padding: 0 16px 14px; }
.cw-pm__location { position: relative; padding: 11px 0 12px; border-top: 1px solid var(--cw-line-soft); }
.cw-pm__location-name { padding: 0; border: 0; background: transparent; text-align: left; font-size: 14px; font-weight: 800; line-height: 19px; color: var(--cw-ink); }
.cw-pm__location-name:hover { color: var(--cw-olive); }
.cw-pm__location--office .cw-pm__location-name { padding-right: 130px; }
.cw-pm__location-badge { position: absolute; top: 8px; right: 0; }
.cw-pm__location-address { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--cw-muted); }
.cw-pm__contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 5px; font-size: 12.5px; line-height: 18px; color: var(--cw-muted-2); }
.cw-pm__contact-name { font-weight: 700; }
.cw-pm__empty {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-top: 20px; padding: 26px 30px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius-md);
}
.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-muted); }
.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-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; }

/* Country cards are always collapsed until opened; theme button styles must not leak in. */
.cw-pm .cw-pm__country-body[hidden] { display: none !important; }
.cw-pm .cw-pm__country-head,
.cw-pm .cw-pm__location-name {
	-webkit-appearance: none; appearance: none;
	margin: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; line-height: inherit;
}
.cw-pm .cw-pm__country-head { display: flex; width: 100%; font-family: var(--cw-font); }
.cw-pm .cw-pm__country-name { flex: 1 1 auto; }
.cw-pm .cw-pm__chevron { margin-left: auto; }
.cw-pm .cw-pm__location-name { display: block; width: auto; font-family: var(--cw-font); font-size: 14px; font-weight: 800; line-height: 19px; color: var(--cw-ink); background: transparent; border: 0; padding: 0; }
.cw-pm .cw-pm__location-name:hover { color: var(--cw-olive); background: transparent; }
.cw-pm .cw-pm__contact-name { font-weight: 700; }

/* Why local */
.cw-pm__why { padding: 80px var(--cw-pm-pad) 64px; background: var(--cw-lime-soft); }
.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-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-muted-2); }

/* CTA */
.cw-pm__cta { padding: 64px var(--cw-pm-pad) 80px; background: var(--cw-lime-soft); }
.cw-pm__cta-box {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 48px;
	padding: 40px 48px; border-radius: var(--cw-radius-xs); background: var(--cw-lime);
}
.cw-pm__cta-dots {
	position: absolute; inset: 0; pointer-events: none;
	background: url('../img/cta-dotmap-full.svg') no-repeat 300px -560px / 1100px auto;
}
.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-muted-2); }
.cw-pm__cta-btn { position: relative; }

/* ---------- Tablet (680–1359 px) ---------- */
@media (max-width: 1359px) {
	.cw-pm { --cw-pm-pad: 32px; }
	.cw-pm__hero { display: block; padding: 32px var(--cw-pm-pad) 28px; background: var(--cw-white); }
	.cw-pm__hero-text { display: block; }
	.cw-pm__eyebrow { display: inline-block; padding: 4px 14px; font-size: 14px; line-height: 20px; }
	.cw-pm__title { margin-top: 14px; font-size: 36px; line-height: 44px; }
	.cw-pm__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
	.cw-pm .cw-stat { width: auto; padding: 18px; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; }
	.cw-pm .cw-stat__num { font-size: 34px; line-height: 38px; }
	.cw-pm .cw-stat__label { font-size: 15px; line-height: 22px; }

	.cw-pm__map { height: 400px; }
	.cw-pm__legend { top: 14px; gap: 14px; padding: 6px 14px; }
	.cw-pm__legend-item { gap: 7px; font-size: 11px; }
	.cw-pm .cw-dot { width: 10px; height: 10px; }
	.cw-pm__bar { justify-content: flex-start; gap: 14px; padding: 16px var(--cw-pm-pad); }
	.cw-pm__bar .cw-search { flex: 1; min-width: 0; width: auto; }
	.cw-pm input[type="text"].cw-search__input { padding: 0 18px 0 42px; font-size: 13.5px; }
	.cw-pm__toggle.cw-btn { height: 44px; gap: 10px; padding: 0 8px 0 22px; font-size: 12px; letter-spacing: .07em; }
	.cw-pm__toggle .cw-btn__icon { width: 28px; height: 28px; }

	.cw-pm__list-section { padding: 24px 0 40px; }
	.cw-pm__list { column-gap: 12px; margin-top: 16px; }
	.cw-pm__country { margin-bottom: 12px; }
	.cw-pm__country-head { gap: 12px; padding: 12px 14px; }
	.cw-pm__flag { width: 28px; height: 20px; }
	.cw-pm__country-name { font-size: 14px; }
	.cw-pm__country-count { font-size: 11px; }
	.cw-pm__chevron { width: 28px; height: 28px; }
	.cw-pm__country-body { padding: 0 14px 12px; }
	.cw-pm__location { padding: 10px 0 11px; }
	.cw-pm__location-name { font-size: 13px; line-height: 18px; }
	.cw-pm__location-address { font-size: 11.5px; line-height: 15px; }
	.cw-pm__grid-deco { display: none; }

	.cw-pm__why { padding: 56px var(--cw-pm-pad) 36px; }
	.cw-pm__why-title { font-size: 24px; line-height: 30px; letter-spacing: -0.3px; }
	.cw-pm__why-grid { gap: 20px; margin-top: 28px; }
	.cw-pm__benefit { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
	.cw-pm .cw-icon-tile { width: 44px; height: 44px; }
	.cw-pm__benefit-title { font-size: 14px; text-transform: none; letter-spacing: 0; }
	.cw-pm__benefit-text { font-size: 13px; line-height: 19px; }

	.cw-pm__cta { padding: 0 var(--cw-pm-pad) 64px; }
	.cw-pm__cta-box { gap: 24px; padding: 32px; }
	.cw-pm__cta-dots { background-size: 780px auto; background-position: 180px -390px; }
	.cw-pm__cta-text { width: auto; max-width: 320px; }
	.cw-pm__cta-title { font-size: 24px; line-height: 30px; letter-spacing: -0.2px; }
	.cw-pm__cta-sub { margin-top: 12px; font-size: 13.5px; line-height: 20px; }
	.cw-pm__cta-btn.cw-btn { height: 48px; padding: 0 28px; font-size: 12px; }
}

/* ---------- Mobile (< 680 px) ---------- */
@media (max-width: 679px) {
	.cw-pm { --cw-pm-pad: 20px; }
	.cw-pm__hero { padding: 20px var(--cw-pm-pad) 18px; }
	.cw-pm__eyebrow { padding: 4px 12px; font-size: 12.5px; line-height: 18px; }
	.cw-pm__title { margin-top: 12px; font-size: 28px; line-height: 34px; }
	.cw-pm__stats { gap: 10px; margin-top: 16px; }
	.cw-pm .cw-stat { padding: 14px; gap: 10px; }
	.cw-pm .cw-stat__num { font-size: 28px; line-height: 30px; }
	.cw-pm .cw-stat__label { font-size: 13px; line-height: 18px; }

	.cw-pm__map { height: 300px; }
	.cw-pm__legend { top: 10px; left: 10px; right: auto; gap: 12px; padding: 5px 11px; background: rgba(255, 255, 255, .93); }
	.cw-pm__legend-item { gap: 6px; font-size: 10.5px; }
	.cw-pm .cw-dot { width: 9px; height: 9px; }
	.cw-pm__bar { position: static; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px var(--cw-pm-pad) 0; background: var(--cw-white); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.cw-pm__bar .cw-search { flex: none; width: 100%; }
	.cw-pm input[type="text"].cw-search__input { height: 46px; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--cw-line); }
	.cw-pm input[type="text"].cw-search__input:focus { box-shadow: inset 0 0 0 1.5px var(--cw-focus), 0 0 0 3px rgba(151, 107, 232, .25); }
	.cw-pm .cw-search__icon { top: 15px; }
	.cw-pm__toggle.cw-btn { justify-content: space-between; height: 48px; padding: 0 8px 0 24px; font-size: 12.5px; }
	.cw-pm__toggle .cw-btn__icon { width: 34px; height: 34px; }

	.cw-pm__list-section { padding: 16px 0 32px; }
	.cw-pm .cw-pills { width: 100%; }
	.cw-pm .cw-pill { flex: 1; padding: 0 8px; font-size: 11.5px; }
	.cw-pm__result-label { font-size: 12px; }
	.cw-pm__list { column-count: 1; margin-top: 12px; }
	.cw-pm__country { margin-bottom: 10px; }
	.cw-pm__country-head { min-height: 44px; }
	.cw-pm__contact { flex-direction: column; gap: 2px; font-size: 12px; line-height: 17px; }
	.cw-pm__empty { display: block; padding: 18px; }
	.cw-pm__empty-title { font-size: 16px; }
	.cw-pm__empty-text { margin-bottom: 14px; font-size: 13px; line-height: 19px; }
	.cw-pm__empty .cw-btn { width: 100%; font-size: 12px; }

	.cw-pm__why { padding: 36px var(--cw-pm-pad) 28px; }
	.cw-pm__why-title { font-size: 20px; line-height: 26px; letter-spacing: 0; }
	.cw-pm__why-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }
	.cw-pm__benefit { flex-direction: row; align-items: flex-start; gap: 14px; text-align: left; }
	.cw-pm__benefit-text { margin-top: 5px; }

	.cw-pm__cta { padding: 0 var(--cw-pm-pad) 40px; }
	.cw-pm__cta-box { display: block; padding: 24px 22px; }
	.cw-pm__cta-dots { background-size: 620px auto; background-position: -60px -300px; }
	.cw-pm__cta-text { max-width: none; }
	.cw-pm__cta-title { font-size: 20px; line-height: 26px; letter-spacing: 0; }
	.cw-pm__cta-sub { margin: 10px 0 18px; font-size: 13px; line-height: 19px; }
	.cw-pm__cta-btn.cw-btn { display: flex; width: 100%; padding: 0; }
}
