/* Подсказки */
.suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 4px;
  box-sizing: border-box;
  z-index: 9999;
}

.suggest-list:empty {
  display: none;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #0f172a;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.suggest-item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #312e81;
}

.suggest-item--region {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.suggest-item--region:hover {
  background: rgba(99, 102, 241, 0.16);
  color: #3730a3;
}

/* Отключаем лишние блоки Яндекса */
[class*="gotoymaps__container"],
[class*="gototech"] {
  display: none !important;
}

/* ===== Маркер ===== */
#centerMarkerIcon {
  display: none;
  position: absolute;
  width: 40px;
  height: 40px;
  background: url('https://cdn-icons-png.flaticon.com/512/684/684908.png') no-repeat center;
  background-size: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 999;
  transition: transform 0.3s ease;
}



@keyframes jumpMarker {
  0%   { transform: translate(-50%, -100%) scale(1); }
  50%  { transform: translate(-50%, -130%) scale(1.05); }
  100% { transform: translate(-50%, -100%) scale(1); }
}

/* При удержании карты (dragging) */
#centerMarkerIcon.dragging {
  transform: translate(-50%, -130%) scale(1.05);
}

/* ===== Тень под маркером ===== */
#centerMarkerIcon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 20px;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: -1;
  filter: blur(2px);
  opacity: 1;
  transition: all 0.2s ease;
}

/* Тень уменьшается во время перетаскивания */
#centerMarkerIcon.dragging::after,
#centerMarkerIcon.moving::after {
  width: 14px;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(1px);
  opacity: 0.9;
}

/* ===== Кнопки зума ===== */

.custom-zoom-controls {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  z-index: 1000;
}

/* На очень маленьких высотах карты слегка поджимаем центрирование */
@media (max-height: 520px) {
  .custom-zoom-controls {
    top: calc(50% - 10px);
  }
}

.custom-zoom-controls button {
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.custom-zoom-controls button + button {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.custom-zoom-controls button:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #3730a3;
}

.map-wrapper {
  max-width: 700px;
  width: 100%;
}
