/* ── ParcelMap Module Styles ──────────────────────────────────────────────
   Restored to ParcelMap's own original visual identity. Source of truth:
   the ported React/Tailwind build this module was completed from
   (ParcelMap-full-project/parcelmap/client/src, see client/src/index.css),
   which names its own design contract "Северный картограф" (Northern
   Cartographer): a mineral-white paper surface, dark slate ink, a
   secondary muted-sea blue-teal, and a single high-signal accent — Route
   Orange #FF5A36 — set in Manrope body/heading type with IBM Plex Mono
   used for map-readout labels, stats and small data chips.

   An earlier build pass ("2026-08-27 identity unification") deliberately
   stripped all of this out and made the module fall back to bimbly.eu's
   generic site-wide purple (--brand:#7657ff / --brand2:#9a7dff). That is
   reverted here — ParcelMap gets its own palette back.

   How it's scoped: the palette lives in its own --pm-* custom properties
   (below) so nothing here ever redefines bimbly's shared --brand/--text/
   --muted/etc. at :root — that would leak into the shared site-wide
   header/nav/footer. Instead, the shared token *names* are re-pointed to
   ParcelMap's palette only inside <main> (which on every parcel-map page
   contains just this module's own content — the shared header, nav and
   footer all render outside <main>). That single scoped block is what
   makes bimbly.css-defined shared classes reused here (.eyebrow, .section,
   breadcrumbs, ad-slot links, etc.) automatically pick up ParcelMap's
   colors instead of bimbly purple, without touching those files. The many
   inline `style="color:var(--muted)"` etc. attributes sprinkled across the
   module's PHP templates keep working unchanged too, since they resolve
   the same re-pointed custom properties.

   Class names for this module's own components stay pm-* (unchanged), so
   no PHP templates needed markup changes for this restoration — only their
   declarations changed here.
   ──────────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --pm-route: #ff5a36;       /* Route Orange — the one accent */
  --pm-route-dark: #e84c2b;  /* hover / active state for the accent */
  --pm-slate: #17262b;       /* ink */
  --pm-sea: #2c5868;         /* secondary accent — data/verification cues */
  --pm-paper: #f3f1eb;       /* page background */
  --pm-surface: #faf9f5;     /* card / input surface, slightly lighter than paper */
  --pm-surface2: #eae9e3;    /* chip / secondary fill */
  --pm-surface-soft: #f7f6f1;/* soft panel fill */
  --pm-muted: #69767a;       /* muted slate for secondary text */
  --pm-line: rgba(23, 38, 43, .14);
  --pm-radius: 7px;
  --pm-radius-sm: 4px;
  --pm-shadow: 0 20px 50px rgba(23, 38, 43, .12);
  --pm-font-sans: "Manrope", Arial, sans-serif;
  --pm-font-mono: "IBM Plex Mono", "Courier New", monospace;
  --pm-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Re-point the shared bimbly tokens to ParcelMap's own palette, scoped to
   <main> only — the shared site-header/nav/footer live outside <main> on
   every parcel-map page and are completely unaffected by this. */
main {
  --brand: var(--pm-route);
  --brand2: var(--pm-route-dark);
  --text: var(--pm-slate);
  --muted: var(--pm-muted);
  --surface: var(--pm-surface);
  --surface2: var(--pm-surface2);
  --surface-soft: var(--pm-surface-soft);
  --line: var(--pm-line);
  --bg: var(--pm-paper);
  --radius: var(--pm-radius);
  --shadow: var(--pm-shadow);
  background: var(--pm-paper);
  font-family: var(--pm-font-sans);
  color: var(--pm-slate);
}
main h1, main h2, main h3 { font-family: var(--pm-font-sans); letter-spacing: -.03em; font-weight: 800; }
main .eyebrow { font-family: var(--pm-font-mono); font-weight: 600; letter-spacing: .09em; }

.pm-container { max-width: 1380px; margin: 0 auto; padding: 0 16px; }
.pm-main { padding: 36px 0 64px; }

.pm-breadcrumb { padding: 18px 16px 0; font-family: var(--pm-font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pm-breadcrumb a { color: var(--muted); }
.pm-breadcrumb a:hover { color: var(--brand); }

.pm-section-head { margin-bottom: 18px; }
.pm-section-head h2 { margin: 4px 0 0; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.03em; }

.pm-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 7px);
  padding: 20px; box-shadow: 0 14px 34px rgba(23,38,43,.06);
}

.pm-hero {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr);
  align-items: center; gap: clamp(24px,5vw,56px);
  padding: clamp(36px,6vw,64px) 0 clamp(40px,6vw,64px);
  border-bottom: 1px solid var(--line);
}
.pm-hero-no-panel { grid-template-columns: 1fr; }

.pm-search-form {
  display: flex; gap: 8px; margin-top: 20px; background: var(--surface);
  border: 1px solid rgba(23,38,43,.2); border-radius: 9px; padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow); align-items: center; flex-wrap: wrap;
  transition: border-color .15s var(--pm-ease), box-shadow .15s var(--pm-ease);
}
.pm-search-form:focus-within { border-color: var(--brand); box-shadow: 0 14px 27px rgba(255,90,54,.14); }
.pm-search-input { flex: 1; min-width: 160px; border: 0; outline: 0; background: transparent; font-size: 1rem; padding: 12px 4px; color: var(--text); font-family: inherit; }
.pm-search-btn {
  border: 0; border-radius: 6px; padding: 12px 22px; font-weight: 800; cursor: pointer;
  background: var(--brand); color: #fff; transition: background .15s var(--pm-ease), transform .1s;
}
.pm-search-btn:hover { background: var(--brand2); }
.pm-search-btn:active { transform: scale(.97); }
.pm-locate-btn {
  border: 1px solid rgba(23,38,43,.2); background: var(--surface); border-radius: 6px;
  padding: 10px 16px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--text);
}
.pm-locate-btn:hover { border-color: var(--brand); color: var(--brand); }

.pm-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }
.pm-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pm-radius-sm); padding: 14px 12px; text-align: center; }
.pm-stat-val { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; color: var(--brand); }
.pm-stat-lbl { display: block; font-family: var(--pm-font-mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }

.pm-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.pm-operator-card {
  display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--pm-radius-sm); transition: transform .15s var(--pm-ease), border-color .15s var(--pm-ease);
}
.pm-operator-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.pm-operator-icon {
  width: 44px; height: 44px; border-radius: var(--pm-radius-sm); display: grid; place-items: center;
  background: var(--surface2); font-size: 1.3rem; flex-shrink: 0;
}
.pm-operator-name { font-weight: 800; font-size: .98rem; }
.pm-operator-meta { font-family: var(--pm-font-mono); font-size: .72rem; color: var(--muted); margin-top: 2px; }

.pm-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: end; }
.pm-filter-field { display: flex; flex-direction: column; gap: 4px; font-family: var(--pm-font-mono); font-size: .68rem; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.pm-filter-field select, .pm-filter-field input[type=text] {
  border: 1px solid rgba(23,38,43,.2); border-radius: var(--pm-radius-sm); padding: 9px 12px; font-size: .88rem; font-family: var(--pm-font-sans);
  background: var(--surface); color: var(--text); min-width: 140px;
}
.pm-filter-field select:focus, .pm-filter-field input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,54,.12); }
.pm-filter-check { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text); font-weight: 600; padding: 9px 4px; }
.pm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; padding: 10px 18px; font-weight: 800; font-size: .88rem; cursor: pointer;
  border: 1px solid rgba(23,38,43,.2); background: var(--surface); color: var(--text); text-decoration: none;
  transition: background .15s var(--pm-ease), border-color .15s var(--pm-ease), color .15s var(--pm-ease);
}
.pm-btn-primary { background: var(--brand); color: #fff; border-color: transparent; }
.pm-btn-primary:hover { background: var(--brand2); }
.pm-btn-ghost { background: transparent; }
.pm-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.pm-btn-sm { padding: 7px 14px; font-size: .8rem; }
.pm-btn-full { width: 100%; }

.pm-locker-row { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.pm-locker-row:last-child { border-bottom: none; }
.pm-locker-icon { width: 40px; height: 40px; border-radius: var(--pm-radius-sm); background: var(--surface2); display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.pm-locker-info { flex: 1; min-width: 0; }
.pm-locker-name { font-weight: 800; font-size: .95rem; }
.pm-locker-addr { font-size: .8rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.pm-locker-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pm-badge { font-family: var(--pm-font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 3px; background: var(--surface2); color: var(--muted); }
.pm-badge-brand { background: rgba(255,90,54,.12); color: var(--brand); }

.pm-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pm-pagination a, .pm-pagination span { border: 1px solid var(--line); border-radius: var(--pm-radius-sm); padding: 6px 12px; font-family: var(--pm-font-mono); font-size: .78rem; color: var(--text); text-decoration: none; }
.pm-pagination .is-active { border-color: var(--brand); color: var(--brand); font-weight: 800; }

.pm-alert { border-radius: var(--pm-radius-sm); padding: 14px 16px; font-size: .88rem; margin-bottom: 18px; border: 1px solid var(--line); border-left-width: 3px; }
.pm-alert-success { background: rgba(18,161,104,.08); border-left-color: #12a168; color: #0c7a4e; }
.pm-alert-danger { background: rgba(229,62,62,.08); border-left-color: #e53e3e; color: #b42323; }
.pm-alert-info { background: var(--surface-soft); border-left-color: var(--pm-sea); }

.pm-field { margin-bottom: 16px; }
.pm-label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.pm-input, .pm-textarea, .pm-select {
  width: 100%; border: 1px solid rgba(23,38,43,.2); border-radius: var(--pm-radius-sm); padding: 11px 14px;
  font-size: .92rem; background: var(--surface); color: var(--text); font-family: inherit;
}
.pm-input:focus, .pm-textarea:focus, .pm-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,54,.12); }
.pm-textarea { min-height: 110px; resize: vertical; }
.pm-radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.pm-radio-opt { display: flex; align-items: center; gap: 6px; font-size: .88rem; }

.pm-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.pm-compare-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pm-radius); padding: 18px; }
.pm-compare-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.pm-compare-row:last-child { border-bottom: none; }

.pm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin: 24px 0; }
.pm-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pm-radius); padding: 18px; }
.pm-step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.pm-step p { margin: 0; color: var(--muted); font-size: .88rem; }

.pm-sidebar { display: flex; flex-direction: column; gap: 18px; }
.pm-ecosystem-link { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: .85rem; color: var(--text); text-decoration: none; }
.pm-ecosystem-link:hover { color: var(--brand); }

.pm-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; }

@media (max-width: 900px) {
  .pm-hero { grid-template-columns: 1fr; }
  .pm-content-layout { grid-template-columns: 1fr; }
  .pm-stat-row { grid-template-columns: 1fr; }
}
html[dir=rtl] .pm-search-form { padding: 6px 18px 6px 6px; }

/* Honeypot field for anti-spam — kept in the tab order out of sight rather
   than display:none, since some bots skip display:none fields. */
.pm-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* layout-fix-2026-09-29 (screenshot review) */
section.pm-hero{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:clamp(16px, 4vw, 24px);padding-right:clamp(16px, 4vw, 24px);box-sizing:border-box}
