:root{
  --jbh4-bg:#0d1420;
  --jbh4-panel:#111c2c;
  --jbh4-panel2:#0b1522;
  --jbh4-border:#1e2c42;
  --jbh4-text:#e8edf5;
  --jbh4-muted:#8593a8;
  --jbh4-orange:#ff6a1a;
  --jbh4-blue:#00c2ff;
  --jbh4-green:#2ecc71;
  --jbh4-red:#ff3b3b;
}
.jbh4-wrap{ background:var(--jbh4-bg); color:var(--jbh4-text); font-family:'Segoe UI',Roboto,Arial,sans-serif; border-radius:8px; overflow:hidden; }
.jbh4-wrap.jbh4-admin{ margin:10px 20px 20px 0; }
.jbh4-wrap.jbh4-front{ max-width:1200px; margin:0 auto; }

#jbh4-map-root{ display:flex; min-height:640px; border:1px solid var(--jbh4-border); }

.jbh4-sidebar{ width:270px; flex-shrink:0; background:var(--jbh4-panel); border-right:1px solid var(--jbh4-border); padding:18px; overflow-y:auto; }
.jbh4-logo{ display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.jbh4-logo .jbh4-logo-mark{ width:38px; height:38px; border-radius:8px; background:linear-gradient(135deg,var(--jbh4-orange),#ff9152); display:flex; align-items:center; justify-content:center; font-weight:800; color:#0d1420; font-size:13px; }
.jbh4-logo .jbh4-logo-text{ font-weight:800; font-size:18px; letter-spacing:.5px; }
.jbh4-logo .jbh4-logo-text span{ color:var(--jbh4-orange); }
.jbh4-logo .jbh4-logo-img{ max-height:44px; max-width:100%; }

@media (max-width: 880px){
  #jbh4-map-root{ flex-direction:column; min-height:auto; }
  .jbh4-sidebar{ width:100%; max-height:280px; border-right:none; border-bottom:1px solid var(--jbh4-border); }
  #jbh4-map{ min-height:420px; }
  .jbh4-topbar h2{ font-size:16px; }
  .jbh4-legend{ gap:10px; }
}

.jbh4-sidebar h4{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--jbh4-muted); margin:18px 0 8px; }
.jbh4-sidebar select, .jbh4-sidebar input[type=text]{ width:100%; background:var(--jbh4-panel2); border:1px solid var(--jbh4-border); color:var(--jbh4-text); padding:8px 10px; border-radius:6px; margin-bottom:8px; }

.jbh4-check{ display:flex; align-items:center; gap:8px; padding:6px 0; font-size:13px; color:var(--jbh4-text); }
.jbh4-check input{ accent-color:var(--jbh4-orange); }

.jbh4-musait-list{ list-style:none; margin:0; padding:0; max-height:220px; overflow-y:auto; }
.jbh4-musait-list li{ padding:6px 0; border-bottom:1px dashed var(--jbh4-border); font-size:13px; }
.jbh4-musait-list a{ color:var(--jbh4-blue); text-decoration:none; cursor:pointer; }
.jbh4-musait-list a:hover{ text-decoration:underline; }

.jbh4-main{ flex:1; display:flex; flex-direction:column; min-width:0; }
.jbh4-topbar{ background:var(--jbh4-panel2); border-bottom:1px solid var(--jbh4-border); padding:14px 20px; }
.jbh4-topbar h2{ margin:0 0 10px; font-size:20px; letter-spacing:.03em; }
.jbh4-topbar h2 span{ color:var(--jbh4-orange); }

.jbh4-legend{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.jbh4-legend-item{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--jbh4-muted); }
.jbh4-dot{ width:12px; height:12px; border-radius:50%; display:inline-block; box-shadow:0 0 6px rgba(0,0,0,.4); }
.jbh4-dot.ana_depo{ background:var(--jbh4-blue); }
.jbh4-dot.il_bas_bayi{ background:var(--jbh4-green); }
.jbh4-dot.tali_bayi{ background:var(--jbh4-orange); }
.jbh4-dot.musait{ background:var(--jbh4-red); animation:jbh4-pulse 1.2s infinite; }

@keyframes jbh4-pulse{ 0%{box-shadow:0 0 0 0 rgba(255,59,59,.6);} 70%{box-shadow:0 0 0 9px rgba(255,59,59,0);} 100%{box-shadow:0 0 0 0 rgba(255,59,59,0);} }

#jbh4-map{ flex:1; min-height:560px; background:#0a1220; }

.jbh4-pin-musait{ animation:jbh4-pulse 1.2s infinite; border-radius:50%; }

.leaflet-popup-content-wrapper{ background:var(--jbh4-panel); color:var(--jbh4-text); border-radius:8px; border:1px solid var(--jbh4-border); }
.leaflet-popup-tip{ background:var(--jbh4-panel); }
.jbh4-popup h3{ margin:0 0 6px; font-size:14px; color:var(--jbh4-orange); }
.jbh4-popup p{ margin:2px 0; font-size:12.5px; color:var(--jbh4-muted); }
.jbh4-popup .jbh4-btn{ display:inline-block; margin-top:8px; background:var(--jbh4-orange); color:#0d1420; font-weight:700; font-size:12.5px; padding:7px 12px; border-radius:6px; text-decoration:none; }
.jbh4-popup .jbh4-badge{ display:inline-block; font-size:11px; padding:2px 8px; border-radius:10px; margin-bottom:6px; }
.jbh4-popup .jbh4-badge.dolu{ background:rgba(46,204,113,.15); color:var(--jbh4-green); }
.jbh4-popup .jbh4-badge.musait{ background:rgba(255,59,59,.15); color:var(--jbh4-red); }

.jbh4-empty-note{ font-size:12px; color:var(--jbh4-muted); padding:10px 0; }

.jbh4-basvuru-wrap{ max-width:520px; margin:30px auto; padding:28px; }
.jbh4-basvuru-title{ margin:0 0 6px; font-size:22px; color:var(--jbh4-text); }
.jbh4-basvuru-sub{ margin:0 0 20px; font-size:13px; color:var(--jbh4-muted); }
#jbh4-basvuru-form{ display:flex; flex-direction:column; gap:12px; }
#jbh4-basvuru-form input, #jbh4-basvuru-form textarea{
  background:var(--jbh4-panel2); border:1px solid var(--jbh4-border); color:var(--jbh4-text);
  padding:11px 14px; border-radius:6px; font-size:14px; font-family:inherit;
}
.jbh4-basvuru-submit{ border:none; cursor:pointer; }
#jbh4-basvuru-sonuc{ font-size:13px; padding-top:4px; }
#jbh4-basvuru-sonuc.ok{ color:var(--jbh4-green); }
#jbh4-basvuru-sonuc.err{ color:var(--jbh4-red); }
