/* ============================================================
   IT MAJLO — Panel SEO klienta
   Przyjazny, ciepły design z miękkimi kształtami
   ============================================================ */

:root {
  /* Brand */
  --brand-blue: #3D6FB3;
  --brand-blue-deep: #2D5891;
  --brand-blue-light: #6B8FCB;
  --brand-teal: #5DB7AB;
  --brand-teal-deep: #43998E;
  --brand-teal-light: #8FCFC6;

  /* Backgrounds — warm, soft */
  --bg-app: #F7F4EE;          /* warm cream */
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #FBF8F2;
  --bg-soft-2: #F1ECE2;
  --bg-tint-blue: #EEF3FB;
  --bg-tint-teal: #E8F5F2;
  --bg-tint-amber: #FAF1E3;
  --bg-tint-rose: #FBECEC;

  /* Text */
  --ink-1: #1F2A44;           /* deep navy ink */
  --ink-2: #4A5670;
  /* ink-3: drobny tekst pomocniczy, min. 4,5:1 na kremowym tle (WCAG AA).
     ink-4: tylko ikony i kropki (min. 3:1), nie do tekstu. */
  --ink-3: #5C667A;
  --ink-4: #8A93A6;

  /* Lines */
  --line: #ECE7DD;
  --line-2: #E3DECF;
  --line-strong: #D9D2BF;

  /* Status */
  --good: #3FA672;
  --good-bg: #E6F4ED;
  --warn: #D49032;
  --warn-bg: #FAF0DC;
  --bad:  #D26060;
  --bad-bg: #FBE7E5;
  /* Kolory statusu do tekstu (chipy, delty, terminy): min. 4,5:1 na jasnym tle statusu.
     --good / --warn / --bad zostają do kropek, ikon, pasków i wykresów. */
  --good-ink: #237A4F;
  --warn-ink: #95600F;
  --bad-ink: #B03A3A;
  --teal-ink: #2B6F66;
  --focus: #2D5891;

  /* Shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(31,42,68,.04), 0 2px 6px rgba(31,42,68,.04);
  --sh-2: 0 4px 14px rgba(31,42,68,.06), 0 2px 4px rgba(31,42,68,.04);
  --sh-3: 0 18px 40px -12px rgba(31,42,68,.18), 0 4px 10px rgba(31,42,68,.06);

  /* Type */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--ink-1);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* warm wash behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1100px 700px at 90% -10%, rgba(93,183,171,.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(61,111,179,.07), transparent 60%);
  pointer-events: none; z-index: 0;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Widoczny fokus przy obsłudze klawiaturą (mysz go nie pokazuje). */
:where(a, button, summary, select, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: var(--r-md);
  background: var(--ink-1); color: white; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ===== Layout ===== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  padding: 22px 16px 22px 22px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 22px 4px;
}
.brand img { height: 28px; width: auto; }
.brand-sub {
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-left: auto;
}

.nav-section { margin-bottom: 4px; }
.nav-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
  padding: 14px 12px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  text-align: left;
}
.nav-item:hover { background: var(--bg-soft); color: var(--ink-1); }
.nav-item.active {
  background: var(--bg-tint-blue);
  color: var(--brand-blue-deep);
  font-weight: 600;
}
.nav-item .icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .badge {
  margin-left: auto;
  background: var(--bg-tint-amber);
  color: var(--warn-ink);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.nav-item.active .badge { background: white; }

.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--bg-tint-teal), var(--bg-tint-blue));
  font-size: 13px;
  color: var(--ink-2);
}
.sidebar-foot strong { color: var(--ink-1); display: block; margin-bottom: 2px; }
.sidebar-foot .opiekun {
  display: flex; gap: 10px; align-items: center; margin-top: 10px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--teal-ink));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}

/* ===== Main ===== */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 {
  font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0;
}
.topbar .crumb {
  color: var(--ink-3); font-size: 13px; margin-top: 2px;
}
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.client-switcher {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 600; font-size: 13px;
  color: var(--ink-1);
}
.client-switcher .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
}

.date-picker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: white; border: 1px solid var(--line);
  font-weight: 600; font-size: 13px;
  color: var(--ink-1);
}
.date-picker:hover { border-color: var(--line-strong); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px;
  transition: transform .1s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(61,111,179,.25);
}
.btn-primary:hover { background: var(--brand-blue-deep); }
.btn-secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-1);
}
.btn-secondary:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.btn-ghost {
  color: var(--ink-2);
  padding: 8px 12px;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink-1); }
.btn-teal {
  background: var(--brand-teal);
  color: white;
  box-shadow: 0 2px 8px rgba(93,183,171,.3);
}
.btn-teal:hover { background: var(--brand-teal-deep); }

/* ===== Content ===== */
.content {
  padding: 28px 32px 60px;
  max-width: 1500px;
  width: 100%;
}

.page-head {
  display: flex; align-items: flex-end; gap: 20px;
  margin-bottom: 24px;
}
.page-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.page-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; max-width: 60ch; }

/* ===== Card ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  padding: 22px;
}
.card-tight { padding: 16px; }
.card-h {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.card-h h3 {
  margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.005em;
}
.card-h .h-sub { color: var(--ink-3); font-size: 12px; margin-left: 0; }
.card-h .h-actions { margin-left: auto; display: flex; gap: 6px; }

/* ===== KPI ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  position: relative;
  padding: 20px 22px 18px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.kpi-label {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.kpi-label .icon-circle {
  width: 28px; height: 28px; border-radius: 50%;
  flex: 0 0 28px; /* przy etykiecie w dwóch liniach kółko się nie ściska w owal */
  display: flex; align-items: center; justify-content: center;
}
.kpi-value {
  font-size: 30px; font-weight: 700; letter-spacing: -.025em;
  margin: 8px 0 4px;
  line-height: 1.1;
  color: var(--ink-1);
}
.kpi-value .unit {
  font-size: 14px; color: var(--ink-3); font-weight: 600; margin-left: 4px;
}
.kpi-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.kpi-delta.up { background: var(--good-bg); color: var(--good-ink); }
.kpi-delta.down { background: var(--bad-bg); color: var(--bad-ink); }
.kpi-delta.flat { background: var(--bg-soft-2); color: var(--ink-2); }
.kpi-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-size: 12px; color: var(--ink-3);
}
.kpi-spark {
  position: absolute;
  right: 18px; bottom: 14px;
  width: 88px; height: 36px;
  opacity: .85;
}

/* ===== Grid utilities ===== */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ===== Chips / pills ===== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--bg-soft-2); color: var(--ink-2);
}
.chip-good { background: var(--good-bg); color: var(--good-ink); }
.chip-warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip-bad  { background: var(--bad-bg); color: var(--bad-ink); }
.chip-blue { background: var(--bg-tint-blue); color: var(--brand-blue-deep); }
.chip-teal { background: var(--bg-tint-teal); color: var(--teal-ink); }

/* tabs */
.tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-soft-2);
  border-radius: var(--r-pill);
  gap: 2px;
}
.tab {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
}
.tab.active {
  background: white;
  color: var(--ink-1);
  box-shadow: var(--sh-1);
}
.tab:hover:not(.active) { color: var(--ink-1); }

/* table */
.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-1);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg-soft); }
.tbl td .sub { color: var(--ink-3); font-size: 12px; }

/* Bar visualization */
.minibar {
  height: 6px; border-radius: 99px;
  background: var(--bg-soft-2);
  overflow: hidden;
  position: relative;
}
.minibar .fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-blue));
}

/* ===== Status indicators ===== */
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-4);
}
.status-dot.good { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.status-dot.bad  { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }

/* arrows */
.arr { display: inline-block; }
.arr.up::before { content: '▲'; font-size: 9px; }
.arr.down::before { content: '▼'; font-size: 9px; }
.arr.flat::before { content: '–'; font-size: 11px; }

/* Animations */
@keyframes slideUp {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.view {
  animation: slideUp .35s ease;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .view, .modal, .modal-backdrop, .toast, .report-preview { animation: none !important; }
  .klient-karta, .kpi-link { transition: none !important; }
  .klient-karta:hover, .kpi-link:hover { transform: none !important; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(31,42,68,.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s forwards;
  padding: 20px;
}
.modal {
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  max-width: 540px;
  width: 100%;
  padding: 28px;
  animation: fadeUp .25s forwards;
  opacity: 1;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.modal p.sub { margin: 0 0 20px; color: var(--ink-3); font-size: 14px; }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--ink-1);
  transition: border-color .15s, background .15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(61,111,179,.12);
}
.textarea { resize: vertical; min-height: 90px; }

/* checkbox */
.check {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; position: relative;
}
/* pole ukryte wizualnie, ale dostępne z klawiatury i dla czytników ekranu */
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.check input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check .box {
  width: 18px; height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.check input:checked + .box {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}
.check input:checked + .box::after {
  content: '✓';
  color: white; font-size: 12px; font-weight: 900;
}

/* segmented */
.seg {
  display: inline-flex;
  background: var(--bg-soft-2);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  border-radius: 8px;
  color: var(--ink-2);
}
.seg button.on {
  background: white; color: var(--ink-1);
  box-shadow: var(--sh-1);
}

/* Empty state */
.empty {
  padding: 40px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink-1);
  color: white;
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 10px;
  z-index: 200;
  animation: fadeUp .25s forwards;
  font-size: 13px;
  font-weight: 500;
}
.toast .check-circle {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px;
}

/* Tasks */
.task-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto auto;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: background .15s;
}
.task-row + .task-row { margin-top: 4px; }
.task-row:hover { background: var(--bg-soft); }
.task-title { font-weight: 600; font-size: 14px; }
.task-meta { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.task-row.done .task-title { text-decoration: line-through; color: var(--ink-3); }
.task-cat {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--bg-tint-blue); color: var(--brand-blue-deep);
}
.task-cat.tech { background: var(--bg-tint-amber); color: var(--warn-ink); }
.task-cat.content { background: var(--bg-tint-teal); color: var(--teal-ink); }
.task-cat.linki { background: #F4E8FB; color: #7B4DAB; }

/* Note */
.note {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--bg-tint-amber);
  border: 1px solid #EBD9B0;
  font-size: 13px;
  position: relative;
}
.note.blue { background: var(--bg-tint-blue); border-color: #CFDEF1; }
.note.teal { background: var(--bg-tint-teal); border-color: #C2E1DC; }
.note .note-meta {
  font-size: 11px; color: var(--ink-3); margin-top: 8px;
  display: flex; align-items: center; gap: 8px;
}

/* Audit row */
.audit-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.audit-row:last-child { border-bottom: none; }
.audit-row .pill-score {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  background: var(--bg-tint-teal); color: var(--teal-ink);
}
.pill-score.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-score.bad { background: var(--bad-bg); color: var(--bad-ink); }

/* Sidebar scrollbar */
.sidebar { scrollbar-width: thin; }

/* Print/PDF report */
@media print {
  body::before, .sidebar, .topbar { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .content { padding: 0; max-width: none; }
}

/* Sparkline strokes */
.spark-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Report preview (printable) ===== */
.report-preview {
  position: fixed; inset: 0;
  background: #E8E3D7;
  z-index: 50;
  overflow-y: auto;
  animation: fadeIn .2s forwards;
}
.report-toolbar {
  position: sticky; top: 0; z-index: 5;
  background: white;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.report-stack {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px 60px;
  gap: 24px;
}
.report-page {
  background: white;
  width: 794px;             /* A4 width @ 96dpi */
  min-height: 1123px;       /* A4 height */
  padding: 48px 52px;
  box-shadow: 0 12px 36px rgba(31,42,68,.18);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.report-page.cover { padding: 0; }
.cover-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 440px at 110% -10%, rgba(93,183,171,.22), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(61,111,179,.18), transparent 60%),
    linear-gradient(180deg, #FBF8F2, #F1ECE2);
}
.cover-content {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 56px 60px;
  min-height: 1123px;
}
.cover-content > *:not(img) { width: 100%; }

@media print {
  body, html { background: white; }
  body::before { display: none; }
  .sidebar, .topbar, .report-toolbar, .modal-backdrop { display: none !important; }
  .app { display: block; }
  .main { display: block; }
  .content { display: none !important; }
  .report-preview {
    position: static;
    background: white;
  }
  .report-stack {
    padding: 0; gap: 0;
  }
  .report-page {
    box-shadow: none;
    border-radius: 0;
    page-break-after: always;
    width: 100%;
    min-height: auto;
    padding: 32px 40px;
  }
  .report-page.cover { padding: 0; }
  .cover-content { padding: 40px 48px; min-height: 95vh; }
  @page { size: A4; margin: 0; }
}

/* Map placeholder */
.map-stage {
  height: 320px;
  background:
    linear-gradient(135deg, rgba(93,183,171,.07), rgba(61,111,179,.07)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(31,42,68,.04) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(31,42,68,.04) 31px 32px),
    #FBF8F2;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-pin {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%);
}
.map-pin .head {
  width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--brand-blue);
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 11px;
  box-shadow: 0 6px 12px rgba(61,111,179,.3);
}
.map-pin .head span { transform: rotate(45deg); }
.map-pin.teal .head { background: var(--brand-teal); box-shadow: 0 6px 12px rgba(93,183,171,.3); }
.map-pin.warn .head { background: var(--warn); }
