/* Romania counties contact map (ported from HH legacy map) */
#legacymap {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 320px;
}

#terkep {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#terkep svg {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
}

@media (max-width: 700px) {
  #terkep svg {
    width: 100%;
    height: auto;
  }

  #cmap {
    width: auto !important;
    left: 8px !important;
    right: 8px;
  }
}

.romania-counties-svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 600px;
}

.romania-counties-svg .county-path {
  transition: fill 0.15s ease;
}

#cmap {
  top: 12px;
  left: 12px;
  width: 480px;
  max-width: calc(100% - 24px);
  padding: 10px;
  display: none;
  position: absolute;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 31px -2px rgba(0, 0, 0, 0.75);
  z-index: 1000;
}

#cmap.is-open {
  display: block;
}

#cmap svg text {
  cursor: pointer;
}

#cmap .icon {
  float: right;
  padding: 4px;
}

#cmap .icon .btn-close {
  padding: 0.5rem;
  box-sizing: content-box;
}

#cmap h1 {
  color: #1a606f;
  font-size: 15px;
  font-weight: bold;
  margin: 0 !important;
  padding: 0 !important;
}

#cmap h2 {
  color: #7c7b7b;
  margin: 0.75rem 0 0.25rem;
  font-size: 14px;
}

#cmap .adat {
  color: #7c7b7b;
  font-size: 12px;
  font-weight: normal;
}

#cmap .adat a {
  color: var(--tb-primary, #186071);
}