/* NYC Eats — dashboard styles */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body { display: flex; }

/* --- Sidebar --- */
#sidebar {
  width: 300px;
  min-width: 300px;
  height: 100vh;
  overflow-y: auto;
  padding: 1.2rem;
  background: #fafafa;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 1000;
}

#sidebar h1 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

#sidebar .subtitle {
  color: #6b7280;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.filter-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.6rem;
}
.filter-section h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.filter-section label {
  display: block;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.15rem 0;
}

#search-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.88rem;
}

button {
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

#apply-btn {
  background: #2563eb;
  color: #fff;
}
#apply-btn:hover { background: #1d4ed8; }

#reset-btn {
  background: #e5e7eb;
  color: #374151;
}
#reset-btn:hover { background: #d1d5db; }

#visible-count {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.sources-info ul {
  list-style: none;
  font-size: 0.82rem;
  color: #6b7280;
}
.sources-info li { margin-bottom: 0.3rem; }
.sources-info strong { color: #374151; }
.sources-info h3 {
  margin: 0.6rem 0 0.3rem;
  font-size: 0.82rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pipeline-table {
  width: 100%;
  font-size: 0.78rem;
  color: #6b7280;
  border-collapse: collapse;
}
.pipeline-table td, .pipeline-table th {
  padding: 0.15rem 0.3rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.pipeline-table th {
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.pipeline-table .pipeline-total td {
  font-weight: 600;
  color: #374151;
  border-top: 2px solid #d1d5db;
  border-bottom: none;
}

/* --- Map --- */
#map {
  flex: 1;
  height: 100vh;
}

/* --- Custom markers --- */
.venue-marker {
  background: none !important;
  border: none !important;
}

/* Grade letter markers (DOHMH blue, both purple) */
.vm-letter span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  font-family: -apple-system, system-ui, sans-serif;
  text-shadow: 0 0 3px rgba(255,255,255,0.9), 0 0 6px rgba(255,255,255,0.6);
}

/* Martini glass markers (SLA red) */
.vm-martini span {
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 3px rgba(255,255,255,0.9);
}

/* --- Popup --- */
.popup-aka {
  display: block;
  font-size: 0.8rem;
  color: #7c3aed;
}
.popup-source {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.4rem;
  background: #e5e7eb;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #374151;
}
.popup-tags {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* --- Mobile sidebar toggle --- */
#sidebar-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
  #sidebar {
    position: fixed;
    left: -310px;
    top: 0;
    transition: left 0.25s ease;
  }
  #sidebar.open {
    left: 0;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  }
  #sidebar-toggle { display: block; }
  #map { width: 100vw; }
}
