/* [nr_communities] — uses the site tokens defined in Oxygen, with fallbacks. */
.nr-comm {
	--c-red: var(--nr-red, #e2352c);
	--c-ink: var(--nr-ink, #17161a);
	--c-sans: var(--nr-font-sans, 'Work Sans'), system-ui, sans-serif;
	--c-mono: var(--nr-font-mono, 'IBM Plex Mono'), monospace;
	font-family: var(--c-sans);
	color: var(--c-ink);
}
.nr-comm [hidden] { display: none !important; }

.nr-comm__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.nr-comm__chip {
	border: 1px solid rgba(23,22,26,.2); background: #fff; color: var(--c-ink);
	padding: 10px 16px; border-radius: 2px; font: 500 13.5px/1 var(--c-sans); cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nr-comm__chip:hover { border-color: var(--c-ink); }
.nr-comm__chip.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.nr-comm__chip:focus-visible, .nr-comm__item:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }

.nr-comm__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 20px; align-items: stretch; }

.nr-comm__list { display: flex; flex-direction: column; border: 1px solid rgba(23,22,26,.12); border-radius: 2px; background: #fafaf9; min-height: 600px; }
.nr-comm__listhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(23,22,26,.12); background: #fff; }
.nr-comm__count { font: 500 10px/1 var(--c-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(23,22,26,.55); }
.nr-comm__hint { font: 500 10px/1 var(--c-mono); letter-spacing: .06em; color: rgba(23,22,26,.4); }
.nr-comm__scroll { flex: 1; max-height: 640px; overflow-y: auto; }
.nr-comm__cityhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 18px; background: #f0efec; border-bottom: 1px solid rgba(23,22,26,.1); }
.nr-comm__city { font: 600 12px/1 var(--c-sans); letter-spacing: .1em; text-transform: uppercase; }
.nr-comm__citycount { font: 500 10px/1 var(--c-mono); color: rgba(23,22,26,.45); }
.nr-comm__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); background: #fafaf9; }

.nr-comm__item { display: flex; color: inherit; text-decoration: none; gap: 14px; padding: 14px 16px; cursor: pointer; background: #fafaf9; border-left: 3px solid transparent; box-shadow: 1px 1px 0 rgba(23,22,26,.09); transition: background .15s ease; }
.nr-comm__item:hover, .nr-comm__item.is-active { background: #fff; }
.nr-comm__item.is-active { border-left-color: var(--c-red); }
.nr-comm__thumb { position: relative; flex: none; width: 96px; height: 96px; border-radius: 2px; overflow: hidden; background: #e6e3de; }
.nr-comm__thumb img, .nr-comm__cardphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-comm__thumb::after, .nr-comm__cardphoto::after { content: ''; position: absolute; inset: 0; background: var(--c-red); opacity: .42; mix-blend-mode: multiply; pointer-events: none; }
.nr-comm__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.nr-comm__name { display: block; margin: 0; font: 600 16px/1.2 var(--c-sans); letter-spacing: -.01em; }
.nr-comm__item:hover .nr-comm__name { color: var(--c-red); }
.nr-comm__item:hover { color: inherit; }
.nr-comm__area { display: block; margin-top: 4px; font: 400 12.5px/1.35 var(--c-sans); color: rgba(23,22,26,.55); }
.nr-comm__facts { margin-top: 7px; display: flex; gap: 10px; font: 500 12.5px/1 var(--c-sans); color: rgba(23,22,26,.75); }
.nr-comm__sep { color: rgba(23,22,26,.25); }
.nr-comm__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.nr-comm__go { font: 600 12.5px/1 var(--c-sans); color: var(--c-red); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; white-space: nowrap; }
.nr-comm__item:hover .nr-comm__go, .nr-comm__item:focus-visible .nr-comm__go, .nr-comm__item.is-active .nr-comm__go { opacity: 1; transform: none; }
@media (hover: none) { .nr-comm__go { opacity: 1; transform: none; } }
.nr-comm__special { padding: 5px 9px; border-radius: 2px; font: 600 10px/1.15 var(--c-mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(23,22,26,.5); border: 1px solid rgba(23,22,26,.2); }
.nr-comm__special.has-special { background: var(--c-red); color: #fff; border-color: var(--c-red); }

.nr-comm__map { position: relative; min-height: 600px; border: 1px solid rgba(23,22,26,.12); border-radius: 2px; overflow: hidden; background: #eceae6; }
.nr-comm .nr-comm__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nr-comm .maplibregl-map { background: #eceae6; font-family: var(--c-sans); }
.nr-comm .maplibregl-ctrl-attrib { font-size: 9px; }
.nr-comm .maplibregl-ctrl-attrib a { color: rgba(23,22,26,.6); }

.nr-pin-btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.nr-pin-btn:focus-visible { outline: 2px solid var(--c-ink, #17161a); outline-offset: 3px; border-radius: 4px; }
.nr-pin-dot.is-active { width: 19px; height: 19px; box-shadow: 0 0 0 3px rgba(226,53,44,.3), 0 2px 7px rgba(23,22,26,.4); }
.nr-pin-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--c-red); border: 3px solid #fff; box-shadow: 0 2px 7px rgba(23,22,26,.4); }
.nr-pin { display: flex; flex-direction: column; align-items: center; }
.nr-pin__label { display: flex; align-items: center; gap: 6px; background: #fff; color: var(--c-ink); border: 1px solid rgba(23,22,26,.18); box-shadow: 0 4px 14px rgba(23,22,26,.22); border-radius: 2px; padding: 5px 9px; white-space: nowrap; font: 600 12px/1 var(--c-sans); }
.nr-pin__label span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-red); }
.nr-pin__stem { width: 1px; height: 10px; background: rgba(23,22,26,.45); }
.nr-pin__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-red); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); margin-top: -1px; }
.nr-pin.is-active .nr-pin__label { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.nr-pin.is-active .nr-pin__stem { background: var(--c-ink); }

/* Popup anchored above the active pin */
.nr-popwrap { z-index: 6; font-family: var(--c-sans); }
.nr-popwrap .maplibregl-popup-content { padding: 0; border-radius: 2px; overflow: hidden; border: 1px solid rgba(23,22,26,.14); box-shadow: 0 18px 44px rgba(23,22,26,.22); }
.nr-popwrap .maplibregl-popup-close-button { top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border-radius: 2px; background: rgba(255,255,255,.92); color: #17161a; font-size: 16px; line-height: 1; }
.nr-popwrap .maplibregl-popup-close-button:hover { background: #fff; }
.nr-pop { width: 260px; max-width: 100%; color: #17161a; }
.nr-pop__photo { position: relative; display: block; height: 104px; background: #e6e3de; }
.nr-pop__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-pop__photo::after { content: ''; position: absolute; inset: 0; background: #e2352c; opacity: .42; mix-blend-mode: multiply; }
.nr-pop__body { padding: 14px 16px 16px; }
.nr-pop__special { display: inline-block; padding: 4px 8px; border-radius: 2px; font: 600 9.5px/1.15 var(--c-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(23,22,26,.5); border: 1px solid rgba(23,22,26,.2); }
.nr-pop__special.has-special { background: #e2352c; border-color: #e2352c; color: #fff; }
.nr-pop__name { display: block; margin-top: 9px; font: 600 18px/1.15 var(--c-sans); letter-spacing: -.015em; color: #17161a; text-decoration: none; }
.nr-pop__name:hover { color: #e2352c; }
.nr-pop__where { margin-top: 4px; font: 400 12.5px/1.4 var(--c-sans); color: rgba(23,22,26,.6); }
.nr-pop__facts { display: flex; gap: 14px; margin-top: 9px; font: 600 13px/1.2 var(--c-sans); }
.nr-pop__facts span + span { padding-left: 14px; border-left: 1px solid rgba(23,22,26,.18); }
.nr-pop__actions { display: flex; gap: 8px; margin-top: 13px; }
.nr-pop__view { flex: 1; text-align: center; background: #17161a; color: #fff; padding: 11px 12px; border-radius: 2px; font: 600 13px/1 var(--c-sans); text-decoration: none; }
.nr-pop__view:hover { background: #e2352c; color: #fff; }
.nr-pop__apply { flex: none; border: 1px solid rgba(23,22,26,.2); color: #17161a; padding: 11px 12px; border-radius: 2px; font: 600 13px/1 var(--c-sans); text-decoration: none; }
.nr-pop__apply:hover { border-color: #e2352c; color: #e2352c; }

@media (max-width: 1023px) {
	.nr-comm__grid { grid-template-columns: minmax(0, 1fr); }
	.nr-comm__map { order: -1; min-height: 440px; }
	.nr-comm__list { min-height: 0; }
	.nr-comm__scroll { max-height: 520px; }
}
@media (max-width: 479px) {
	.nr-comm__map { min-height: 380px; }
	.nr-comm__items { grid-template-columns: minmax(0, 1fr); }
	.nr-comm__chip { padding: 9px 12px; font-size: 13px; }
}
