/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1a1a1a;
}

/* =========================
   LAYOUT
========================= */

#container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* =========================
   MAP
========================= */

#map {
  flex: 1;
  height: 100%;
}
.mapboxgl-popup h3{
    margin:6px 0 10px;
    font-size:16px;
    line-height:1.3;
}

.popup-date{
    font-size:12px;
    color:#666;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:6px;
}

.mapboxgl-popup p{
    margin:8px 0;
    line-height:1.5;
}

.mapboxgl-popup a{
    color:#0066cc;
    text-decoration:none;
    font-weight:600;
}

.mapboxgl-popup a:hover{
    text-decoration:underline;
}
/* =========================
   SIDEBAR
========================= */

#sidebar {
  width: 340px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* =========================
   HEADER
========================= */

#sidebar-header {
  padding: 16px 16px 10px;
  border-bottom: 1px solid #eee;
}

#sidebar-header h1 {
  font-size: 18px;
  margin: 0 0 6px;
}

.subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* =========================
   FILTERS
========================= */

#filters {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#filters select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

#resultsCount {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

/* =========================
   INCIDENT LIST
========================= */

#incidentList {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* item (ще го ползваш в JS) */
.incident-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.incident-item:hover {
  background: #f7f7f7;
}

.incident-title {
  font-size: 14px;
  font-weight: 600;
}

.incident-meta {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}
.empty {
  padding: 15px;
  font-size: 13px;
  opacity: 0.6;
}
.incident-dot{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    margin-right:6px;
    vertical-align:middle;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  #container {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    height: 40vh;
    border-left: none;
    border-top: 1px solid #e6e6e6;
  }

  #map {
    height: 60vh;
  }
}