* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: system-ui, sans-serif; }
#map { position: absolute; inset: 0; }

#panel {
    position: absolute; top: 12px; left: 12px; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 16px; border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    width: 230px;
}
#panel h1 { margin: 0 0 10px; font-size: 18px; color: #1565c0; }
#panel label { display: block; font-size: 12px; color: #444; margin-bottom: 8px; }
#panel label.row { display: flex; align-items: center; gap: 6px; }
#panel input[type=datetime-local] { width: 100%; margin-top: 2px; padding: 4px; }
#panel button {
    width: 100%; padding: 7px; border: 0; border-radius: 6px;
    background: #1565c0; color: #fff; font-weight: 600; cursor: pointer;
}
#panel button:hover { background: #0d47a1; }
#panel hr { border: 0; border-top: 1px solid #eee; margin: 12px 0; }

/* ISP filtre listesi — seçili olan haritada gösterilir */
#isp-section .isp-title { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
#isp-list { display: flex; flex-direction: column; gap: 5px; }
.isp-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: 6px; cursor: pointer;
    background: #f1f3f5; color: #333; font-size: 13px; font-weight: 600;
    border: 1.5px solid transparent; user-select: none;
}
.isp-item:hover { background: #e7ebef; }
.isp-item.active { background: #1565c0; color: #fff; border-color: #0d47a1; }
.isp-item .isp-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; margin-right: 8px; }

#legend { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #555; }
#legend span { display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; border-radius: 50%; }
.dot.small { width: 6px; height: 6px; background: #1565c0; }
.dot.mid { width: 11px; height: 11px; background: #ef6c00; }
.dot.big { width: 16px; height: 16px; background: #c62828; }
.dot.live { width: 10px; height: 10px; background: #00c853; }

#status { margin-top: 10px; font-size: 11px; color: #888; min-height: 14px; }

/* Sayılı küme baloncukları (divIcon). Tıklanınca haritada yakınlaşır. */
.cluster-icon { background: transparent; border: 0; }
.cluster-bubble {
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
    opacity: 0.92; cursor: pointer;
}
.cluster-bubble:hover { opacity: 1; }

/* Timeline: alt bar — kaydırmalı slider + Canlı/Oynat */
#timeline {
    position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 16px; z-index: 1000;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 14px; border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    width: min(720px, calc(100vw - 40px));
}
#timeline button {
    border: 0; border-radius: 6px; padding: 6px 10px;
    background: #1565c0; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
}
#timeline button:hover { background: #0d47a1; }
#tl-live.on { background: #00a152; }
#tl-slider { flex: 1; cursor: pointer; }
#tl-slider:disabled { opacity: 0.5; cursor: not-allowed; }
#tl-label { font-size: 12px; color: #333; min-width: 130px; text-align: right; font-variant-numeric: tabular-nums; }
