/* Find a Rep — uses the site's existing :root variables (--gw-navy, --gw-denim,
   --gray-200, etc. from the main theme stylesheet). Add this after that file. */

.gw-rep-controls { position: sticky; top: 0; z-index: 40; background: rgba(247,246,244,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--gray-200); padding: 16px var(--page-pad); display: flex; align-items: center; flex-wrap: wrap; }

.gw-rep-toggle { display: inline-flex; background: #fff; border: 1px solid var(--gray-200); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-soft); position: relative; flex-shrink: 0; }
.gw-rep-toggle [data-mode] { position: relative; z-index: 1; display: inline-block; border: 0; background: transparent; padding: 9px 20px; font-family: 'Lato', sans-serif; font-weight: 700; font-size: .88rem; text-transform: none; letter-spacing: normal; color: #6b6b74; cursor: pointer; border-radius: 999px; transition: color .25s; white-space: nowrap; }
.gw-rep-toggle [data-mode].is-active { color: #fff; }
.gw-rep-toggle .thumb { position: absolute; top: 4px; left: 4px; height: 36px; width: 50%; border-radius: 999px; background: var(--gw-navy); transition: transform .32s, width .32s; }

/* The <input> isn't itself a flex item — Bricks wraps it in its own
   .brxe-code div, and THAT div is what actually sits in the flex row.
   Constrain the wrapper (via the gw-search-wrap class added to that Code
   element in Bricks); let the input just fill whatever width it gets. */
.gw-search-wrap { flex: 0 1 420px; min-width: 150px; }
#gwRepSearch { width: 100%; padding: 11px 16px; line-height: 1.4; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff; font-family: 'Lato', sans-serif; font-size: .92rem; box-shadow: var(--shadow-soft); }

@media (max-width: 766px) {
	.gw-rep-controls { flex-direction: column; align-items: stretch; }
	.gw-rep-toggle { width: 100%; }
	.gw-rep-toggle button { flex: 1; }
	.gw-search-wrap { width: 100%; flex: none; min-width: 0; }
}

#gwResultCount { font-size: .82rem; color: #7a7a82; margin-left: auto; white-space: nowrap; }

#gwResetFilters {
	display: none;
	font-size: .82rem;
	font-weight: 700;
	color: var(--gw-denim);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	font-family: 'Lato', sans-serif;
}
#gwResetFilters:hover { color: var(--gw-navy); }
body.has-active-filter #gwResetFilters { display: inline-block; }

@media (max-width: 766px) {
	#gwResultCount, #gwResetFilters { margin-left: 0; }
}

/* map */
.gw-map-wrap { position: relative; overflow: hidden; }

/* Grid items default to min-width:auto, meaning they won't shrink below
   their own content's natural width even in a 2fr/1fr track — different
   text length between the Sales/Architectural tabs was pulling list-col
   wider than its 1fr share on whichever tab was active, stealing space
   from map-col and shifting the map's width when toggling between them. */
.map-col, .list-col { min-width: 0; }
.gw-na-map { width: 100%; height: auto; display: block; }
.gw-state { stroke: #fff; stroke-width: 1.1; vector-effect: non-scaling-stroke; cursor: pointer; transition: filter .15s, stroke-width .15s; }
.gw-state:hover { filter: brightness(0.94); stroke: var(--gw-navy); stroke-width: 2.2; }
.gw-state.is-active { filter: brightness(0.94); stroke: var(--gw-navy); stroke-width: 2.6; }
.gw-state.is-dim { opacity: .22; }
.state-label { font-family: 'Lato', sans-serif; font-size: 7px; font-weight: 700; letter-spacing: .01em; fill: rgba(26,32,64,.55); pointer-events: none; user-select: none; }

/* zone badge — same frosted-glass treatment as .liquid-glass (page-nav), adapted to a circle.
   Positioned in HTML (not SVG) over the map so backdrop-filter/box-shadow render reliably. */
.zone-badge {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.05;
	padding: 4px;
	pointer-events: none; /* clicks pass through to the map state underneath */
	background: linear-gradient(160deg, rgba(218,232,244,0.72) 0%, rgba(196,216,234,0.60) 60%, rgba(185,208,228,0.68) 100%);
	border: 1px solid rgba(255,255,255,0.9);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.75),
		inset 0 -1px 0 rgba(160,195,220,0.25),
		0 3px 12px rgba(20,40,80,0.20),
		0 1px 3px rgba(20,40,80,0.10);
	backdrop-filter: blur(10px) saturate(1.3);
	-webkit-backdrop-filter: blur(10px) saturate(1.3);
}
.zone-badge span { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 12px; color: var(--gw-navy); }
body.gw-hide-zone-badges .zone-badge { display: none; }
.zone-badge.is-filtered-out { display: none; }

.gw-na-map { cursor: grab; touch-action: none; }
.gw-na-map:active { cursor: grabbing; }

.map-zoom-controls { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-zoom-controls button {
	width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: #fff;
	font-family: 'Lato', sans-serif; font-weight: 700; font-size: 16px; line-height: 1; color: var(--gw-navy);
	cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
	transition: background .15s, border-color .15s;
}
.map-zoom-controls button:hover { background: var(--gray-100); border-color: var(--gw-denim); }

.map-toolbar { display: flex; justify-content: flex-start; padding-top: 10px; }
.zone-names-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; white-space: nowrap; color: var(--gw-charcoal); cursor: pointer; user-select: none; font-family: 'Lato', sans-serif; }
.zone-names-toggle input { cursor: pointer; }
.gw-state { outline: none; }
.gw-state:focus, .gw-state:focus-visible { outline: none; stroke: var(--gw-navy); stroke-width: 2.6; }
.gw-state[data-shared="1"] { cursor: pointer; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.legend-label { width: 100%; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #9a9aa2; font-weight: 700; }
.zone-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--gray-200); background: #fff; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--gw-charcoal); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.zone-chip .dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.zone-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.zone-chip.is-active { background: var(--gray-100); border-color: currentColor; }

/* zone group + contact cards (wrap the Bricks nested Query Loop output in this markup) */
.zone-group { scroll-margin-top: 110px; border-radius: 10px; transition: box-shadow .2s; margin-bottom: 22px; }
.zone-group.is-hidden { display: none; }
.zone-header { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; padding: 0 2px 10px; }
.zone-header .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.zone-header .zone-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: #9a9aa2; font-weight: 700; }
.zone-header .zone-region { font-size: .92rem; color: var(--text); font-weight: 700; }
.shared-tag { font-size: .72rem; color: var(--gw-denim); font-weight: 700; background: var(--gray-100); padding: 2px 9px; border-radius: 999px; margin-left: auto; }

.contact-cards { display: flex; flex-direction: column; gap: 10px; }
.contact-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.contact-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.contact-card .avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'EB Garamond', Garamond, serif; font-weight: 600; font-size: 1.05rem; color: #fff; }
.contact-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-card .info { flex: 1; min-width: 0; }
.contact-card h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; color: var(--text); }
.contact-card .rep-note { font-size: .82rem; color: var(--gw-charcoal); font-style: italic; margin: 0 0 6px; line-height: 1.4; }
.contact-card .contact-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.contact-card .contact-row a { text-decoration: none; color: var(--gw-denim); font-weight: 700; }
.contact-card .contact-row a:hover { text-decoration: underline; }

.empty-state { display: none; text-align: center; padding: 40px 20px; color: #9a9aa2; font-size: .92rem; }
.empty-state.is-visible { display: block; }

.map-note { font-size: .76rem; color: #9a9aa2; margin: 10px 0 0; font-style: italic; }

@media (max-width: 766px) {
	body.has-active-filter .list-col { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
	.gw-state, .contact-card, .zone-chip, .gw-rep-toggle .thumb { transition: none !important; }
}
