/* How-to-find: Yandex walking route embed */

.map-frame--guide {
  height: auto !important;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 18px;
}

.map-frame--guide iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-guide-card {
  display: grid;
  gap: 0;
  background: #f5f6f0;
  color: #132e2e;
}

.map-guide-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 24px 18px;
  background: linear-gradient(180deg, #0b2526, #123536);
  color: #f5f6f0;
}

.map-guide-card__head h3 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.map-guide-card__head h3 span {
  color: #a8efd3;
}

.map-guide-card__head p {
  margin: 0;
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.55;
  color: #b7cdc0;
}

.map-guide-embed {
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 360px;
  background: #dfe8e1;
  overflow: hidden;
}

.map-guide-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
}

/* Cover Yandex chrome: iframe itself cannot be restyled cross-origin */
.map-guide-embed__chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-guide-embed__mask {
  position: absolute;
  pointer-events: auto;
  background: #e8eee6;
  box-shadow: 0 0 14px 10px #e8eee6;
}

/* Пробки + линейка / слои */
.map-guide-embed__mask--tr {
  top: 0;
  right: 0;
  width: 160px;
  height: 52px;
}

/* «Открыть в Картах» сверху слева (если виджет показывает) */
.map-guide-embed__mask--tl {
  top: 0;
  left: 0;
  width: 180px;
  height: 44px;
}

/* «Открыть маршрут» */
.map-guide-embed__mask--bl {
  left: 0;
  bottom: 22px;
  width: 190px;
  height: 52px;
}

/* + / − / Моё местоположение (справа, позиция плавает) */
.map-guide-embed__mask--br {
  top: 36%;
  right: 0;
  bottom: 22px;
  width: 52px;
}

/* © Яндекс / условия / масштаб */
.map-guide-embed__mask--bb {
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  box-shadow: 0 0 10px 8px #e8eee6;
}

.map-guide-note {
  margin: 0;
  padding: 14px 20px 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #5f7468;
  background: #eef4ee;
  border-top: 1px solid rgba(11, 37, 38, 0.06);
}

@media (max-width: 640px) {
  .map-guide-card__head {
    padding: 18px 16px 14px;
  }

  .map-guide-embed {
    height: 420px;
    min-height: 320px;
  }

  .map-guide-embed__mask--tr {
    width: 140px;
    height: 48px;
  }

  .map-guide-embed__mask--bl {
    width: 170px;
    height: 48px;
  }

  .map-guide-embed__mask--br {
    width: 48px;
  }
}
