.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

/* View management — !important beats Tailwind's utility classes */
.view {
  display: none !important;
}
.view.active {
  display: flex !important;
  flex-direction: column;
}

/* Bottom nav items */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #737781;
  padding: 4px 16px;
  border-radius: 12px;
  transition: all 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 72px;
}
.nav-item.active {
  color: #1a4b84;
  background: rgba(213, 227, 255, 0.4);
}
.nav-item .material-symbols-outlined {
  font-size: 24px;
}
.nav-item.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Filter chips */
.filter-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c3c6d1;
  border-radius: 9999px;
  padding: 6px 14px;
  background: #ffffff;
  color: #424750;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip.active {
  background: #181c1e;
  color: #fff;
  border-color: #181c1e;
}

/* Search suggestions */
#mapSearchResults li {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #e0e3e5;
}
#mapSearchResults li:last-child {
  border-bottom: none;
}
#mapSearchResults li:hover,
#mapSearchResults li.selected {
  background: #ebeef0;
}
#mapSearchResults .search-name {
  font-weight: 600;
  color: #181c1e;
}
#mapSearchResults .search-detail {
  font-size: 12px;
  color: #737781;
  margin-top: 1px;
}

/* Leaflet overrides */
#map {
  width: 100%;
  min-height: 100%;
}
#homeMapContainer {
  z-index: 0;
}

/* Hide zoom controls — they overlap with search bar and clutter mobile */
.leaflet-control-zoom {
  display: none !important;
}

/* Move attribution to not overlap with bottom nav */
#map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.7) !important;
  padding: 2px 6px;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e3e5;
}
.leaflet-popup-content {
  margin: 0;
  min-width: 220px;
}
.popup-card {
  font-family: "Public Sans", sans-serif;
}
.popup-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.popup-card .popup-body {
  padding: 12px;
}
.popup-card .popup-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.popup-card .popup-badge.pothole {
  background: #ffdad6;
  color: #93000a;
}
.popup-card .popup-badge.clear {
  background: #dcfce7;
  color: #166534;
}
.popup-card .popup-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #737781;
  line-height: 1.5;
}

/* Form message colors */
.form-message-error {
  color: #ba1a1a;
}
.form-message-success {
  color: #067647;
}

/* Detection result cards */
.detection-pothole {
  background: #ffdad6;
  border-color: #ba1a1a30;
}
.detection-clear {
  background: #d5e3ff;
  border-color: #003466;
}
