/* Simple, clean mobile-first UI */
:root{
  --bg:#0b1020;
  --panel:#0f172a;
  --panel2:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#22c55e;
  --accent2:#38bdf8;
  --warn:#f59e0b;
  --danger:#ef4444;
  --border:rgba(255,255,255,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, #121a35 0%, var(--bg) 60%);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  background:rgba(15, 23, 42, .8);
  backdrop-filter: blur(10px);
}

.brand{display:flex; gap:10px; align-items:center;}
.brand__logo{
  width:36px; height:36px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(34,197,94,.9), rgba(56,189,248,.9));
  color:#081016; font-weight:800;
}
.brand__name{font-weight:800; line-height:1.1}
.brand__tag{font-size:12px; color:var(--muted); margin-top:2px}

.layout{padding:14px; display:grid; gap:12px; max-width:1100px; margin:0 auto;}
.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.card{
  -webkit-appearance:none;
  appearance:none;
  color:var(--text);
  border:1px solid var(--border);
  background:rgba(17,24,39,.7);
  border-radius:16px;
  padding:12px;
  text-align:left;
  cursor:pointer;
  transition:transform .05s ease, border-color .15s ease;
}
.card:active{transform:scale(.99)}
.card:hover{border-color:rgba(56,189,248,.35)}
.card__title{font-weight:800}
.card__sub{font-size:12px; color:var(--muted); margin-top:4px}
.card--ghost{background:rgba(17,24,39,.25); color:var(--text)}

.mapwrap{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:rgba(15, 23, 42, .6);
}
.mapwrap__bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px;
  border-bottom:1px solid var(--border);
}
.mapwrap__right{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
#map{height:52vh; min-height:320px; width:100%}

.list{
  padding:10px;
  display:grid;
  gap:10px;
}
.item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  background:rgba(17,24,39,.55);
}
.item__top{display:flex; justify-content:space-between; align-items:flex-start; gap:10px}
.item__title{font-weight:800}
.item__meta{font-size:12px; color:var(--muted)}
.item__desc{margin-top:6px; color:#d1d5db; font-size:14px; line-height:1.25}
.item__actions{margin-top:8px; display:flex; gap:8px; flex-wrap:wrap}
.smallbtn{
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  background:rgba(17,24,39,.35);
  color:var(--text);
  cursor:pointer;
  font-size:12px;
}

.btn{
  border:1px solid var(--border);
  border-radius:12px;
  padding:9px 12px;
  background:rgba(17,24,39,.55);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn--primary{border-color:rgba(34,197,94,.35); background:rgba(34,197,94,.18)}
.btn--secondary{border-color:rgba(56,189,248,.35); background:rgba(56,189,248,.12)}
.btn--danger{border-color:rgba(239,68,68,.35); background:rgba(239,68,68,.12)}

.chiprow{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.chip{
  font-size:12px;
  border-radius:999px;
  padding:5px 10px;
  border:1px solid var(--border);
  background:rgba(17,24,39,.35);
  color:var(--text);
}
.chip--muted{color:var(--muted)}
.chip--hint{border-color:rgba(156,163,175,.25); color:#cbd5e1}
.chip--warn{border-color:rgba(245,158,11,.35); background:rgba(245,158,11,.12); color:#fde68a}

.modal::backdrop{background:rgba(0,0,0,.55)}
.modal{border:none; padding:0; background:transparent; width:min(680px, 94vw)}
.modal__content{
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(15,23,42,.95);
  color:var(--text);
  padding:14px;
}
.modal__header{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.modal__title{font-weight:900; font-size:18px}
.modal__sub{font-size:12px; color:var(--muted); margin-top:2px}
.iconbtn{
  border:1px solid var(--border);
  background:rgba(17,24,39,.35);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modal__footer{display:flex; justify-content:flex-end; gap:10px; margin-top:12px; flex-wrap:wrap}

.grid{display:grid; gap:10px; margin-top:10px; grid-template-columns:repeat(2,minmax(0,1fr))}
.field{display:grid; gap:6px}
.field--full{grid-column:1 / -1}
.field__label{font-size:12px; color:#cbd5e1; font-weight:700}
.field__hint{font-size:12px; color:var(--muted); margin-top:6px}
input, textarea, select{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(17,24,39,.55);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
textarea{min-height:84px; resize:vertical}
.help{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.help__text{font-size:12px; color:var(--muted)}
.coords{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px}

@media (min-width: 860px){
  .layout{grid-template-columns: 360px 1fr; align-items:start}
  .cards{grid-template-columns:1fr; position:sticky; top:74px}
  #map{height:60vh}
}

.pickactions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

body.picking #map{cursor: crosshair;}

.toggle{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
  user-select:none;
}
.toggle input{ width:auto; }
.toggle__hint{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.admin__row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
.admin__list{
  margin-top:10px;
  display:grid;
  gap:10px;
  max-height:60vh;
  overflow:auto;
  padding-right:4px;
}
.adminCard{
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  background:rgba(17,24,39,.55);
}
.adminCard__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.adminCard__title{font-weight:900}
.adminCard__meta{font-size:12px;color:var(--muted);margin-top:4px}
.adminCard__desc{font-size:13px;color:#d1d5db;margin-top:6px;line-height:1.25}
.adminCard__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.badge{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(17,24,39,.35);
  color:var(--text);
}
.badge--warn{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.12);color:#fde68a}
.badge--danger{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.12)}
@media (max-width:520px){
  .admin__row{grid-template-columns:1fr}
}

/* Bike marker */
.bikePin{
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.35);
  background: rgba(34,197,94,.20);
  backdrop-filter: blur(6px);
}

#map{min-height:420px;}

.preview{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:10px;
}
.preview img{
  width:100%;
  height:92px;
  object-fit:cover;
  border-radius:14px;
  border: 1px solid rgba(255,255,255,.12);
}
.preview a{
  display:block;
}

.check{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.check input{ width:18px; height:18px; }
.camTip{
  background: rgba(0,0,0,.55) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  color:#fff !important;
  border-radius: 10px !important;
  padding: 2px 6px !important;
  font-size: 12px !important;
}


.divider{height:1px;background:rgba(255,255,255,.08);margin:14px 0;}
.form_row.two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media (max-width:700px){.form_row.two{grid-template-columns:1fr;}}
.field label{display:block;margin:0 0 6px;color:rgba(229,230,235,.9);font-size:.9rem;}
.field input,.field textarea,.field select{width:100%;}

.contactRow{margin-top:8px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.pill{display:inline-block;padding:6px 10px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:rgba(229,230,235,.95);text-decoration:none;font-size:.9rem;background:rgba(255,255,255,.04);} 
.pill:hover{background:rgba(255,255,255,.08);} 

#btnAuth{opacity:.0;pointer-events:none;position:absolute;left:-9999px;}
