
.map-card {
    width: min(1240px, 100%);
    padding: 0px 0px 0px 0px;
}

.map-header { margin: 0 0 8px 2px; }
.heading-row { display: flex; align-items: center; gap: 13px; }
h1 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.map-header p { margin: 9px 0 0; color: #4d5f81; font-size: 17px; }
.location-pin { width: 23px; height: 29px; flex: 0 0 auto; background: #1261ec; border-radius: 15px 15px 15px 0; transform: rotate(-45deg); position: relative; box-shadow: 0 3px 7px #1261ec55; }
.location-pin::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; top: 8px; left: 8px; }

#us-map
 {
    display: block;
    width: 100%;
    height: 442px;
    cursor: pointer;
    overflow: visible;
    transform: scaleY(0.76);
    transform-origin: top center;
    margin-bottom: -14%;
    /* margin: auto; */
}

#info-box {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  background-color: #09255b;
  color: #ffffff;
  border: 0px solid #ffffff;
  border-radius: 6px;
  padding: 10px 13px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  box-shadow: 0 8px 18px #17315b33;
}

path[id] {
  fill: #70a4f7;
  stroke: #9ec3fd;
  stroke-width: 0.5px;
  -webkit-transition: fill 0.2s ease, opacity 0.2s ease;
  transition: fill 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

path[id]:hover {
  fill: #0236a5 !important;
  opacity: 1;
}

/* Highlight the actual state when its right-side callout box is hovered. */
path[id].map-state-selected {
  fill: #0236a5 !important;
  opacity: 1;
}

/* Bring the Alaska and Hawaii insets closer to the mainland map. */
#Alaska,
#Hawaii {
  transform: translateY(-20px);
}

#us-map text {font-family: Arial, sans-serif;font-size: 18px;font-weight: 500;pointer-events: none;}
#us-map text.map-light-text { fill: #ffffff; }
#us-map text.map-dark-text { fill: #0d55d8; }
#us-map text.map-label-hover { fill: #ffffff; }
/* HI and VT sit outside a colored state background, so their hover text stays blue. */
#us-map text.without-bg-text,
#us-map g:hover text.without-bg-text { fill: #0d55d8 !important; }
#us-map text:nth-of-type(even) { display: none; }
#us-map line { display: none; }

/* Northeastern small states are shown as outlined callout boxes. */
#us-map g rect {
  fill: transparent !important;
  stroke: #5e96ef !important;
  stroke-width: 1.5px;
  rx: 3px;
  pointer-events: all;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

#us-map g:hover rect {
  fill: #073fc4 !important;
  stroke: #073fc4 !important;
}

#us-map g:hover text {
  fill: #ffffff !important;
}

.jobs-color-1 { --jobs-color: #c3d9fc; }
.jobs-color-2 { --jobs-color: #83b2fb; }
.jobs-color-3 { --jobs-color: #71a8fc; }
.jobs-color-4 { --jobs-color: #86b4fc; }
.jobs-color-5 { --jobs-color: #5899fc; }
.jobs-color-6 { --jobs-color: #004ad7; }

path[id].jobs-color-1,
path[id].jobs-color-2,
path[id].jobs-color-3,
path[id].jobs-color-4,
path[id].jobs-color-5,
path[id].jobs-color-6 { fill: var(--jobs-color); }

.jobs-legend {display: flex;justify-content: center;align-items: center;gap: 1px;margin-top: -9px;color: #4a5c7b;font-size: 15px;margin-top: 25px;}
.jobs-legend span { margin: 0 12px; }
.jobs-legend i {width: 18px;height: 18px;background: var(--jobs-color);}
.jobs-legend i:first-of-type { border-radius: 0 2px 2px 0; }
.jobs-legend i:last-of-type { border-radius: 0 3px 3px 0; }

@media (max-width: 700px) {
  body { padding: 12px; }
  .map-card { padding: 20px 12px 15px; }
  h1 { font-size: 22px; }
  .map-header p { font-size: 14px; }
  /* SVG text scales with the map, so it needs a larger source size on phones. */
  #us-map text { font-size: 20px; }
  .jobs-legend { font-size: 11px; gap: 1px; }
  .jobs-legend i { width: 13px; height: 13px; }
  .jobs-legend span { margin: 0 5px; }
}

@media (max-width: 400px) {
  #us-map text { font-size: 30px; }
}
