/* MLS directory + detail page — supplemental styles.
   Reuses tp-hero, tp-grid, tp-card, tp-programs, site-header, site-footer
   classes from css/styles.css. Only styles MLS-specific elements here. */

.mls-card__state-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted, #535862);
  background: #F5F5F5;
  border: 1px solid #E9EAEB;
  border-radius: 999px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.mls-card__state-chip--more {
  background: #EFF4FF;
  border-color: #B2CCFF;
  color: #1570EF;
}

.mls-card__states-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.mls-program-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #E87B2F;
  background: #FFF6ED;
  border: 1px solid #F9DBAF;
  border-radius: 999px;
}

.mls-program-card__badge--alt {
  color: #535862;
  background: #F5F5F5;
  border-color: #E9EAEB;
}

.mls-program-card__badge--low {
  color: #C11574;
  background: #FDF2FA;
  border-color: #FCCEEE;
}

.tp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted, #535862);
  margin-bottom: 1rem;
}

.tp-breadcrumb a {
  color: #1570EF;
  text-decoration: none;
}

.tp-breadcrumb a:hover {
  text-decoration: underline;
}

.mls-detail__website {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1570EF;
  text-decoration: none;
}

.mls-detail__website:hover {
  text-decoration: underline;
}

.mls-map-section {
  padding-top: 1.5rem;
  padding-bottom: 0;
}

.mls-map {
  height: 440px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #E9EAEB;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mls-map .leaflet-popup-content {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 14px;
}

.mls-program-card__national-rank {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted, #535862);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.mls-program-card__ordinal--alt {
  background: #F5F5F5 !important;
  color: #535862 !important;
  border: 1px solid #E9EAEB;
}

.mls-program-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0.75rem 0;
}

.mls-program-card__type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #F5F5F5;
  color: #535862;
}

.mls-program-card__type--grant { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }
.mls-program-card__type--rebate { background: #EFF4FF; color: #1570EF; border-color: #B2CCFF; }
.mls-program-card__type--copayment { background: #FFF6ED; color: #E87B2F; border-color: #F9DBAF; }
.mls-program-card__type--stormwaterfeediscount { background: #F0F9FF; color: #0B6BCB; border-color: #B8D4F0; }
.mls-program-card__type--loan { background: #FDF2FA; color: #C11574; border-color: #FCCEEE; }

.mls-program-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0.5rem 0 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #FAFAFA;
  border: 1px solid #E9EAEB;
  border-radius: 6px;
}

.mls-program-card__metric {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #535862);
  line-height: 1.4;
}

.mls-program-card__metric strong {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--text-primary, #181D27);
  font-size: 13px;
}
