/* MAP
 * §1 fereastra softului + bara      L9-L27
 * §2 formular (stânga)              L28-L58
 * §3 hartă reală + statistici       L59-L95
 * §4 responsive                     L96-L105
 * Căutarea REALĂ de pe landing (#live-finder), aspect ca în Partenero Finder. Selectori .pf-*.
 */

/* §1 fereastra softului + bara */
.pf { margin-top: 30px; border-radius: 16px; overflow: hidden; border: 1.5px solid hsl(217,18%,30%);
  background: hsl(217,27%,10%); box-shadow: 0 28px 70px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(245,138,46,.06); }
.pf-bar { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; background: #151c27; border-bottom: 1.5px solid hsl(217,18%,25%); font-size: 13px; }
.pf-bar .sq { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #1a335b; }
.pf-bar b { font-weight: 800; margin-right: 8px; }
.pf-bar .tab { align-self: stretch; display: flex; align-items: center; padding: 0 14px; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--accent); background: rgba(245,138,46,.07); }
.pf-bar .tab.off { color: var(--text-3); border-color: transparent; background: none; }
.pf-bar .live { margin-left: auto; margin-right: 14px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2);
  padding: 3px 11px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.pf-bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); animation: pf-pulse 1.6s ease-in-out infinite; }
@keyframes pf-pulse { 50% { opacity: .35; } }
.pf-body { display: grid; grid-template-columns: 330px 1fr; gap: 16px; padding: 16px; }
.pf-card { background: hsl(217,24%,14%); border: 1.5px solid hsl(217,18%,26%); border-radius: 12px; }

/* §2 formular (stânga) */
.pf-form { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pf-form h3 { font-size: 15.5px; color: hsl(214,70%,76%); margin: 0 0 4px; }
.pf-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.pf-form input[type=text] { width: 100%; background: var(--bg-3); border: 1.5px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 11px 13px; font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.pf-form input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,138,46,.18); }
.pf-coords { font: 12px ui-monospace, Consolas, monospace; color: var(--text-3); min-height: 16px; margin-top: -4px; }
.pf-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.pf-row b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pf-form input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; height: 22px; cursor: pointer; }
.pf-form input[type=range]:disabled { opacity: .45; cursor: not-allowed; }
.pf-check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--bg-3); border: 1.5px solid var(--line);
  font-size: 14px; cursor: pointer; transition: border-color .2s; }
.pf-check:hover { border-color: hsl(217,18%,38%); }
.pf-check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.pf-check em { color: var(--text-3); font-style: normal; font-size: 13px; }
.pf-find { margin-top: auto; height: 48px; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  box-shadow: 0 10px 24px -12px var(--accent); transition: background .2s, transform .15s; }
.pf-find:hover { background: var(--accent-2); }
.pf-find:active { transform: scale(.98); }
.pf-find:disabled { cursor: progress; opacity: .85; }
.pf-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); border-top-color: var(--on-accent); animation: pf-rot .7s linear infinite; }
@keyframes pf-rot { to { transform: rotate(360deg); } }

/* §3 hartă reală + statistici */
.pf-mapcol { display: grid; grid-template-rows: 1fr auto; gap: 12px; min-width: 0; }
.pf-map { position: relative; min-height: 330px; overflow: hidden; border-radius: 12px; border: 1.5px solid hsl(217,18%,26%); background: #1b2330; cursor: crosshair; }
.pf-tiles { position: absolute; inset: 0; filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.55); }
.pf-tiles img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; }
.pf-map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pf-circle { fill: rgba(245,138,46,.16); stroke: var(--accent); stroke-width: 2; transition: r .35s ease; }
.pf-scan { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pf-map.scanning .pf-scan { animation: pf-scan 1s ease-out infinite; }
@keyframes pf-scan { 0% { transform: scale(.2); opacity: .8; } 100% { transform: scale(1.15); opacity: 0; } }
.pf-pin { transform-box: fill-box; transform-origin: 50% 100%; }
.pf-pin.drop { animation: pf-drop .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes pf-drop { 0% { transform: translateY(-26px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pf-attr { position: absolute; right: 6px; bottom: 5px; font-size: 10.5px; color: var(--text-2); background: rgba(18,24,33,.8); padding: 1px 6px; border-radius: 4px; }
.pf-attr a { color: var(--text-2); }
.pf-hint { position: absolute; left: 10px; top: 10px; font-size: 12px; color: var(--text-2); background: rgba(18,24,33,.82); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); pointer-events: none; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pf-stat { padding: 12px 14px; }
.pf-stat .n { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: hsl(214,70%,80%); }
.pf-stat .l { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.3; }
.pf-stat.hi { border-color: var(--good); background: var(--good-soft); }
.pf-stat.hi .n { color: var(--good); }
.pf-note { font-size: 14px; color: var(--text-2); margin-top: 14px; min-height: 22px; text-align: center; }

/* §4 responsive */
@media (max-width: 900px) {
  .pf-body { grid-template-columns: 1fr; padding: 12px; }
  .pf-map { min-height: 280px; }
  .pf-stats { grid-template-columns: 1fr 1fr; }
  .pf-bar .tab.off { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pf *, .pf *::before { animation: none !important; transition: none !important; }
}
