/* Screen-reader only utility */
.mi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mi-map-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e2d40;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}
.mi-map-layout {
  display: flex !important;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;
}
.mi-map-panel {
  flex: 0 0 auto !important;
  width: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dde3ea;
  position: relative;
}
#mi-map-svg {
  display: block;
  width: 600px;
  height: auto;
}
.mi-county-group {
  cursor: pointer;
}
.mi-county-path {
  stroke: #fff;
  stroke-width: 0.8;
  transition: opacity 0.15s, filter 0.15s;
}
.mi-county-group:hover .mi-county-path {
  opacity: 0.82;
  filter: brightness(1.08);
}
.mi-county-group.mi-dimmed .mi-county-path {
  opacity: 0.15;
}
.mi-county-group:focus {
  outline: none;
}
.mi-county-group:focus .mi-county-path {
  stroke: #1a2e45;
  stroke-width: 2.5;
  filter: brightness(1.1);
}
.mi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  list-style: none;
  max-width: 600px;
  justify-content: center;
  margin: 0px auto 14px;
}
.mi-legend li {
  margin: 0;
  padding: 0;
}
.mi-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3d4f63;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: none;
  transition: border-color 0.15s, background 0.15s;
}
.mi-legend-item:hover,
.mi-legend-item.mi-active {
  background: #f0f4f8;
  border-color: #c5cfd8;
}
.mi-legend-item:focus-visible {
  outline: 2px solid #2563a8;
  outline-offset: 2px;
  border-radius: 20px;
}
.mi-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
#mi-tooltip {
  position: fixed;
  background: #1a2e45;
  color: #fff;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 13px;
  pointer-events: none;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  line-height: 1.55;
  max-width: 230px;
}
.mi-tt-county {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mi-tt-rep {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 4px;
}
.mi-tt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.mi-tt-name {
  font-size: 13px;
  font-weight: 500;
}
.mi-tt-phone {
  font-size: 11px;
  opacity: 0.72;
  margin-top: 1px;
}
.mi-side-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.mi-panel-intro {
  flex-shrink: 0;
  font-size: 12px;
  color: #58677d;
  margin-bottom: 16px;
  padding: 10px;
  background: #eef2f7;
  border-radius: 8px;
}
.mi-rep-cards {
  overflow-y: auto;
  max-height: 792px;
  gap: 12px;
  padding: 10px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #c5cfd8 transparent;
  background: #eef2f7;
  border-radius: 10px;
}
.mi-rep-card {
  background: #fff;
  border: 1.5px solid #dde3ea;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.mi-rep-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: transparent;
  transition: background 0.15s;
}
.mi-rep-card:hover {
  border-color: #b0bec8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.mi-rep-card:focus-visible {
  outline: 2px solid #2563a8;
  outline-offset: 2px;
  border-radius: 10px;
}
.mi-rep-card.mi-highlighted {
  border-color: var(--rc);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}
.mi-rep-card.mi-highlighted::before {
  background: var(--rc);
}
.mi-rep-card.mi-map-hover {
  background: #f7f9fc;
  border-color: var(--rc);
}
.mi-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.mi-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.mi-rep-info h3 {
  display: block;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a2e45 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.mi-rep-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}
.mi-rep-contact a {
  font-size: 13px;
  color: #2c6baf;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mi-rep-contact a:hover {
  text-decoration: underline;
}
.mi-rep-contact a:focus-visible {
  outline: 2px solid #2563a8;
  outline-offset: 2px;
  border-radius: 3px;
}
.mi-rep-contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.5;
}

.mi-shared-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  background: #fff3cd;
  color: #92610a;
  border: 1px solid #f5c842;
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .mi-county-path,
  .mi-rep-card,
  .mi-rep-card::before,
  .mi-legend-item {
    transition: none;
  }
}
@media (max-width: 820px) {
  .mi-map-layout {
    flex-direction: column;
  }
  #mi-map-svg {
    width: 100%;
    max-width: 480px;
  }
  .mi-map-panel {
    width: 100%;
  }
  .mi-rep-cards {
    max-height: none;
  }
}
