/* Harta străzilor de pe pagina unui sat (21 nov 2026): lista în stânga, planul în dreapta, cardul străzii peste plan.
   Prefixul claselor: np-. Mișcarea: nm-plan.js. Culorile site-ului (c.css): --ac, --linie, --gri, --text. */
.np { margin: 8px 0 34px; }
.np-app { --np-ap: #1e6fe0; --np-ap-m: rgba(30, 111, 224, .28); display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(76vh, 760px); min-height: 460px;
  border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; background: var(--gri); }
.np-app.np-plin { height: 100vh; border: 0; border-radius: 0; }

/* lista */
.np-panou { display: flex; flex-direction: column; min-height: 0; background: var(--alb); border-right: 1px solid var(--linie); }
.np-cap { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--linie); }
.np-cap-t { margin: 0; font-size: 14px; color: var(--text2); }
.np-cap-t b { color: var(--text); font-weight: 600; }
.np-cauta { position: relative; }
.np-cauta svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; fill: none; stroke: var(--text3); stroke-width: 2; pointer-events: none; }
.np-q { width: 100%; height: 38px; padding: 0 10px 0 34px; border: 1px solid var(--linie); border-radius: var(--r); font: inherit; font-size: 16px; background: var(--alb); color: var(--text); }
.np-q:focus { outline: 2px solid var(--ac); outline-offset: 0; border-color: var(--ac); }
.np-file { display: flex; gap: 3px; padding: 3px; background: var(--gri); border-radius: var(--r); }
.np-file[hidden], .np-file button[hidden] { display: none; }
.np-file button { border: 0; background: none; border-radius: 4px; height: 30px; font: inherit; font-size: 14px; flex: 1 1 auto; padding: 0 8px; white-space: nowrap; font-weight: 600; color: var(--text2); cursor: pointer; }
.np-file button[aria-selected="true"] { background: var(--alb); color: var(--ac); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.np-cauta-da .np-file button { opacity: .5; }
.np-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; overscroll-behavior: contain; }
.np-lista ul { list-style: none; margin: 0; padding: 0; }
.np-grup { margin: 12px 6px 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.np-rand { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: none; border-radius: 4px; text-align: left; font: inherit; font-size: 15px; color: var(--text); cursor: pointer; }
.np-rand:hover { background: var(--f); }
.np-rand[aria-current="true"] { background: var(--f); box-shadow: inset 3px 0 0 var(--ac); }
.np-rand[aria-current="true"] .np-nm { color: var(--ac); font-weight: 600; }
.np-nm { min-width: 0; overflow-wrap: anywhere; }
.np-sub { display: block; font-size: 13px; color: var(--text3); font-weight: 400; }
.np-gol { padding: 14px 6px; color: var(--text2); font-size: 14px; }
.np-tag { flex: none; display: inline-flex; align-items: flex-start; justify-content: center; min-width: 28px; height: 22px; padding: 2px 6px 0; border-radius: 3px;
  background: var(--text); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 18px; white-space: nowrap; }
.np-tag sup { font-size: 10px; line-height: 1; margin-left: 1px; position: relative; top: 1px; }

/* scena */
.np-scena { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #e9ecf0; }
.np-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.np-map:focus-visible { outline: 3px solid var(--ac); outline-offset: -3px; }
.np-map.np-trag { cursor: grabbing; }
.np-map.np-masor { cursor: crosshair; }
.np-trace { fill: none; stroke: var(--np-ap-m); stroke-linecap: round; stroke-linejoin: round; }
.np-linie { fill: none; stroke: var(--np-ap); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.np-ms-c { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.np-ms-l { fill: none; stroke: #c81e6a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.np-ms-p { fill: none; stroke: #c81e6a; stroke-width: 11; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.np-unelte { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.np-ug { display: flex; flex-direction: column; background: var(--alb); border-radius: var(--r); box-shadow: 0 1px 2px rgba(20, 28, 38, .12), 0 4px 14px rgba(20, 28, 38, .12); overflow: hidden; }
.np-ug button { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.np-ug button[hidden] { display: none; }
.np-ug button + button { border-top: 1px solid var(--linie); }
.np-ug button:hover { background: var(--f); color: var(--ac); }
.np-ug button[aria-pressed="true"] { background: var(--ac); color: #fff; }
.np-ug svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.np-nord-ac { transition: transform .5s ease; transform-origin: 12px 12px; }

.np-card { position: absolute; top: 12px; left: 12px; width: min(350px, calc(100% - 76px)); max-height: calc(100% - 24px); overflow-y: auto; background: var(--alb); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(20, 28, 38, .12), 0 6px 20px rgba(20, 28, 38, .16); padding: 12px 14px 14px; display: none; z-index: 2; border-top: 3px solid var(--np-ap); }
.np-card.np-on { display: block; }
.np-card-sus { display: flex; align-items: flex-start; gap: 10px; }
.np-card h3 { margin: 0; flex: 1; font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--negru); overflow-wrap: anywhere; }
.np-x { flex: none; width: 30px; height: 30px; margin: -4px -6px 0 0; border: 0; background: none; border-radius: 4px; color: var(--text3); font-size: 22px; line-height: 1; cursor: pointer; }
.np-x:hover { background: var(--gri); color: var(--text); }
.np-card dl { margin: 10px 0 0; display: grid; gap: 7px; }
.np-card dl div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; font-size: 14px; }
.np-card dt { color: var(--text3); }
.np-card dd { margin: 0; color: var(--text); }
.np-card-t { margin: 12px 0 6px; font-size: 13px; color: var(--text3); }
.np-card-n { margin: 10px 0 0; font-size: 13px; color: var(--text2); background: var(--gri); padding: 7px 9px; border-radius: 4px; }
.np-cipuri { display: flex; flex-wrap: wrap; gap: 6px; }
.np-cip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linie); background: none; border-radius: 999px; padding: 3px 10px 3px 4px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.np-cip:not(:has(.np-tag)) { padding-left: 10px; }
.np-cip:hover { border-color: var(--ac); color: var(--ac); }
.np-cip .np-tag { height: 19px; min-width: 22px; font-size: 12px; line-height: 16px; padding: 1px 5px 0; }
.np-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* reperele, punctul ales și Google Maps (22 nov) */
.np-tag-rep, .np-tag-pct { background: none; color: var(--text3); padding: 0; align-items: center; }
.np-tag-rep svg, .np-tag-pct svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-tag-pct { color: #d6263a; }
.np-card-g { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.np-card-s { margin: 6px 0 0; font-size: 14px; color: var(--text2); }
.np-card-mic { margin: 8px 0 0; font-size: 12.5px; color: var(--text3); }
.np-gm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.np-btn.np-btn-gm { background: var(--np-ap); border-color: var(--np-ap); color: #fff; }
.np-btn.np-btn-gm:hover { background: #1659b8; border-color: #1659b8; color: #fff; }
.np-rep-pata { fill: none; stroke: var(--np-ap); stroke-width: 26; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .28; animation: np-puls 1.6s ease-in-out infinite; }
.np-rep-c0 { fill: none; stroke: #fff; stroke-width: 7; vector-effect: non-scaling-stroke; opacity: .9; }
.np-rep-c { fill: var(--np-ap); fill-opacity: .08; stroke: var(--np-ap); stroke-width: 3; vector-effect: non-scaling-stroke; }
.np-rep-cadru { fill: none; stroke: var(--np-ap); stroke-width: 3; vector-effect: non-scaling-stroke; }
@keyframes np-puls { 0%, 100% { opacity: .16; } 50% { opacity: .42; } }
.np-ac path { fill: #d6263a; stroke: #fff; stroke-width: 2; }
.np-ac circle { fill: #fff; }
.np-impreuna { margin: 0 0 12px; font-size: 15px; }
.np-impreuna a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.np-sate-l { margin: 6px 0 14px; padding-left: 20px; }
.np-btn { border: 1px solid var(--linie); background: none; border-radius: 4px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: none; }
.np-btn:hover { border-color: var(--ac); color: var(--ac); }

.np-scara { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); border-radius: 4px; padding: 5px 9px 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; z-index: 1; pointer-events: none; }
.np-scara i { display: block; height: 6px; margin-top: 4px; border: 2px solid var(--text); border-top: 0; }
.np-mini { position: absolute; right: 12px; bottom: 12px; width: 210px; padding: 3px; background: var(--alb); border-radius: var(--r); box-shadow: 0 1px 2px rgba(20, 28, 38, .12), 0 4px 14px rgba(20, 28, 38, .12); z-index: 1; }
.np-mini svg { display: block; width: 100%; height: auto; background: #fff; touch-action: none; cursor: pointer; border-radius: 3px; }
.np-mini polygon { fill: var(--np-ap); fill-opacity: .16; stroke: var(--np-ap); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.np-mini-inalt { width: 120px; }
.np-masura { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; background: var(--alb); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(20, 28, 38, .12), 0 4px 14px rgba(20, 28, 38, .14); padding: 6px 8px 6px 16px; z-index: 2; white-space: nowrap; max-width: calc(100% - 24px); }
.np-masura.np-on { display: flex; }
.np-ms-tot { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.np-ms-aj { color: var(--text3); font-size: 13px; }
.np-ind { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(17, 17, 17, .78); color: #fff; border-radius: var(--r); padding: 10px 16px;
  font-size: 15px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 3; }
.np-ind.np-on { opacity: 1; }
.np-ajutor { margin: 8px 2px 0; font-size: 13.5px; color: var(--text3); }
.np-aj-atins { display: none; }
@media (hover: none) { .np-aj-maus { display: none; } .np-aj-atins { display: inline; } }

/* telefon: planul sus, lista dedesubt */
@media (max-width: 760px) {
  .np-app { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .np-scena { height: 62vh; min-height: 340px; order: -1; }
  .np-panou { border-right: 0; border-top: 1px solid var(--linie); }
  .np-lista { max-height: 46vh; }
  .np-mini { display: none; }
  .np-card { top: auto; bottom: 10px; left: 10px; right: 60px; width: auto; max-height: 52%; }
  .np-card.np-on ~ .np-scara { display: none; }
  .np-card h3 { font-size: 18px; }
  .np-card dl div { grid-template-columns: 96px 1fr; }
  .np-app.np-plin .np-scena { height: 100vh; }
  .np-app.np-plin .np-panou { display: none; }
}
@media (prefers-reduced-motion: reduce) { .np-nord-ac { transition: none; } .np-rep-pata { animation: none; } }
@media print { .np { display: none; } }

/* străzile asfaltate de pe planul scanat: linie plină, neagră, peste scanare (24 nov) */
.np-asf path { fill: none; stroke: #231f20; stroke-width: 5.7; stroke-dasharray: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
