/* Контейнер карты */
#map-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  height: 600px;
  box-sizing: border-box;
}

/* Карта */
#map {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid #a5121a;
}


/* Контактный блок */
#contact-overlay {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 320px;
  color: #ccc;
  padding: 20px;
  border-radius: 16px;
  z-index: 999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 45px;
  background: #141414;
  border: 1px solid #a5121a;
}

/* Заголовок */


/* Элементы контактов */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
}

.contact-item .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-fit: contain;
  margin-right: 12px;
}

#area-popup {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 40vh;
  background: #ccc;
  color: #141414;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.13);
  z-index: 3000;
  padding: 18px 16px 20px 16px;
  font-size: 16px;
  line-height: 1.5;
  overflow-y: auto;
  transition: transform 0.2s;
}
#area-popup.active {
  display: block;
}
#area-popup .popup-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 28px;
  color: #72050a;
  background: none;
  border: none;
  cursor: pointer;
}

/* ✅ Адаптив */
@media (max-width: 768px) {
  #map-container {
    flex-direction: column;
    padding: 20px;
    height: auto;
  }

  #contact-overlay {
    position: static;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  #map {
    height: 400px;
    border-radius: 12px;
  }

  #map-overlay {
    border-radius: 12px;
  }

  #area-popup {
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    bottom: 32px;
    border-radius: 16px;
    max-height: 70vh;
  }
}
