  .top-left-icons img,
    .top-right-icon img {
      width: 21px;
      height: 21px;
      filter: invert(0);
      transition: transform 0.2s ease, filter 0.2s ease;
    }

	.main-nav a {
	  color: #000; /* черное меню */
	}

	.main-nav a:hover {
	  color: #1d3c55;
	}

	.main-nav a.active {
	  font-weight: 300;
	}
	
    main.hospital-map-page {
      display: flex;
      gap: 20px;
      padding: 100px 20px 20px;
      height: calc(100vh - 120px);
    }

    .map-container {
      flex: 1;
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      background: #f5f5f5;
    }

    .hospital-map-wrapper {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
    }

    .hospital-map-bg {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.3s ease;
    }

    /* SVG контейнер */
    .svg-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .svg-overlay svg {
      width: 100%;
      height: 100%;
    }

    .map-area {
	  fill: transparent;
	  stroke: transparent;
	  cursor: pointer;
	  transition: all 0.3s ease;
	  pointer-events: all;
	}

	.map-area:hover {
	  fill: transparent; /* Полностью прозрачная заливка */
	   /* Только обводка */
	  stroke-width: 3;
	}

    .map-area.highlighted {
      fill: transparent;
      stroke-width: 3;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% { stroke-width: 2; }
      50% { stroke-width: 4; }
      100% { stroke-width: 2; }
    }

    /* Остальные стили остаются такими же */
    .legend-container {
	  width: 720px;
	  height: 100%;
	  max-height: 100%;
	  overflow-y: auto;
	  display: flex;
	  flex-direction: column;
	  gap: 12px;
	  padding: 20px;
	  position: sticky;
	  top: 0;
	  background: white;
	  border-radius: 12px;
	  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	  font-size: 13px;
	  line-height: 1.4;
	}

	.legend-item {
	  display: block;
	  padding: 14px 16px;
	  border-radius: 12px;
	  color: #fff;
	  font-weight: 500;
	  font-size: 13px;
	  line-height: 1.4;
	  white-space: normal;
	  word-wrap: break-word;
	  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	  cursor: pointer;
	  transition: all 0.2s ease;
	  min-height: auto;
	  background: #0e4b36; /* fallback */
	}

	.legend-item:hover {
	  transform: translateY(-2px);
	  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	}

	.legend-item.a { background: #0e4b36; }
	.legend-item.b { background: #6b0f1d; }
	.legend-item.c { background: #083a86; }

    /* Изменения здесь: увеличиваем размер тултипа и шрифта */
    .tooltip {
	  position: absolute;
	  background: rgba(255, 255, 255, 0.25); /* Полупрозрачный белый */
	  backdrop-filter: blur(20px) saturate(180%); /* Размытие фона */
	  -webkit-backdrop-filter: blur(20px) saturate(180%); /* Для Safari */
	  border: 1px solid rgba(255, 255, 255, 0.4); /* Полупрозрачная граница */
	  border-radius: 16px; /* Закругленные углы */
	  padding: 16px 22px;
	  font-size: 13px;
	  font-weight: 600;
	  pointer-events: none;
	  transform: translateY(-10px);
	  box-shadow: 
		0 8px 32px rgba(0, 0, 0, 0.1), /* Внешняя тень */
		inset 0 1px 0 rgba(255, 255, 255, 0.6); /* Внутреннее свечение */
	  z-index: 1000;
	  max-width: 450px;
	  line-height: 1.4;
	  transition: color 0.2s ease; /* плавное переключение */
	  /* Градиент для усиления эффекта стекла */
	  background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.25) 0%,
		rgba(255, 255, 255, 0.15) 100%
	  );
	}

    .zoom-controls {
      position: absolute;
      bottom: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 100;
    }

    .zoom-btn {
      width: 40px;
      height: 40px;
      background: white;
      border: none;
      border-radius: 50%;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
      transition: all 0.2s ease;
    }

    .zoom-btn:hover {
      background: #f0f0f0;
      transform: scale(1.05);
    }

    .zoom-level {
      position: absolute;
      bottom: 80px;
      right: 20px;
      background: white;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 14px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      z-index: 100;
    }

    /* ТЕМНАЯ ТЕМА */
body.dark-theme {
  background: #1a1a1a;
  color: #ffffff;
}

body.dark-theme header {
  background: rgba(26, 26, 26, 0.95);
}

body.dark-theme .main-nav a {
  color: #ffffff;
}

body.dark-theme .main-nav a:hover {
  color: #4dabf7;
}

body.dark-theme .dropdown-content {
  background: #2d2d2d;
  border: 1px solid #444;
}

body.dark-theme .dropdown-content a {
  color: #ffffff;
}

body.dark-theme .dropdown-content a:hover {
  background: #3d3d3d;
}

body.dark-theme .top-left-icons img,
body.dark-theme .top-right-icon img {
  filter: invert(1);
}

/* Контейнер с картой НЕ меняем - оставляем как есть */
/* .map-container остается без изменений */

body.dark-theme .legend-container {
  background: #2d2d2d;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  color: #ffffff;
}

body.dark-theme .legend-item {
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

body.dark-theme .legend-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

body.dark-theme .legend-item.a { background: #1a5c3e; }
body.dark-theme .legend-item.b { background: #7a1a2a; }
body.dark-theme .legend-item.c { background: #1a4a8a; }

body.dark-theme .tooltip {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(35, 35, 35, 0.8) 100%);
  color: #ffffff;
  border: 1px solid #555;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-theme .zoom-btn {
  background: #2d2d2d;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

body.dark-theme .zoom-btn:hover {
  background: #3d3d3d;
}

body.dark-theme .zoom-level {
  background: transparent;
  
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


body.dark-theme .map-area.highlighted {
  fill: transparent;
  
}

body.dark-theme .site-footer {
  background: #1a1a1a;
  color: #ffffff;
  border-top: 1px solid #333;
}

body.dark-theme .search-input {
  background: #2d2d2d;
  color: #ffffff;
  border: 1px solid #555;
}

body.dark-theme .search-input::placeholder {
  color: #999;
}
