* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, sans-serif; }
body { display: flex; height: 100vh; }

#sidebar {
  width: 380px;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}
#map { flex: 1; height: 100%; }

.leaflet-marker-icon {
  width: 30px !important;
  height: 49px !important;
  margin-left: -15px !important;
  margin-top: -49px !important;
}

.leaflet-popup-close-button {
  width: 37px !important;
  height: 37px !important;
  font-size: 30px !important;
  line-height: 37px !important;
  text-align: center;
}
.leaflet-popup.popup-direction-above .leaflet-popup-close-button,
.leaflet-popup.popup-direction-right .leaflet-popup-close-button {
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
}
.leaflet-popup.popup-direction-below .leaflet-popup-close-button {
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
}
.leaflet-popup.popup-direction-left .leaflet-popup-close-button {
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
}

.clinician-popup { width: 1000px; min-height: 150px; padding: 0 4px 4px; font-size: 39px; line-height: 1.2; }
.clinician-popup-header { display: flex; align-items: flex-start; gap: 35px; }
.clinician-avatar {
  width: 156px;
  height: 156px;
  flex: 0 0 156px;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
}
.clinician-avatar-empty { display: block; }
.clinician-popup-summary {
  min-width: 0;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.clinician-popup-name { display: block; padding-bottom: 2px; }
.clinician-popup-summary .popup-badges { margin-top: auto; }
.clinician-popup-details { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; text-align: center; }
.clinician-popup-gender { display: block; font-size: 28px; }
.clinician-popup-specialty { font-size: 28px; }
.clinician-office-address { font-style: italic; }
.clinician-popup-notes { text-align: left; }
.clinician-popup .badge { font-size: 28px; }

.filter-group { margin-bottom: 15px; }
.filter-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px;
}

.card {
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.card:hover { border-color: #3b82f6; }
.card h3 { font-size: 15px; margin-bottom: 4px; color: #1e293b; }
.card p { font-size: 13px; color: #64748b; }
#clinicianList .badge {
  display: inline-block;
  font-size: 14px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 10px;
  margin-right: 8px;
  line-height: 1.3;
}
.leaflet-popup-content .badge {
  display: inline-block;
  font-size: 11px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 8px;
  margin-right: 4px;
  line-height: 1.5;
}
.leaflet-popup-content .popup-badges {
  margin-top: 6px;
  text-align: left;
}
.leaflet-popup-content .popup-badges .badge {
  font-size: 14px;
  padding: 8px 12px;
  margin-top: 10px;
  margin-right: 8px;
  line-height: 1.3;
}
