/* PWI Footprint Map — front-end styles (dynamic Google Map + standalone filter).
   Selectors are scoped and use !important on a few properties so the host
   theme's generic button/link styles can't bleed into the component. */

.pwi-footprint,
.pwi-footprint *,
.pwi-filterbar,
.pwi-filterbar * { box-sizing: border-box; }

.pwi-footprint {
	--pwi-navy: #2c3e50;
	--pwi-text: #e7edf3;
	--pwi-accent: #2fa7d8;
	position: relative;
	display: block;
	width: 100%;
	background: var(--pwi-navy);
	border-radius: 4px;
	overflow: hidden;
}

/* The Google map element. min-height guarantees it never collapses inside a
   flex/grid column (a 0-height container makes Google paint nothing). */
.pwi-map {
	width: 100% !important;
	height: var(--pwi-map-h, 640px);
	min-height: 320px;
	background: #22303f;
}
/* Google injects its own absolutely-positioned children; keep them contained. */
.pwi-map img { max-width: none; }

/* Legend — office vs project key, lower-left over the map. */
.pwi-legend {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	background: rgba(20, 30, 42, 0.78);
	border-radius: 6px;
	color: var(--pwi-text);
	font-size: 13px;
	z-index: 2;
}
.pwi-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.pwi-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; display: inline-block; flex: 0 0 auto; }
.pwi-dot--office { background: #2fa7d8; }
.pwi-dot--project { background: #e8552d; }

/* ---- Standalone market filter ---------------------------------------------
   Centered text tabs with a cyan underline on the active item, matching the
   brand footprint bar. Designed to sit on the dark footprint section (light
   text); !important keeps the host theme's button styling out. */
.pwi-filterbar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 26px;
	margin: 0 0 4px;
	padding: 16px;
}
.pwi-filterbar__label {
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #9fb0c2;
}
.pwi-filterbar .pwi-filter {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-block !important;
	background: transparent !important;
	color: #e7edf3 !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 4px 2px !important;
	font: inherit !important;
	font-size: 16px !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.pwi-filterbar .pwi-filter:hover { color: #ffffff !important; }
.pwi-filterbar .pwi-filter.is-active {
	color: #ffffff !important;
	border-bottom-color: #2fa7d8 !important;
}
.pwi-filterbar .pwi-filter:focus-visible { outline: 2px solid #2fa7d8 !important; outline-offset: 3px; }
/* Subtle divider before "Our Offices" (works for either build's attribute). */
.pwi-filterbar .pwi-filter[data-pwi-filter="offices"],
.pwi-filterbar .pwi-filter[data-filter="offices"] {
	border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
	padding-left: 26px !important;
	margin-left: -8px !important;
}

/* Info window content — photo on top, prominent title (matches the brand popup). */
.pwi-iw { font-size: 14px; line-height: 1.4; color: #1c2733; max-width: 260px; text-align: center; }
.pwi-iw__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 150px;
	object-fit: cover;
	border-radius: 8px;
	margin: 0 0 12px;
}
.pwi-iw__body strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.pwi-iw__cat,
.pwi-iw__addr { display: block; color: #5a6b7d; font-size: 12px; margin-top: 4px; }

@media (max-width: 760px) {
	.pwi-filterbar { gap: 4px 16px; padding: 12px; }
	.pwi-filterbar .pwi-filter { font-size: 14px !important; }
	.pwi-filterbar .pwi-filter[data-pwi-filter="offices"],
	.pwi-filterbar .pwi-filter[data-filter="offices"] { border-left: 0 !important; padding-left: 2px !important; margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
	.pwi-filterbar .pwi-filter { transition: none; }
}
