/* Wspólny styl (jak w v1) */
:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#111b27;
  --text:#e8eef6;
  --muted:#a6b3c3;
  --accent:#52ff88;
  --accent2:#36c6ff;
  --danger:#ff5a6a;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1000px 500px at 20% 0%, rgba(82,255,136,.12), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(54,198,255,.10), transparent 65%),
              var(--bg);
  color:var(--text);
}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.65);
}
.brand{display:flex; gap:12px; align-items:center}
.dot{
  width:12px; height:12px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(82,255,136,.08);
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-subtitle{font-size:12px; color:var(--muted)}
.actions{display:flex; gap:10px; align-items:center}
.layout{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:14px;
  padding:14px;
  height: calc(100vh - 60px - 44px);
}
.sidebar{display:flex; flex-direction:column; gap:14px; overflow:auto; padding-right:6px}
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}
.panel-small{padding:12px}
.panel-title{font-weight:800; margin-bottom:10px}
.filters{display:flex; flex-direction:column; gap:10px; margin-bottom:0}
.input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(15,22,32,.7);
  color: var(--text);
  outline:none;
  resize: vertical;
}
.input:focus{border-color: rgba(82,255,136,.35); box-shadow: 0 0 0 4px rgba(82,255,136,.07)}
.hint{font-size:12px; color:var(--muted); line-height:1.45}
.hint code{
  font-family:var(--mono);
  font-size:11px;
  background: rgba(255,255,255,.06);
  padding:2px 6px;
  border-radius:10px;
  border:1px solid var(--border);
}
.list{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.card{
  border:1px solid var(--border);
  border-radius: 14px;
  padding:10px 10px;
  background: rgba(17,27,39,.65);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{transform: translateY(-1px); border-color: rgba(54,198,255,.25); background: rgba(17,27,39,.85)}
.card .title{font-weight:800; display:flex; align-items:center; justify-content:space-between; gap:10px}
.badge{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  color: var(--muted);
}
.badge.enduro{border-color: rgba(54,198,255,.35); color: rgba(54,198,255,.95)}
.badge.bikepark{border-color: rgba(82,255,136,.35); color: rgba(82,255,136,.95)}
.badge.dirt{border-color: rgba(255,255,255,.2); color: rgba(235,235,235,.9)}
.badge.freeride{border-color: rgba(255,90,106,.35); color: rgba(255,90,106,.95)}
.card .meta{margin-top:6px; font-size:12px; color:var(--muted); line-height:1.35}
.card .meta a{color: var(--text); text-decoration: none; border-bottom:1px dashed rgba(255,255,255,.25)}
.card .meta a:hover{border-bottom-color: rgba(82,255,136,.55)}
.btn{
  border:1px solid var(--border);
  background: rgba(15,22,32,.7);
  color: var(--text);
  border-radius: 999px;
  padding:10px 12px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(15,22,32,.9)}
.btn:active{transform: translateY(0px)}
.btn-primary{border-color: rgba(82,255,136,.35); background: rgba(82,255,136,.10)}
.btn-primary:hover{border-color: rgba(82,255,136,.55); background: rgba(82,255,136,.14)}
.code{
  margin:10px 0 0;
  padding:10px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  font-family: var(--mono);
  font-size: 11px;
  overflow:auto;
  color: rgba(232,238,246,.92);
}
.map-wrap{
  position:relative;
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: rgba(0,0,0,.18);
}
#map{height:100%; width:100%}
.map-badge{
  position:absolute; left:12px; bottom:12px;
  font-size:12px; padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(11,15,20,.65);
  backdrop-filter: blur(10px);
  color: var(--muted);
}
.footer{
  height:44px;
  display:flex; gap:10px;
  align-items:center; justify-content:center;
  color: var(--muted);
  border-top:1px solid var(--border);
  background: rgba(11,15,20,.6);
}
.footer .sep{opacity:.5}
.leaflet-control-attribution{
  background: rgba(11,15,20,.6) !important;
  color: rgba(232,238,246,.75) !important;
  border:1px solid var(--border);
  border-radius: 10px;
  padding:4px 8px;
}
.leaflet-container a{color: rgba(82,255,136,.95)}
@media (max-width: 980px){
  .layout{grid-template-columns: 1fr; height: auto;}
  .map-wrap{height: 60vh}
}
