/* ==========================================================================
   Trader profile page — /traders/trader/{slug}-{id}/
   Styles for profile_tpl.html, co-located (like mot-check/results.css).

   Every selector is a standalone, uniquely-prefixed class (.tpr-*) so the
   style set is self-contained: it never overlaps the shared header/footer or
   the global .cta banner, and each class is discoverable on its own.
   Reuses the site's green-accent palette.
   ========================================================================== */
.tpr{
  --tpr-ink:#101418;
  --tpr-ink-soft:#3d454b;
  --tpr-muted:#6b757c;
  --tpr-accent:#2ccf9f;
  --tpr-accent-deep:#0fa37c;
  --tpr-accent-soft:#e7faf3;
  --tpr-paper:#ffffff;
  --tpr-mist:#f6f8f7;
  --tpr-line:#e4e8e6;
  --tpr-star:#f5b301;
  --tpr-radius:14px;
  --tpr-maxw:1180px;
}
.tpr,.tpr *{box-sizing:border-box}
.tpr{font-family:'Poppins',system-ui,sans-serif;color:var(--tpr-ink);background:var(--tpr-paper);line-height:1.6;font-size:15px;-webkit-font-smoothing:antialiased}
.tpr h1,.tpr h2,.tpr h3,.tpr p,.tpr ul,.tpr ol,.tpr li{margin:0;padding:0}
.tpr img{max-width:100%;display:block}
.tpr a{color:inherit;text-decoration:none}
.tpr-wrap{max-width:var(--tpr-maxw);margin:0 auto;padding:0 24px}

/* ---------- buttons ---------- */
.tpr-btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;border-radius:999px;padding:11px 22px;cursor:pointer;border:1.5px solid transparent;transition:all .25s ease;font-family:inherit}
.tpr-btn-primary{background:var(--tpr-accent);color:#06301f}
.tpr-btn-primary:hover{background:var(--tpr-accent-deep);color:#fff}
.tpr-btn-ghost{border-color:var(--tpr-line);color:var(--tpr-ink);background:var(--tpr-paper)}
.tpr-btn-ghost:hover{border-color:var(--tpr-accent);color:var(--tpr-accent-deep)}

/* ---------- header separator ---------- */
.tpr-header-sep{height:1px;background:var(--tpr-line)}

/* ---------- breadcrumb ---------- */
.tpr-crumbs{border-bottom:1px solid var(--tpr-line);background:var(--tpr-paper)}
.tpr-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:14px 0;font-size:13px;color:var(--tpr-muted)}
.tpr-crumbs li{display:flex;align-items:center;white-space:nowrap}
.tpr-crumbs li+li::before{content:"/";margin-right:6px;color:#b9c1bd}
.tpr-crumbs li:last-child{color:var(--tpr-ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.tpr-crumbs a:hover{color:var(--tpr-accent-deep)}

/* ---------- hero ---------- */
.tpr-hero{padding:44px 0 8px}
.tpr-card{display:flex;gap:28px;align-items:flex-start;background:var(--tpr-paper);border:1px solid var(--tpr-line);border-radius:22px;padding:32px;box-shadow:0 20px 48px -34px rgba(16,20,24,.35)}
.tpr-intro{flex:1 1 auto;min-width:0}
.tpr-name{font-size:clamp(24px,3.2vw,34px);font-weight:800;letter-spacing:-.4px;line-height:1.2}
.tpr-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px;color:var(--tpr-ink-soft);font-size:14px}
.tpr-loc{display:inline-flex;align-items:center;gap:6px;color:var(--tpr-muted)}
.tpr-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}

/* ---------- body grid ---------- */
.tpr-body{padding:40px 0 8px}
.tpr-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}
.tpr-main{display:flex;flex-direction:column;gap:24px}
.tpr-panel{background:var(--tpr-paper);border:1px solid var(--tpr-line);border-radius:var(--tpr-radius);padding:28px}
.tpr-panel h2{font-size:19px;font-weight:700;margin-bottom:14px;letter-spacing:-.2px}
.tpr-panel h3{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--tpr-ink-soft);margin-bottom:16px}
.tpr-panel p{color:var(--tpr-ink-soft)}
.tpr-panel p+p{margin-top:12px}

/* ---------- detail list ---------- */
.tpr-details{list-style:none;display:flex;flex-direction:column}
.tpr-details li{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px dashed var(--tpr-line)}
.tpr-details li:last-child{border-bottom:0;padding-bottom:0}
.tpr-ico{flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:var(--tpr-accent-soft);color:var(--tpr-accent-deep);display:flex;align-items:center;justify-content:center}
.tpr-ico svg{width:16px;height:16px}
.tpr-label{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--tpr-muted);margin-bottom:2px}
.tpr-val{font-weight:500;color:var(--tpr-ink);word-break:break-word}
.tpr-details a.tpr-val:hover{color:var(--tpr-accent-deep);text-decoration:underline}

/* ---------- services provided ---------- */
.tpr-services{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin-top:16px!important}
.tpr-services li{font-size:14px;font-weight:500;color:var(--tpr-ink);background:var(--tpr-accent-soft);border:1px solid #cdeee1;border-radius:999px;padding:7px 16px}

/* ---------- contact sidebar ---------- */
.tpr-side{position:sticky;top:88px}
.tpr-contact h2{font-size:16px;margin-bottom:6px}
.tpr-contact .tpr-details li{gap:12px;padding:12px 0}
.tpr-contact .tpr-ico{width:30px;height:30px}

/* ---------- CTA band ---------- */
.tpr-cta-band{margin-top:48px;padding:64px 0;background:var(--tpr-mist);border-top:1px solid var(--tpr-line);border-bottom:1px solid var(--tpr-line)}
.tpr-cta{max-width:720px;margin:0 auto;text-align:center}
.tpr-cta h2{font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.4px}
.tpr-cta p{color:var(--tpr-ink-soft);margin:12px 0 24px}
.tpr-cta .tpr-btn-primary{font-size:15px;padding:14px 30px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .tpr-grid{grid-template-columns:1fr}
  .tpr-side{position:static}
}
@media (max-width:600px){
  .tpr-card{flex-direction:column;gap:20px;padding:24px}
  .tpr-actions .tpr-btn{flex:1 1 auto;justify-content:center}
}

/* ---------- nearby traders ---------- */
.tpr-near-list{list-style:none;display:flex;flex-direction:column;margin-top:14px}
.tpr-near-list li{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px dashed var(--tpr-line)}
.tpr-near-list li:last-child{border-bottom:0;padding-bottom:0}
.tpr-near-num{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--tpr-accent-soft);color:var(--tpr-accent-deep);font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}
.tpr-near-name{flex:1;min-width:0;font-weight:600;color:var(--tpr-ink);display:flex;flex-direction:column}
.tpr-near-name:hover{color:var(--tpr-accent-deep);text-decoration:underline}
.tpr-near-town{font-size:13px;font-weight:400;color:var(--tpr-muted)}
.tpr-near-dist{flex:0 0 auto;font-size:14px;font-weight:600;color:var(--tpr-accent-deep);white-space:nowrap}
@media (max-width:600px){.tpr-near-list li{flex-wrap:wrap}.tpr-near-dist{margin-left:44px;flex-basis:100%}}

/* ---------- enriched write-up (highlights, facts, note) ---------- */
.tpr-panel h3.tpr-sub{margin:22px 0 12px}
.tpr-bullets{list-style:none;display:flex;flex-direction:column;gap:10px}
.tpr-bullets li{position:relative;padding-left:28px;color:var(--tpr-ink-soft)}
.tpr-bullets li::before{content:"";position:absolute;left:0;top:.45em;width:16px;height:16px;border-radius:50%;background:var(--tpr-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fa37c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center/10px no-repeat}
.tpr-panel p.tpr-note{margin-top:20px;padding-top:14px;border-top:1px dashed var(--tpr-line);font-size:13px;color:var(--tpr-muted)}
.tpr-side .tpr-panel+.tpr-panel{margin-top:20px}
.tpr-glance h2{font-size:16px;margin-bottom:6px}
.tpr-glance-row{padding:12px 0;border-bottom:1px dashed var(--tpr-line)}
.tpr-glance-row:last-child{border-bottom:0;padding-bottom:0}
.tpr-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.tpr-chips li{font-size:13px;font-weight:500;color:var(--tpr-ink);background:var(--tpr-accent-soft);border:1px solid #cdeee1;border-radius:999px;padding:4px 12px}
.tpr-glance-lines{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:4px}
.tpr-glance-lines li{font-size:14px;color:var(--tpr-ink-soft)}

/* map of where the trader is (free OpenStreetMap map, drawn by /traders/towns/traders-map.js) */
.tpr-map .traders-map__canvas{width:100%;height:360px;margin-top:16px;border:1px solid var(--tpr-line);border-radius:12px;overflow:hidden;background:#eef2f1;z-index:0}
.tpr-map .traders-map__canvas--failed{display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--tpr-muted)}
.tpr-map .traders-map__popup{display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.4;min-width:170px}
.tpr-map .traders-map__popup strong{font-size:15px;color:#1e1e1e}
.tpr-map .traders-map__popup span{color:#5b6470}
.tpr-map .traders-map__popup a{font-weight:600;text-decoration:none}
.tpr-map__dir{margin-top:14px}
.tpr-map__dir a{font-weight:700;text-decoration:none;color:inherit;border-bottom:2px solid #3cc8b4}
@media (max-width:640px){.tpr-map .traders-map__canvas{height:300px}}
