:root {
  --bg: #0b1220;
  --panel: #0f1a30;
  --panel2: #0c162a;
  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.72);
  --line: rgba(232, 238, 252, 0.12);
  --accent: #4ea1ff;
  --accent2: #77ffb1;
  --shadow: 0 12px 32px rgba(0,0,0,.25);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #122047 0%, var(--bg) 55%);
  color: var(--text);
}

.app {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 26, 48, 0.55);
  backdrop-filter: blur(10px);
}

.brand__title { font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.brand__subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }

.topbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--line);
  background: rgba(78, 161, 255, 0.16);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: rgba(78, 161, 255, 0.22); }
.btn--secondary { background: rgba(119, 255, 177, 0.12); }
.btn--secondary:hover { background: rgba(119, 255, 177, 0.18); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(232,238,252,0.06); }
.btn[aria-pressed="true"] { outline: 2px solid rgba(119, 255, 177, 0.45); }

.main {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 0;
}

.sidebar {
  padding: 14px;
  overflow: auto;
  border-right: 1px solid var(--line);
}

.panel {
  background: rgba(15, 26, 48, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.panel h2 {
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: .2px;
  color: rgba(232,238,252,0.92);
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 42, 0.65);
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
}

.list { display: grid; gap: 8px; }

.item {
  border: 1px solid var(--line);
  background: rgba(12, 22, 42, 0.55);
  padding: 10px 10px;
  border-radius: 14px;
  cursor: pointer;
}
.item:hover { background: rgba(12, 22, 42, 0.72); }
.item__title { font-weight: 700; font-size: 13px; }
.item__meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232,238,252,0.88);
  background: rgba(232,238,252,0.06);
}

.details h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
}
.details p {
  margin: 0 0 10px 0;
  color: rgba(232,238,252,0.9);
  line-height: 1.35;
}
.details .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.details .small { font-size: 12px; color: var(--muted); }

.footer { padding-top: 6px; }
.muted { color: var(--muted); font-size: 12px; }
code {
  background: rgba(232,238,252,0.08);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 10px;
}

.mapwrap { position: relative; min-height: 0; }
.map { height: calc(100vh - 64px); width: 100%; }

.toast {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 26, 48, 0.92);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 420px;
  color: rgba(232,238,252,0.95);
  font-size: 13px;
}

@media (max-width: 980px) {
  .main { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .map { height: calc(100vh - 280px); }
}
/* Modal — pomoc lokalizacji (nie rozwala layoutu na telefonie) */
.modal { position: fixed; inset: 0; z-index: 9999; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 24px));
  background: rgba(15, 26, 48, 0.98);
  border: 1px solid rgba(232,238,252,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  padding: 14px;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232,238,252,0.12);
}
.modal__title { font-weight: 800; font-size: 16px; }
.modal__body { padding-top: 12px; }
.modal__p { margin: 0 0 12px 0; color: rgba(232,238,252,0.9); }
.modal__steps { display: grid; gap: 10px; }
.modal__step {
  border: 1px solid rgba(232,238,252,0.12);
  background: rgba(12, 22, 42, 0.55);
  border-radius: 14px;
  padding: 10px;
  color: rgba(232,238,252,0.9);
  font-size: 13px;
  line-height: 1.35;
}
