/* Fellows interactive USA map - hosted externally for Webflow */

.cls-1 {
  opacity: 0;
}
.cls-2 {
  fill:none;
}
.cls-3 {
  fill:#F3F3EA;
  opacity: 0.2;
}


.map-data-source {
  display: none !important;
}

.fellow-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}

.usa-map-wrap {
  width: 100%;
  min-height: 320px;
}

.usa-state-map {
  width: 100%;
  height: auto;
  display: block;
}

.usa-state-map .state-map-region {
  cursor: default;
  outline: none;
}

.usa-state-map .state-map-region .cls-3,
.usa-state-map .state-map-region > .cls-3 {
  transition: fill 0.2s ease, filter 0.2s ease;
}

.usa-state-map .state-map-region.has-fellows {
  cursor: pointer;
}

.usa-state-map .state-map-region.has-fellows .cls-3 {
  fill: #F3F3EA;
  opacity: 1;
}

.usa-state-map .state-map-region.has-fellows .cls-1 {
  fill: #222;
   opacity: 1;
}


.usa-state-map .state-map-region.has-fellows:hover .cls-3,
.usa-state-map .state-map-region.has-fellows:focus .cls-3 {
  fill: #6597c5;
}

.usa-state-map .state-map-region.has-fellows:hover .cls-1,
.usa-state-map .state-map-region.has-fellows:focus .cls-1 {
  fill: #222;
   opacity: 1;
}

.usa-state-map .state-map-region.is-active .cls-3 {
  fill: #6597c5;
}

.usa-state-map .state-map-region.is-active .cls-1 {
  fill: #222;
    opacity: 1;
}

.usa-state-map .state-small-copy {
  pointer-events: none;
}

.state-results {
  background: #f3f3ea;
  color: #101828;
  border: 1px solid #e1e7ef;
  border-radius: 1rem;
  padding: 1.25rem;
  max-height: 70vh;
  overflow: auto;
    position: relative;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;
}


#state-fellow-list {
  flex: 1;
  min-height: 0;
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
}

#selected-state-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color:#6597c5;
}

#selected-state-count {
  margin-bottom: 1rem;
  color: #667085;
}

.fellow-card {
  display: block;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e1e7ef;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.7);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding-right: 50px;
}

.fellow-card:before {
  content: "➜";
  width: 30px;
  height: 30px;
  position: absolute;
  right: -10px;
  background: #e74528;
     display: -webkit-flex;
   display: -ms-flexbox;
   display: flex;

   -webkit-flex-direction: row;
   -ms-flex-direction: row;
    flex-direction: row;

   -webkit-align-items: center;
   -ms-flex-align: center;
    align-items: center;

   -webkit-justify-content: center;
   -ms-flex-pack: center;
    justify-content: center;
  border-radius: 50%;
  color:#f3f3ea;
  opacity: 0;
  -moz-transition:.5s;
    -webkit-transition:.5s;
    -ms-transition:.5s;
    -o-transition:.5s;
    transition:.5s;
}

.fellow-card:hover {
  border-color: #e74528;
  transform: translateY(-2px);
}

.fellow-card:hover:before {
   opacity: 1;
  right: 10px;
}

.fellow-card-name {
  font-weight: 700;
  color: #6597c5;
  font-size: 1.1rem;
  line-height: 1.2em;
}

.fellow-card-state {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #667085;
}

.state-results-empty {
  color: #667085;
}

.fellow-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fellow-card-image {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: #e5eaf0;
}

.fellow-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b57d0;
  font-weight: 700;
  font-size: 16px;
}

.fellow-card-content {
  min-width: 0;
}

.fellow-map-tooltip {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
  padding: 8px 10px;
  border-radius: 8px;
  background: #222;
  color: #b2d289;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
  transition: opacity 0.15s ease;
}

.fellow-map-tooltip.is-visible {
  opacity: 1;
}

/*close button */
.state-results {
  position: relative;
}

.state-results-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #eef3f8;
  color: #243746;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.state-results-close.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-results-close:hover {
  background: #dbe7f1;
}

@media (max-width: 991px) {
  .fellow-map-layout {
    grid-template-columns: 1fr;
  }

  .state-results {
    max-height: none;
  }
}
