:root{
  --bg0:#070b16;
  --bg1:#0b1220;
  --card: rgba(15,26,47,.72);
  --card2: rgba(12,22,41,.72);
  --glass: rgba(255,255,255,.06);
  --text:#eaf1ff;
  --muted:#a9b7d6;
  --line: rgba(90,120,200,.20);
  --accent:#3aa0ff;
  --accent2:#8a5cff;
  --good:#30d158;
  --warn:#ffd60a;
  --bad:#ff453a;

  --r12:12px;
  --r16:16px;
  --r20:20px;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(58,160,255,.35), transparent 60%),
    radial-gradient(1000px 700px at 90% 0%, rgba(138,92,255,.25), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(48,209,88,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Nice scrollbar */
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{
  background: rgba(170,190,230,.25);
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
  border-radius: 999px;
}
*::-webkit-scrollbar-track{background: rgba(255,255,255,.03)}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  background: rgba(7,11,22,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand{display:flex; gap:12px; align-items:center; min-width:220px}
.logo{
  width:40px; height:40px;
  border-radius: 14px;
  display:grid; place-items:center;
  background:
    radial-gradient(80% 90% at 20% 10%, rgba(58,160,255,.45), transparent 55%),
    radial-gradient(80% 90% at 90% 30%, rgba(138,92,255,.35), transparent 55%),
    rgba(255,255,255,.05);
  border:1px solid rgba(140,180,255,.22);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  color: var(--text);
  font-weight:900;
}
.title{font-weight:900; font-size:16px; letter-spacing:.2px}
.subtitle{font-size:12px; color:var(--muted); margin-top:2px}

/* Controls */
.controls{display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.select, .input{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(140,180,255,.18);
  color:var(--text);
  border-radius: 12px;
  padding:9px 10px;
  outline:none;
  transition: transform .08s ease, border-color .2s ease, background .2s ease;
}
.select:hover, .input:hover{
  border-color: rgba(58,160,255,.45);
  background: rgba(255,255,255,.07);
}
.select:focus, .input:focus{
  border-color: rgba(58,160,255,.65);
  box-shadow: 0 0 0 4px rgba(58,160,255,.12);
}
.input.small{width:86px}
.inline{display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px}

.btn{
  border:1px solid rgba(58,160,255,.45);
  background:
    linear-gradient(135deg, rgba(58,160,255,.22), rgba(138,92,255,.12));
  color: var(--text);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  transition: transform .08s ease, filter .2s ease, border-color .2s ease;
}
.btn:hover{filter:brightness(1.10)}
.btn:active{transform: translateY(1px)}
.btn.ghost{
  border:1px solid rgba(140,180,255,.18);
  background: rgba(255,255,255,.05);
}

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 1.35fr .95fr;
  gap:14px;
  padding:14px;
  max-width: 1280px;
  margin:0 auto;
}

.cardLike, .mapWrap, .panel{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--r20);
  overflow:hidden;
  box-shadow: var(--shadow2);
}

/* Map section */
.mapWrap{
  position:relative;
}
.mapHeader{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background: var(--card2);
}
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(58,160,255,.28);
  color: rgba(231,238,252,.95);
  background: rgba(58,160,255,.10);
}
.meta{font-size:12px; color:var(--muted)}
#map{height: 560px; width:100%}
.note{
  padding:10px 12px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.10);
}

/* Loading overlay */
.loading{
  position:absolute;
  inset:52px 0 44px 0; /* between header + note */
  display:none;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(7,11,22,.45), rgba(7,11,22,.15));
}
.loading.show{display:flex}
.loading .spinner{
  width:34px;height:34px;border-radius:50%;
  border:3px solid rgba(255,255,255,.18);
  border-top-color: rgba(58,160,255,.9);
  animation: spin 1s linear infinite;
}
.loading .txt{
  margin-left:10px;
  font-weight:800;
  color: rgba(231,238,252,.92);
  letter-spacing:.2px;
}
@keyframes spin{to{transform: rotate(360deg)}}

/* Panel */
.panel{
  display:flex;
  flex-direction:column;
  min-height: 0;
}
.panelHeader{
  padding:12px;
  border-bottom:1px solid var(--line);
  background: var(--card2);
}
.panelTitle{font-weight:950}
.panelMeta{font-size:12px; color:var(--muted); margin-top:4px}

.list{
  max-height: 560px;
  overflow:auto;
}
.item{
  padding:11px 12px;
  border-bottom:1px solid rgba(90,120,200,.16);
  cursor:pointer;
  transition: background .15s ease;
}
.item:hover{
  background: linear-gradient(90deg, rgba(58,160,255,.10), rgba(138,92,255,.06));
}
.row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.place{font-weight:850; font-size:13px}
.time{font-size:12px; color:var(--muted)}
.badge{
  font-weight:950;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(140,180,255,.16);
  background: rgba(0,0,0,.12);
}
.b-good{border-color: rgba(48,209,88,.35); color: var(--good)}
.b-warn{border-color: rgba(255,214,10,.35); color: var(--warn)}
.b-bad{border-color: rgba(255,69,58,.35); color: var(--bad)}
.details{margin-top:6px; font-size:12px; color:var(--muted); line-height:1.3}

/* Empty state */
.empty{
  display:none;
  padding:18px 12px;
  color: var(--muted);
  font-size:13px;
  line-height:1.5;
}
.empty.show{display:block}
.empty strong{color: rgba(231,238,252,.92)}

/* SEO section */
.seo{padding:14px}
.seo h1{
  margin:0 0 8px 0;
  font-size:18px;
  letter-spacing:.2px;
}
.seo p{
  margin:0 0 14px 0;
  color: var(--muted);
  font-size:13px;
  line-height:1.6;
}
.faq h2{margin:0 0 8px 0; font-size:15px}
details{
  border:1px solid rgba(90,120,200,.18);
  border-radius:14px;
  padding:9px 10px;
  margin-bottom:8px;
  background: rgba(255,255,255,.04);
}
summary{cursor:pointer; font-weight:850}
details div{color:var(--muted); font-size:13px; margin-top:8px; line-height:1.5}

/* Footer */
.footer{
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size:12px;
}
.footer a{
  color: rgba(231,238,252,.92);
  text-decoration:none;
  font-weight:850;
  border:1px solid rgba(140,180,255,.18);
  padding:8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.footer a:hover{border-color: rgba(58,160,255,.45); background: rgba(255,255,255,.06)}

.muted{opacity:.85}

/* Responsive */
@media (max-width: 980px){
  .layout{grid-template-columns: 1fr}
  #map{height: 440px}
  .list{max-height: 440px}
  .brand{min-width:auto}
}

.searchWrap{ position:relative; min-width:240px; }
.input.search{ width:240px; padding-right:34px; }

.searchResults{
  position:absolute;
  top:44px; left:0; right:0;
  background: rgba(10,16,30,.96);
  border:1px solid rgba(140,180,255,.18);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  display:none;
  z-index: 100;
}
.searchResults.show{ display:block; }

.srItem{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid rgba(90,120,200,.14);
  font-weight:850;
}
.srItem:last-child{ border-bottom:none; }
.srItem:hover{
  background: linear-gradient(90deg, rgba(58,160,255,.12), rgba(138,92,255,.08));
}
.srSub{ font-size:12px; color: rgba(169,183,214,.95); font-weight:700; margin-top:2px; }
