.plots-map {
  position: relative;
  width: 100%;
}

.cart__block {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.plots-map__legend {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.2s;
}

.filter-btn:not(.active) {
  opacity: 0.45;
}

.filter-btn--available { background-color: #4CAF50; }
.filter-btn--reserved { background-color: #FE8A06; }
.filter-btn--sold { background-color: #B931FF; }

.plots-map__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #171717;
  border-radius: 6px;
  overflow: hidden;
}

.plots-map__canvas--placing {
  cursor: crosshair;
}

.plots-map__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  background: #eef1ea;
  z-index: 2;
  border-radius: 6px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* Точки на карте */
.plot-dot {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.plot-dot:hover {
  transform: scale(1.4);
}

.plot-dot--available { background-color: #4CAF50; }
.plot-dot--reserved { background-color: #FE8A06; }
.plot-dot--sold { background-color: #B931FF; }

@media (max-width: 768px) {
  .plot-dot {
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
  }


  .genplan-popup .plot-dot {
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    margin-top: -2.5px;
  }
}

/* Тёмная карточка попапа */
.leaflet-popup-content-wrapper {
  background: rgba(24, 24, 24, 0.96);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.leaflet-popup-tip {
  background: rgba(24, 24, 24, 0.96);
}

.leaflet-popup-content {
  margin: 16px 18px;
  min-width: 220px;
}

.leaflet-popup-close-button {
  color: #fff !important;
  font-size: 20px !important;
  top: 8px !important;
  right: 10px !important;
}

.leaflet-popup-close-button:hover {
  color: #ccc !important;
}

.plot-popup__title {
  margin: 0 0 10px;
  font-family: 'Great Vibes', 'Montserrat', cursive, sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
}

.plot-popup__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.plot-popup__status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.plot-popup__status--available { background-color: #1f5c2a; }
.plot-popup__status--reserved { background-color: #7a4308; }
.plot-popup__status--sold { background-color: #5a1c85; }

.plot-popup__price {
  margin: 8px 0 4px;
  color: #4FC3F7;
  font-weight: bold;
  font-size: 16px;
}

.plot-popup__area {
  margin: 4px 0 0;
  color: #ddd;
  font-size: 14px;
}
