.swm-map {
  position: relative;
  padding: 30px 0;
}

.swp-map ul,
.swp-map li {
  margin: 0;
  padding: 0;
}

/* --- Map Sidebar --- */

.swm-map-sidebar-open {
  position: absolute;
  top: 288px;
  left: 0;
  z-index: 2;
}

.swm-map-sidebar-open a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: url(../images/icon-search.svg) no-repeat center center #2c1e39;
}

.swm-map-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -620px;
  width: 100vw;
  height: 100vh;
  background-color: #1b1323;
  color: #fff;
  padding: 65px 30px 50px;
  z-index: 99;
  transition: 0.6s ease-in-out;
}

.swm-map-sidebar.active {
  left: 0;
}

.swm-map-sidebar .swm-map-sidebar-close {
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 1;
}

.swm-map-sidebar .swm-map-sidebar-close a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: url(../images/icon-close.svg) no-repeat center center #2c1e39;
}

.swm-map-sidebar-open a:active,
.swm-map-sidebar-open a:focus,
.swm-map-sidebar-close a:active,
.swm-map-sidebar-close a:focus {
  outline: none;
}

.swm-map-sidebar:after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  /*height: 24%;*/
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 45%, rgb(0, 0, 0) 100%);
  z-index: 2;
}

.swm-map-sidebar-header {
  font-size: 26px;
  line-height: 38px;
  padding-bottom: 6px;
}

.swm-map-sidebar-intro {
  font-size: 15px;
  line-height: 25px;
  padding-bottom: 26px;
}

.swm-map-sidebar-search input {
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: url(../images/icon-search.svg) no-repeat center right 10px;
  background-color: #1b1323;
  padding: 16px 50px 16px 36px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  overflow: hidden;
  -webkit-appearance: none;
  outline: 0;
}

.swm-map-sidebar-search input,
.swm-map-sidebar-search input::placeholder {
  font-family: 'MontserratRegular', sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: #fff;
}

.swm-map-sidebar-search input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.swm-map-search-alpha {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.swm-map-sidebar-search .swm-map-search-alpha {
  padding: 0 0 12px 0;
}

.swm-map-sidebar-search .swm-map-search-alpha li {
  padding: 2px 6px;
}

.swm-map-search-alpha li a {
  text-decoration: none;
  color: #fff;
}

.swm-map-search-alpha li a:active,
.swm-map-search-alpha li a:focus {
  outline: none;
}

.swm-map-search-items {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-height: 55vh;
  overflow: auto;
}

.swm-map-search-items li a {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
  color: #f7941e;
  text-decoration: none;
  font-size: 15px;
  line-height: 25px;
  width: 100%;
}

.swm-map-search-items li a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.swm-map-search-items li a:active,
.swm-map-search-items li a:focus {
  outline: none;
}

/* --- Map Heading / Footer --- */

/* Heading. */
.swm-map-heading {
  text-align: center;
  padding: 0 0 36px 0;
}

.swm-map-header {
  font-size: 20px;
  line-height: 30px;
  margin: 36px 5px 14px 55px;
}

.swm-map-heading-intro {
  font-family: 'MontserratRegular', sans-serif;
  font-size: 15px;
  line-height: 25px;
  padding-bottom: 32px;
  margin: 0 auto;
  max-width: 630px;
}

.swm-map-heading-intro p:last-child {
  margin-bottom: 0;
}

.swm-map-heading-scale {
  margin-bottom: 20px;
}

.swm-map-heading-scale ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.swm-map-heading-scale ul li {
  margin-left: 14px;
  font-size: 11px;
  white-space: nowrap;
}

.swm-map-heading-scale span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 12px;
  margin-right: 4px;
  position: relative;
  top: 1px;
}

.swm-map-heading-scale span.swm-map-color-1 {
  background-color: #634087;
}

.swm-map-heading-scale span.swm-map-color-2 {
  background-color: #8549a7;
}

.swm-map-heading-scale span.swm-map-color-3 {
  background-color: #a86add;
}

.swm-map-heading-scale span.swm-map-color-4 {
  background-color: #c785ec;
}

.swm-map-heading-scale span.swm-map-color-5 {
  background-color: #deb7ff;
}

.swm-map-heading-scale span.swm-map-color-6 {
  background-color: #ebd4ff;
}

.swm-map-heading-scale span.swm-map-color-7 {
  background-color: #efefef;
}

/* Footer. */
.swm-map-footer {
  text-align: center;
  font-size: 15px;
  line-height: 25px;
  margin: 20px 0;
}

.swm-map-footer-link {
  margin-bottom: 20px;
}

.swm-map .swm-map-footer-link a {
  color: #f7941e;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.15);
}

.swm-map .swm-map-footer-link a:hover {
  border-bottom-color: rgba(18, 18, 18, 0.3);
}

.swm-map .swm-map-sources {
  margin-top: 20px;
}

.swm-map .swm-map-sources a {
  color: #f7941e;
}

.swm-map-footer .swm-map-footer-link a:focus,
.swm-map-footer .swm-map-footer-link a:active,
.swm-map .swm-map-sources a:focus,
.swm-map .swm-map-sources a:active {
  outline: none;
}

/* --- Map --- */

/* Fix for map zoom buttons which we don't want. */
#swm-map-worldmap_zoom {
  display: none;
}

/* --- Tooltip --- */

/* https://simplemaps.com/docs/apply-css */
.tt_sm {
  width: 336px;
  padding: 28px 24px;
  border-top: 4px solid #f7941e;
  background-color: #fff;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.15);
  z-index: 1000000;
  /* Center tooltip horizontally. */
  margin: -215px 0 0 -168px;
  min-height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.tt_name_sm {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 30px;
}

.xmark_sm {
  position: absolute;
  right: 24px;
  top: 38px;
  z-index: 2;
  cursor: pointer;
}

.tt_custom_sm {
  margin-top: 20px;
}

.tt_mobile_sm,
.btn_simplemaps {
  display: none !important;
}

.swm-map-tooltip-data-value {
  font-size: 15px;
  line-height: 25px;
  margin-bottom: 4px;
}

.swm-map-tooltip-data-value span {
  display: inline-block;
  font-size: 15px;
  line-height: 25px;
  background-color: #ffb55c;
  border-radius: 25px;
  padding: 0 8px;
  margin-left: 6px;
  position: relative;
  top: 1px;
}

.swm-map-tooltip-link {
  margin-top: 10px;
  font-size: 15px;
  line-height: 25px;
}

.tt_custom_sm .swm-map-tooltip-link a {
  color: #f7941e;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.15);
}

.tt_custom_sm .swm-map-tooltip-link a:hover {
  border-bottom-color: rgba(18, 18, 18, 0.3);
}

.popup-wrapper h4.card-title {
  font-size: 1.1rem;
}

.popup-wrapper .social-wrapper .colm-1 a,
.popup-wrapper .social-wrapper .colm-2 a {
  font-size: 14px;
}

/* --- Responsive --- */

@media all and (max-width: 1300px) {
  #tt_sm_swm-map-worldmap {
    left: 50% !important;
  }
}

@media all and (min-width: 360px) and (max-width: 767px) {
  .swm-map-sidebar {
    width: 85vw;
    left: -627px;
  }

  .swm-map-heading-scale ul li {
    margin-left: 14px;
  }
}

@media all and (min-width: 768px) {
  .swm-map {
    padding: 60px 0;
  }

  .swm-map-sidebar {
    width: 520px;
    padding: 60px 47px;
  }

  .swm-map-sidebar-open {
    top: 260px;
  }

  .swm-map-sidebar-open a {
    width: 50px;
    height: 50px;
  }

  .swm-map-sidebar .swm-map-sidebar-close a {
    width: 50px;
    height: 50px;
  }

  .swm-map-sidebar .swm-map-sidebar-close {
    right: -24px;
  }

  .swm-map-sidebar-search .swm-map-search-alpha li {
    padding: 2px 5px;
  }

  .swm-map-heading {
    text-align: center;
    padding: 0 100px;
  }

  .swm-map-heading-scale ul {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .swm-map-heading-scale ul li {
    margin-left: 24px;
    font-size: 14px;
  }

  .swm-map-header {
    margin: 36px 0 14px;
  }
}

@media all and (min-width: 1200px) {
  .swm-map-sidebar-open a,
  .swm-map-sidebar .swm-map-sidebar-close a {
    width: 72px;
    height: 72px;
  }

  .swm-map-sidebar .swm-map-sidebar-close {
    right: -36px;
  }

}

@media all and (max-width: 800px) {
  .swm-map-search-items {
    max-height: 66vh;
  }
}

@media all and (max-width: 420px) {
  .swm-map-sidebar-open {
    top: 70px;
  }
  .swm-map-search-items {
    max-height: 34vh;
  }
}

/* added this make tooltiop always center */
@media (min-width: 578px) {
  #tt_sm_swm-map-worldmap {
    inset: auto !important;
    left: 50% !important;
    top: 40% !important;
  }
}

/* Added this styles for topic pages */
.page-node-type-ct-topics .swm-map {
  max-width: 1140px;
  margin: 0 auto;
}

.page-node-type-ct-topics .partner-img {
  display: flex;
  max-width: 720px;
  margin: 10px auto 25px auto;
}

.page-node-type-ct-topics .partner-img .img-colm {
  width: calc(100% / 3);
  margin: 0 2%;
}

.page-node-type-ct-topics .partner-img .img-colm img {
  width: 100%;
  max-width: 100%;
}

.page-node-type-ct-topics .footnotes.midwifery {
  margin: 0 auto ;
  max-width: 1100px;
}

.page-node-type-ct-topics .footnotes p {
  font-size: 11px;
  color: #000;
  margin: 0 0 1.5em;
}
