.vafma-market-map {
  width: 100%;
}

.vafma-market-map__filters {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 10px;
  margin-top: 20px;
}

.vafma-market-map__filter {
  display: flex;
  margin: 0;
  width: 25%;
  max-width: 320px;
}

.vafma-market-map__filter span {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.vafma-market-map__type-filter,
.vafma-market-map__keyword-filter {
  background-color: #fff;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  color: #aaa9a9;
  font-size: 14px;
  height: 45px;
  line-height: 1.2em;
  padding: 8px 15px;
  width: 100%;
}

.vafma-market-map__layout {
  position: relative;
  width: 100%;
}

.vafma-market-map__canvas {
  height: 500px;
  min-height: 500px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.vafma-market-map__details {
  background: #f5f5f5;
  bottom: 0;
  left: 0;
  max-width: 100%;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  width: 320px;
  z-index: 10;
}

.vafma-market-map__details.is-open {
  opacity: 1;
  transform: translateX(0);
}

.vafma-market-map__details-bar {
  align-items: center;
  background: #a93131;
  color: #fff;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 10px;
  width: 100%;
}

.vafma-market-map__details-close,
.vafma-market-map__directions {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 0 0 25px;
  font-size: 25px;
  justify-content: center;
  line-height: 1;
  min-width: 25px;
  padding: 0;
  text-decoration: none;
}

.vafma-market-map__details-close:hover,
.vafma-market-map__details-close:focus,
.vafma-market-map__directions:hover,
.vafma-market-map__directions:focus {
  color: #61b461;
}

.vafma-market-map__details-title {
  color: #fff;
  font-size: 14px;
  line-height: 1.2em;
  margin: 0;
  width: 95%;
  max-width: calc(100% - 70px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-content .vafma-market-map__details-title,
.vafma-market-map__details-bar .vafma-market-map__details-title {
  color: #fff;
  font-size: 14px;
  line-height: 1.2em;
  margin: 0;
  max-width: calc(100% - 70px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 95%;
}

.vafma-market-map__details-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 55px);
  overflow: auto;
  padding: 15px;
  width: 100%;
}

.vafma-market-map__info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.vafma-market-map__info label {
  color: #747474;
  font-size: 14px;
  line-height: 1.2em;
}

.vafma-market-map__info p {
  color: rgba(0, 0, 0, 0.87);
  font-size: 14px;
  line-height: 1.4em;
  margin: 0;
  word-break: break-word;
}

.vafma-market-map__description {
  color: rgba(0, 0, 0, 0.87);
  font-size: 14px;
  line-height: 1.45em;
  word-break: break-word;
}

.vafma-market-map__description p,
.vafma-market-map__description ul,
.vafma-market-map__description ol {
  margin: 0 0 10px;
}

.vafma-market-map__description p:last-child,
.vafma-market-map__description ul:last-child,
.vafma-market-map__description ol:last-child {
  margin-bottom: 0;
}

.vafma-market-map__info a {
  color: #a93131;
}

.vafma-market-map__info a:hover,
.vafma-market-map__info a:focus {
  color: #61b461;
}

.vafma-market-map__details[hidden],
.vafma-market-map__empty[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .vafma-market-map__filter {
    width: 35%;
  }
}

@media (max-width: 767px) {
  .vafma-market-map__filters {
    flex-direction: column;
    margin-top: 20px;
  }

  .vafma-market-map__filter {
    width: 90%;
  }
}
