:root { --bg:#f6f7fb; --card:#fff; --text:#0f172a; --muted:#64748b; --pill:#eef2ff; --pillA:#dbeafe; }
*{ box-sizing:border-box; }
body{ margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji","Segoe UI Emoji"; color:var(--text); background:var(--bg); }

.cm-header{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 16px; background:#eef2ff; border-bottom:1px solid #e5e7eb;}
.cm-title{ display:flex; gap:12px; align-items:center;}
.cm-dot{ width:16px;height:36px;border-radius:12px;background:linear-gradient(180deg,#a5b4fc,#60a5fa);}
.cm-title h1{ margin:0; font-size:28px; line-height:1.1;}
.cm-title h1 span{ font-weight:700;}
.cm-sub{ color:var(--muted); font-size:14px; }

.cm-actions{ display:flex; align-items:center; gap:14px; }
.btn{ padding:10px 14px; border:1px solid #c7d2fe; background:#fff; border-radius:10px; cursor:pointer; }
.btn-ghost{ background:#fff; border:1px dashed #d1d5db; }
.btn-active{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); }

.cm-updated{ color:#334155; font-size:14px; }

.cm-tabs{ display:flex; gap:10px; padding:12px 16px; }
.pill{ border:none; padding:10px 14px; background:var(--pill); border-radius:999px; cursor:pointer; }
.pill-active{ background:var(--pillA); }

.cm-card{ margin:0 16px 20px; background:var(--card); border-radius:14px; padding:14px; border:1px solid #e5e7eb; }
.cm-map{ width:100%; height:520px; border-radius:12px; overflow:hidden; }
.cm-legend{ display:flex; align-items:center; gap:14px; padding:10px 4px; color:#475569; }
.dot{ display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
.dot-blue{ background:#3b82f6; }
.dot-red{ background:#ef4444; }

.pop{ font-size:14px; min-width:220px; }
.pop-title{ margin-bottom:6px; }
.pop-main{ margin-bottom:6px; }
.pop-sub{ color:#64748b; font-size:12px; margin-bottom:6px; }
.pop-slots{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.slot{ display:flex; align-items:center; gap:6px; font-size:12px; }
.pop-foot{ color:#94a3b8; font-size:11px; margin-top:6px; }

/* ===== PYOL tip: fixed & kemas (tak tindih attribution) ===== */
.pyol-tip{
  position:fixed;
  z-index:10000;
  transform:translate(-50%, -8px);
  background:#111827; color:#fff;
  padding:6px 10px; border-radius:8px; font-size:12px; white-space:nowrap;
  pointer-events:none; opacity:0; transition:opacity .25s ease;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.pyol-tip.show{ opacity:.98; }
.pyol-tip.fade{ opacity:0; }

/* beri sedikit ruang supaya tak rapat dengan banner bawah kanan */
.leaflet-control-attribution{ margin-bottom:10px; }

/* ===== Kad bawah peta (guna #bottomCard container) ===== */
#bottomCard{ max-width:980px; margin:12px auto 20px; padding:0 16px; }
#bottomCard .card{ background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:12px; }
#bottomCard .head{ display:flex; justify-content:space-between; align-items:center; }
#bottomCard .title{ font-weight:700; }
#bottomCard .sub{ color:#64748b; font-size:12px; }
#bottomCard .temp{ font-size:28px; font-weight:700; }
#bottomCard .meta{ margin-top:6px; color:#64748b; font-size:12px; }
#bottomCard .grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:6px; }
#bottomCard .grid span{ background:#f8fafc; border:1px solid #e5e7eb; border-radius:8px; padding:6px 8px; text-align:center; font-size:12px; }

/* garis & gaya carta */
.line-h{ stroke:#64748b; fill:none; stroke-width:1.6; }
.line-t{ stroke:#ef4444; fill:none; stroke-width:1.8; }
.dot-h{ fill:#64748b; } .dot-t{ fill:#ef4444; }
.axis-line{ stroke:#cbd5e1; stroke-width:1; fill:none; }
.axis-text{ fill:#64748b; font-size:10px; }
