/* Neighbourhood Maps — front end */
.nbx {
	--nbx-accent: #00636b;
	--nbx-accent-ink: #fff;
	--nbx-bar: #fff;
	--nbx-ink: #1c2226;
	--nbx-panel: #fff;
	--nbx-panel-ink: #1c2226;
	--nbx-star: #e3a008;
	--nbx-radius: 4px;
	--nbx-panel-w: 310px;
	--nbx-height: 640px;
	--nbx-mheight: 460px;
	--nbx-map-bg: #0f2e33;
	--nbx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nbx-line: rgba(0,0,0,.08);
	--nbx-hover: rgba(0,0,0,.05);
	position: relative;
	width: 100%;
	font-family: var(--nbx-font);
	color: var(--nbx-ink);
	line-height: 1.4;
}
.nbx *, .nbx *::before, .nbx *::after { box-sizing: border-box; }
.nbx button { font-family: inherit; letter-spacing: normal; text-transform: none; min-height: 0; text-shadow: none; line-height: 1; }
.nbx .nbx-stage { position: relative; }
.nbx .nbx-map { width: 100%; height: var(--nbx-height); background: var(--nbx-map-bg); }

/* shield from theme / Elementor global styles */
.nbx ul.nbx-list, .nbx ul.nbx-list > li { list-style: none !important; margin-left: 0 !important; }
.nbx ul.nbx-list > li::before, .nbx ul.nbx-list > li::marker { content: none !important; display: none !important; }
.nbx .nbx-tool, .nbx .nbx-cat, .nbx .nbx-r, .nbx .nbx-close { text-decoration: none; box-shadow: none; }

/* ---- tools (top-left) ---- */
.nbx .nbx-tools { position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nbx .nbx-tool {
	width: 44px; height: 44px; padding: 0 !important; margin: 0; border: 0 !important; border-radius: var(--nbx-radius) !important; cursor: pointer;
	display: grid; place-items: center; background: var(--nbx-bar) !important; color: var(--nbx-ink) !important;
	font-size: 12px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.25) !important;
}
.nbx .nbx-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nbx .nbx-tool:hover { filter: brightness(.96); }
.nbx .nbx-tool.on { background: var(--nbx-accent) !important; color: var(--nbx-accent-ink) !important; }
.nbx .nbx-search-wrap { display: flex; gap: 6px; align-items: center; }
.nbx .nbx-search { display: none; }
.nbx .nbx-search.open { display: block; }
.nbx .nbx-search input {
	width: 240px; max-width: calc(100vw - 110px); height: 44px; margin: 0; border: 0; border-radius: var(--nbx-radius); padding: 0 12px;
	font: 14px var(--nbx-font); color: var(--nbx-ink); background: var(--nbx-bar); box-shadow: 0 1px 4px rgba(0,0,0,.25); outline: none;
}

/* radius button row */
.nbx .nbx-radius { display: flex; background: var(--nbx-bar); border-radius: var(--nbx-radius); box-shadow: 0 1px 4px rgba(0,0,0,.25); overflow: hidden; }
.nbx .nbx-r {
	min-width: 48px; height: 44px; padding: 0 10px !important; margin: 0; border: 0 !important; border-right: 1px solid var(--nbx-line) !important; border-radius: 0 !important;
	background: transparent !important; color: var(--nbx-ink) !important; cursor: pointer; font-size: 13px; font-style: italic; font-weight: 500;
}
.nbx .nbx-r:last-child { border-right: 0 !important; }
.nbx .nbx-r:hover { background: var(--nbx-hover) !important; }
.nbx .nbx-r.on { background: var(--nbx-accent) !important; color: var(--nbx-accent-ink) !important; }

/* ---- category bar ---- */
.nbx .nbx-bar { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 3; display: flex; justify-content: flex-start; pointer-events: none; }
.nbx.nbx-bar-center .nbx-bar { justify-content: center; }
.nbx.nbx-bar-top .nbx-bar { top: 16px; bottom: auto; justify-content: center; left: 80px; }
.nbx .nbx-cats {
	display: flex; max-width: 100%; overflow-x: auto; pointer-events: auto; scrollbar-width: none;
	background: var(--nbx-bar); border-radius: var(--nbx-radius); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nbx .nbx-cats::-webkit-scrollbar { display: none; }
.nbx .nbx-cat {
	flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px !important; border: 0 !important; border-right: 1px solid var(--nbx-line) !important; border-radius: 0 !important;
	background: transparent !important; color: var(--nbx-ink) !important; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nbx .nbx-cat:last-child { border-right: 0 !important; }
.nbx .nbx-cat:hover { background: var(--nbx-hover) !important; }
.nbx .nbx-cat.on { background: var(--nbx-accent) !important; color: var(--nbx-accent-ink) !important; }
.nbx .nbx-cat svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nbx .nbx-back { padding: 12px 10px !important; }
.nbx .nbx-back svg { width: 18px; height: 18px; }
.nbx.nbx-icons-only .nbx-cat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nbx .nbx-cat:focus-visible, .nbx .nbx-tool:focus-visible, .nbx .nbx-r:focus-visible, .nbx .nbx-item:focus-visible { outline: 2px solid var(--nbx-accent); outline-offset: 2px; }

/* ---- results panel ---- */
.nbx .nbx-panel {
	position: absolute; top: 16px; right: 16px; z-index: 3; width: var(--nbx-panel-w); max-height: calc(var(--nbx-height) - 32px);
	display: none; flex-direction: column; background: var(--nbx-panel); color: var(--nbx-panel-ink);
	border-radius: var(--nbx-radius); box-shadow: 0 2px 10px rgba(0,0,0,.3); overflow: hidden;
}
.nbx.nbx-panel-left .nbx-panel { right: auto; left: 16px; }
.nbx.nbx-panel-left.nbx-has-panel .nbx-tools { left: calc(var(--nbx-panel-w) + 32px); }
.nbx .nbx-panel.open { display: flex; }
.nbx .nbx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; opacity: .95; border-bottom: 1px solid var(--nbx-line); }
.nbx .nbx-panel-head b { font-weight: 600; }
.nbx .nbx-close, .nbx .nbx-close:hover, .nbx .nbx-close:focus {
	flex: 0 0 auto; width: 28px; height: 28px; padding: 0 !important; margin: 0; border: 0 !important; border-radius: calc(var(--nbx-radius) * .75) !important; cursor: pointer;
	background: var(--nbx-accent) !important; color: var(--nbx-accent-ink) !important; font-size: 17px;
}
.nbx .nbx-list { list-style: none; margin: 0 !important; padding: 0 !important; overflow-y: auto; }
.nbx .nbx-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 !important; padding: 11px 12px !important; border-bottom: 1px solid var(--nbx-line); cursor: pointer; }
.nbx .nbx-item:hover, .nbx .nbx-item.on { background: var(--nbx-hover); box-shadow: inset 3px 0 0 var(--nbx-accent); }
.nbx .nbx-name { margin: 0 0 2px !important; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: inherit; }
.nbx .nbx-addr { margin: 0 0 3px !important; font-size: 12px; opacity: .65; }
.nbx .nbx-note { margin: 0 !important; font-size: 12px; color: var(--nbx-accent); }
.nbx .nbx-stars { font-size: 12px; color: var(--nbx-star); letter-spacing: 1px; }
.nbx .nbx-stars span { margin-left: 4px; color: inherit; opacity: .6; letter-spacing: 0; color: var(--nbx-panel-ink); }
.nbx .nbx-dist { font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; }
.nbx .nbx-dist small { display: block; font-size: 12px; font-weight: 400; opacity: .8; }
.nbx .nbx-msg { padding: 18px 12px !important; font-size: 13px; opacity: .75; }
.nbx .nbx-msg small { font-size: 12px; color: #8a4b00; }

/* ---- info window ---- */
.nbx .nbx-iw { max-width: 230px; font-family: var(--nbx-font); color: #1c2226; }
.nbx .nbx-iw b { display: block; margin-bottom: 3px; font-size: 13.5px; }
.nbx .nbx-iw p { margin: 0 0 6px; font-size: 12px; color: #555; }
.nbx .nbx-iw a { margin-right: 10px; font-size: 12px; font-weight: 600; color: var(--nbx-accent); text-decoration: none; }
.nbx .nbx-iw a:hover { text-decoration: underline; }

/* keep the bar clear of the panel on desktop */
@media (min-width: 761px) {
	.nbx.nbx-panel-right.nbx-has-panel .nbx-bar { right: calc(var(--nbx-panel-w) + 32px); }
	.nbx.nbx-panel-left.nbx-has-panel .nbx-bar { left: calc(var(--nbx-panel-w) + 32px); }
}

@media (max-width: 760px) {
	.nbx .nbx-map { height: var(--nbx-mheight); }
	.nbx .nbx-panel { position: static; width: 100%; max-height: 360px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--nbx-line); }
	.nbx.nbx-panel-left.nbx-has-panel .nbx-tools { left: 16px; }
	.nbx .nbx-tools { top: 10px; left: 10px; gap: 6px; }
	.nbx .nbx-tool { width: 44px; height: 44px; }
	.nbx .nbx-r { min-width: 44px; height: 44px; padding: 0 6px !important; font-size: 13px; }
	.nbx .nbx-cat { min-height: 44px; }
	.nbx .nbx-bar, .nbx.nbx-bar-top .nbx-bar { left: 8px; right: 8px; bottom: 12px; top: auto; justify-content: flex-start; }
	.nbx .nbx-cat { padding: 10px 12px !important; }
	.nbx .nbx-cats .nbx-cat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.nbx .nbx-bar.nbx-sub .nbx-cat span { position: static; width: auto; height: auto; clip: auto; }
}

/* v1.3 rich place cards */
.nbx .nbx-iw-rich { max-width: 260px; }
.nbx .nbx-iw-img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 6px; margin: 0 0 8px; }
.nbx .nbx-iw-credit { display: block; margin: -5px 0 6px; font-size: 12px; color: #595959; }
.nbx .nbx-iw-credit a { margin: 0; font-size: 12px; font-weight: 400; color: #595959; }
.nbx .nbx-iw-open { font-weight: 600; }
.nbx .nbx-iw-open.is-open { color: #1e7e34; }
.nbx .nbx-iw-open.is-closed { color: #b32d2e; }
.nbx .nbx-iw-attr { margin: 6px 0 0 !important; font-size: 12px !important; color: #595959 !important; }
.nbx .nbx-iw-attr a { margin: 0 !important; font-size: 12px !important; font-weight: 400 !important; color: #595959 !important; }
/* v1.4.3: pinned places */
.nbx .nbx-item-pinned .nbx-name::before { content: "★ "; color: #f5b301; }
.nbx .nbx-pinbtn { margin: 6px 0 0 !important; padding: 3px 8px !important; border: 1px solid currentColor !important; border-radius: 4px !important; background: transparent !important; color: inherit !important; font: inherit !important; font-size: 12px !important; line-height: 1.4 !important; min-height: 32px; cursor: pointer; align-self: flex-start; }
.nbx .nbx-pinbtn[aria-pressed="true"] { background: #f5b301 !important; border-color: #f5b301 !important; color: #1c2226 !important; }
.nbx .nbx-admin-note { position: absolute; left: 10px; top: 10px; z-index: 5; max-width: 340px; padding: 8px 10px; border-radius: 6px; background: rgba(255,248,220,.97); color: #4a3b00; font-size: 12px; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nbx .nbx-admin-note p { margin: 0 !important; }
