
/*! Map Modal Fixes v76b — robust, responsive, no overflow */
.map{ position: relative; }

.map .map-form{
  position: absolute;
  left: 50%;
  top: 9%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100% - 32px));
  height: auto !important;
  padding: 20px 20px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 47px rgba(0,0,0,.07);
  z-index: 200;
  overflow: hidden;
  box-sizing: border-box;
}

.map .map-form-title{
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 2px 0;
  text-align: left;
}

.map .map-form-description{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 6px 0;
}

.map .map-form-dop{
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.map .map-form-adress,
.map .map-form-phone,
.map .map-form-email{
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  height: auto !important;
}

.map .map-form-adress a,
.map .map-form-phone a,
.map .map-form-email a{
  color: #2C3E50;
  text-decoration: none;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.map .map-form-adress p{ margin: 0; }

.map .ico-1, .map .ico-2, .map .ico-3{
  width: 20px;
  height: 20px;
  display: block;
  align-self: center;
}

/* Reset legacy offsets that caused misalignment */
.map .map-form-phone,
.map .map-form-email{
  margin-left: 0 !important;
  margin-top: 0 !important;
}

/* Make the map container truly contain the card */
.map{ height: 464px; max-width: 1903px; box-sizing: border-box; overflow: visible; }

@media (max-width: 1024px){
  .map .map-form{ width: min(520px, calc(100% - 28px)); }
}

@media (max-width: 768px){
  .map .map-form{
    top: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    padding: 16px 14px;
    border-radius: 12px;
  }
  .map .map-form-title{ font-size: 18px; }
  .map .map-form-description{ font-size: 16px; }
}
