/* Konjo Listings interactive neighbourhood map (nmap.js) + the Neighborhood Map page. Uses the site's tokens from site.css. */
.nm {
  --nm-serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --nm-sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --nm-h: clamp(440px, 64vh, 660px);
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(14px, 2.2vw, 24px); box-shadow: var(--shadow-lg); color: var(--ink); min-width: 0;
}
.nm [hidden] { display: none !important; }   /* standalone too (the interactive export has no site.css) */
.nm[data-nm-theme="night"] { --nm-land: #14223A; --nm-edge: #14223A; --nm-gold: #D6B46A; --nm-ink: #F3ECDD; --nm-muted: #AEB8CA; --nm-glass: rgba(15,27,48,.86); --nm-line: rgba(214,180,106,.42); }
.nm[data-nm-theme="classic"] { --nm-land: #F4F1EA; --nm-edge: #FFFFFF; --nm-gold: #8A6D3B; --nm-ink: #2B2823; --nm-muted: #6B655B; --nm-glass: rgba(255,255,255,.9); --nm-line: rgba(138,109,59,.45); }

/* head */
.nm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 14px; }
.nm-title { min-width: 0; flex: 1 1 320px; }
.nm-kicker { margin: 0 0 4px; font: 600 .7rem/1.2 var(--nm-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.nm-label { margin: 0; font-family: var(--nm-serif); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nm-sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.nm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.nm-seg button { border: 0; background: transparent; color: var(--muted); font: 600 .84rem/1 var(--nm-sans); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.nm-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11,27,51,.12), 0 0 0 1px var(--line); }
.nm-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .84rem/1 var(--nm-sans); padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: border-color .2s, transform .2s; }
.nm-btn:hover { border-color: var(--gold); }
.nm-btn:disabled { opacity: .6; cursor: progress; }
.nm-btn svg, .nm-ctrl svg, .nm-pop-x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* category chips */
.nm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.nm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .83rem/1.1 var(--nm-sans); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.nm-chip i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.nm-chip b { font-weight: 600; font-size: .74rem; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: 2px 7px; }
.nm-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.nm-chip[aria-pressed="false"] { opacity: .55; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.nm-chip[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }

/* body: map + list */
.nm-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 980px) { .nm-body { grid-template-columns: minmax(0, 1fr) 330px; } }
.nm-view { position: relative; height: var(--nm-h); overflow: hidden; border-radius: 18px; background: var(--nm-land); touch-action: none; cursor: grab; outline: none; isolation: isolate; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.nm-view.grab { cursor: grabbing; }
.nm-view:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.nm-stage { position: absolute; will-change: transform; }
.nm-world, .nm-labels { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.nm-labels { pointer-events: none; }
.nm-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; stroke-width: 1.4; overflow: visible; max-width: none; }
.nm-shade { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.nm[data-nm-theme="night"] .nm-shade { background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 55%, rgba(5,11,22,.55) 100%); box-shadow: inset 0 0 0 7px rgba(20,34,58,.7), inset 0 0 0 8px rgba(214,180,106,.55), inset 0 0 0 11px rgba(20,34,58,0), inset 0 0 0 12px rgba(214,180,106,.25); }
.nm[data-nm-theme="classic"] .nm-shade { box-shadow: inset 0 0 0 1px rgba(61,58,53,.12), inset 0 0 0 7px rgba(244,241,234,.6), inset 0 0 0 8px rgba(138,109,59,.35); }
.nm-marks { position: absolute; inset: 0; pointer-events: none; }
.nm-mk { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border-radius: 50%; border: 2px solid var(--nm-edge); background: var(--c); color: var(--t);
  font: 700 12.5px/24px var(--nm-sans); text-align: center; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 6px rgba(2,6,14,.45); transition: scale .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s; font-variant-numeric: tabular-nums; }
.nm-mk:hover, .nm-mk.hot { scale: 1.22; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 4px 12px rgba(2,6,14,.5); z-index: 2; }
.nm-mk:focus-visible { outline: 3px solid var(--nm-gold); outline-offset: 2px; border-radius: 50%; z-index: 3; }
/* essential services: a rounded square with a glyph (flame, H, cross, shield ...), not a numbered circle */
.nm-mk.nm-es { border-radius: 7px; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; }
.nm[data-nm-theme="night"] .nm-mk.nm-es { border-color: #14223A; }
.nm-mk.nm-es svg { width: 17px; height: 17px; display: block; pointer-events: none; }
.nm-mk.nm-es:focus-visible { border-radius: 7px; }
.nm-eg { flex: none; display: block; }
.nm-chip-es i { border-radius: 3px; }
.nm-prop { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 1; }
.nm-prop i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--nm-gold); border: 2.5px solid var(--nm-edge); box-shadow: 0 2px 8px rgba(2,6,14,.5); }
.nm[data-nm-theme="night"] .nm-prop i { background: #D6B46A; border-color: #F3ECDD; }
.nm[data-nm-theme="classic"] .nm-prop i { background: #B8862B; border-color: #3A2A10; }
.nm-prop i::before { content: ""; position: absolute; inset: 4px; transform: rotate(45deg); background: var(--nm-land); border-radius: 1px; }
.nm[data-nm-theme="classic"] .nm-prop i::before { background: #fff; }
.nm-prop::before, .nm-prop::after { content: ""; position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--nm-gold); opacity: .7; }
.nm-prop::after { animation: nm-pulse 2.6s ease-out infinite; }
@keyframes nm-pulse { from { transform: scale(.55); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

/* popup */
.nm-pop { position: absolute; left: 0; top: 0; z-index: 5; width: min(290px, calc(100% - 16px)); padding: 14px 14px 12px; border-radius: 16px; background: var(--nm-glass); color: var(--nm-ink);
  border: 1px solid var(--nm-line); box-shadow: 0 18px 40px -12px rgba(2,6,14,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: auto; outline: none; animation: nm-in .18s ease-out; }
.nm-pop.dock { left: 10px; top: auto; bottom: 46px; }
.nm-pop.sheet { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; animation: nm-up .22s ease-out; }
@keyframes nm-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.nm-label-x { display: block; font-size: .62em; font-style: italic; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
@keyframes nm-in { from { opacity: 0; } to { opacity: 1; } }
.nm-pop-h { display: flex; gap: 11px; align-items: flex-start; }
.nm-pop-h > div { flex: 1; min-width: 0; }
.nm-pop-t { margin: 0; font-family: var(--nm-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.12; overflow-wrap: anywhere; }
.nm-pop-k { margin: 3px 0 0; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nm-muted); font-weight: 600; }
.nm-pop-a { margin: 9px 0 0; font-size: .86rem; color: var(--nm-muted); }
.nm-pop-d { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--nm-line); font-size: .88rem; display: flex; flex-direction: column; gap: 2px; }
.nm-pop-d b { font-size: 1rem; color: var(--nm-gold); font-variant-numeric: tabular-nums; }
.nm[data-nm-theme="classic"] .nm-pop-d b { color: #6E5527; }
.nm-pop-d span { color: var(--nm-muted); }
.nm-pop-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -4px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--nm-ink); cursor: pointer; }
.nm-pop-x:hover { background: color-mix(in srgb, var(--nm-ink) 12%, transparent); }
.nm-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 12px/1 var(--nm-sans); font-variant-numeric: tabular-nums; }

/* map chrome */
.nm-ctrl { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--nm-glass); border: 1px solid var(--nm-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px -6px rgba(2,6,14,.45); }
.nm-ctrl button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; color: var(--nm-ink); cursor: pointer; }
.nm-ctrl button + button { border-top: 1px solid var(--nm-line); }
.nm-ctrl button:hover { background: color-mix(in srgb, var(--nm-gold) 18%, transparent); }
.nm-ctrl button:focus-visible { outline: 2px solid var(--nm-gold); outline-offset: -3px; }
.nm-north { position: absolute; right: 13px; top: 140px; width: 36px; pointer-events: none; z-index: 3; }
.nm-north svg { display: block; width: 36px; height: 47px; }
.nm-north text { font: 600 12px var(--nm-serif); fill: var(--nm-gold); }
.nm-north circle { fill: var(--nm-glass); stroke: var(--nm-gold); stroke-width: .8; }
.nm-north .a { fill: var(--nm-gold); } .nm-north .b { fill: color-mix(in srgb, var(--nm-gold) 55%, #fff); } .nm-north .c { fill: none; stroke: var(--nm-gold); stroke-width: .8; }
.nm-scale { position: absolute; left: 14px; bottom: 14px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 4px; padding: 6px 9px 7px; border-radius: 8px; background: var(--nm-glass); font: 600 .7rem/1 var(--nm-sans); letter-spacing: .06em; color: var(--nm-ink); }
.nm-scale i { display: block; height: 5px; border: 1.5px solid var(--nm-gold); border-top: 0; min-width: 10px; }
.nm-attr { position: absolute; right: 0; bottom: 0; z-index: 3; padding: 4px 9px; border-top-left-radius: 10px; background: var(--nm-glass); font: 500 .7rem/1.3 var(--nm-sans); }
.nm-attr a { color: var(--nm-ink); text-decoration: none; }
.nm-attr a:hover { text-decoration: underline; }
.nm-hint { position: absolute; left: 12px; top: 12px; z-index: 3; margin: 0; padding: 6px 11px; border-radius: 999px; background: var(--nm-glass); color: var(--nm-ink); font: 500 .74rem/1.2 var(--nm-sans); pointer-events: none; transition: opacity .6s; max-width: calc(100% - 80px); }
.nm-view.used .nm-hint { opacity: 0; }
.nm-busy { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 14px; background: color-mix(in srgb, var(--nm-land) 72%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); color: var(--nm-ink); font: 600 .95rem/1.4 var(--nm-sans); text-align: center; padding: 20px; }
.nm-spin { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--nm-line); border-top-color: var(--nm-gold); animation: nm-spin 1s linear infinite; }
@keyframes nm-spin { to { transform: rotate(360deg); } }

/* nearby list */
.nm-side { min-width: 0; display: flex; flex-direction: column; }
.nm-side-h { margin: 0 0 8px; font-family: var(--nm-serif); font-size: 1.35rem; font-weight: 600; }
.nm-list { overflow: auto; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; }
@media (min-width: 980px) { .nm-list { max-height: calc(var(--nm-h) - 40px); } }
.nm-grp { margin-bottom: 12px; transition: opacity .2s; }
.nm-grp.off { opacity: .4; }
.nm-grp h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 .72rem/1.3 var(--nm-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nm-grp h5 i { width: 9px; height: 9px; border-radius: 50%; }
.nm-grp ul { list-style: none; margin: 0; padding: 0; }
.nm-li { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: background .15s; }
.nm-li:hover, .nm-li.hot { background: var(--bg-alt); }
.nm-li:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.nm-li-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nm-li-n { font-weight: 600; font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.nm-li-d { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.nm-li-m { flex: none; text-align: right; font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.nm-li-m small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.nm-empty { color: var(--muted); font-size: .9rem; }
.nm-facts { margin: 16px 0 6px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); border-radius: 0 12px 12px 0; font-weight: 600; font-size: .98rem; line-height: 1.5; }
.nm-notes { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.nm-notes .nm-warn { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .nm { --nm-h: clamp(360px, 62vh, 500px); border-radius: 18px; padding: 12px; }
  .nm-tools { width: 100%; }
  .nm-btn span { font-size: .8rem; }
  .nm-btn { padding: 9px 11px; }
  .nm-seg button { padding: 8px 11px; }
  .nm-view { border-radius: 14px; }
  .nm-chip { font-size: .78rem; padding: 6px 10px 6px 9px; flex: none; }
  .nm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px; scroll-padding-inline: 12px; }
  .nm-chips::-webkit-scrollbar { display: none; }
  .nm-tools { gap: 6px; }
  .nm-north { top: 136px; }
}
@media (prefers-reduced-motion: reduce) { .nm-prop::after, .nm-spin { animation: none; } }

/* print: one page, only the map sheet */
.nm-print-root { display: none; }
@media print {
  body.nm-printing > :not(.nm-print-root) { display: none !important; }
  body.nm-printing { background: #fff !important; padding: 0 !important; }
  body.nm-printing .nm-print-root { display: block; }
  .nm-print-root svg { display: block; width: auto; height: 9.6in; max-width: 100%; margin: 0 auto; }
  @page { size: letter portrait; margin: .35in; }
}

/* ===== Neighborhood Map page ===== */
.nmt { padding-block: clamp(40px, 6vw, 72px); }
.nmt-search { position: relative; margin: 0 auto 18px; max-width: 860px; padding: clamp(16px, 2.4vw, 22px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.nmt-search label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.nmt-row { display: flex; gap: 10px; }
.nmt-row input { flex: 1; min-width: 0; font: 500 1.02rem var(--sans); padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.nmt-row input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.nmt-row .btn { flex: none; }
.nmt-attr { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.nmt-attr a { color: inherit; }
@media (max-width: 560px) { .nmt-row { flex-direction: column; } .nmt-row .btn { width: 100%; justify-content: center; } }
.nmt-status { max-width: 860px; margin: 0 auto; font-size: .94rem; min-height: 0; }
.nmt-status:not(:empty) { margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.nmt-status.err { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--ink); }
.nmt-results { list-style: none; max-width: 860px; margin: 0 auto 18px; padding: 0; display: grid; gap: 8px; }
.nmt-results button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.nmt-results button:hover, .nmt-results button:focus-visible { border-color: var(--gold); }
.nmt-results svg { width: 20px; height: 20px; flex: none; color: var(--gold-ink); fill: none; stroke: currentColor; stroke-width: 1.6; }
.nmt-results b { display: block; font-size: .95rem; }
.nmt-results small { color: var(--muted); font-size: .82rem; }
.nmt-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--gold-soft); color: var(--gold-ink); }
.nmt-paid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .nmt-paid { grid-template-columns: 1.25fr .85fr; gap: 48px; } }
.nmt-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .nmt-feats { grid-template-columns: 1fr 1fr; } }
.nmt-feats li { display: flex; gap: 13px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.nmt-feats li > svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nmt-feats b { display: block; font-size: .98rem; margin-bottom: 2px; }
.nmt-feats span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.nmt-price { padding: 28px; border-radius: 22px; background: linear-gradient(150deg, var(--band), var(--band-2)); color: var(--band-ink); box-shadow: var(--shadow-lg); }
.nmt-price .eyebrow { color: var(--band-gold); }
.nmt-price .big-p { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 600; line-height: 1; margin: 6px 0 4px; color: #fff; }
.nmt-price .big-p small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--band-muted); }
.nmt-price .ex { display: inline-block; margin: 0 0 16px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--band-line); color: var(--band-muted); font-size: .78rem; font-weight: 600; }
.nmt-price p { color: var(--band-muted); font-size: .93rem; }
.nmt-price .btn { width: 100%; justify-content: center; margin-top: 8px; }
.nmt-reach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 860px; margin: 0 auto 14px; }
.nmt-reach-l { font-weight: 600; font-size: .88rem; }
.nmt-reach .nm-seg { flex-wrap: wrap; border-radius: 18px; }
.nmt-reach .nm-seg button { font-family: inherit; }
.nmt-reach .nm-seg button:disabled { opacity: .6; cursor: progress; }
.nmt-notes { max-width: 860px; }
.nmt-notes ul { margin: 0; padding-left: 20px; color: var(--muted); }
.nmt-notes li { margin-bottom: 8px; }
.nmt-notes strong { color: var(--ink); }
.nm-demo-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 22px; }
