#mapael-wrapper {
  background-color: #a0cce9;
  padding: 40px 60px;
  position: relative;
  margin-top: 4rem;
}

#mobile-map {
  background-color: #a0cce9;
  background-image: url('/themes/foundation_cdcf/imgs/map-mobile.png');
  background-position: center;
  background-size: cover;
}

#mobile-map .info {
  margin: 0 auto;
  padding: 10vh 0;
  text-align: center;
  width: 80vw;
}

#mapael-wrapper h2,
#mobile-map h2 {
  color: #43396B;
  text-align: center;
  text-transform: none;
}

#mobile-map h2 {
  color: #43396B;
}

#mapael-wrapper .map {
  margin: 3em 5em;
}

#mapael-wrapper .map svg path {
  fill: #ececec;
  stroke: #8d9097 !important;
  stroke-width: 1 !important;
}

#mapael-wrapper .map svg path.is-active {
  fill: #ababab;
}

#legend {
  background-color: #ffffff;
  border: 1px solid #8d9097;
  border-radius: 5px;
  box-shadow: 0 0 2px #8d9097;
  display: none;
  height: auto;
  position: absolute;
  width: 25vw;
  z-index: 2;
}

#legend .header {
  background-color: #f0f0f0;
  border-bottom: 2px solid #e9e9e9;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: #433A6A;
  font-size: 14px;
  font-weight: bold;
  line-height: 36px;
  padding: 0 20px;
  text-transform: uppercase;
}

#legend .program {
  border-bottom: 2px solid #ffffff;
  cursor: pointer;
  padding: 10px 20px;
}

#legend .program:first-of-type {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding-top: 20px;
}

#legend .program:last-of-type {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding-bottom: 20px;
  padding-top: 10px;
}

#legend .program:hover {
  background-color: #f7f7f7;
  border-bottom: 2px solid #f6f6f6;
}

#legend .program .image {
  background-position: top center;
  background-size: cover;
  float: left;
  margin-bottom: 12px;
  margin-right: 15px;
  min-height: 5vw;
  min-width: 8vw;
}

#legend .program .info.with-img {
  min-height: 5vw;
}

#legend .program a,
#legend .program a:hover {
  text-decoration: none;
}

.program .title {
  color: #433A6A;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.program .initiative {
  color: #433A6A;
  font-size: 14px;
  font-style: italic;
  line-height: 1;
}

.program .location {
  color: #433A6A;
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#legend .all-footer {
  background-color: #f0f0f0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: 2px solid #e9e9e9;
  clear: both;
  display: flex;
  padding: 0 20px;
}

#legend .all-footer > div {
  font-size: 12px;
  line-height: 36px;
}

#legend .all-footer .all-info {
  color: #433A6A;
  flex: 2 0 0;
  width: 66.67%;
}

#legend .all-footer .all-link {
  flex: 1 0 0;
  text-align: right;
  width: 33.33%;
}

#legend .all-footer .all-link a {
  color: #433A6A;
  font-weight: bold;
}

#legend::after, #legend::before {
  top: 100%;
  left: 10%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

#legend::after {
  border-color: rgba(255, 255, 255, 0);
  border-top-color: #f0f0f0;
  border-width: 11px;
  margin-left: -11px;
}

#legend.small-arrow::after {
  border-width: 5px;
  margin-left: -5px;
}

#legend::before {
  border-color: rgba(255, 255, 255, 0);
  border-top-color: #8d9097;
  border-width: 12px;
  margin-left: -12px;
}

#legend.small-arrow::before {
  border-width: 6px;
  margin-left: -6px;
}

#legend.visible {
  display: block;
}

.find-a-program {
  top: 7vw;
  padding: 15px 10px;
  position: absolute;
  text-align: center;
  width: 20vw;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid #8d9097;
  border-radius: 5px;
}

#mobile-map .button,
.find-a-program .button {
  background-color: #ffffff;
  color: #433A6A;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding-bottom: 20px;
  padding-top: 20px;
  width: 100%;
}

#mobile-map .button:hover,
.find-a-program .button:hover {
  color: #ffffff;
}

#mobile-map .button {
  margin: 5vh 0;
  max-width: 360px;
}

#mobile-map .button:hover {
  background: #2B2058;
}

.find-a-program .info {
  color: #43396B;
  font-weight: bold;
  line-height: 1.8;
}

#program-finder {
  background-color: #ffffff;
  border-left: 2px solid #c6cfda;
  border-right: 2px solid #c6cfda;
  height: 40vw;
  max-height: 40vw;
  position: absolute;
  top: 7vw;
  visibility: hidden;
  width: 27vw;
  z-index: 1;
}

#program-finder .finder-header {
  background-color: #f9f9f7;
  border-bottom: 2px solid #e9e9e9;
  color: #433A6A;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 60px;
  margin: -4px;
  position: relative;
  text-align: center;
}

#program-finder .finder-header .finder-close {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
}

#program-finder .finder-header .icon {
  fill: #94958f;
  height: 1.5em;
  width: 1.5em;
}

#program-finder .finder-header .finder-close:hover .icon {
  fill: #433A6A;
}

#program-finder .finder-content {
  padding: 30px 20px 0 20px;
}

#program-finder .finder-content input {
  background-color: #e2e2e2;
  border: 0;
  box-shadow: none;
  color: #848582;
  height: 50px;
  margin-bottom: 15px;
  padding-left: 40px;
}

#program-finder .finder-content input::-webkit-input-placeholder {
  color: #848582;
  font-weight: bold;
  letter-spacing: 0.06em;
}

#program-finder .finder-content input::-moz-placeholder {
  color: #848582;
  font-weight: bold;
}

#program-finder .finder-content input:-ms-input-placeholder {
  color: #848582;
  font-weight: bold;
  letter-spacing: 0.06em;
}

#program-finder .finder-content input:-moz-placeholder {
  color: #848582;
  font-weight: bold;
  letter-spacing: 0.06em;
}

#program-finder .finder-content label {
  color: #808285;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5;
  padding-bottom: 5px;
}

#program-finder .finder-content .input-field {
  position: relative;
}

#program-finder .finder-content .input-field .icon {
  fill: #81827b;
  height: 1.25em;
  left: 12px;
  position: absolute;
  top: 15px;
  width: 1.25em;
}

#program-finder .finder-content .select-field {
  margin: 0 0 5px;
}

#program-finder .finder-content .select-field .placeholder {
  background-color: #f1f1f1;
  color: #848582;
  cursor: pointer;
  font-weight: bold;
  line-height: 36px;
  padding: 0 15px;
  position: relative;
}

#program-finder .finder-content .select-field .placeholder::after {
  background-image: url('/themes/foundation_cdcf/imgs/arrow-down.svg#Layer_1');
  background-position: center;
  background-size: cover;
  content: '';
  height: 12px;
  position: absolute;
  right: 15px;
  top: 12px;
  width: 12px;
}

#program-finder .finder-content .select-field .select {
  border-top: 2px solid #e9e9e9;
  display: none;
  list-style: none;
  margin: 0 0 5px;
  max-height: 10vw;
  overflow-y: auto;
  position: absolute;
  width: calc(100% - 40px);
  z-index: 1;
}

#program-finder .finder-content .select-field.opened .select {
  display: block;
}

#program-finder .finder-content .select-field .select::-webkit-scrollbar {
  width: 20px;
}

#program-finder .finder-content .select-field .select::-webkit-scrollbar-track {
  background-color: #f4f4f4;
}

#program-finder .finder-content .select-field .select::-webkit-scrollbar-thumb {
  background-clip: content-box;
  background-color: #efefef;
  border: 10px solid transparent;
  border-left: 0;
  height: 50px;
}

#program-finder .finder-content .select-field .select li {
  background-color: #f4f4f4;
  color: #848582;
  cursor: pointer;
  display: list-item;
  font-weight: bold;
  line-height: 1.1;
  padding: 10px 15px;
}

#program-finder .finder-content .select-field .select li:hover,
#program-finder .finder-content .select-field .select li.selected {
  background-color: #ffffff;
  color: #433A6A;
}

#program-finder .finder-content .select-field .select > li:first-of-type {
  padding-top: 10px;
}

#program-finder .finder-content .select-field .select > li:last-of-type {
  padding-bottom: 10px;
}

#program-finder .finder-content .buttons .button {
  font-weight: bold;
}

#program-finder .finder-content .button.view-all {
  background-color: #433A6A;
  text-decoration: none;
}

#program-finder .finder-content .button.clear {
  background-color: #433A6A;
  color: #ffffff;
  float: right;
}

#program-finder .finder-content hr {
  border-bottom: 2px solid #efefef;
  margin: 1rem auto 12px;
}

#programs {
  margin-right: 10px;
  padding-left: 20px;
  overflow-y: auto;
}

#programs::-webkit-scrollbar {
  width: 20px;
}

#programs::-webkit-scrollbar-thumb {
  background-clip: content-box;
  background-color: #efefef;
  border: 10px solid transparent;
  border-left: 0;
  height: 50px;
}

#programs .program {
  cursor: pointer;
  margin-left: -10px;
  padding: 5px 0 5px 10px;
}

#programs .program a,
#programs .program a:hover {
  text-decoration: none;
}

#programs .program:hover {
  background-color: #f7f7f7;
}

#programs .program div {
  line-height: 1.3;
}

@media screen and (min-width: 64em) and (max-width: 74.9375em) {
  .find-a-program {
    top: 10vw;
    width: 25vw;
  }

  #legend {
    width: 30vw;
  }

  #program-finder {
    height: 50vw;
    max-height: 50vw;
    top: 11vw;
    width: 34vw;
  }
}
