/* Peta sebaran GT/DAI */
.map-card { overflow: hidden; }
.map-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.map-toolbar strong { font-family: var(--serif); color: var(--heading); font-size: 14px; }
.map-layers { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.map-layer {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 11.5px; color: var(--text); user-select: none;
}
.map-layer input { accent-color: var(--green-700); }
.map-layer .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-layer .dot.lembaga { background: #0a5a3a; }
.map-layer .dot.gt { background: #1f9463; }
.map-layer .dot.dai { background: #b07a1e; }
#peta-sebaran { height: 560px; width: 100%; background: #e8eee9; z-index: 1; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 16px; align-items: start; }
.map-side { display: grid; gap: 12px; }
.map-legend { display: grid; gap: 8px; }
.map-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.map-legend-row i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.map-legend-row i.lembaga { background: #0a5a3a; box-shadow: 0 0 0 3px rgba(10,90,58,.14); }
.map-legend-row i.gt { background: #1f9463; }
.map-legend-row i.dai { background: #b07a1e; }
.map-note { font-size: 12px; color: var(--muted); line-height: 1.55; }
.map-unmapped { display: grid; gap: 8px; max-height: 286px; overflow: auto; }
.map-unmapped-row {
  display: flex; align-items: flex-start; gap: 8px; justify-content: space-between;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
  font-size: 12px;
}
.map-unmapped-row strong { display: block; color: var(--heading-soft); font-size: 12px; line-height: 1.3; }
.map-unmapped-row span { color: var(--muted); font-size: 11px; }
.map-unmapped-row a { white-space: nowrap; font-size: 11px; }
.map-pin {
  position: relative;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #0a5a3a; color: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(5, 36, 24, .35); font-size: 12px; font-weight: 700;
}
.map-pin::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18); top: 3px; left: 3px;
}
.map-dot-icon { background: transparent; border: 0; }
.map-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(5, 36, 24, .4);
  transition: transform .15s ease;
}
.map-dot-gt { background: #1f9463; }
.map-dot-dai { background: #b07a1e; }
.map-dot-icon:hover .map-dot { transform: scale(1.28); }
.map-popup { font-family: var(--sans, Arial, sans-serif); min-width: 200px; }
.map-popup strong { display: block; color: #0a3624; font-size: 13px; line-height: 1.3; }
.map-popup span { color: #5b6b62; font-size: 11.5px; display: block; margin-top: 2px; }
.map-popup a { display: inline-block; margin-top: 7px; color: #14603f; font-size: 11.5px; font-weight: 600; }
.map-popup-section { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e1ebe5; }
.map-popup-group + .map-popup-group { margin-top: 9px; }
.map-popup-label {
  display: block; margin: 0; color: #7a8b81 !important;
  font-size: 9.5px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.map-popup ul { list-style: none; margin: 4px 0 0; padding: 0; max-height: 148px; overflow: auto; }
.map-popup li { margin: 0; }
.map-popup li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0; padding: 4px 0; border-bottom: 1px dashed #edf2ef;
  color: #0a3624; font-size: 11.5px; font-weight: 500; text-decoration: none;
}
.map-popup li:last-child a { border-bottom: 0; }
.map-popup li a:hover .map-popup-nama { color: #14603f; text-decoration: underline; }
.map-popup-nama { display: block; color: #0a3624 !important; margin: 0 !important; font-size: 11.5px !important; line-height: 1.3; }
.map-popup-kode { display: block !important; margin: 0 !important; color: #7a8b81 !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px !important; white-space: nowrap; }
.map-popup-kosong { color: #7a8b81 !important; font-size: 11px !important; font-style: italic; }
.map-popup .map-popup-link { margin-top: 9px; padding-top: 7px; border-top: 1px solid #e1ebe5; }
@media (max-width: 980px) {
  .map-layout { grid-template-columns: 1fr; }
  #peta-sebaran { height: 420px; }
  .map-side { grid-template-columns: 1fr 1fr; }
  .map-side .map-legend-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  #peta-sebaran { height: 360px; }
  .map-side { grid-template-columns: 1fr; }
  .map-toolbar { align-items: flex-start; }
  .map-layers { margin-left: 0; }
}
