#map {
  position: relative;
  width: 100%;
  padding-top: 64.8%;   /* пример соотношения сторон */
}
#map > .mapboxgl-map {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

/* убираем старые отступы */
.mapboxgl-popup-content {
  padding: 0 !important;
  overflow: hidden;
}

/* сам контейнер */
.map-info-item .wrapper {
  padding: 16px;
  box-sizing: border-box;
}

/* картинка станции */
.map-info-item .wrapper .image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 8px 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

/* логотип на картинке */
.map-info-item .wrapper .image-logo {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 48px; height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* заголовок и текст */
.map-info-item .wrapper h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.map-info-item .wrapper p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.3;
}

/* блок доступности */
.map-info-item .wrapper .available-item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 12px 0;
}
.map-info-item .wrapper .available-item div {
  flex: 1 1 45%;
  font-size: 14px;
}

/* ссылка на маршрут */
.map-info-item .wrapper .directions-link {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: #356197;
  text-decoration: underline;
}