/* Allow the canvas to use the full height and have no margins */
html,
body,
#map-canvas {
  height: 100%;
  margin: 0;
}

/* Стили для контейнера карты */
.map-container {
  position: relative;
  height: calc(100vh - 150px);
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для информационного окна */
.custom-info-window {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 12px;
  max-width: 250px;
}

.custom-info-window h3 {
  margin-top: 0;
  color: #4f0151;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.custom-info-window p {
  margin: 8px 0;
}

.custom-info-window .status {
  font-weight: bold;
}

.custom-info-window .free {
  color: #28a745;
}

.custom-info-window .owned {
  color: #dc3545;
}

/* Стили для легенды карты */
.map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 10px;
  z-index: 1000;
}

.map-legend h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

.legend-text {
  font-size: 12px;
}

/* Стили для фильтра иконок */
.map-filter {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 12px 15px;
  z-index: 1000;
  min-width: 180px;
  transition: transform 0.3s ease;
  transform-origin: bottom left;
}

.map-filter.collapsed {
  transform: translateY(calc(100% - 40px));
}

.map-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.map-filter-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.map-filter-toggle {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.map-filter.collapsed .map-filter-toggle {
  transform: rotate(180deg);
}

.map-filter-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 300px;
}

.map-filter.collapsed .map-filter-content {
  max-height: 0;
}

.filter-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.filter-item:last-child {
  margin-bottom: 0;
}

.filter-checkbox {
  margin-right: 10px;
  width: 16px;
  height: 16px;
}

.filter-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #333;
}

.filter-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* Стили для иконок */
.house-free-icon {
  color: #28a745; /* Зеленый цвет для свободных домов */
}

.house-owned-icon {
  color: #dc3545; /* Красный цвет для занятых домов */
}

.race-icon {
  color: #007bff; /* Синий цвет для гонок */
}

