.map-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.map-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  background: #fff;
  display: flex;
  margin-bottom: 30px;
}

.map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.map-thumb img {
  width: 300px;
  display: block;
  cursor: pointer;
}

.map-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.map-modal-overlay.open {
  display: flex;
}

.map-modal-box {
  max-width: 900px;
  width: 90%;
  position: relative;
}

.map-modal-box img {
  width: 100%;
  border-radius: 12px;
}

.map-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 38px;
  color: #1b1b1b81;
  cursor: pointer;
}

.map-card-text {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Описание */
.map-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Адрес */
.map-address {
  font-size: 14px;
  color: #111;
  margin-bottom: 20px;
}

/* Телефон */
.map-phone {
  font-size: 15px !important;
  color: #666 !important;
  margin-bottom: 14px;
}

/* Блок кнопок */
.map-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Общий стиль кнопок */
.map-buttons a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 2GIS кнопка */
.btn-2gis {
  background: #00b956;
  color: #fff !important;
}

.btn-2gis:hover {
  background: #00994a;
  transform: translateY(-2px);
}

/* Яндекс кнопка */
.btn-yandex {
  background: #ffcc00;
  color: #000 !important;
}

.btn-yandex:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .map-card:hover {
    box-shadow: none !important;
  }
  .map-card {
    box-shadow: none !important;
    flex-direction: column !important;
  }
}
