/* ============================================================
   assets/peta.css — khusus halaman peta publik (peta.php)
   Selaras dengan style.css: primer #2563eb, kartu putih, radius 14px
   ============================================================ */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:#64748b;font-size:13px;white-space:nowrap}
.noscript-note{background:#fffbeb;border:1px solid #fde68a;color:#b45309;border-radius:10px;padding:12px 14px;font-size:13px;margin:12px 0 0}

/* --- hero halaman utama --- */
.hero{padding:4px 2px 22px}
.hero h1{margin:0 0 10px;font-size:30px;line-height:1.22;font-weight:800;letter-spacing:-.02em;color:#0f172a}
.hero p{margin:0;color:#64748b;font-size:15px;line-height:1.65;max-width:840px}

/* --- kartu ringkasan --- */
.stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px}
.stat-card{background:#fff;border:1px solid #e6eaf0;border-radius:12px;padding:11px 12px;box-shadow:0 1px 2px rgba(15,23,42,.04);text-align:center;min-width:0}
.stat-num{font-size:20px;font-weight:800;line-height:1.15;color:#0f172a;display:inline-flex;align-items:center;gap:8px}
.stat-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none;box-shadow:0 0 0 3px rgba(15,23,42,.06)}
.stat-lb{color:#64748b;font-size:11.5px;margin-top:3px;line-height:1.35}

/* --- kartu peta --- */
.peta-card{padding:18px}
.peta-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.peta-toolbar h3{margin:0 0 4px;font-size:16px}
.peta-toolbar p{margin:0;color:#64748b;font-size:13px}
.peta-map-wrap{position:relative;z-index:0;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.peta-map{height:480px;background:#e8eef4;z-index:0}
.map-empty{position:absolute;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;background:rgba(248,250,252,.92);padding:20px;text-align:center}
.map-empty[hidden]{display:none}
.empty-f[hidden]{display:none}
.map-empty .big{font-size:44px;color:#94a3b8}
.map-empty b{display:block;font-size:16px;margin:6px 0 4px}
.map-empty p{color:#64748b;font-size:13px;margin:0;max-width:420px}
.map-empty code{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:1px 6px;font-size:12px}
.legend{position:absolute;left:10px;bottom:10px;z-index:800;background:rgba(255,255,255,.94);border:1px solid #e5e7eb;border-radius:10px;padding:7px 11px;font-size:12px;color:#334155;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:calc(100% - 60px);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.lg-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.lg-dot{display:inline-block;width:10px;height:10px;border-radius:50%;border:1.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.lg-note{color:#94a3b8;font-size:10px}

/* --- penanda peta (titik tambang, berdenyut saat Aktif) --- */
.tmb-marker{background:transparent;border:none}
.tmb-pin{width:16px;height:16px;margin:3px;border-radius:50%;background:var(--pin-color,#94a3b8);border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.4);transition:transform .15s ease}
.tmb-pin:hover{transform:scale(1.15)}
.tmb-pin.is-pulsing{animation:tmbPulse 2s ease-out infinite}
@keyframes tmbPulse{0%{box-shadow:0 1px 5px rgba(0,0,0,.4),0 0 0 0 var(--pin-color)}75%{box-shadow:0 1px 5px rgba(0,0,0,.4),0 0 0 16px rgba(0,0,0,0)}100%{box-shadow:0 1px 5px rgba(0,0,0,.4),0 0 0 16px rgba(0,0,0,0)}}

/* --- popup peta --- */
.pp{min-width:230px}
.pp-num{font-size:11px;color:#64748b;font-weight:600}
.pp-name{font-weight:700;font-size:15px;margin:2px 0 2px}
.pp-sub{font-size:12px;color:#64748b;margin-bottom:8px}
.pp-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.pp-co{font-size:12px;color:#475569;margin-bottom:6px}
.pp-lamp{font-size:12px;color:#475569;margin-bottom:8px}
.pp-coord{font-size:11px;color:#64748b;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;margin-bottom:10px;word-break:break-all}
.pp-btn{display:block;text-align:center;background:#2563eb;color:#fff!important;font-weight:600;padding:9px 12px;border-radius:9px;font-size:13px;text-decoration:none}
.pp-btn:hover{background:#1d4ed8}

/* --- badge & chip --- */
.badge{display:inline-block;padding:3px 9px;border-radius:999px;border:1px solid;font-size:11px;font-weight:700;white-space:nowrap}
.chip{display:inline-block;padding:3px 8px;border-radius:999px;background:#eff6ff;color:#2563eb;border:1px solid #dbeafe;font-size:11px;font-weight:600}
.chip.none{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}

/* --- bilah filter --- */
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.filter-bar input[type=search]{flex:1;min-width:220px;padding:10px 12px;border:1px solid #dbe1ea;border-radius:9px;font:inherit;background:#fff}
.filter-bar input[type=search]:focus{outline:2px solid #bfdbfe;border-color:#2563eb}
.filter-bar select{padding:10px 12px;border:1px solid #dbe1ea;border-radius:9px;background:#fff;font:inherit;max-width:190px;cursor:pointer}
.filter-bar select:focus{outline:2px solid #bfdbfe;border-color:#2563eb}
.chk{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569;white-space:nowrap;cursor:pointer}
.chk input{width:16px;height:16px;accent-color:#2563eb;cursor:pointer}

/* --- tabel --- */
.tbl-wrap{overflow-x:auto;border:1px solid #e6eaf0;border-radius:12px;max-height:560px;overflow-y:auto}
.tbl-wrap::-webkit-scrollbar{width:10px;height:10px}
.tbl-wrap::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px;border:2px solid #f8fafc}
.tbl-wrap::-webkit-scrollbar-track{background:#f8fafc}
.tbl-wrap table{width:100%;border-collapse:collapse;min-width:880px;font-size:13px;background:#fff}
.tbl-wrap thead th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #e6eaf0;padding:11px 12px;text-align:left;font-size:12px;color:#475569;white-space:nowrap}
.tbl-wrap tbody td{padding:11px 12px;border-top:1px solid #eef1f5;vertical-align:top}
.tbl-wrap tbody tr{transition:background .12s ease}
.tbl-wrap tbody tr:hover{background:#f8fafc}
.tbl-wrap tbody tr[data-url]{cursor:pointer}
.tbl-wrap tbody tr.hl{background:#eff6ff;box-shadow:inset 3px 0 0 #2563eb}
.t-num{font-weight:700}
.t-uraian{color:#64748b;font-size:12px;margin-top:3px;max-width:280px}
.t-sub{color:#64748b;font-size:12px;margin-top:2px}
.t-lamp{font-size:12px;color:#475569;white-space:nowrap}
.t-act{display:flex;gap:6px;flex-wrap:wrap}
.t-act .btn{white-space:nowrap}
code.coord{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;background:#f8fafc;padding:2px 6px;border-radius:6px;border:1px solid #eef1f5;white-space:nowrap}
.empty-f{padding:36px 20px;text-align:center;color:#64748b;font-size:14px;background:#fff}

/* --- catatan bawah --- */
.pub-note{margin-top:18px;font-size:12px;color:#64748b;text-align:center}
.pub-note a{color:#2563eb;font-weight:600}
.pub-note.legal{max-width:860px;margin:22px auto 0;padding:13px 20px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:12px;font-size:12.5px;line-height:1.7;color:#475569}
.pub-note.legal b{color:#172033}

/* --- responsif --- */
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero h1{font-size:25px}}
@media(max-width:700px){
  .peta-map{height:360px}
  .peta-toolbar{flex-direction:column;align-items:stretch}
  .peta-toolbar .btn.small{align-self:flex-start}
  .filter-bar select{flex:1 1 45%;max-width:none}
  .muted{white-space:normal}
  .legend{font-size:11px;padding:6px 9px;gap:7px}
}
@media(max-width:560px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.hero h1{font-size:22px}.stat-num{font-size:19px}.stat-lb{font-size:10.5px}}

/* ============================================================
   LAPORAN MASYARAKAT (index.php) — pin wajik ungu,
   chip jenis kegiatan & CTA hero.
   ============================================================ */
.lp-marker{background:transparent;border:none}
.lp-pin{width:15px;height:15px;margin:4px;border-radius:4px;transform:rotate(45deg);background:var(--pin-color,#7c3aed);border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.4);transition:transform .15s ease}
.lp-pin:hover{transform:rotate(45deg) scale(1.18)}
.lg-dot.sq{border-radius:3px;transform:rotate(45deg);width:9px;height:9px;flex:none}
.lp-chip{display:inline-block;padding:3px 8px;border-radius:999px;background:#f5f3ff;color:#7c3aed;border:1px solid #ddd6fe;font-size:11px;font-weight:600}
.hero-cta{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.hero-cta .btn{white-space:nowrap}
